warpath:add-classes

Full name:

org.appfuse.plugins:maven-warpath-plugin:2.1.1-SNAPSHOT:add-classes

Description:

Allows war artifacts to be used as fully fledged dependencies by including the WEB-INF/classes directory on the compile classpath.

It does this by creating a "fake" dependency on the project that points to the jar'ed contents of the WEB-INF/classes directory of any war file included on the project as a dependency of type warpath. The introduced dependency has scope system to prevent it being included in war files.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: compile.
  • Binds by default to the lifecycle phase: generate-sources.

Required Parameters

Name Type Since Description
workDirectory File - Location of the warpath working directory. The contents of the WEB-INF/classes directory from all warpath dependencies will be extracted to jar files located in this directory.

Optional Parameters

Name Type Since Description
warpathExcludes String - The filter that determines the resources, from the dependent war's WEB-INF/classes directory, to exclude from the classpath. Note that excludes takes priority over includes. The default is the empty string, i.e. exclude nothing.
warpathIncludes String - The filter that determines the resources, from the dependent war's WEB-INF/classes directory, to include on the classpath. Default is "**".

Parameter Details

warpathExcludes:

The filter that determines the resources, from the dependent war's WEB-INF/classes directory, to exclude from the classpath. Note that excludes takes priority over includes. The default is the empty string, i.e. exclude nothing.
  • Type: java.lang.String
  • Required: No

warpathIncludes:

The filter that determines the resources, from the dependent war's WEB-INF/classes directory, to include on the classpath. Default is "**".
  • Type: java.lang.String
  • Required: No
  • Expression: **

workDirectory:

Location of the warpath working directory. The contents of the WEB-INF/classes directory from all warpath dependencies will be extracted to jar files located in this directory.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.directory}/warpath