Bug#874007: FTBFS with Java 9 due to -source/-target only (weird)

Chris West solo-debianbugs at goeswhere.com
Fri Sep 1 20:20:29 UTC 2017


Source: uima-addons
Version: 2.3.1
Severity: normal
User: debian-java at lists.debian.org
Usertags: default-java9

This package fails to build with default-jdk pointing to openjdk-9-jdk.
The wiki has some common problems and their solutions:
https://wiki.debian.org/Java/Java9Pitfalls

An automated tool has decided that this package will build fine if the
-source and -target options are changed to 1.6; no additional changes
are required. This was done by building with a compiler that changed
the settings automatically, then the real compiler, and diffing the
results. This modified compiler will never be part of Debian.

*** WEIRD ***

This is the only Maven-based package that hits this problem. I didn't
look why.

Build log sample:

[INFO] ------------------------------------------------------------------------
[INFO] Building UIMA Annotator: ConceptMapper 2.3.1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ ConceptMapper ---
[WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (copy dependencies to base-bin/lib) @ ConceptMapper ---
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:copy-resources (copy standard dirs and files to base-bin) @ ConceptMapper ---
[WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 9 resources
[INFO] skip non existing resourceDirectory /build/uima-addons-2.3.1/ConceptMapper/src/main/readme
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ ConceptMapper ---
[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!
[WARNING] File encoding has not been set, using platform encoding ANSI_X3.4-1968, i.e. build is platform dependent!
[INFO] Compiling 23 source files to /build/uima-addons-2.3.1/ConceptMapper/target/classes
Use of target 1.5 is no longer supported, switching to 1.7
Use of source 1.5 is no longer supported, switching to 1.7
[INFO] /build/uima-addons-2.3.1/ConceptMapper/src/main/java/org/apache/uima/conceptMapper/support/tokens/TokenNormalizer.java: Some input files use or override a deprecated API.
[INFO] /build/uima-addons-2.3.1/ConceptMapper/src/main/java/org/apache/uima/conceptMapper/support/tokens/TokenNormalizer.java: Recompile with -Xlint:deprecation for details.
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ ConceptMapper ---
[INFO] Not copying test resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ ConceptMapper ---
[INFO] Not compiling test sources
[INFO] 
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ ConceptMapper ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ ConceptMapper ---
[INFO] Building jar: /build/uima-addons-2.3.1/ConceptMapper/target/uima-an-conceptMapper.jar
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Building UIMA Annotator: DictionaryAnnotator 2.3.1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- xmlbeans-maven-plugin:2.3.3:xmlbeans (default) @ DictionaryAnnotator ---
warning: [options] bootstrap class path not set in conjunction with -source 1.4
error: Source option 1.4 is no longer supported. Use 1.6 or later.
error: Target option 1.4 is no longer supported. Use 1.6 or later.

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] UIMA-AddOns: uima-addons-parent .................... SUCCESS [  0.002 s]
[INFO] UIMA Annotator: ConceptMapper ...................... SUCCESS [  5.152 s]
[INFO] UIMA Annotator: DictionaryAnnotator ................ FAILURE [  1.637 s]
[INFO] UIMA Addon: FsVariables ............................ SKIPPED
[INFO] UIMA Addon: PearPackagingAntTask ................... SKIPPED
[INFO] UIMA Annotator: RegularExpressionAnnotator ......... SKIPPED
[INFO] UIMA Addon: SimpleServer ........................... SKIPPED
[INFO] UIMA Annotator: SnowballAnnotator .................. SKIPPED
[INFO] UIMA Annotator: WhitespaceTokenizer ................ SKIPPED
[INFO] UIMA Annotator: Tagger ............................. SKIPPED
[INFO] UIMA Aggregate: uima-addons ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

Cheers,
Chris.



More information about the pkg-java-maintainers mailing list