I noticed a JAVA_1_7 home being injected in the build log. I removed:

JAVA_1_7_HOME=${JDK_1_7_LATEST_HOME}

from the configuration and added '-V' to the command to log the maven
and java version. Restarted the build and that did not work. The java
version is correct.

This added in the pom.xml file from commit: 5b411b6 (3 days ago)

    <!-- Fix to build on JDK 7: version 4.0.0 requires Java 8. -->
    <!-- Can be dropped when CP 49 is released -->
    <commons.felix.version>3.5.1</commons.felix.version>

I removed it as the project is now on Java 8.

Builds OK locally (maven 3.8.2) but Jenkins still fails (maven 3.8.4).
I started a build with the -X flag to get some more information on
this (see build 141 [1]) but no information seems helpful.

The last successful build was 6 months ago. That was Java 1.7 but an
unknown Maven version. So this does suggest a toolchain issue.

Alex

[1] https://ci-builds.apache.org/job/Commons/job/commons-codec/141/console

On Sun, 20 Feb 2022 at 02:18, Bruno Kinoshita <brunodepau...@gmail.com> wrote:
>
> Not sure, but the console output is similar to this build from 2 days ago,
> that also failed:
> https://ci-builds.apache.org/job/Commons/job/commons-codec/commons-codec$commons-codec/134/console
>
> Maybe it's due to Maven version, or to some Maven plugin? Travis/GH Actions
> appear to be running OK.
>
> -Bruno
>
> On Sun, 20 Feb 2022 at 14:15, Gary Gregory <garydgreg...@gmail.com> wrote:
>
> > Is this a Jenkins issue?
> >
> > [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @
> > commons-codec ---
> > [INFO] Changes detected - recompiling the module!
> > [INFO] Compiling 73 source files to
> > /home/jenkins/workspace/Commons/commons-codec/target/classes
> > [WARNING] Attempt to (de-)serialize anonymous class
> > org.jfrog.hudson.maven2.MavenDependenciesRecorder$1; see:
> > https://jenkins.io/redirect/serialization-of-anonymous-classes/
> >
> > ---------- Forwarded message ---------
> > From: Apache Jenkins Server <jenk...@builds.apache.org>
> > Date: Sat, Feb 19, 2022, 20:12
> > Subject: Build failed in Jenkins: Commons » commons-codec #138
> > To: <notificati...@commons.apache.org>, <brunodepau...@yahoo.com.br>, <
> > boa...@gmail.com>
> >
> >
> > See <
> >
> > https://ci-builds.apache.org/job/Commons/job/commons-codec/138/display/redirect?page=changes
> > >
> >
> > Changes:
> >
> > [github] CODEC-285 replace JUnit v4 test expected with assertThrows (#112)
> >
> > [github] Avoid C-style array declaration and use Java instead. (#108)
> >
> > [github] Java 8 improvements: (#106)
> >
> >
> > ------------------------------------------
> > Started by an SCM change
> > Running as SYSTEM
> > [EnvInject] - Loading node environment variables.
> > Building remotely on builds31 (ubuntu) in workspace <
> > https://ci-builds.apache.org/job/Commons/job/commons-codec/ws/>
> > The recommended git tool is: NONE
> > No credentials specified
> >  > git rev-parse --resolve-git-dir <
> > https://ci-builds.apache.org/job/Commons/job/commons-codec/ws/.git> #
> > timeout=10
> > Fetching changes from the remote Git repository
> >  > git config remote.origin.url https://github.com/apache/commons-codec #
> > timeout=10
> > Fetching upstream changes from https://github.com/apache/commons-codec
> >  > git --version # timeout=10
> >  > git --version # 'git version 2.17.1'
> >  > git fetch --tags --progress -- https://github.com/apache/commons-codec
> > +refs/heads/*:refs/remotes/origin/*
> > <https://github.com/apache/commons-codec+refs/heads/*:refs/remotes/origin/*>
> > # timeout=10
> >  > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
> > Checking out Revision fb84f6d9732d44cda0edf449f7a5cba0b340731a
> > (refs/remotes/origin/master)
> >  > git config core.sparsecheckout # timeout=10
> >  > git checkout -f fb84f6d9732d44cda0edf449f7a5cba0b340731a # timeout=10
> > Commit message: "Java 8 improvements: (#106)"
> >  > git rev-list --no-walk 438b54b2075652215a75a834ee64ec5b0b29a6f8 #
> > timeout=10
> > [EnvInject] - Injecting environment variables from a build step.
> > Setting JDK_1_8_LATEST_HOME=/home/jenkins/tools/java/latest1.8
> > [EnvInject] - Injecting as environment variables the properties content
> > JAVA_1_7_HOME=${JDK_1_7_LATEST_HOME}
> >
> > [EnvInject] - Variables injected successfully.
> > Setting JDK_1_8_LATEST_HOME=/home/jenkins/tools/java/latest1.8
> > Parsing POMs
> > Established TCP socket on 44177
> > maven35-agent.jar already up to date
> > maven35-interceptor.jar already up to date
> > maven3-interceptor-commons.jar already up to date
> > [commons-codec] $ /home/jenkins/tools/java/latest1.8/bin/java -cp
> >
> > /home/jenkins/maven35-agent.jar:/home/jenkins/tools/maven/latest3/boot/plexus-classworlds-2.6.0.jar:/home/jenkins/tools/maven/latest3/conf/logging
> > jenkins.maven3.agent.Maven35Main /home/jenkins/tools/maven/latest3/
> > /home/jenkins/agent.jar /home/jenkins/maven35-interceptor.jar
> > /home/jenkins/maven3-interceptor-commons.jar 44177
> > <===[JENKINS REMOTING CAPACITY]===>   channel started
> > Executing Maven:  -B -f <
> > https://ci-builds.apache.org/job/Commons/job/commons-codec/ws/pom.xml>
> > clean package deploy -Dgpg.skip -Pjava-1.8
> > [INFO] Scanning for projects...
> > [HUDSON] Collecting dependencies info
> > [INFO]
> > [INFO] --------------------< commons-codec:commons-codec
> > >---------------------
> > [INFO] Building Apache Commons Codec 1.17-SNAPSHOT
> > [INFO] --------------------------------[ jar
> > ]---------------------------------
> > [INFO]
> > [INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ commons-codec
> > ---
> > [INFO] Deleting <
> > https://ci-builds.apache.org/job/Commons/job/commons-codec/ws/target>
> > [INFO]
> > [INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) @
> > commons-codec ---
> > [INFO]
> > [INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-3) @
> > commons-codec ---
> > [INFO]
> > [INFO] --- apache-rat-plugin:0.13:check (rat-check) @ commons-codec ---
> > [INFO] Enabled default license matchers.
> > [INFO] Will parse SCM ignores for exclusions...
> > [INFO] Parsing exclusions from <
> > https://ci-builds.apache.org/job/Commons/job/commons-codec/ws/.gitignore>
> > [INFO] Finished adding exclusions from SCM ignore files.
> > [INFO] 73 implicit excludes (use -debug for more details).
> > [INFO] 12 explicit excludes (use -debug for more details).
> > [INFO] 314 resources included (use -debug for more details)
> > [INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0,
> > generated: 0, approved: 308 licenses.
> > [INFO]
> > [INFO] --- build-helper-maven-plugin:3.2.0:parse-version (parse-version) @
> > commons-codec ---
> > [INFO]
> > [INFO] --- maven-antrun-plugin:1.8:run (javadoc.resources) @ commons-codec
> > ---
> > [INFO] Executing tasks
> >
> > main:
> >      [copy] Copying 2 files to <
> >
> > https://ci-builds.apache.org/job/Commons/job/commons-codec/ws/target/apidocs/META-INF
> > >
> > [INFO] Executed tasks
> > [INFO]
> > [INFO] --- maven-remote-resources-plugin:1.7.0:process
> > (process-resource-bundles) @ commons-codec ---
> > [INFO] Skipping remote resources execution.
> > [INFO]
> > [INFO] --- buildnumber-maven-plugin:1.4:create (default) @ commons-codec
> > ---
> > [INFO] Executing: /bin/sh -c cd '<
> > https://ci-builds.apache.org/job/Commons/job/commons-codec/ws/'> && 'git'
> > 'rev-parse' '--verify' 'HEAD'
> > [INFO] Working directory: <
> > https://ci-builds.apache.org/job/Commons/job/commons-codec/ws/>
> > [INFO] Storing buildNumber: fb84f6d9732d44cda0edf449f7a5cba0b340731a at
> > timestamp: 1645319524725
> > [WARNING] Cannot get the branch information from the git repository:
> > Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref
> >
> > [INFO] Executing: /bin/sh -c cd '<
> > https://ci-builds.apache.org/job/Commons/job/commons-codec/ws/'> && 'git'
> > 'rev-parse' '--verify' 'HEAD'
> > [INFO] Working directory: <
> > https://ci-builds.apache.org/job/Commons/job/commons-codec/ws/>
> > [INFO] Storing buildScmBranch: UNKNOWN
> > [INFO]
> > [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @
> > commons-codec ---
> > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > [INFO] Copying 128 resources
> > [INFO] Copying 2 resources to META-INF
> > [INFO]
> > [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @
> > commons-codec ---
> > [INFO] Changes detected - recompiling the module!
> > [INFO] Compiling 73 source files to <
> >
> > https://ci-builds.apache.org/job/Commons/job/commons-codec/ws/target/classes
> > >
> > [WARNING] Attempt to (de-)serialize anonymous class
> > org.jfrog.hudson.maven2.MavenDependenciesRecorder$1; see:
> > https://jenkins.io/redirect/serialization-of-anonymous-classes/
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time:  28.230 s
> > [INFO] Finished at: 2022-02-20T01:12:15Z
> > [INFO]
> > ------------------------------------------------------------------------
> > Waiting for Jenkins to finish collecting data
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile
> > (default-compile) on project commons-codec: Compilation failure -> [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/MojoFailureException
> > [JENKINS] Archiving <
> > https://ci-builds.apache.org/job/Commons/job/commons-codec/ws/pom.xml> to
> > commons-codec/commons-codec/1.17-SNAPSHOT/commons-codec-1.17-SNAPSHOT.pom
> > Not sending mail to unregistered user garydgreg...@gmail.com
> > Not sending mail to unregistered user git...@hugo-hirsch.de
> > Sending e-mails to: notificati...@commons.apache.org
> > brunodepau...@yahoo.com.br
> > channel stopped
> > Setting JDK_1_8_LATEST_HOME=/home/jenkins/tools/java/latest1.8
> > Setting JDK_1_8_LATEST_HOME=/home/jenkins/tools/java/latest1.8
> > Not sending mail to unregistered user git...@hugo-hirsch.de
> > Not sending mail to unregistered user garydgreg...@gmail.com
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to