From api-return-395-apmail-directory-api-archive=directory.apache.org@directory.apache.org Wed Aug 7 05:39:00 2013
Return-Path:
X-Original-To: apmail-directory-api-archive@minotaur.apache.org
Delivered-To: apmail-directory-api-archive@minotaur.apache.org
Received: from mail.apache.org (hermes.apache.org [140.211.11.3])
by minotaur.apache.org (Postfix) with SMTP id 8F140102A3
for ; Wed, 7 Aug 2013 05:39:00 +0000 (UTC)
Received: (qmail 85959 invoked by uid 500); 7 Aug 2013 05:38:58 -0000
Delivered-To: apmail-directory-api-archive@directory.apache.org
Received: (qmail 85899 invoked by uid 500); 7 Aug 2013 05:38:51 -0000
Mailing-List: contact api-help@directory.apache.org; run by ezmlm
Precedence: bulk
List-Help:
List-Unsubscribe:
List-Post:
List-Id:
Reply-To: api@directory.apache.org
Delivered-To: mailing list api@directory.apache.org
Received: (qmail 85712 invoked by uid 99); 7 Aug 2013 05:38:47 -0000
Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136)
by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Aug 2013 05:38:47 +0000
X-ASF-Spam-Status: No, hits=-0.0 required=5.0
tests=SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: local policy)
Received: from [72.5.230.100] (HELO sender1.zohomail.com) (72.5.230.100)
by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Aug 2013 05:38:41 +0000
Received: from langebro (pool-98-114-184-117.phlapa.fios.verizon.net [98.114.184.117]) by mx.zohomail.com
with SMTPS id 1375853900143162.57361301556978; Tue, 6 Aug 2013 22:38:20 -0700 (PDT)
From: "Richard Sand"
To:
Subject: building the API in Eclipse
Date: Wed, 7 Aug 2013 01:38:19 -0400
Message-ID: <06c201ce9330$534b7350$f9e259f0$@idfconnect.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: Ac6TKclYes42/sSOR+aVDCQx8v7YjQ==
Content-Language: en-us
X-ZohoMailClient: External
X-Zoho-Virus-Status: 2
X-Virus-Checked: Checked by ClamAV on apache.org
Hi all - just sharing some things I learned today setting up the API source
in Eclipse.
If you try to check out the entire API trunk (i.e.
https://svn.apache.org/repos/asf/directory/shared/trunk/) into a single
Eclipse project, you will get an epic failure. The problem seems to be with
the Eclipse Maven (m2e) integration. Doing "New-->Checkout Project from SVN"
puts everything into 1 project, and the maven plugin for eclipse doesn't
resolve the dependencies of the maven subprojects. There may be a way to fix
that, but after some tinkering I got this to work instead: do
"New-->Maven-->Checkout Maven Project from SCM" and then specify the trunk
(you'll need to have the m2e plugin for svn). What this does is create a
distinct Eclipse project for every subproject - so you'll end up with 15 or
so projects, but everything will build correctly...
...with one exception. The project "api-ldap-schema-data" (i.e.
http://svn.apache.org/repos/asf/directory/shared/trunk/ldap/schema/data)
gave me a strange error message on line 1 of the pom.xml, the error message
being:
org.codehaus.plexus.archiver.jar.Manifest.merge(org.codehaus.plexus.archiver
.jar.Manifest). This seems to be caused by a known problem with
maven-kar-plugin:2.4. Someone else had the same problem with an unrelated
project and his workaround was to explicitly set the maven-jar-plugin to
version 2.3.2. That work for me, and after that I was able to build the who
API in Eclipse.
Hope this helps someone. Thanks!
Best regards,
Richard