Blog

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

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Image AddedThis is a short reminder for users of the

...

JBoss Modules Maven Plugin to add all direct dependencies to their project dependencies.

If you use Java classes that are in the transitive closure, but not declared as dependencies directly in the project's POM, these classes will not be visible by default in the modules classpath provided by the JBoss AS 7.

You may be tempted to export those classes, but you usually should not. Simply add all direct dependencies to your POM. You may use the

...

Maven Dependency Plugin to query direct dependencies, which are not declared:

Code Block

...

mvn dependency:analyze

...

Code Block

...

[WARNING] Used undeclared dependencies found:

...


[WARNING]    de.smartics.exceptions:smart-exceptions-core:jar:0.13.0-SNAPSHOT:compile

...


[WARNING]    de.smartics.properties:smartics-properties-annotations:jar:0.4.0-SNAPSHOT:compile

...


[WARNING]    de.smartics.exceptions:smart-exceptions-i18n:jar:0.13.0-SNAPSHOT:compile

...


[WARNING] Unused declared dependencies found:

...


[WARNING]    commons-collections:commons-collections:jar:3.2.1:compile

...


[WARNING]    org.reflections:reflections:jar:0.9.7.RC1sm:compile

...


[WARNING]    org.slf4j:slf4j-nop:jar:1.6.4:test

...


[WARNING]    de.smartics.testdoc:testdoc-core:jar:0.4.0:test

...

And if you use our

...

Alias Maven Plugin, simply type

Code Block

...

a

...

Or

...

Code Block

...

h

...

for help:

Code Block

...

 --- project-analysis

...


 a    = mvn dependency:analyze [args]

...


 dpu  = mvn versions:display-plugin-updates [args]

...


 ddu  = mvn versions:display-dependency-updates [args]