Hello Misha,
Thanks for the bug report, I have updated my packages and it should fix
this bug.
About the following bug:
[INFO] Error building POM (may not be this project's POM).
Project ID: org.openmrs.codehaus.mojo:buildnumber-maven-plugin
Reason: POM 'org.openmrs.codehaus.mojo:buildnumber-maven-plugin' not
found in repository: System is offline.
This bug simply means that you will need to package the
buildnumber-maven-plugin. I'm currently working on this particular
plugin, but using the Codehaus version. Is there any reason why OpenMRS
uses their version of the plugin?
About Spring 3: this package is now in experimental, but once Squeeze is
released, it will move to Unstable then Testing. This means that with
some luck it will be picked up automatically by the next Ubuntu,
otherwise it's always possible to file a sync request at Ubuntu and
manually include the latest package into the Universe repository of
Ubuntu. The same applies to my packages.
On 11/16/2010 05:41 AM, Misha Koshelev wrote:
>
> Hi Ludovic:
>
> Thank you for your comments.
>
> I downloaded and installed the two packages from your PPA:
> rm -rf /tmp/test > /dev/null 2>&1
> mkdir /tmp/test
> cd /tmp/test
> wget -c
> https://launchpad.net/~ludovicc/+archive/ppa/+build/2046440/+files/maven-debian-helper_1.3.0ubuntu1~ppa4_all.deb
> wget -c
> https://launchpad.net/~ludovicc/+archive/ppa/+build/2046441/+files/maven-repo-helper_1.4ubuntu0~ppa6_all.deb
> sudo dpkg -i *.deb
>
> Then added the experimental repository to my /etc/apt/sources.list:
> deb http://ftp.debian.org/debian experimental main
>
> And finally made some changes to my debian folder which are saved here:
> rm -rf /tmp/test > /dev/null 2>&1
> cd /tmp/test
> wget https://bigfile.bcm.tmc.edu/outbound/mk144210/debian.tar.bz2
> svn checkout http://svn.openmrs.org/openmrs/trunk --quiet
> cd trunk
> tar xvjf ../debian.tar.bz2
>
> Finally ran:
> dpkg-buildpackage -rfakeroot -us -uc
>
> You were right in terms of dependencies. However, I thought you might
> be interested in the following NullPointerException:
> dpkg-buildpackage -rfakeroot -us -uc
> dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2
> dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor):
> dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g
> -O2
> dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
> dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor):
> dpkg-buildpackage: source package openmrs
> dpkg-buildpackage: source version 1.6.1-1
> dpkg-buildpackage: source changed by Misha Koshelev
> dpkg-buildpackage: host architecture i386
> dpkg-source --before-build trunk
> fakeroot debian/rules clean
> test -x debian/rules
> dh_testroot
> mkdir -p "."
> /usr/share/maven-debian-helper/copy-repo.sh /home/misha/maven/trunk/debian
> mh_patchpoms -popenmrs --debian-build --keep-pom-version
> --maven-repo=/home/misha/maven/trunk/debian/maven-repo
> --build-no-docs --ignore-rules=debian/maven.ignoreRules
> --clean-ignore-rules=debian/maven.cleanIgnoreRules
> Nov 15, 2010 10:26:04 PM org.debian.maven.repo.ListOfPOMs foreachPoms
> SEVERE: null
> java.lang.NullPointerException
> at org.debian.maven.repo.ListOfPOMs.contains(ListOfPOMs.java:139)
> at
> org.debian.maven.repo.POMTransformer.keepParentVersion(POMTransformer.java:204)
> at
> org.debian.maven.repo.POMTransformer$3.handlePOM(POMTransformer.java:218)
> at org.debian.maven.repo.ListOfPOMs.foreachPoms(ListOfPOMs.java:82)
> at
> org.debian.maven.repo.POMTransformer.transformPoms(POMTransformer.java:214)
> at org.debian.maven.repo.POMTransformer.main(POMTransformer.java:1037)
> touch debian/stamp-poms-patched
> cd . && /usr/lib/jvm/java-6-openjdk/bin/java -noverify -cp
> /usr/share/maven2/boot/classworlds.jar:/usr/lib/jvm/java-6-openjdk/lib/tools.jar
> -Dclassworlds.conf=/etc/maven2/m2-debian.conf
> org.codehaus.classworlds.Launcher -s/etc/maven2/settings-debian.xml
> -Dmaven.repo.local=/home/misha/maven/trunk/debian/maven-repo clean
> [INFO]
> NOTE: Maven is executing in offline mode. Any artifacts not already in
> your local
> repository will be inaccessible.
>
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO] OpenMRS
> [INFO] openmrs-test
> [INFO] openmrs-api
> [INFO] openmrs-web
> [INFO] openmrs-webapp
> [INFO]
>
> [INFO] Building OpenMRS
> [INFO]task-segment: [clean]
> [INFO]
>
> [INFO]
>
> [ERROR] BUILD ERROR
> [INFO]
>
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: org.openmrs.codehaus.mojo:buildnumber-maven-plugin
>
> Reason: POM