Many thanks, that did work. I should probably learn a bit more about maven ..
Richard From: Pierre-Arnaud Marcelot [mailto:[email protected]] On Behalf Of Pierre-Arnaud Marcelot Sent: 11 May 2011 15:06 To: Apache Directory Developers List Subject: Re: Building ApacheDS from SVN Thanks Richard. Indeed, the error you got when building the rpm package stopped the execution. Execution goes through other installers only if the system is missing the required tools to build installers (rpmbuild for RPM, dpkg for DEB, PackageMaker for Mac OS X, etc.) All installers seem to be correctly generated via our Jenkins nightly build [1]. Last time I checked the RPM build, it seemed fine on my Fedora VM. I'll give it a try tonight. In the meantime, you can try to remove the rpm target in the pom.xml file of the installers project to get to the archives generation: <!-- Targets for Linux .rpm installer package --> <rpmTargets> <rpmTarget> <id>apacheds-rpm-i386</id> <finalName>apacheds-${project.version}-i386.rpm</finalName> <osName>Linux</osName> <osArch>i386</osArch> </rpmTarget> <rpmTarget> <id>apacheds-rpm-x86_64</id> <finalName>apacheds-${project.version}-x86_64.rpm</finalName> <osName>Linux</osName> <osArch>x86_64</osArch> </rpmTarget> </rpmTargets> Regards, Pierre-Arnaud [1] - https://builds.apache.org/hudson/view/A-F/view/Directory/job/dir-apacheds-jdk16-osx-installers/ On 11 mai 2011, at 15:13, Richard Evans wrote: The log is attached. I used the command: mvn -fae --log-file log.txt clean install -Pinstallers Richard -------- Original Message -------- I guess the failed RPM stopped the mvn execution... Can you give us your complete maven log for the installers project? Thanks, Pierre-Arnaud On 11 mai 2011, at 12:43, Richard Evans wrote: Hmm, I'm missing something. I ran mvn again with the -fae option but just get these installers: [rde@orion svn]$ ls apacheds/installers/target/installers/ apacheds-1.5.8-SNAPSHOT.exe apacheds-rpm-i386 apacheds-win32 Richard -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Kiran Ayyagari Sent: 11 May 2011 11:28 To: Apache Directory Developers List Subject: Re: Building ApacheDS from SVN On Wed, May 11, 2011 at 3:39 PM, Richard Evans <[email protected]> wrote: Almost there, but I get this error: Building target platforms: i386-linux Building for target i386-linux *** ERROR: No build ID note found in /home/rde/misc/apacheds_1.5.7/svn/apacheds/installers/target/installers/apacheds-rpm-i386/BUILDROOT/apacheds-1.5.8_SNAPSHOT-1.i386/opt/apacheds-1.5.8_SNAPSHOT/bin/wrapper error: Bad exit status from /tmp/rpm-tmp.w1YHIX (%install) Bad exit status from /tmp/rpm-tmp.w1YHIX (%install) I get the feeling this is a fedora/rpm issue. Is there a workround? I don't need the RPMs, just the .tar.gz. I don't see an installers directory in the checkout location - is that created as the very last step? yeap, even if the RPM generation fails tar.gz will be generated assuming that you checked out the trunk-with-dependencies url then you will find them here<checkout>/apacheds/installers/target/installers/ Richard -----Original Message----- From: Pierre-Arnaud Marcelot [mailto:[email protected]] On Behalf Of Pierre-Arnaud Marcelot Sent: 11 May 2011 10:39 To: Apache Directory Developers List Subject: Re: Building ApacheDS from SVN Generated installers will be located at: [checkout]/installers/target/installers Regards, Pierre-Arnaud On 11 mai 2011, at 11:11, Kiran Ayyagari wrote: use the installers profile while building mvn clean install -Pinstallers On Wed, May 11, 2011 at 12:35 PM, Richard Evans <[email protected]> wrote: HI Apologies for missing something obvious, but I'm having problems building from source. I checked out http://svn.apache.org/repos/asf/directory/apacheds/trunk-with-dependencies and then did a mvn clean install but now can't find a way to build the distribution archives (I want the .tar.gz for testing on Linux). I'm using Maven 3.0.3 and Java 1.6 on A Fedora 12 system. Richard -- Kiran Ayyagari -- Kiran Ayyagari <log.txt>
