Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-23502

Maven Dependency Update Trigger crashes due to missing class (AETHER)

    XMLWordPrintable

Details

    Description

      I have configured Maven Dependency Update Trigger to every 5 minutes for a Job that builds a flex artifact (final SWF that depends on SWC artifacts). When it is launched it crashes with following error:

      FINEST|27165/0|Service yajsw|14-06-19 08:20:00|Jun 19, 2014 8:20:00 AM hudson.triggers.Trigger checkTriggers
      FINEST|27165/0|Service yajsw|14-06-19 08:20:00|WARNING: org.jvnet.hudson.plugins.mavendepsupdate.MavenDependencyUpdateTrigger.run() failed for hudson.model.FreeStyleProject@8e19051[icm.demo.flexconsole]
      FINEST|27165/0|Service yajsw|14-06-19 08:20:00|java.lang.NoClassDefFoundError: org/sonatype/aether/repository/WorkspaceReader
      FINEST|27165/0|Service yajsw|14-06-19 08:20:00| at org.jvnet.hudson.plugins.mavendepsupdate.MavenDependencyUpdateTrigger.run(MavenDependencyUpdateTrigger.java:153)
      FINEST|27165/0|Service yajsw|14-06-19 08:20:00| at hudson.triggers.Trigger.checkTriggers(Trigger.java:266)
      FINEST|27165/0|Service yajsw|14-06-19 08:20:00| at hudson.triggers.Trigger$Cron.doRun(Trigger.java:214)
      FINEST|27165/0|Service yajsw|14-06-19 08:20:00| at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
      FINEST|27165/0|Service yajsw|14-06-19 08:20:00| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
      FINEST|27165/0|Service yajsw|14-06-19 08:20:00| at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      FINEST|27165/0|Service yajsw|14-06-19 08:20:00| at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      FINEST|27165/0|Service yajsw|14-06-19 08:20:00| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
      FINEST|27165/0|Service yajsw|14-06-19 08:20:00| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
      FINEST|27165/0|Service yajsw|14-06-19 08:20:00| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
      FINEST|27165/0|Service yajsw|14-06-19 08:20:00| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      FINEST|27165/0|Service yajsw|14-06-19 08:20:00| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      FINEST|27165/0|Service yajsw|14-06-19 08:20:00| at java.lang.Thread.run(Thread.java:662)
      

      Attachments

        Activity

          This is due to a modification in the dependency management. The current version of the plugin is built against Jenkins 1.424.1 using `org.jenkins-ci.main:maven-plugin:1.424.1` which is using `org.sonatype.aether:aether-api` artifact.
          The later versions of the `maven-plugin`, using `2.x` versioning pattern, depends on `org.eclipse.sonatype:aether-api`.

          So, my next question: which version of `maven-plugin` do you use?

          alecharp Adrien Lecharpentier added a comment - This is due to a modification in the dependency management. The current version of the plugin is built against Jenkins 1.424.1 using `org.jenkins-ci.main:maven-plugin:1.424.1` which is using `org.sonatype.aether:aether-api` artifact. The later versions of the `maven-plugin`, using `2.x` versioning pattern, depends on `org.eclipse.sonatype:aether-api`. So, my next question: which version of `maven-plugin` do you use?

          Code changed in jenkins
          User: Olivier Lamy
          Path:
          pom.xml
          src/main/java/org/jvnet/hudson/plugins/mavendepsupdate/MavenDependencyUpdateTrigger.java
          src/main/java/org/jvnet/hudson/plugins/mavendepsupdate/MavenUpdateChecker.java
          src/main/java/org/jvnet/hudson/plugins/mavendepsupdate/util/ReactorReader.java
          src/main/java/org/jvnet/hudson/plugins/mavendepsupdate/util/SnapshotTransfertListener.java
          http://jenkins-ci.org/commit/maven-dependency-update-trigger-plugin/c18c4b28b17cab02a93efa63b93959d9979e02db
          Log:
          Merge pull request #2 from alecharp/hotfix/JENKINS-23502

          JENKINS-23502 Remove reference to org.sonatype.aether groupId

          Compare: https://github.com/jenkinsci/maven-dependency-update-trigger-plugin/compare/a820f88bec4b...c18c4b28b17c

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Olivier Lamy Path: pom.xml src/main/java/org/jvnet/hudson/plugins/mavendepsupdate/MavenDependencyUpdateTrigger.java src/main/java/org/jvnet/hudson/plugins/mavendepsupdate/MavenUpdateChecker.java src/main/java/org/jvnet/hudson/plugins/mavendepsupdate/util/ReactorReader.java src/main/java/org/jvnet/hudson/plugins/mavendepsupdate/util/SnapshotTransfertListener.java http://jenkins-ci.org/commit/maven-dependency-update-trigger-plugin/c18c4b28b17cab02a93efa63b93959d9979e02db Log: Merge pull request #2 from alecharp/hotfix/ JENKINS-23502 JENKINS-23502 Remove reference to org.sonatype.aether groupId Compare: https://github.com/jenkinsci/maven-dependency-update-trigger-plugin/compare/a820f88bec4b...c18c4b28b17c

          It keeps on crashing with latest Jenkins (1.592) and plugin versions (maven project plugin 2.8):

          <pre>
          FINEST|4344/0|Service yajsw|14-12-01 10:46:00|Dec 1, 2014 10:46:00 AM hudson.triggers.Trigger checkTriggers
          FINEST|4344/0|Service yajsw|14-12-01 10:46:00|WARNING: org.jvnet.hudson.plugins.mavendepsupdate.MavenDependencyUpdateTrigger.run() failed for hudson.maven.MavenModuleSet@8fc32e6[icm.demo.flexconsole-AUTO]
          FINEST|4344/0|Service yajsw|14-12-01 10:46:00|java.lang.NoClassDefFoundError: org/sonatype/aether/repository/WorkspaceReader
          FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at org.jvnet.hudson.plugins.mavendepsupdate.MavenDependencyUpdateTrigger.run(MavenDependencyUpdateTrigger.java:153)
          FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at hudson.triggers.Trigger.checkTriggers(Trigger.java:266)
          FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at hudson.triggers.Trigger$Cron.doRun(Trigger.java:214)
          FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
          FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
          FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
          FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
          FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
          FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
          FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
          FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
          FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
          FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at java.lang.Thread.run(Thread.java:662)
          </pre>

          fmiguelez Fernando Miguelez added a comment - It keeps on crashing with latest Jenkins (1.592) and plugin versions (maven project plugin 2.8): <pre> FINEST|4344/0|Service yajsw|14-12-01 10:46:00|Dec 1, 2014 10:46:00 AM hudson.triggers.Trigger checkTriggers FINEST|4344/0|Service yajsw|14-12-01 10:46:00|WARNING: org.jvnet.hudson.plugins.mavendepsupdate.MavenDependencyUpdateTrigger.run() failed for hudson.maven.MavenModuleSet@8fc32e6 [icm.demo.flexconsole-AUTO] FINEST|4344/0|Service yajsw|14-12-01 10:46:00|java.lang.NoClassDefFoundError: org/sonatype/aether/repository/WorkspaceReader FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at org.jvnet.hudson.plugins.mavendepsupdate.MavenDependencyUpdateTrigger.run(MavenDependencyUpdateTrigger.java:153) FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at hudson.triggers.Trigger.checkTriggers(Trigger.java:266) FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at hudson.triggers.Trigger$Cron.doRun(Trigger.java:214) FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54) FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) FINEST|4344/0|Service yajsw|14-12-01 10:46:00| at java.lang.Thread.run(Thread.java:662) </pre>

          Hello,

          no release has been done since the PR. It will be fixed with the next release.

          This exception is due to the modification of packages naming inside maven aether artifacts from org.sonatype.aether to org.eclipse.aether.

          alecharp Adrien Lecharpentier added a comment - Hello, no release has been done since the PR. It will be fixed with the next release. This exception is due to the modification of packages naming inside maven aether artifacts from org.sonatype.aether to org.eclipse.aether.

          This has been fixed in version 1.5 of the plugin

          alecharp Adrien Lecharpentier added a comment - This has been fixed in version 1.5 of the plugin

          People

            alecharp Adrien Lecharpentier
            fmiguelez Fernando Miguelez
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: