Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For anyone still want to use this plugin with Jenkins 2.277 and above #82

Open
sunnyqeen opened this issue Oct 6, 2022 · 2 comments
Open

Comments

@sunnyqeen
Copy link

What feature do you want to see added?

I still use this in our production environment.
As it's deprecated, not expecting a new maintainer.

I have my own build that has several bug fix from me and others see the pull request #81
You could try my personal build at https://github.com/sunnyqeen/scm-sync-configuration-plugin/releases
I also updated several decencies in the snapshot version.
My build will require Jenkins 2.277 and above.

Use it as you wish, I may not add any new feature.

Upstream changes

#81

@varsho
Copy link

varsho commented Oct 6, 2022

@sunnyqeen how do you build it? I cloned your repo, and get the failure when trying to build it:

$ mvn clean package
[INFO] Scanning for projects...
[WARNING] The POM for org.jenkins-ci.tools:maven-hpi-plugin:jar:1.106 is missing, no dependency information available
[WARNING] Failed to build parent project for org.jenkins-ci.plugins:scm-sync-configuration:hpi:0.0.11
[INFO]
[INFO] -----------< org.jenkins-ci.plugins:scm-sync-configuration >------------
[INFO] Building SCM Sync Configuration Plugin 0.0.11
[INFO] --------------------------------[ hpi ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ scm-sync-configuration ---
[INFO]
[INFO] --- maven-hpi-plugin:1.106:validate (default-validate) @ scm-sync-configuration ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.0.1:enforce (enforce-maven) @ scm-sync-configuration ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.0.1:display-info (display-info) @ scm-sync-configuration ---
[INFO] Maven Version: 3.8.6
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.969 s
[INFO] Finished at: 2022-10-06T12:50:07-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.0.1:display-info (display-info) on project scm-sync-configuration: Execution display-info of goal org.apache.maven.plugins:maven-enforcer-plugin:1.0.1:display-info failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-enforcer-plugin:1.0.1:display-info: java.lang.ExceptionInInitializerError: null
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-enforcer-plugin:1.0.1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/oleg/.m2/repository/org/apache/maven/plugins/maven-enforcer-plugin/1.0.1/maven-enforcer-plugin-1.0.1.jar
[ERROR] urls[1] = file:/Users/oleg/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.9/maven-reporting-api-2.0.9.jar
[ERROR] urls[2] = file:/Users/oleg/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-10/doxia-sink-api-1.0-alpha-10.jar
[ERROR] urls[3] = file:/Users/oleg/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
[ERROR] urls[4] = file:/Users/oleg/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
[ERROR] urls[5] = file:/Users/oleg/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar
[ERROR] urls[6] = file:/Users/oleg/.m2/repository/commons-lang/commons-lang/2.3/commons-lang-2.3.jar
[ERROR] urls[7] = file:/Users/oleg/.m2/repository/org/apache/maven/enforcer/enforcer-api/1.0.1/enforcer-api-1.0.1.jar
[ERROR] urls[8] = file:/Users/oleg/.m2/repository/org/apache/maven/enforcer/enforcer-rules/1.0.1/enforcer-rules-1.0.1.jar
[ERROR] urls[9] = file:/Users/oleg/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/1.2/maven-common-artifact-filters-1.2.jar
[ERROR] urls[10] = file:/Users/oleg/.m2/repository/org/beanshell/bsh/2.0b4/bsh-2.0b4.jar
[ERROR] urls[11] = file:/Users/oleg/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
[ERROR] urls[12] = file:/Users/oleg/.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:scm-sync-configuration:0.0.11, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] : Range [0, 3) out of bounds for length 2
[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

@sunnyqeen
Copy link
Author

@varsho I have no idea why you could not build.
Please make sure jdk1.8 is used for mvn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants