Blog

  • 2024
  • 2023
  • 2022
  • 2021
  • 2020
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015
  • 2014
  • 2013
  • 2012




If you try to run the JBoss Modules Maven Plugin and encounter the following error message:

java.lang.NoClassDefFoundError: org/sonatype/aether/RepositorySystemSession


you are probably using Maven 3.1.x.

UPDATE!

 

Due to release of version 1.0.0, there are now two versions that support Maven 3.0.x and Maven 3.1.x. Please refer to our release notes for more information.

The smartics-jboss-modules-maven-plugin currently only runs with Maven 3.0.x. This is due to the fact that the Maven team moved the Aether library from org.sonatype to org.eclipse. See the release note for Maven 3.0.1: Known Incompatibilities with Maven 3.0.x (edit: which have been removed from http://maven.apache.org/release-notes-3.x.html#Known_Incompatibilities_with_Maven_3.0.x in June 2014):

The significant change in Eclipse Aether with respect to API changes and package relocation will likely cause issues with plugins that directly depend on Aether. We are aware of the issues in the Maven Site Plugin, the Maven Dependency Plugin, the Maven Shade Plugin and the Maven Project Info Reports Plugin, and have fixed them in recent releases. But this is a significant change and is likely to cause issues in any plugin that depends on the now deprecated Sonatype Aether. In the external plugin ecosystem, it is known that Tycho, the Android Maven Plugin and the NetBeans Module Plugin are also affected: the plugin developers are aware of this issue and will release a new version of the plugin to address it.


Our smartics-jboss-modules-maven-plugin is also affected. :-(

In our release plan you can see that we plan to fix this issue. Unfortunately we have no time schedule when this will be. But it is definitely on our list before this plugin goes 1.0.0.

If you want to check out working examples on how to use the plugin, please refer to our integration tests (the link points to the tagged current release 0.3.1).

For further information on this plugin and topics around it, you may want to have an eye on the project's blog.


Link

Link

Posts