See
<https://ci-builds.apache.org/job/POI/job/POI-DSL-API-Check/20/display/redirect?page=changes>
Changes:
[Dominik Stadler] More changes to make the Gradle build work again
We have to compile the custom Ant-tasks before invoking Ant from Gradle
[Dominik Stadler] Try to fix the Gradle build
Third party lib updates
Also use the temporary XMLBeans 4.0.0 jar
Add missing dependencies
------------------------------------------
[...truncated 3.20 KB...]
+ svn status
? build.javacheck.xml
X forrest.properties
X src/documentation
Performing status on external item at 'src/documentation':
+ echo Java-Home: /home/jenkins/tools/java/latest1.8
Java-Home: /home/jenkins/tools/java/latest1.8
+ ls -al /home/jenkins/tools/java/latest1.8/
total 51232
drwxrwxr-x 9 root root 4096 Jul 2 22:09 .
drwxr-xr-x 30 root root 4096 Sep 18 14:25 ..
-r--r--r-- 1 root root 1522 Apr 6 16:27 ASSEMBLY_EXCEPTION
drwxrwxr-x 2 root root 4096 Jul 2 22:09 bin
drwxrwxr-x 10 root root 4096 Jul 2 22:09 demo
drwxrwxr-x 3 root root 4096 Jul 2 22:09 include
drwxrwxr-x 4 root root 4096 Jul 2 22:09 jre
drwxrwxr-x 3 root root 4096 Jul 2 22:09 lib
-r--r--r-- 1 root root 19274 Apr 6 16:27 LICENSE
drwxrwxr-x 4 root root 4096 Jul 2 22:09 man
-rw-rw-r-- 1 root root 238 Apr 6 16:27 release
drwxrwxr-x 10 root root 4096 Jul 2 22:09 sample
-rw-rw-r-- 1 root root 52236869 Apr 6 16:41 src.zip
-r--r--r-- 1 root root 153250 Apr 6 16:27 THIRD_PARTY_README
+ ls -al /home/jenkins/tools/java/latest1.8/bin
total 748
drwxrwxr-x 2 root root 4096 Jul 2 22:09 .
drwxrwxr-x 9 root root 4096 Jul 2 22:09 ..
-rwxr-xr-x 1 root root 9065 Apr 6 16:27 appletviewer
-rwxr-xr-x 1 root root 9073 Apr 6 16:27 clhsdb
-rwxr-xr-x 1 root root 9065 Apr 6 16:27 extcheck
-rwxr-xr-x 1 root root 9065 Apr 6 16:27 hsdb
-rwxr-xr-x 1 root root 9057 Apr 6 16:27 idlj
-rwxr-xr-x 1 root root 9057 Apr 6 16:27 jar
-rwxr-xr-x 1 root root 9065 Apr 6 16:27 jarsigner
-rwxr-xr-x 1 root root 8930 Apr 6 16:27 java
-rwxr-xr-x 1 root root 9057 Apr 6 16:27 javac
-rwxr-xr-x 1 root root 9065 Apr 6 16:27 javadoc
-rwxr-xr-x 1 root root 9057 Apr 6 16:27 javah
-rwxr-xr-x 1 root root 9057 Apr 6 16:27 javap
-rwxrwxr-x 1 root root 2806 Apr 6 16:27 java-rmi.cgi
-rwxr-xr-x 1 root root 9057 Apr 6 16:27 jcmd
-rwxr-xr-x 1 root root 9089 Apr 6 16:27 jconsole
-rwxr-xr-x 1 root root 9065 Apr 6 16:27 jdb
-rwxr-xr-x 1 root root 9057 Apr 6 16:27 jdeps
-rwxr-xr-x 1 root root 9057 Apr 6 16:27 jhat
-rwxr-xr-x 1 root root 9097 Apr 6 16:27 jinfo
-rwxr-xr-x 1 root root 9057 Apr 6 16:27 jjs
-rwxr-xr-x 1 root root 9097 Apr 6 16:27 jmap
-rwxr-xr-x 1 root root 9057 Apr 6 16:27 jps
-rwxr-xr-x 1 root root 9065 Apr 6 16:27 jrunscript
-rwxr-xr-x 1 root root 9073 Apr 6 16:27 jsadebugd
-rwxr-xr-x 1 root root 9105 Apr 6 16:27 jstack
-rwxr-xr-x 1 root root 9057 Apr 6 16:27 jstat
-rwxr-xr-x 1 root root 9065 Apr 6 16:27 jstatd
-rwxr-xr-x 1 root root 9065 Apr 6 16:27 keytool
-rwxr-xr-x 1 root root 9065 Apr 6 16:27 native2ascii
-rwxr-xr-x 1 root root 9105 Apr 6 16:27 orbd
-rwxr-xr-x 1 root root 9065 Apr 6 16:27 pack200
-rwxr-xr-x 1 root root 9065 Apr 6 16:27 policytool
-rwxr-xr-x 1 root root 9057 Apr 6 16:27 rmic
-rwxr-xr-x 1 root root 9057 Apr 6 16:27 rmid
-rwxr-xr-x 1 root root 9065 Apr 6 16:27 rmiregistry
-rwxr-xr-x 1 root root 9065 Apr 6 16:27 schemagen
-rwxr-xr-x 1 root root 9065 Apr 6 16:27 serialver
-rwxr-xr-x 1 root root 9065 Apr 6 16:27 servertool
-rwxr-xr-x 1 root root 9113 Apr 6 16:27 tnameserv
-rwxr-xr-x 1 root root 245802 Apr 6 16:27 unpack200
-rwxr-xr-x 1 root root 9057 Apr 6 16:27 wsgen
-rwxr-xr-x 1 root root 9065 Apr 6 16:27 wsimport
-rwxr-xr-x 1 root root 9057 Apr 6 16:27 xjc
+ /home/jenkins/tools/java/latest1.8/bin/java -version
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
+ echo which java
which java
+ which java
/home/jenkins/tools/java/latest1.8/bin/java
+ java -version
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
+ echo which javac
which javac
+ which javac
/home/jenkins/tools/java/latest1.8/bin/javac
+ javac -version
javac 1.8.0_252
+ echo Ant-Home:
Ant-Home:
+ ls -al
total 464
drwxr-xr-x 15 jenkins jenkins 4096 Sep 3 01:13 .
drwxr-xr-x 9 jenkins jenkins 4096 Sep 23 12:26 ..
drwxr-xr-x 30 jenkins jenkins 4096 Sep 22 01:12 build
-rw-r--r-- 1 jenkins jenkins 14131 Sep 26 05:23 build.gradle
-rw-r--r-- 1 jenkins jenkins 172 Sep 22 01:12 build.javacheck.xml
-rw-r--r-- 1 jenkins jenkins 149016 Sep 26 05:23 build.xml
-rw-r--r-- 1 jenkins jenkins 3341 Sep 3 01:12 .classpath
-rw-r--r-- 1 jenkins jenkins 6160 Sep 3 01:12 doap_POI.rdf
-rw-r--r-- 1 jenkins jenkins 2847 Sep 3 01:12 file-leak-detector.exclude
-rw-r--r-- 1 jenkins jenkins 6229 Sep 3 01:12 forrest.properties
-rw-r--r-- 1 jenkins jenkins 53 Sep 3 01:12 .gitattributes
-rw-r--r-- 1 jenkins jenkins 493 Sep 3 01:12 .gitignore
drwxr-xr-x 3 jenkins jenkins 4096 Sep 3 01:12 gradle
drwxr-xr-x 6 jenkins jenkins 4096 Sep 3 01:13 .gradle
-rwxr-xr-x 1 jenkins jenkins 5917 Sep 3 01:12 gradlew
-rw-r--r-- 1 jenkins jenkins 2842 Sep 3 01:12 gradlew.bat
drwxr-xr-x 2 jenkins jenkins 4096 Sep 3 01:12 jenkins
-rw-r--r-- 1 jenkins jenkins 167284 Sep 3 01:12 KEYS
drwxr-xr-x 2 jenkins jenkins 4096 Sep 3 01:12 legal
drwxr-xr-x 9 jenkins jenkins 4096 Sep 3 01:13 lib
drwxr-xr-x 2 jenkins jenkins 4096 Sep 22 01:12 maven
drwxr-xr-x 3 jenkins jenkins 4096 Sep 26 05:23 osgi
-rw-r--r-- 1 jenkins jenkins 4813 Sep 3 01:12 patch.xml
-rw-r--r-- 1 jenkins jenkins 426 Sep 3 01:12 .project
-rw-r--r-- 1 jenkins jenkins 4266 Sep 3 01:12 README.rst
drwxr-xr-x 2 jenkins jenkins 4096 Sep 3 01:12 .settings
-rw-r--r-- 1 jenkins jenkins 556 Sep 3 01:12 settings.gradle
drwxr-xr-x 11 jenkins jenkins 4096 Sep 26 05:23 sonar
drwxr-xr-x 16 jenkins jenkins 4096 Sep 3 01:12 src
drwxr-xr-x 4 jenkins jenkins 4096 Sep 26 05:23 .svn
drwxr-xr-x 14 jenkins jenkins 4096 Sep 3 01:12 test-data
-rw-r--r-- 1 jenkins jenkins 136 Sep 3 01:12 .travis.yml
+ echo which ant
which ant
+ which ant
/usr/bin/ant
+ ant -version
Apache Ant(TM) version 1.10.5 compiled on March 28 2019
+ echo <project default="test"><target name="test"><echo>Java
${ant.java.version}/${java.version}</echo><exec executable="javac"><arg
value="-version"/></exec></target></project>
+ ant -f build.javacheck.xml -v
Apache Ant(TM) version 1.10.5 compiled on March 28 2019
Buildfile:
<https://ci-builds.apache.org/job/POI/job/POI-DSL-API-Check/ws/build.javacheck.xml>
Detected Java version: 1.8 in: /usr/local/asfpackages/java/openjdk-8u252-b09/jre
Detected OS: Linux
parsing buildfile
<https://ci-builds.apache.org/job/POI/job/POI-DSL-API-Check/ws/build.javacheck.xml>
with URI =
<https://ci-builds.apache.org/job/POI/job/POI-DSL-API-Check/ws/build.javacheck.xml>
Project base dir set to:
<https://ci-builds.apache.org/job/POI/job/POI-DSL-API-Check/ws/>
Build sequence for target(s) `test' is [test]
Complete build sequence is [test, ]
test:
parsing buildfile
jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI =
jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip
file
[echo] Java 1.8/1.8.0_252
[exec] Current OS is Linux
[exec] Executing 'javac' with arguments:
[exec] '-version'
[exec]
[exec] The ' characters around the executable and arguments are
[exec] not part of the command.
[exec] javac 1.8.0_252
BUILD SUCCESSFUL
Total time: 0 seconds
+ exit 0
[Gradle] - Launching build.
[POI-DSL-API-Check] $
<https://ci-builds.apache.org/job/POI/job/POI-DSL-API-Check/ws/gradlew> japicmp
To honour the JVM settings for this build a new JVM will be forked. Please
consider using the daemon:
https://docs.gradle.org/6.5/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing
> Configure project :
Trying to override old definition of datatype junit
[ant:javac] : warning: 'includeantruntime' was not set, defaulting to
build.sysclasspath=last; set to false for repeatable builds
> Task :main:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :main:processResources UP-TO-DATE
> Task :main:classes
> Task :main:jar
> Task :ooxml:ant-check-jars
> Task :ooxml:ant-fetch-jars
> Task :ooxml:ant-check-ooxml-jars
> Task :ooxml:ant-fetch-ooxml-jars
> Task :ooxml:ant-init
[ant:echo] Using Ant: Apache Ant(TM) version 1.10.7 compiled on September 1
2019 from ${ant.home}, Ant detected Java 1.8 (may be different than actual Java
sometimes...)
[ant:echo] Using Java: 1.8.0_252/1.8.0_252-b09/25.252-b09/OpenJDK 64-Bit Server
VM from Oracle Corporation on Linux: 4.15.0-58-generic
[ant:echo] Building Apache POI version 5.0.0-SNAPSHOT and RC: RC1
> Task :ooxml:ant-check-compiled-ooxml-xsds
> Task :ooxml:ant-compile-ooxml-xsds
> Task :scratchpad:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note:
<https://ci-builds.apache.org/job/POI/job/POI-DSL-API-Check/ws/src/scratchpad/src/org/apache/poi/hwmf/record/HwmfEscape.java>
uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :scratchpad:processResources UP-TO-DATE
> Task :scratchpad:classes
> Task :scratchpad:jar
> Task :ooxml:compileJava
<https://ci-builds.apache.org/job/POI/job/POI-DSL-API-Check/ws/src/ooxml/java/org/apache/poi/xdgf/usermodel/XDGFPageContents.java>:47:
error: cannot access XMLInputStream
_pageContents =
PageContentsDocument.Factory.parse(getPackagePart().getInputStream()).getPageContents();
^
class file for org.apache.xmlbeans.xml.stream.XMLInputStream not found
<https://ci-builds.apache.org/job/POI/job/POI-DSL-API-Check/ws/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java>:569:
error: reference to parse is ambiguous
StylesDocument sd =
StylesDocument.Factory.parse(parts[0].getInputStream(), DEFAULT_XML_OPTIONS);
^
both method parse(InputStream,XmlOptions) in Factory and method
parse(XMLInputStream,XmlOptions) in Factory match
<https://ci-builds.apache.org/job/POI/job/POI-DSL-API-Check/ws/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRun.java>:476:
error: cannot find symbol
hexColor.setEnumValue(STHexColorAuto.Enum.forString(color));
^
symbol: method setEnumValue(Enum)
location: variable hexColor of type STHexColorAuto
<https://ci-builds.apache.org/job/POI/job/POI-DSL-API-Check/ws/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRun.java>:1516:
error: cannot find symbol
color.setEnumValue(STHighlightColor.NONE);
^
symbol: method setEnumValue(Enum)
location: variable color of type STHighlightColor
<https://ci-builds.apache.org/job/POI/job/POI-DSL-API-Check/ws/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRun.java>:1518:
error: cannot find symbol
return (STHighlightColor.Enum)(color.getEnumValue());
^
symbol: method getEnumValue()
location: variable color of type STHighlightColor
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note:
<https://ci-builds.apache.org/job/POI/job/POI-DSL-API-Check/ws/src/ooxml/java/org/apache/poi/xslf/draw/SVGImageRenderer.java>
uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
5 errors
> Task :ooxml:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':ooxml:compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with
Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See
https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 48s
14 actionable tasks: 12 executed, 2 up-to-date
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
Archiving artifacts
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]