[Bug 1254335] Re: bsh: Builds libbsh-java package without needed maven-repo files
Bug Watch Updater
1254335 at bugs.launchpad.net
Sun Nov 24 00:42:21 UTC 2013
** Changed in: bsh (Debian)
Status: New => Fix Released
** Changed in: bsh (Debian)
Importance: Undecided => Unknown
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bsh in Ubuntu.
https://bugs.launchpad.net/bugs/1254335
Title:
bsh: Builds libbsh-java package without needed maven-repo files
Status in “bsh” package in Ubuntu:
New
Status in “bsh” package in Debian:
Fix Released
Bug description:
Imported from Debian bug http://bugs.debian.org/730008:
Source: bsh
Version: 2.0b4-14
Severity: serious
If I build the latest bsh source package using pbuilder, the resulting package
has contents:
root at frobozz:/var/cache/pbuilder# dpkg-deb -c result/libbsh-java_2.0b4-14_all.deb
drwxr-xr-x root/root 0 2013-11-19 19:06 ./
drwxr-xr-x root/root 0 2013-11-19 19:06 ./usr/
drwxr-xr-x root/root 0 2013-11-19 19:06 ./usr/share/
drwxr-xr-x root/root 0 2013-11-19 19:06 ./usr/share/maven-repo/
drwxr-xr-x root/root 0 2013-11-19 19:06 ./usr/share/maven-repo/org/
drwxr-xr-x root/root 0 2013-11-19 19:06 ./usr/share/maven-repo/org/beanshell/
drwxr-xr-x root/root 0 2013-11-19 19:06 ./usr/share/maven-repo/org/beanshell/bsh/
drwxr-xr-x root/root 0 2013-11-19 19:06 ./usr/share/maven-repo/org/beanshell/bsh/2.0b4/
drwxr-xr-x root/root 0 2013-11-19 19:06 ./usr/share/maven-repo/org/beanshell/bsh/debian/
drwxr-xr-x root/root 0 2013-11-19 19:06 ./usr/share/java/
-rw-r--r-- root/root 280863 2013-11-19 19:06 ./usr/share/java/bsh-2.0b4.jar
drwxr-xr-x root/root 0 2013-11-19 19:06 ./usr/share/doc/
drwxr-xr-x root/root 0 2013-11-19 19:06 ./usr/share/doc/libbsh-java/
-rw-r--r-- root/root 1081 2013-11-04 08:39 ./usr/share/doc/libbsh-java/copyright
-rw-r--r-- root/root 3310 2013-11-04 08:39 ./usr/share/doc/libbsh-java/changelog.Debian.gz
lrwxrwxrwx root/root 0 2013-11-19 19:06 ./usr/share/maven-repo/org/beanshell/bsh/2.0b4/bsh-2.0b4.jar -> ../../../../../java/bsh-2.0b4.jar
lrwxrwxrwx root/root 0 2013-11-19 19:06 ./usr/share/maven-repo/org/beanshell/bsh/debian/bsh-debian.jar -> ../../../../../java/bsh-2.0b4.jar
lrwxrwxrwx root/root 0 2013-11-19 19:06 ./usr/share/java/bsh.jar -> bsh-2.0b4.jar
i.e. there are no *.pom files in /usr/share/maven-repo.
(By the way, any idea why this source package is in sid but all the bsh binary
packages are still at 2.0b4-12?)
Because of this, in a chroot with bsh 2.0b4-14 installed, I'm getting numerous
errors in packages which use maven to build, like this one from antlr-maven-
plugin:
debian/rules build
test -x debian/rules
mkdir -p "."
/usr/share/maven-debian-helper/copy-repo.sh /tmp/buildd/antlr-maven-plugin-2.2/debian
mh_patchpoms -plibantlr-maven-plugin-java --debian-build --keep-pom-version --maven-repo=/tmp/buildd/antlr-maven-plugin-2.2/debian/maven-repo --build-no-docs
touch debian/stamp-poms-patched
# before-build target may be used to unpatch the pom files, so we need to check if
# patching the pom files is needed here, normally not
if [ ! -f pom.xml.save ]; then \
/usr/bin/make -f debian/rules patch-poms; \
fi
cd . && /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven2/boot/classworlds.jar:/usr/lib/jvm/default-java/lib/tools.jar -Dproperties.file.manual=/tmp/buildd/antlr-maven-plugin-2.2/debian/maven.properties -Dclassworlds.conf=/etc/maven2/m2-debian-nodocs.conf org.codehaus.classworlds.Launcher -s/etc/maven2/settings-debian.xml -Dmaven.repo.local=/tmp/buildd/antlr-maven-plugin-2.2/debian/maven-repo package
[INFO]
NOTE: Maven is executing in offline mode. Any artifacts not already in your local
repository will be inaccessible.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven ANTLR Plugin
[INFO] task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] [modello:java {execution: default}]
[INFO] outputDirectory: /tmp/buildd/antlr-maven-plugin-2.2/target/generated-sources/modello
[INFO] Working on model: src/main/mdo/antlrOptions.mdo
[INFO] Generating current version: 1.0.0
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.beanshell:bsh:jar:debian
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.beanshell -DartifactId=bsh -Dversion=debian -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.beanshell -DartifactId=bsh -Dversion=debian -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.maven.plugins:maven-plugin-plugin:maven-plugin:3.2
2) org.apache.maven.plugin-tools:maven-plugin-tools-beanshell:jar:debian
3) org.beanshell:bsh:jar:debian
----------
1 required artifact is missing.
for artifact:
org.apache.maven.plugins:maven-plugin-plugin:maven-plugin:3.2
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
NOTE: Maven is executing in offline mode. Any artifacts not already in your local
repository will be inaccessible.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Mon Nov 18 03:46:27 UTC 2013
[INFO] Final Memory: 11M/212M
[INFO] ------------------------------------------------------------------------
make: *** [mvn-build] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
--
Daniel Schepler
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bsh/+bug/1254335/+subscriptions
More information about the foundations-bugs
mailing list