Maven

From ArgeoWiki

Jump to: navigation, search
Maven
Web site http://maven.apache.org
All third party software

Contents

Plugins

tips and explanations about pluggins commonly used within argeo projects

maven-bundle-plugin

Maven 2 plugin based on BND tool from Peter Kriens. It basically generates manifests for the current artifact.

Notes :

  • "test" scoped dependencies are not included in the classpath seen by BND.
  • Import-Package part of the manifest is generated by the plugin based on the java content of the bundle
    • we don't need to explicitly specify imported package with <Import-Package> tag
    • yet it is possible if needed, for instance when some classes are namely called from spring xml files, the BND plugin sometimes miss them and corresponding packages must be set here explicitly to avoid NoClassDefFound errors at runtime.

At development time, import package must be manually added to the manifest which is then overridden.

More info on Apache Felix page.

Tips

By default the packaging is jar.


A description of maven scopes : http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope

Maven Book

http://books.sonatype.com/maven-book/reference/public-book.html

SCP issues

TODO

Personal tools