Build failure while trying to build the TFS plugin locally

57 views
Skip to first unread message

Patrick van der Velde

unread,
Oct 9, 2017, 1:01:05 AM10/9/17
to Jenkins Developers
Hi

I've just cloned the TFS plugin so that I can make some changes and create a pull request. The first thing I tried to do is build the last commit on the master branch, unfortunately that fails with a maven error (see below). Given that the last build (https://ci.jenkins.io/job/Plugins/job/tfs-plugin/job/master/) is green I assume that my environment is not correctly configured (it's a fresh environment configuration). I followed the instructions from the 'contributing.md' document and installed the JAVA 9 JDK and Maven 3.5.0. Maven runs fine but then gives the error below.

Could anybody give me any hints on what could possibly be incorrect in my environment configuration?


    [INFO] Scanning for projects...
    [WARNING] The POM for org.jenkins-ci.tools:maven-hpi-plugin:jar:1.120 is missing, no dependency information available
    [WARNING] Failed to build parent project for org.jenkins-ci.plugins:tfs-parent:pom:5.122.0-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Build Order:
    [INFO]
    [INFO] Team Foundation Server Plug-in parent
    [INFO] TFS SDK installer
    [INFO] Team Foundation Server Plug-in
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Team Foundation Server Plug-in parent 5.122.0-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-enforcer-plugin:1.3.1:display-info (display-info) @ tfs-parent ---
    [INFO] Maven Version: 3.5.0
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO]
    [INFO] Team Foundation Server Plug-in parent .............. FAILURE [  0.895 s]
    [INFO] TFS SDK installer .................................. SKIPPED
    [INFO] Team Foundation Server Plug-in ..................... SKIPPED
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 2.987 s
    [INFO] Finished at: 2017-10-09T17:27:52+13:00
    [INFO] Final Memory: 21M/70M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:display-info (display-info) on project tfs-parent: Execution display-info of goal org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:display-info failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:display-info: java.lang.ExceptionInInitializerError: null
    [ERROR] -----------------------------------------------------
    [ERROR] realm =    plugin>org.apache.maven.plugins:maven-enforcer-plugin:1.3.1
    [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
    [ERROR] urls[0] = file:/C:/Users/patrick.vandervelde/.m2/repository/org/apache/maven/plugins/maven-enforcer-plugin/1.3.1/maven-enforcer-plugin-1.3.1.jar
    [ERROR] urls[1] = file:/C:/Users/patrick.vandervelde/.m2/repository/org/codehaus/mojo/extra-enforcer-rules/1.0-beta-4/extra-enforcer-rules-1.0-beta-4.jar
    [ERROR] urls[2] = file:/C:/Users/patrick.vandervelde/.m2/repository/org/apache/maven/shared/maven-dependency-tree/2.1/maven-dependency-tree-2.1.jar
    [ERROR] urls[3] = file:/C:/Users/patrick.vandervelde/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
    [ERROR] urls[4] = file:/C:/Users/patrick.vandervelde/.m2/repository/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar
    [ERROR] urls[5] = file:/C:/Users/patrick.vandervelde/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/1.4/maven-common-artifact-filters-1.4.jar
    [ERROR] urls[6] = file:/C:/Users/patrick.vandervelde/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.9/maven-reporting-api-2.0.9.jar
    [ERROR] urls[7] = file:/C:/Users/patrick.vandervelde/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-10/doxia-sink-api-1.0-alpha-10.jar
    [ERROR] urls[8] = file:/C:/Users/patrick.vandervelde/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
    [ERROR] urls[9] = file:/C:/Users/patrick.vandervelde/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
    [ERROR] urls[10] = file:/C:/Users/patrick.vandervelde/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar
    [ERROR] urls[11] = file:/C:/Users/patrick.vandervelde/.m2/repository/commons-lang/commons-lang/2.3/commons-lang-2.3.jar
    [ERROR] urls[12] = file:/C:/Users/patrick.vandervelde/.m2/repository/org/apache/maven/enforcer/enforcer-api/1.3.1/enforcer-api-1.3.1.jar
    [ERROR] urls[13] = file:/C:/Users/patrick.vandervelde/.m2/repository/org/apache/maven/enforcer/enforcer-rules/1.3.1/enforcer-rules-1.3.1.jar
    [ERROR] urls[14] = file:/C:/Users/patrick.vandervelde/.m2/repository/org/beanshell/bsh/2.0b4/bsh-2.0b4.jar
    [ERROR] urls[15] = file:/C:/Users/patrick.vandervelde/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-6/plexus-i18n-1.0-beta-6.jar
    [ERROR] Number of foreign imports: 1
    [ERROR] import: Entry[import  from realm ClassRealm[project>org.jenkins-ci.plugins:tfs-parent:5.122.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
    [ERROR]
    [ERROR] -----------------------------------------------------
    [ERROR] : begin 0, end 3, length 1
    [ERROR] -> [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/PluginContainerException

Thanks

Petrik

Baptiste Mathus

unread,
Oct 9, 2017, 1:05:55 AM10/9/17
to Jenkins Developers
Hello,
Java 9 isn't supported yet (it will take even more time to support it for development probably). Can you please try with JDK 8?

Thanks

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/29af00c6-7a09-4644-b06e-6303f1529c83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Patrick van der Velde

unread,
Oct 9, 2017, 4:12:01 PM10/9/17
to Jenkins Developers
Hi

changing to JDK 8 resolves the error. The build process now fails with some CheckStyle errors. For the time being I can ignore those

Thanks heaps
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages