Bug#852254: openjpa: FTBFS (Cannot access central (https://repo.maven.apache.org/maven2) in offline mode)

Santiago Vila sanvila at debian.org
Sun Jan 22 21:27:45 UTC 2017


Package: src:openjpa
Version: 2.4.0-3
Severity: serious

Dear maintainer:

I tried to build this package in stretch with "dpkg-buildpackage -A"
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --parallel --buildsystem=maven
   dh_testdir -i -O--parallel -O--buildsystem=maven
   dh_update_autotools_config -i -O--parallel -O--buildsystem=maven
   dh_auto_configure -i -O--parallel -O--buildsystem=maven
find: '/usr/share/maven-repo/org/codehaus/plexus/plexus-compiler/*/*.jar': No such file or directory
find: '/usr/share/maven-repo/org/codehaus/plexus/plexus-compilers/*/*.jar': No such file or directory
find: '/usr/share/maven-repo/org/codehaus/plexus/plexus-containers/*/*.jar': No such file or directory
	mh_patchpoms -plibopenjpa-java --debian-build --keep-pom-version --maven-repo=/<<PKGBUILDDIR>>/debian/maven-repo
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build -- install
	/usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar:/usr/lib/jvm/default-java/lib/tools.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo install -DskipTests -Dnotimestamp=true -Dlocale=en_US
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.apache.openjpa:openjpa-kernel:jar:2.4.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 134, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.apache.openjpa:openjpa-persistence-jdbc:jar:2.4.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 896, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.apache.openjpa:openjpa-xmlstore:jar:2.4.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 77, column 12
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.apache.openjpa:openjpa-slice:jar:2.4.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 125, column 12
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] OpenJPA Utilities Library
[INFO] OpenJPA Kernel
[INFO] OpenJPA JDBC
[INFO] OpenJPA Persistence
[INFO] OpenJPA Persistence JDBC
[INFO] OpenJPA XML Store
[INFO] OpenJPA Slice
[INFO] OpenJPA JEST
[INFO] OpenJPA Aggregate Jar
[INFO] OpenJPA Parent POM
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenJPA Utilities Library 2.4.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ openjpa-lib ---
[WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 9 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ openjpa-lib ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding ANSI_X3.4-1968, i.e. build is platform dependent!
[INFO] Compiling 161 source files to /<<PKGBUILDDIR>>/openjpa-lib/target/classes
[INFO] /<<PKGBUILDDIR>>/openjpa-lib/src/main/java/org/apache/openjpa/lib/rop/SoftRandomAccessResultList.java: Some input files use or override a deprecated API.
[INFO] /<<PKGBUILDDIR>>/openjpa-lib/src/main/java/org/apache/openjpa/lib/rop/SoftRandomAccessResultList.java: Recompile with -Xlint:deprecation for details.
[INFO] /<<PKGBUILDDIR>>/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/concurrent/NullSafeConcurrentHashMap.java: Some input files use unchecked or unsafe operations.
[INFO] /<<PKGBUILDDIR>>/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/concurrent/NullSafeConcurrentHashMap.java: Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (set subversion revision) @ openjpa-lib ---
[WARNING] Parameter tasks is deprecated, use target instead
[INFO] Executing tasks

main:
     [exec] Execute failed: java.io.IOException: Cannot run program "svnversion" (in directory "/<<PKGBUILDDIR>>/openjpa-lib"): error=2, No such file or directory
     [exec] Execute failed: java.io.IOException: Cannot run program "svn" (in directory "/<<PKGBUILDDIR>>/openjpa-lib"): error=2, No such file or directory
   [delete] Deleting: /<<PKGBUILDDIR>>/openjpa-lib/pcenhancer.revision.file
     [echo] Revision: unknown
     [echo] OpenJPA version: 2.4.0
    [mkdir] Created dir: /<<PKGBUILDDIR>>/openjpa-lib/target/classes/META-INF
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ openjpa-lib ---
[INFO] Not copying test resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ openjpa-lib ---
[INFO] Not compiling test sources
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ openjpa-lib ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ openjpa-lib ---
[INFO] Building jar: /<<PKGBUILDDIR>>/openjpa-lib/target/openjpa-lib-2.4.0.jar
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ openjpa-lib ---
[INFO] Installing /<<PKGBUILDDIR>>/openjpa-lib/target/openjpa-lib-2.4.0.jar to /<<PKGBUILDDIR>>/debian/maven-repo/org/apache/openjpa/openjpa-lib/2.4.0/openjpa-lib-2.4.0.jar
[INFO] Installing /<<PKGBUILDDIR>>/openjpa-lib/pom.xml to /<<PKGBUILDDIR>>/debian/maven-repo/org/apache/openjpa/openjpa-lib/2.4.0/openjpa-lib-2.4.0.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenJPA Kernel 2.4.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- javacc-maven-plugin:2.6:jjtree-javacc (jjtree-javacc-jpql) @ openjpa-kernel ---
[WARNING] File encoding for grammars has not been configured, using platform default encoding, i.e. build is platform dependent!
Java Compiler Compiler Version 5.0 (Tree Builder)
(type "jjtree" with no arguments for help)
Reading from file /<<PKGBUILDDIR>>/openjpa-kernel/src/main/jjtree/org/apache/openjpa/kernel/jpql/JPQL.jjt . . .
File "Node.java" does not exist.  Will create one.
File "JPQLTreeConstants.java" does not exist.  Will create one.
File "JJTJPQLState.java" does not exist.  Will create one.
Annotated grammar generated successfully in /<<PKGBUILDDIR>>/openjpa-kernel/target/javacc-1485117082462/node/JPQL.jj
Java Compiler Compiler Version 5.0 (Parser Generator)
(type "javacc" with no arguments for help)
Reading from file /<<PKGBUILDDIR>>/openjpa-kernel/target/javacc-1485117082462/node/JPQL.jj . . .
Warning: Choice conflict in (...)* construct at line 944, column 17.
         Expansion nested within construct and expansion following construct
         have common prefixes, one of which is: "+"
         Consider using a lookahead of 2 or more for nested expansion.
Warning: Choice conflict in (...)* construct at line 953, column 17.
         Expansion nested within construct and expansion following construct
         have common prefixes, one of which is: "*"
         Consider using a lookahead of 2 or more for nested expansion.
File "TokenMgrError.java" does not exist.  Will create one.
File "ParseException.java" does not exist.  Will create one.
File "Token.java" does not exist.  Will create one.
File "JavaCharStream.java" does not exist.  Will create one.
Parser generated with 0 errors and 2 warnings.
[INFO] Processed 1 grammar
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ openjpa-kernel ---
[WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 15 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ openjpa-kernel ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding ANSI_X3.4-1968, i.e. build is platform dependent!
[INFO] Compiling 505 source files to /<<PKGBUILDDIR>>/openjpa-kernel/target/classes
[INFO] /<<PKGBUILDDIR>>/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ExpressionStoreQuery.java: Some input files use or override a deprecated API.
[INFO] /<<PKGBUILDDIR>>/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ExpressionStoreQuery.java: Recompile with -Xlint:deprecation for details.
[INFO] /<<PKGBUILDDIR>>/openjpa-kernel/target/generated-sources/javacc/org/apache/openjpa/kernel/jpql/ParseException.java: Some input files use unchecked or unsafe operations.
[INFO] /<<PKGBUILDDIR>>/openjpa-kernel/target/generated-sources/javacc/org/apache/openjpa/kernel/jpql/ParseException.java: Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (add-was-interfaces) @ openjpa-kernel ---
[WARNING] Parameter tasks is deprecated, use target instead
[INFO] Executing tasks

main:
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (generate-standard-sco-proxies) @ openjpa-kernel ---
[WARNING] Parameter tasks is deprecated, use target instead
[INFO] Executing tasks

main:
org.apache.openjpa.util.java$sql$Date$proxy
org.apache.openjpa.util.java$sql$Time$proxy
org.apache.openjpa.util.java$sql$Timestamp$proxy
org.apache.openjpa.util.java$util$ArrayList$proxy
org.apache.openjpa.util.java$util$Date$proxy
org.apache.openjpa.util.java$util$GregorianCalendar$proxy
org.apache.openjpa.util.java$util$HashMap$proxy
org.apache.openjpa.util.java$util$HashSet$proxy
org.apache.openjpa.util.java$util$Hashtable$proxy
org.apache.openjpa.util.java$util$LinkedList$proxy
org.apache.openjpa.util.java$util$Properties$proxy
org.apache.openjpa.util.java$util$TreeMap$proxy
org.apache.openjpa.util.java$util$TreeSet$proxy
org.apache.openjpa.util.java$util$Vector$proxy
org.apache.openjpa.util.java$util$EnumMap$proxy
org.apache.openjpa.util.java$util$IdentityHashMap$proxy
org.apache.openjpa.util.java$util$LinkedHashMap$proxy
org.apache.openjpa.util.java$util$LinkedHashSet$proxy
org.apache.openjpa.util.java$util$PriorityQueue$proxy
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ openjpa-kernel ---
[INFO] Not copying test resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ openjpa-kernel ---
[INFO] Not compiling test sources
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ openjpa-kernel ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ openjpa-kernel ---
[INFO] Building jar: /<<PKGBUILDDIR>>/openjpa-kernel/target/openjpa-kernel-2.4.0.jar
[INFO] 
[INFO] --- maven-jar-plugin:2.4:test-jar (attach-tests) @ openjpa-kernel ---
[INFO] Skipping packaging of the test-jar
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ openjpa-kernel ---
[INFO] Installing /<<PKGBUILDDIR>>/openjpa-kernel/target/openjpa-kernel-2.4.0.jar to /<<PKGBUILDDIR>>/debian/maven-repo/org/apache/openjpa/openjpa-kernel/2.4.0/openjpa-kernel-2.4.0.jar
[INFO] Installing /<<PKGBUILDDIR>>/openjpa-kernel/pom.xml to /<<PKGBUILDDIR>>/debian/maven-repo/org/apache/openjpa/openjpa-kernel/2.4.0/openjpa-kernel-2.4.0.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenJPA JDBC 2.4.0
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for postgresql:postgresql:jar:9.2.jdbc3 is missing, no dependency information available
[WARNING] The artifact jmock:jmock:jar:2.x has been relocated to org.jmock:jmock:jar:debian
[WARNING] The artifact jmock:jmock-junit3:jar:2.x has been relocated to org.jmock:jmock-junit3:jar:debian
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] OpenJPA Utilities Library .......................... SUCCESS [ 21.374 s]
[INFO] OpenJPA Kernel ..................................... SUCCESS [ 26.707 s]
[INFO] OpenJPA JDBC ....................................... FAILURE [  0.138 s]
[INFO] OpenJPA Persistence ................................ SKIPPED
[INFO] OpenJPA Persistence JDBC ........................... SKIPPED
[INFO] OpenJPA XML Store .................................. SKIPPED
[INFO] OpenJPA Slice ...................................... SKIPPED
[INFO] OpenJPA JEST ....................................... SKIPPED
[INFO] OpenJPA Aggregate Jar .............................. SKIPPED
[INFO] OpenJPA Parent POM ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 51.316 s
[INFO] Finished at: 2017-01-22T20:31:48+00:00
[INFO] Final Memory: 28M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project openjpa-jdbc: Could not resolve dependencies for project org.apache.openjpa:openjpa-jdbc:jar:2.4.0: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact postgresql:postgresql:jar:9.2.jdbc3 has not been downloaded from it before. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :openjpa-jdbc
dh_auto_build: /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar:/usr/lib/jvm/default-java/lib/tools.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo install -DskipTests -Dnotimestamp=true -Dlocale=en_US returned exit code 1
debian/rules:7: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:4: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

It also fails here, where you can get a full build log if you need it:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/openjpa.html

In case it helps: My build history (for stretch) shows that something
happened between 2017-01-17 and 2017-01-22:

[...]
Status: successful  openjpa_2.4.0-3_amd64-20170117T030014Z
Status: failed      openjpa_2.4.0-3_amd64-20170122T085029Z
[...]

If this is really a bug in one of the build-depends, please use reassign and affects,
so that this is still visible in the page for this package.

Thanks.



More information about the pkg-java-maintainers mailing list