Blog

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

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »




This is a short reminder for users of the smartics-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:


mvn dependency:analyze


[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


a


Or


h


for help:


--- project-analysis
a = mvn dependency:analyze [args]
dpu = mvn versions:display-plugin-updates [args]
ddu = mvn versions:display-dependency-updates [args]


Link

Link

Posts

  • No labels