Creates a JAR archive of the source files of the current project.
Plugin coordinates:
- Group Id: org.apache.maven.plugins
- Artifact Id: maven-source-plugin
Plugin Prefix: source
The
source plugin has the following goals:
-
help:
Display help information on maven-source-plugin.
-
jar:
This plugin bundles all the sources into a jar archive.
-
test-jar:
This plugin bundles all the test sources into a jar archive.
-
jar-no-fork:
This goal bundles all the sources into a jar archive.
This goal does not fork the build and is suitable for attaching to the build lifecycle.
-
test-jar-no-fork:
This goal bundles all the test sources into a jar archive.
This goal functions does not fork the build, and is suitable for attaching to the build lifecycle.
-
aggregate:
Aggregate sources for all modules in an aggregator project.
-
generated-test-jar:
This plugin bundles all the test sources into a jar archive.