Plugin source-jar v0.1


Overview

This module provides source jar packaging feature.

Parameters

The following property values can be changed to tune the behavior of this plugin.
Required parameters must be defined upon import, or the build will fail.

ParameterRequired?DescriptionDefault
src.test.resourcesYesdirectory where test resources files are stored
src.main.resourcesYesdirectory where main resources files are stored
target.artifacts.test.source.jar.nameYestest source artifact file name
src.test.javaYesdirectory where test java files are stored
src.main.javaYesdirectory where main java files are stored
target.artifactsYesdestination directory for target artifacts
target.artifacts.main.source.jar.nameYesmain source artifact file name

Build Phases

This plugin adds targets to each of the following build phases:

validate
  • init
package
  • main: package main source as a JAR
  • test: package test source as a JAR
package
  • main: package main source as a JAR
  • test: package test source as a JAR

Extra Targets

This plugin defines some extra Ant targets not attached to any build phase: