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

Updated codebase to make it compile with latest versions #64

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

goossda
Copy link

@goossda goossda commented Jul 1, 2024

  • Updated code a small bit to get through the spotbugs.
  • Added a few lines in the readme how to compile the plugin on your local machine
  • Altered the pom-file to make it work with recent versions
Build output

[INFO] Scanning for projects...
[INFO] Artifact org.jenkins-ci.tools:maven-hpi-plugin:pom:3.32 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [central (https://repo.maven.apache.org/maven2, default, releases)]
[INFO] Artifact org.jenkins-ci.tools:maven-hpi-plugin:pom:3.32 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [central (https://repo.maven.apache.org/maven2, default, releases)]
[WARNING] The POM for org.jenkins-ci.tools:maven-hpi-plugin:jar:3.32 is missing, no dependency information available
[INFO] Artifact org.jenkins-ci.tools:maven-hpi-plugin:jar:3.32 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [central (https://repo.maven.apache.org/maven2, default, releases)]
[INFO] Artifact org.jenkins-ci.tools:maven-hpi-plugin:jar:3.32 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [central (https://repo.maven.apache.org/maven2, default, releases)]
[WARNING] Failed to build parent project for org.jenkins-ci.plugins:bitbucket-build-status-notifier:hpi:1.4.3-SNAPSHOT
[INFO]
[INFO] -------< org.jenkins-ci.plugins:bitbucket-build-status-notifier >-------
[INFO] Building Bitbucket Build Status Notifier Plugin 1.4.3-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ hpi ]---------------------------------
[WARNING] Parameter 'showDeprecation' is unknown for plugin 'maven-hpi-plugin:3.32:validate (default-validate)'
[WARNING] Parameter 'showDeprecation' is unknown for plugin 'maven-hpi-plugin:3.32:validate-hpi (default-validate-hpi)'
[WARNING] Parameter 'showDeprecation' is unknown for plugin 'maven-hpi-plugin:3.32:initialize (default-initialize)'
[WARNING] Parameter 'showDeprecation' is unknown for plugin 'maven-hpi-plugin:3.32:generate-taglib-interface (default)'
[WARNING] Parameter 'showDeprecation' is unknown for plugin 'maven-hpi-plugin:3.32:insert-test (default-insert-test)'
[WARNING] Parameter 'showDeprecation' is unknown for plugin 'maven-hpi-plugin:3.32:test-hpl (default-test-hpl)'
[WARNING] Parameter 'showDeprecation' is unknown for plugin 'maven-hpi-plugin:3.32:resolve-test-dependencies (default-resolve-test-dependencies)'
[WARNING] Parameter 'showDeprecation' is unknown for plugin 'maven-hpi-plugin:3.32:test-runtime (default-test-runtime)'
[WARNING] Parameter 'showDeprecation' is unknown for plugin 'maven-hpi-plugin:3.32:hpi (default-hpi)'
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ bitbucket-build-status-notifier ---
[INFO] Deleting /usr/src/mymaven/target
[INFO]
[INFO] --- hpi:3.32:validate (default-validate) @ bitbucket-build-status-notifier ---
[INFO]
[INFO] --- hpi:3.32:validate-hpi (default-validate-hpi) @ bitbucket-build-status-notifier ---
[INFO]
[INFO] --- enforcer:3.1.0:display-info (display-info) @ bitbucket-build-status-notifier ---
[INFO] Maven Version: 3.9.7
[INFO] JDK Version: 21.0.3 normalized as: 21.0.3
[INFO] Java Vendor: Eclipse Adoptium
[INFO] OS Info: Arch: aarch64 Family: unix Name: linux Version: 6.9.6-orbstack-00147-gb0567c7c0069
[INFO]
[INFO] --- enforcer:3.1.0:enforce (display-info) @ bitbucket-build-status-notifier ---
[INFO]
[INFO] --- enforcer:3.1.0:enforce (no-snapshots-in-release) @ bitbucket-build-status-notifier ---
[INFO]
[INFO] --- hpi:3.32:initialize (default-initialize) @ bitbucket-build-status-notifier ---
[INFO] Setting maven.compiler.release to 11
[INFO] Setting maven.compiler.testRelease to 11
[INFO]
[INFO] --- gplus:1.13.1:addTestSources (test-in-groovy) @ bitbucket-build-status-notifier ---
[INFO]
[INFO] --- localizer:1.31:generate (default) @ bitbucket-build-status-notifier ---
[INFO]
[INFO] --- hpi:3.32:generate-taglib-interface (default) @ bitbucket-build-status-notifier ---
[INFO]
[INFO] --- resources:3.3.0:resources (default-resources) @ bitbucket-build-status-notifier ---
[INFO] Copying 5 resources
[INFO]
[INFO] --- compiler:3.10.1:compile (default-compile) @ bitbucket-build-status-notifier ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 12 source files to /usr/src/mymaven/target/classes
[INFO]
[INFO] --- access-modifier-checker:1.27:enforce (default-enforce) @ bitbucket-build-status-notifier ---
[INFO]
[INFO] --- hpi:3.32:insert-test (default-insert-test) @ bitbucket-build-status-notifier ---
[INFO]
[INFO] --- gplus:1.13.1:generateTestStubs (test-in-groovy) @ bitbucket-build-status-notifier ---
[INFO] No sources specified for stub generation. Skipping.
[INFO] Generated 0 stubs.
[INFO]
[INFO] --- antrun:3.1.0:run (createTempDir) @ bitbucket-build-status-notifier ---
[INFO] Executing tasks
[INFO] [mkdir] Created dir: /usr/src/mymaven/target/tmp
[INFO] Executed tasks
[INFO]
[INFO] --- resources:3.3.0:testResources (default-testResources) @ bitbucket-build-status-notifier ---
[INFO] skip non existing resourceDirectory /usr/src/mymaven/src/test/resources
[INFO]
[INFO] --- compiler:3.10.1:testCompile (default-testCompile) @ bitbucket-build-status-notifier ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /usr/src/mymaven/target/test-classes
[INFO]
[INFO] --- hpi:3.32:test-hpl (default-test-hpl) @ bitbucket-build-status-notifier ---
[INFO] Generating /usr/src/mymaven/target/test-classes/the.hpl
[INFO]
[INFO] --- hpi:3.32:resolve-test-dependencies (default-resolve-test-dependencies) @ bitbucket-build-status-notifier ---
[INFO]
[INFO] --- gplus:1.13.1:compileTests (test-in-groovy) @ bitbucket-build-status-notifier ---
[INFO] No sources specified for compilation. Skipping.
[INFO]
[INFO] --- hpi:3.32:test-runtime (default-test-runtime) @ bitbucket-build-status-notifier ---
[INFO] Setting jenkins.addOpens to --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.desktop/com.sun.beans.introspect=ALL-UNNAMED
[INFO] Setting jenkins.insaneHook to --patch-module=java.base=/tmp/org-netbeans-insane-hook10754013824175105213.jar --add-exports=java.base/org.netbeans.insane.hook=ALL-UNNAMED
[INFO]
[INFO] --- surefire:3.0.0-M7:test (default-test) @ bitbucket-build-status-notifier ---
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
Running tests for org.jenkins-ci.plugins:bitbucket-build-status-notifier:1.4.3-SNAPSHOT
Jul 01, 2024 6:33:45 AM org.eclipse.jetty.util.log.JettyAwareLogger log
INFO: Logging initialized @4449ms to org.eclipse.jetty.util.log.Slf4jLog
[INFO] Running InjectedTest
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.599 s - in InjectedTest
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ``
[INFO] --- animal-sniffer:1.21:check (check) @ bitbucket-build-status-notifier ---
[INFO] Signature checking is skipped.
[INFO]
[INFO] --- license:1.17:process (default) @ bitbucket-build-status-notifier ---
[INFO] Generated /usr/src/mymaven/target/bitbucket-build-status-notifier/WEB-INF/licenses.xml
[INFO]
[INFO] --- hpi:3.32:hpi (default-hpi) @ bitbucket-build-status-notifier ---
[INFO] Generating /usr/src/mymaven/target/bitbucket-build-status-notifier/META-INF/MANIFEST.MF
[INFO] Checking for attached .jar artifact ...
[INFO] Generating jar /usr/src/mymaven/target/bitbucket-build-status-notifier.jar
[INFO] Building jar: /usr/src/mymaven/target/bitbucket-build-status-notifier.jar
[INFO] Exploding webapp...
[INFO] Copy webapp webResources to /usr/src/mymaven/target/bitbucket-build-status-notifier
[INFO] Assembling webapp bitbucket-build-status-notifier in /usr/src/mymaven/target/bitbucket-build-status-notifier
[INFO] Bundling direct dependency gson-2.10.1.jar
[INFO] Bundling direct dependency scribe-1.3.7.jar
[INFO] Generating hpi /usr/src/mymaven/target/bitbucket-build-status-notifier.hpi
[INFO] Building jar: /usr/src/mymaven/target/bitbucket-build-status-notifier.hpi
[INFO]
[INFO] --- jar:3.2.2:test-jar (maybe-test-jar) @ bitbucket-build-status-notifier ---
[INFO] Skipping packaging of the test-jar
[INFO]
[INFO] >>> spotbugs:4.7.3.0:check (spotbugs) > :spotbugs @ bitbucket-build-status-notifier >>>
[INFO]
[INFO] --- spotbugs:4.7.3.0:spotbugs (spotbugs) @ bitbucket-build-status-notifier ---
[INFO] Fork Value is true
[INFO] Done SpotBugs Analysis....
[INFO]
[INFO] <<< spotbugs:4.7.3.0:check (spotbugs) < :spotbugs @ bitbucket-build-status-notifier <<<
[INFO]
[INFO]
[INFO] --- spotbugs:4.7.3.0:check (spotbugs) @ bitbucket-build-status-notifier ---
[INFO] BugInstance size is 0
[INFO] Error size is 0
[INFO] No errors/warnings found
[INFO]
[INFO] --- install:3.0.1:install (default-install) @ bitbucket-build-status-notifier ---
[INFO] Installing /usr/src/mymaven/pom.xml to /root/.m2/repository/org/jenkins-ci/plugins/bitbucket-build-status-notifier/1.4.3-SNAPSHOT/bitbucket-build-status-notifier-1.4.3-SNAPSHOT.pom
[INFO] Installing /usr/src/mymaven/target/bitbucket-build-status-notifier.hpi to /root/.m2/repository/org/jenkins-ci/plugins/bitbucket-build-status-notifier/1.4.3-SNAPSHOT/bitbucket-build-status-notifier-1.4.3-SNAPSHOT.hpi
[INFO] Installing /usr/src/mymaven/target/bitbucket-build-status-notifier.jar to /root/.m2/repository/org/jenkins-ci/plugins/bitbucket-build-status-notifier/1.4.3-SNAPSHOT/bitbucket-build-status-notifier-1.4.3-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.234 s
[INFO] Finished at: 2024-07-01T06:33:56Z
[INFO] ------------------------------------------------------------------------
`

@goossda
Copy link
Author

goossda commented Jul 1, 2024

The checks run with "linux-8" and "windows-8".

Update: only possible to be changed by the maintainer.

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

Successfully merging this pull request may close these issues.

1 participant