Bug#871362: spatial4j: FTBFS: =?UTF-8?Q?[=1B[1; 31mERROR=1B[m]?= Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:3.0.2:jar ?=(attach-sources)=?UTF-8?Q? on project spatial4j: =?UTF-8?Q?=1B[1; 31mYou?= have to use a classifier to attach supplemental artifacts to the project instead of replacing them. -> [Help 1]

Lucas Nussbaum lucas at debian.org
Mon Aug 7 16:01:39 UTC 2017


Source: spatial4j
Version: 0.5-1
Severity: serious
Tags: buster sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20170807 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
>  debian/rules build
> dh build --buildsystem=maven
>    dh_update_autotools_config -O--buildsystem=maven
>    dh_auto_configure -O--buildsystem=maven
> 	mh_patchpoms -plibspatial4j-java --debian-build --keep-pom-version --maven-repo=/<<PKGBUILDDIR>>/debian/maven-repo
>    dh_auto_build -O--buildsystem=maven
> 	/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 package -DskipTests -Dnotimestamp=true -Dlocale=en_US
> [INFO] Scanning for projects...
> [WARNING] The project com.spatial4j:spatial4j:bundle:0.5 uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
> [INFO] 
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Spatial4J 0.5
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ spatial4j ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory /<<PKGBUILDDIR>>/src/main/resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ spatial4j ---
> [WARNING] The POM for org.codehaus.plexus:plexus-compiler-api:jar:2.x is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
> [WARNING] The POM for org.codehaus.plexus:plexus-compiler-javac:jar:2.x is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 61 source files to /<<PKGBUILDDIR>>/target/classes
> [WARNING] bootstrap class path not set in conjunction with -source 1.7
> [WARNING] /<<PKGBUILDDIR>>/src/main/java/com/spatial4j/core/context/SpatialContextFactory.java:[245,19] com.spatial4j.core.io.LegacyShapeReader in com.spatial4j.core.io has been deprecated
> [WARNING] /<<PKGBUILDDIR>>/src/main/java/com/spatial4j/core/context/SpatialContextFactory.java:[251,19] com.spatial4j.core.io.LegacyShapeWriter in com.spatial4j.core.io has been deprecated
> [WARNING] /<<PKGBUILDDIR>>/src/main/java/com/spatial4j/core/context/SpatialContextFactory.java:[275,34] readShape(java.lang.String) in com.spatial4j.core.context.SpatialContext has been deprecated
> [WARNING] /<<PKGBUILDDIR>>/src/main/java/com/spatial4j/core/context/jts/JtsSpatialContext.java:[116,17] toString(com.spatial4j.core.shape.Shape) in com.spatial4j.core.context.SpatialContext has been deprecated
> [WARNING] /<<PKGBUILDDIR>>/src/main/java/com/spatial4j/core/context/jts/JtsSpatialContext.java:[123,17] toString(com.spatial4j.core.shape.Shape) in com.spatial4j.core.context.SpatialContext has been deprecated
> [WARNING] /<<PKGBUILDDIR>>/src/main/java/com/spatial4j/core/context/jts/JtsSpatialContextFactory.java:[75,19] com.spatial4j.core.io.LegacyShapeReader in com.spatial4j.core.io has been deprecated
> [WARNING] /<<PKGBUILDDIR>>/src/main/java/com/spatial4j/core/context/jts/JtsSpatialContextFactory.java:[81,19] com.spatial4j.core.io.LegacyShapeWriter in com.spatial4j.core.io has been deprecated
> [WARNING] /<<PKGBUILDDIR>>/src/main/java/com/spatial4j/core/io/GeoJSONWriter.java:[55,23] com.spatial4j.core.io.LegacyShapeWriter in com.spatial4j.core.io has been deprecated
> [WARNING] /<<PKGBUILDDIR>>/src/main/java/com/spatial4j/core/io/GeoJSONWriter.java:[141,19] com.spatial4j.core.io.LegacyShapeWriter in com.spatial4j.core.io has been deprecated
> [WARNING] /<<PKGBUILDDIR>>/src/main/java/com/spatial4j/core/io/jts/JtsGeoJSONWriter.java:[98,23] com.spatial4j.core.io.LegacyShapeWriter in com.spatial4j.core.io has been deprecated
> [WARNING] /<<PKGBUILDDIR>>/src/main/java/com/spatial4j/core/io/WKTWriter.java:[39,23] com.spatial4j.core.io.LegacyShapeWriter in com.spatial4j.core.io has been deprecated
> [WARNING] /<<PKGBUILDDIR>>/src/main/java/com/spatial4j/core/io/WKTWriter.java:[46,28] com.spatial4j.core.io.LegacyShapeWriter in com.spatial4j.core.io has been deprecated
> [WARNING] /<<PKGBUILDDIR>>/src/main/java/com/spatial4j/core/io/WKTWriter.java:[115,12] com.spatial4j.core.io.LegacyShapeWriter in com.spatial4j.core.io has been deprecated
> [WARNING] /<<PKGBUILDDIR>>/src/main/java/com/spatial4j/core/io/PolyshapeWriter.java:[132,37] com.spatial4j.core.io.LegacyShapeWriter in com.spatial4j.core.io has been deprecated
> [INFO] /<<PKGBUILDDIR>>/src/main/java/com/spatial4j/core/context/SpatialContextFactory.java: Some input files use unchecked or unsafe operations.
> [INFO] /<<PKGBUILDDIR>>/src/main/java/com/spatial4j/core/context/SpatialContextFactory.java: Recompile with -Xlint:unchecked for details.
> [INFO] 
> [INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ spatial4j ---
> [INFO] Not copying test resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ spatial4j ---
> [INFO] Not compiling test sources
> [INFO] 
> [INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ spatial4j ---
> [INFO] Tests are skipped.
> [INFO] 
> [INFO] --- maven-bundle-plugin:2.5.4:bundle (default-bundle) @ spatial4j ---
> [INFO] 
> [INFO] --- maven-jar-plugin:3.0.2:jar (attach-sources) @ spatial4j ---
> [INFO] Building jar: /<<PKGBUILDDIR>>/target/spatial4j-0.5.jar
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2.401 s
> [INFO] Finished at: 2017-08-07T11:07:11Z
> [INFO] Final Memory: 21M/790M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:3.0.2:jar (attach-sources) on project spatial4j: You have to use a classifier to attach supplemental artifacts to the project instead of replacing them. -> [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/MojoExecutionException
> 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 package -DskipTests -Dnotimestamp=true -Dlocale=en_US returned exit code 1
> debian/rules:4: recipe for target 'build' failed
> make: *** [build] Error 1

The full build log is available from:
   http://aws-logs.debian.net/2017/08/07/spatial4j_0.5-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the pkg-java-maintainers mailing list