From 5692492db3cf6f1727472cd1c9c2c26eb45841b7 Mon Sep 17 00:00:00 2001 From: evenisse Date: Sat, 5 Apr 2003 08:03:18 +0000 Subject: [PATCH] Split java plugin in clean, jar and java plugin. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113259 13f79535-47bb-0310-9956-ffa450edef68 --- clean/.cvsignore | 3 + clean/clean/.cvsignore | 3 + clean/clean/plugin.jelly | 16 ++ clean/clean/plugin.properties | 3 + clean/clean/project.properties | 3 + clean/clean/project.xml | 21 ++ clean/clean/xdocs/.cvsignore | 1 + clean/clean/xdocs/changes.xml | 18 ++ clean/clean/xdocs/goals.xml | 29 +++ clean/clean/xdocs/index.xml | 16 ++ clean/clean/xdocs/navigation.xml | 15 ++ clean/clean/xdocs/properties.xml | 14 ++ clean/plugin.jelly | 16 ++ clean/plugin.properties | 3 + clean/project.properties | 3 + clean/project.xml | 21 ++ clean/xdocs/.cvsignore | 1 + clean/xdocs/changes.xml | 18 ++ clean/xdocs/goals.xml | 29 +++ clean/xdocs/index.xml | 16 ++ clean/xdocs/navigation.xml | 15 ++ clean/xdocs/properties.xml | 14 ++ jar/.cvsignore | 3 + jar/plugin.jelly | 180 ++++++++++++++++ jar/plugin.properties | 3 + jar/project.properties | 3 + jar/project.xml | 21 ++ jar/xdocs/.cvsignore | 1 + jar/xdocs/changes.xml | 17 ++ jar/xdocs/goals.xml | 118 +++++++++++ jar/xdocs/index.xml | 25 +++ jar/xdocs/navigation.xml | 16 ++ jar/xdocs/properties.xml | 339 +++++++++++++++++++++++++++++++ 33 files changed, 1004 insertions(+) create mode 100644 clean/.cvsignore create mode 100644 clean/clean/.cvsignore create mode 100644 clean/clean/plugin.jelly create mode 100644 clean/clean/plugin.properties create mode 100644 clean/clean/project.properties create mode 100644 clean/clean/project.xml create mode 100644 clean/clean/xdocs/.cvsignore create mode 100644 clean/clean/xdocs/changes.xml create mode 100644 clean/clean/xdocs/goals.xml create mode 100644 clean/clean/xdocs/index.xml create mode 100644 clean/clean/xdocs/navigation.xml create mode 100644 clean/clean/xdocs/properties.xml create mode 100644 clean/plugin.jelly create mode 100644 clean/plugin.properties create mode 100644 clean/project.properties create mode 100644 clean/project.xml create mode 100644 clean/xdocs/.cvsignore create mode 100644 clean/xdocs/changes.xml create mode 100644 clean/xdocs/goals.xml create mode 100644 clean/xdocs/index.xml create mode 100644 clean/xdocs/navigation.xml create mode 100644 clean/xdocs/properties.xml create mode 100644 jar/.cvsignore create mode 100644 jar/plugin.jelly create mode 100644 jar/plugin.properties create mode 100644 jar/project.properties create mode 100644 jar/project.xml create mode 100644 jar/xdocs/.cvsignore create mode 100644 jar/xdocs/changes.xml create mode 100644 jar/xdocs/goals.xml create mode 100644 jar/xdocs/index.xml create mode 100644 jar/xdocs/navigation.xml create mode 100644 jar/xdocs/properties.xml diff --git a/clean/.cvsignore b/clean/.cvsignore new file mode 100644 index 00000000..e5e33942 --- /dev/null +++ b/clean/.cvsignore @@ -0,0 +1,3 @@ +target +velocity.log +maven.log diff --git a/clean/clean/.cvsignore b/clean/clean/.cvsignore new file mode 100644 index 00000000..e5e33942 --- /dev/null +++ b/clean/clean/.cvsignore @@ -0,0 +1,3 @@ +target +velocity.log +maven.log diff --git a/clean/clean/plugin.jelly b/clean/clean/plugin.jelly new file mode 100644 index 00000000..76a9c54e --- /dev/null +++ b/clean/clean/plugin.jelly @@ -0,0 +1,16 @@ + + + + + + + + + + + + diff --git a/clean/clean/plugin.properties b/clean/clean/plugin.properties new file mode 100644 index 00000000..f8460971 --- /dev/null +++ b/clean/clean/plugin.properties @@ -0,0 +1,3 @@ +# ------------------------------------------------------------------- +# P L U G I N P R O P E R T I E S +# ------------------------------------------------------------------- diff --git a/clean/clean/project.properties b/clean/clean/project.properties new file mode 100644 index 00000000..c43339ba --- /dev/null +++ b/clean/clean/project.properties @@ -0,0 +1,3 @@ +# ------------------------------------------------------------------- +# P R O J E C T P R O P E R T I E S +# ------------------------------------------------------------------- diff --git a/clean/clean/project.xml b/clean/clean/project.xml new file mode 100644 index 00000000..3a324a06 --- /dev/null +++ b/clean/clean/project.xml @@ -0,0 +1,21 @@ + + + + ${basedir}/../project.xml + 3 + maven-clean-plugin + Maven Clean Plug-in + 1.0-SNAPSHOT + + Java Project Management Tools + http://maven.apache.org/reference/plugins/clean/ + + /www/maven.apache.org/reference/plugins/clean/ + + + scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven/src/plugins-build/clean/ + http://cvs.apache.org/viewcvs/maven/src/plugins-build/clean/ + + + + diff --git a/clean/clean/xdocs/.cvsignore b/clean/clean/xdocs/.cvsignore new file mode 100644 index 00000000..cb6131bb --- /dev/null +++ b/clean/clean/xdocs/.cvsignore @@ -0,0 +1 @@ +stylesheets diff --git a/clean/clean/xdocs/changes.xml b/clean/clean/xdocs/changes.xml new file mode 100644 index 00000000..8152124f --- /dev/null +++ b/clean/clean/xdocs/changes.xml @@ -0,0 +1,18 @@ + + + + Changes + Emmanuel Venisse + + + + + + + Initial plugin created. Goals are move from java plugin. + + + + + + diff --git a/clean/clean/xdocs/goals.xml b/clean/clean/xdocs/goals.xml new file mode 100644 index 00000000..9bacefbd --- /dev/null +++ b/clean/clean/xdocs/goals.xml @@ -0,0 +1,29 @@ + + + + + Maven Clean Plug-in Goals + Emmanuel Venisse + + + +
+ + + + + + + + + + +
GoalDescription
clean + This goal is a shortcut to the clean:clean goal +
clean:clean + Removes the maven.build.dir and + maven.test.reportsDirectory directories +
+
+ +
diff --git a/clean/clean/xdocs/index.xml b/clean/clean/xdocs/index.xml new file mode 100644 index 00000000..70ea0493 --- /dev/null +++ b/clean/clean/xdocs/index.xml @@ -0,0 +1,16 @@ + + + + + Maven Clean Plug-in + Emmanuel Venisse + + + +
+

+ This plug-in provides functionality for cleaning output directory. +

+
+ +
diff --git a/clean/clean/xdocs/navigation.xml b/clean/clean/xdocs/navigation.xml new file mode 100644 index 00000000..8b7430f4 --- /dev/null +++ b/clean/clean/xdocs/navigation.xml @@ -0,0 +1,15 @@ + + + + Maven Java Plugin + + + + + + + + + + + diff --git a/clean/clean/xdocs/properties.xml b/clean/clean/xdocs/properties.xml new file mode 100644 index 00000000..4a428177 --- /dev/null +++ b/clean/clean/xdocs/properties.xml @@ -0,0 +1,14 @@ + + + + + Properties + Emmanuel Venisse + + + +
+ No properties. +
+ +
diff --git a/clean/plugin.jelly b/clean/plugin.jelly new file mode 100644 index 00000000..76a9c54e --- /dev/null +++ b/clean/plugin.jelly @@ -0,0 +1,16 @@ + + + + + + + + + + + + diff --git a/clean/plugin.properties b/clean/plugin.properties new file mode 100644 index 00000000..f8460971 --- /dev/null +++ b/clean/plugin.properties @@ -0,0 +1,3 @@ +# ------------------------------------------------------------------- +# P L U G I N P R O P E R T I E S +# ------------------------------------------------------------------- diff --git a/clean/project.properties b/clean/project.properties new file mode 100644 index 00000000..c43339ba --- /dev/null +++ b/clean/project.properties @@ -0,0 +1,3 @@ +# ------------------------------------------------------------------- +# P R O J E C T P R O P E R T I E S +# ------------------------------------------------------------------- diff --git a/clean/project.xml b/clean/project.xml new file mode 100644 index 00000000..3a324a06 --- /dev/null +++ b/clean/project.xml @@ -0,0 +1,21 @@ + + + + ${basedir}/../project.xml + 3 + maven-clean-plugin + Maven Clean Plug-in + 1.0-SNAPSHOT + + Java Project Management Tools + http://maven.apache.org/reference/plugins/clean/ + + /www/maven.apache.org/reference/plugins/clean/ + + + scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven/src/plugins-build/clean/ + http://cvs.apache.org/viewcvs/maven/src/plugins-build/clean/ + + + + diff --git a/clean/xdocs/.cvsignore b/clean/xdocs/.cvsignore new file mode 100644 index 00000000..cb6131bb --- /dev/null +++ b/clean/xdocs/.cvsignore @@ -0,0 +1 @@ +stylesheets diff --git a/clean/xdocs/changes.xml b/clean/xdocs/changes.xml new file mode 100644 index 00000000..8152124f --- /dev/null +++ b/clean/xdocs/changes.xml @@ -0,0 +1,18 @@ + + + + Changes + Emmanuel Venisse + + + + + + + Initial plugin created. Goals are move from java plugin. + + + + + + diff --git a/clean/xdocs/goals.xml b/clean/xdocs/goals.xml new file mode 100644 index 00000000..9bacefbd --- /dev/null +++ b/clean/xdocs/goals.xml @@ -0,0 +1,29 @@ + + + + + Maven Clean Plug-in Goals + Emmanuel Venisse + + + +
+ + + + + + + + + + +
GoalDescription
clean + This goal is a shortcut to the clean:clean goal +
clean:clean + Removes the maven.build.dir and + maven.test.reportsDirectory directories +
+
+ +
diff --git a/clean/xdocs/index.xml b/clean/xdocs/index.xml new file mode 100644 index 00000000..70ea0493 --- /dev/null +++ b/clean/xdocs/index.xml @@ -0,0 +1,16 @@ + + + + + Maven Clean Plug-in + Emmanuel Venisse + + + +
+

+ This plug-in provides functionality for cleaning output directory. +

+
+ +
diff --git a/clean/xdocs/navigation.xml b/clean/xdocs/navigation.xml new file mode 100644 index 00000000..8b7430f4 --- /dev/null +++ b/clean/xdocs/navigation.xml @@ -0,0 +1,15 @@ + + + + Maven Java Plugin + + + + + + + + + + + diff --git a/clean/xdocs/properties.xml b/clean/xdocs/properties.xml new file mode 100644 index 00000000..4a428177 --- /dev/null +++ b/clean/xdocs/properties.xml @@ -0,0 +1,14 @@ + + + + + Properties + Emmanuel Venisse + + + +
+ No properties. +
+ +
diff --git a/jar/.cvsignore b/jar/.cvsignore new file mode 100644 index 00000000..e5e33942 --- /dev/null +++ b/jar/.cvsignore @@ -0,0 +1,3 @@ +target +velocity.log +maven.log diff --git a/jar/plugin.jelly b/jar/plugin.jelly new file mode 100644 index 00000000..f3bc2f9c --- /dev/null +++ b/jar/plugin.jelly @@ -0,0 +1,180 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Building snapshot JAR: ${maven.final.name} + + + + + + + + + + + + + + + + + ${maven.build.dir}/${maven.jar.to.deploy} + + + + + ${jarToDeploy.substring(base.length())} + + + + + + + + + + + + + + + + + ${maven.build.dir}/${maven.jar.to.deploy} + + + + + ${jarToDeploy.substring(base.length())} + + + + + + + + + + + + + id = '${pom.artifactId}' + groupId = '${pom.groupId}' + artifactDirectory = '${pom.artifactDirectory}' + + + + + + + + + + + + + + + + + + + diff --git a/jar/plugin.properties b/jar/plugin.properties new file mode 100644 index 00000000..f8460971 --- /dev/null +++ b/jar/plugin.properties @@ -0,0 +1,3 @@ +# ------------------------------------------------------------------- +# P L U G I N P R O P E R T I E S +# ------------------------------------------------------------------- diff --git a/jar/project.properties b/jar/project.properties new file mode 100644 index 00000000..c43339ba --- /dev/null +++ b/jar/project.properties @@ -0,0 +1,3 @@ +# ------------------------------------------------------------------- +# P R O J E C T P R O P E R T I E S +# ------------------------------------------------------------------- diff --git a/jar/project.xml b/jar/project.xml new file mode 100644 index 00000000..d977a44d --- /dev/null +++ b/jar/project.xml @@ -0,0 +1,21 @@ + + + + ${basedir}/../project.xml + 3 + maven-jar-plugin + Maven Jar Plug-in + 1.0-SNAPSHOT + + Java Project Management Tools + http://maven.apache.org/reference/plugins/jar/ + + /www/maven.apache.org/reference/plugins/jar/ + + + scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven/src/plugins-build/jar/ + http://cvs.apache.org/viewcvs/maven/src/plugins-build/jar/ + + + + diff --git a/jar/xdocs/.cvsignore b/jar/xdocs/.cvsignore new file mode 100644 index 00000000..cb6131bb --- /dev/null +++ b/jar/xdocs/.cvsignore @@ -0,0 +1 @@ +stylesheets diff --git a/jar/xdocs/changes.xml b/jar/xdocs/changes.xml new file mode 100644 index 00000000..b6678923 --- /dev/null +++ b/jar/xdocs/changes.xml @@ -0,0 +1,17 @@ + + + + Changes + Emmanuel Venisse + + + + + + + Initial plugin created. Goals are move from java plugin. + + + + + diff --git a/jar/xdocs/goals.xml b/jar/xdocs/goals.xml new file mode 100644 index 00000000..1edb258d --- /dev/null +++ b/jar/xdocs/goals.xml @@ -0,0 +1,118 @@ + + + + + Maven Java Plug-in Goals + dIon Gillard + Kurt Schrader + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
GoalDescription
java:prepare-filesystem + Creates the directories necessary for compilation +
java:compile +

+ Compiles the Java source code for the project +

+

+ The source code directory is specified in the + build + element of your project.xml + file. +

+
java:jar-resources +

+ Copies any resources that must be present in the deployed JAR + file, from the directory specified by + maven.jarResources.basedir to the + build directory, where class files are stored. +

+

+ The maven.jar.resources.set + property is used to determine which files from the base directory + are included +

+
java:jar + Creates a jar file in the Maven build directory with the + form ${project.id}-${project.currentVersion}.jar where + the id and currentVersion are taken from the project.xml + of the project being built. +
jar:snapshot + Creates a jar file in the Maven build directory with the + form ${project.id}-YYYYMMDD.hhmmss.jar where +
    +
  • + id - taken from the project.xml + of the project being built +
  • +
  • YYYYMMDD - The current year in 8 digit format
  • +
  • hhmmss - the current time in 6 digit format
  • +
+
jar:deploy-snapshot + Deploy a snapshot jar to the remote repository +
jar:deploy + Deploy a jar to the remote repository. The jar is built using + the java:jar goal +
jar:install + Install a jar into the local repository. The jar is built using + the java:jar goal +
jar:install-snapshot + Install a jar into the local repository. The jar is built using + the jar:snapshot goal and copied into the local + repository as the -SNAPSHOT version. +
clean + This goal is a shortcut to the clean:clean goal +
clean:clean + Removes the maven.build.dir and + maven.test.reportsDirectory directories +
+
+ +
diff --git a/jar/xdocs/index.xml b/jar/xdocs/index.xml new file mode 100644 index 00000000..8b416265 --- /dev/null +++ b/jar/xdocs/index.xml @@ -0,0 +1,25 @@ + + + + + Maven Java Plug-in + Jason van Zyl + + + +
+

+ This plug-in provides your basic Javac and Jar facilities. +

+

+ For more information on the functionality provided by this plugin, + please see the Goals document. +

+

+ For more information on how to customise the functionality provided + by this plugin, please see the properties + document. +

+
+ +
diff --git a/jar/xdocs/navigation.xml b/jar/xdocs/navigation.xml new file mode 100644 index 00000000..5127bd33 --- /dev/null +++ b/jar/xdocs/navigation.xml @@ -0,0 +1,16 @@ + + + + Maven Java Plugin + + + + + + + + + + + + diff --git a/jar/xdocs/properties.xml b/jar/xdocs/properties.xml new file mode 100644 index 00000000..45f9a35d --- /dev/null +++ b/jar/xdocs/properties.xml @@ -0,0 +1,339 @@ + + + + + Properties + Stéphane MOR + dIon Gillard + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PropertyOptional?Description
maven.compile.aspectsYes + Specifies that Aspects are included during compilation. + Used by the "java:compile" goal. + The default value is false. Please + refer to the AspectJ + web site for more information on Aspect-Oriented + Programming. +
maven.compile.compilerargsYes +

+ Provides arguments to a compiler when maven.compile.fork + is set to true +

+

+ Corresponds to the nested compilerarg element for the ant + javac + task. +

+
maven.compile.debugYes + Specifies wether to include debugging information in the compiled + class files; the default value is on. + Used by the "java:compile" goal. +
maven.compile.deprecationYes + Specifies wether source should be compiled with deprecation + information; the default value is off. + Used by the "java:compile" goal. +
maven.compile.encodingYes +

+ Sets the encoding of the .java files being compiled +

+

+ Corresponds to the encoding attribute for the ant + javac + task. +

+
maven.compile.executableYes +

+ Names the program to be invoked as the java compiler +

+

+ Corresponds to the executable attribute for the ant + javac + task. +

+
maven.compile.forkYes +

+ Runs the compiler in a separate process +

+

+ Corresponds to the fork attribute for the ant + javac + task. +

+
maven.compile.optimizeYes + Specifies whether source should be compiled with optimization; the + default value is off. + Used by the "java:compile" goal. +
maven.compile.sourceYes +

+ Provide source compatibility with a specific release +

+

+ Corresponds to the source attribute for the ant + javac + task. +

+
maven.compile.src.setYes + The source directories maven uses to compile java code. +
maven.compile.targetYes +

+ Generate class files for a specific JVM version +

+

+ Corresponds to the target attribute for the ant + javac + task. +

+
maven.compile.verboseYes +

+ Asks the compiler for verbose output +

+

+ Corresponds to the verbose attribute for the ant + javac + task. +

+
pom.build.sourceModificationsYes + This property is the list of the + + + + + + + + + + +]]> + source modifications in your + + project descriptor. This property is used during compilation to exclude or + include classes from compilation depending on whether a named class is available +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
maven.has.jar.resource.patternsYes + This is a calculated property based on the value of the + + + + +]]> + section of your + + project descriptor. If there are includes or excludes + elements, this property will be set to true +
maven.jar.excludesYes + Specifies a list of patterns to exclude from the jar process. + The default value is **/package.html, and is used + by the "java:jar" goal. +
maven.jar.manifestYes + Specifies the manifest to be used in the creation of a jar. + This file is 'merged' with the default manifest created by + Maven. Any values specified in the file referenced by this + property will override Maven's defaults. +
maven.jar.mainclassYes + Specifies the Main-Class attribute for your manifest. If not set, + no MainClass attribute will be added to the manifest. +
maven.jarResources.basedirYes + The base directory from which resources to be included in a jar can be found. + Defaults to the base directory of the project. +
maven.jar.resources.setYes + This is the Ant patternset of all the includes and + excludes from the + + + + +]]> + section of your + + project descriptor +
+
+
+ + + + + + + + + + + + + + + + + + + + + + +
PropertyOptional?Description
maven.repo.centralYes + Central repository for maven artifacts +
maven.repo.central.directoryYes + Directory to deploy jars into on the remote repository +
maven.repo.localYes + The local repository to store maven artifacts, including jar file + dependencies +
maven.usernameYes + This is the user name used to log in to the remote repository +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
PropertyOptional?Description
maven.build.destYesThe directory for compiled classes
maven.build.dirYes + Used by the java:jar goal for +
    +
  • a temporary manifest file, if one is not specified
  • +
  • the assembled jar file
  • +
+
maven.dependency.classpathYes + This property holds the Ant path of all the dependent jar + files listed in the dependencies block of your + + project descriptor +
maven.final.nameYes + Usually this property is set to ${project.id}-${project.currentVersion} + but the snapshot goal overwrites it to be the snapshot signature +
user.nameYes + Used by the java:jar goal as the default value of the + Built-By attribute of the manifest if one is not specified. +
+
+ +