[maven-plugin-tools] 01/08: Build with maven-debian-helper
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Thu Jan 28 09:13:48 UTC 2016
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository maven-plugin-tools.
commit 09041392dfcbceaf3c4abf151b9ed79c8c115f38
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Thu Jan 28 09:16:18 2016 +0100
Build with maven-debian-helper
---
debian/build.properties | 42 -
debian/build.xml | 210 ----
debian/changelog | 7 +
debian/components-tools-annotations.xml | 42 -
debian/components-tools-ant.xml | 12 -
debian/components-tools-beanshell.xml | 13 -
debian/components-tools-java.xml | 12 -
debian/control | 9 +-
debian/libmaven-plugin-tools-java.poms | 33 +-
debian/maven-settings.xml | 9 -
debian/maven.ignoreRules | 7 +
debian/maven.properties | 5 +
debian/maven.rules | 5 +-
.../06-plexus-component-metadata-version.patch | 13 +
debian/patches/series | 1 +
debian/plugin.xml | 1139 --------------------
debian/rules | 56 +-
17 files changed, 72 insertions(+), 1543 deletions(-)
diff --git a/debian/build.properties b/debian/build.properties
deleted file mode 100644
index ec6b8a9..0000000
--- a/debian/build.properties
+++ /dev/null
@@ -1,42 +0,0 @@
-javadoc.dir=target/api
-build.directory=target
-maven.test.skip=true
-classpath.compile = \
- ${basedir}/maven-plugin-annotations/target/classes:\
- ${basedir}/maven-plugin-tools-api/target/classes:\
- ${basedir}/maven-plugin-tools-annotations/target/classes:\
- ${basedir}/maven-plugin-tools-generators/target/classes:\
- ${basedir}/maven-plugin-tools-model/target/classes:\
- ${basedir}/maven-plugin-tools-java/target/classes:\
- /usr/share/java/asm4.jar:\
- /usr/share/java/asm4-commons.jar:\
- /usr/share/java/maven-artifact.jar:\
- /usr/share/java/maven-artifact-manager.jar:\
- /usr/share/java/maven-core.jar:\
- /usr/share/java/maven-model.jar:\
- /usr/share/java/maven-plugin-api.jar:\
- /usr/share/java/maven-plugin-descriptor.jar:\
- /usr/share/java/maven-plugin-registry.jar:\
- /usr/share/java/maven-project.jar:\
- /usr/share/java/maven-reporting-api.jar:\
- /usr/share/java/maven-reporting-impl.jar:\
- /usr/share/java/maven-repository-metadata.jar:\
- /usr/share/java/ant.jar:\
- /usr/share/java/jtidy.jar:\
- /usr/share/java/doxia-core.jar:\
- /usr/share/java/doxia-logging-api.jar:\
- /usr/share/java/doxia-sink-api.jar:\
- /usr/share/java/doxia-site-renderer.jar:\
- /usr/share/java/xbean-reflect.jar:\
- /usr/share/java/qdox.jar:\
- /usr/share/java/bsh.jar:\
- /usr/share/java/plexus-ant-factory.jar:\
- /usr/share/java/plexus-archiver.jar:\
- /usr/share/java/plexus-bsh-factory.jar:\
- /usr/share/java/plexus-component-annotations-1.5.jar:\
- /usr/share/java/plexus-utils.jar:\
- /usr/share/java/plexus-classworlds.jar:\
- /usr/share/java/plexus-container-default-alpha.jar:\
- /usr/share/java/plexus-velocity.jar:\
- /usr/share/java/velocity.jar
-build.javaVersion=1.5
diff --git a/debian/build.xml b/debian/build.xml
deleted file mode 100644
index 6fe6364..0000000
--- a/debian/build.xml
+++ /dev/null
@@ -1,210 +0,0 @@
-<?xml version="1.0"?>
-
-<project name="pkg-java" default="package" basedir="..">
-
- <property file="debian/build.properties"/>
- <property name="maven.build" value="/usr/share/maven-ant-helper/maven-build.xml"/>
- <property file="/usr/share/maven-ant-helper/maven-defaults.properties"/>
-
- <macrodef name="cleanmodule">
- <attribute name="dir"/>
- <sequential>
- <ant target="clean" antfile="${maven.build}" dir="@{dir}">
- <property name="debian.dir" location="debian" />
- <property name="project.dir" value="@{dir}" />
- </ant>
- </sequential>
- </macrodef>
-
- <macrodef name="packagemodule">
- <attribute name="dir"/>
- <sequential>
- <echo message="Packaging module @{dir}..."/>
- <ant target="package" antfile="${maven.build}" dir="@{dir}">
- <property name="debian.dir" location="debian" />
- <property name="project.dir" value="@{dir}" />
- </ant>
- </sequential>
- </macrodef>
-
- <target name="clean">
- <cleanmodule dir=""/>
- <cleanmodule dir="maven-plugin-tools-api"/>
- <cleanmodule dir="maven-plugin-tools-beanshell"/>
- <cleanmodule dir="maven-plugin-tools-java"/>
- <cleanmodule dir="maven-plugin-plugin"/>
- </target>
-
- <target name="generate-sources">
- <taskdef name="modello" classname="ModelloTask" classpath="/usr/share/java/maven-ant-helper.jar:/usr/share/java/modello-core.jar:/usr/share/java/modello-plugin-xml.jar:/usr/share/java/modello-plugin-xpp3.jar"/>
- <modello
- model="maven-plugin-tools-model/src/main/mdo/plugin-metadata.mdo"
- plugin="java" output="maven-plugin-tools-model/target/generated-sources"
- version="1.1.0"/>
- <modello
- model="maven-plugin-tools-model/src/main/mdo/plugin-metadata.mdo"
- plugin="xpp3-reader" output="maven-plugin-tools-model/target/generated-sources"
- version="1.1.0"/>
- <modello
- model="maven-plugin-tools-model/src/main/mdo/plugin-metadata.mdo"
- plugin="xpp3-writer" output="maven-plugin-tools-model/target/generated-sources"
- version="1.1.0"/>
- <modello
- model="maven-plugin-plugin/src/main/mdo/pluginRequirements.mdo"
- plugin="java" output="maven-plugin-plugin/target/generated-sources"
- version="1.0.0"/>
- </target>
-
- <macrodef name="package-and-local-deploy">
- <attribute name="dir"/>
- <attribute name="project.dir" default="@{dir}"/>
- <attribute name="artifactId" default="@{dir}"/>
- <attribute name="group" default="plugin-tools"/>
- <sequential>
- <echo message="Building @{group}:@{artifactId}..."/>
- <ant target="package" antfile="${maven.build}" dir="@{dir}">
- <property name="debian.dir" location="debian" />
- <property name="project.dir" value="@{project.dir}" />
- <property name="package" value="${package}" />
- <property name="use-local-repo" value="true" />
- <property name="keep-cleaned-pom" value="true" />
- </ant>
- <mkdir dir="debian/tmp/maven-repo/org/apache/maven/@{group}/@{artifactId}/${version}" />
- <mkdir dir="debian/tmp/maven-repo/org/apache/maven/@{group}/@{artifactId}/debian" />
- <copy file="@{dir}/pom.xml"
- tofile="debian/tmp/maven-repo/org/apache/maven/@{group}/@{artifactId}/${version}/@{artifactId}-${version}.pom" />
- <copy file="@{dir}/${build.directory}/@{artifactId}-${version}.jar"
- tofile="debian/tmp/maven-repo/org/apache/maven/@{group}/@{artifactId}/${version}/@{artifactId}-${version}.jar" />
- <copy file="@{dir}/pom.xml"
- tofile="debian/tmp/maven-repo/org/apache/maven/@{group}/@{artifactId}/debian/@{artifactId}-debian.pom" />
- <copy file="@{dir}/${build.directory}/@{artifactId}-${version}.jar"
- tofile="debian/tmp/maven-repo/org/apache/maven/@{group}/@{artifactId}/debian/@{artifactId}-debian.jar" />
- </sequential>
- </macrodef>
-
- <target name="package" depends="generate-sources">
- <copy todir=".">
- <fileset dir="." includes="**/pom.xml" />
- <globmapper from="*" to="*.save"/>
- </copy>
-
- <!-- Create a dummy plugin descriptor to help plugin-plugin to bootstrap itself.
- The real descriptor will be generated by calling mvn plugin:descriptor -->
- <mkdir dir="maven-plugin-plugin/${build.outputDirectory}/META-INF/maven/" />
- <copy file="debian/plugin.xml" todir="maven-plugin-plugin/${build.outputDirectory}/META-INF/maven/" >
- <filterset>
- <filter token="VERSION" value="${version}"/>
- </filterset>
- </copy>
-
-
- <!-- Copy the plexus component descriptors. The descriptors are generated
- by post processing the compiled classes, but maven-ant-helper doesn't
- know how to do that yet, so we inject them manually for now -->
- <mkdir dir="maven-plugin-tools-annotations/target/classes/META-INF/plexus/" />
- <copy file="debian/components-tools-annotations.xml" tofile="maven-plugin-tools-annotations/target/classes/META-INF/plexus/components.xml"/>
-
- <mkdir dir="maven-plugin-tools-ant/target/classes/META-INF/plexus/" />
- <copy file="debian/components-tools-ant.xml" tofile="maven-plugin-tools-ant/target/classes/META-INF/plexus/components.xml"/>
-
- <mkdir dir="maven-plugin-tools-beanshell/target/classes/META-INF/plexus/" />
- <copy file="debian/components-tools-beanshell.xml" tofile="maven-plugin-tools-beanshell/target/classes/META-INF/plexus/components.xml"/>
-
- <mkdir dir="maven-plugin-tools-java/target/classes/META-INF/plexus/" />
- <copy file="debian/components-tools-java.xml" tofile="maven-plugin-tools-java/target/classes/META-INF/plexus/components.xml"/>
-
-
- <package-and-local-deploy dir="." project.dir="" artifactId="maven-plugin-tools" />
- <package-and-local-deploy dir="maven-plugin-tools-api" />
- <package-and-local-deploy dir="maven-plugin-annotations" />
- <package-and-local-deploy dir="maven-plugin-tools-annotations" />
- <package-and-local-deploy dir="maven-plugin-tools-model" />
- <package-and-local-deploy dir="maven-plugin-tools-ant"/>
- <package-and-local-deploy dir="maven-plugin-tools-beanshell"/>
- <package-and-local-deploy dir="maven-plugin-tools-generators"/>
- <package-and-local-deploy dir="maven-plugin-tools-java"/>
- <package-and-local-deploy dir="maven-plugin-tools-javadoc"/>
- <package-and-local-deploy dir="maven-script/maven-script-ant" artifactId="maven-script-ant"/>
- <package-and-local-deploy dir="maven-script/maven-script-beanshell" artifactId="maven-script-beanshell"/>
- <package-and-local-deploy dir="maven-plugin-plugin" group="plugins"/>
-
- <!-- Calls mvn plugin:descriptor on maven-plugin-plugin -->
- <path id="maven.classpath">
- <fileset dir="/usr/share/maven-repo">
- <include name="classworlds/classworlds/debian/classworlds-debian.jar"/>
- <include name="com/jcraft/jsch/debian/jsch-debian.jar"/>
- <include name="commons-cli/commons-cli/debian/commons-cli-debian.jar"/>
- <include name="junit/junit/debian/junit-debian.jar"/>
- <include name="xml-apis/xml-apis/debian/xml-apis-debian.jar"/>
- <include name="org/apache/maven/doxia/doxia-logging-api/debian/doxia-logging-api-debian.jar"/>
- <include name="org/apache/maven/doxia/doxia-sink-api/debian/doxia-sink-api-debian.jar"/>
- <include name="org/apache/maven/maven-artifact/debian/maven-artifact-debian.jar"/>
- <include name="org/apache/maven/maven-artifact-manager/debian/maven-artifact-manager-debian.jar"/>
- <include name="org/apache/maven/maven-core/debian/maven-core-debian.jar"/>
- <include name="org/apache/maven/maven-error-diagnostics/debian/maven-error-diagnostics-debian.jar"/>
- <include name="org/apache/maven/maven-model/debian/maven-model-debian.jar"/>
- <include name="org/apache/maven/maven-monitor/debian/maven-monitor-debian.jar"/>
- <include name="org/apache/maven/maven-plugin-api/debian/maven-plugin-api-debian.jar"/>
- <include name="org/apache/maven/maven-plugin-descriptor/debian/maven-plugin-descriptor-debian.jar"/>
- <include name="org/apache/maven/maven-plugin-parameter-documenter/debian/maven-plugin-parameter-documenter-debian.jar"/>
- <include name="org/apache/maven/maven-plugin-registry/debian/maven-plugin-registry-debian.jar"/>
- <include name="org/apache/maven/maven-profile/debian/maven-profile-debian.jar"/>
- <include name="org/apache/maven/maven-project/debian/maven-project-debian.jar"/>
- <include name="org/apache/maven/maven-repository-metadata/debian/maven-repository-metadata-debian.jar"/>
- <include name="org/apache/maven/maven-settings/debian/maven-settings-debian.jar"/>
- <include name="org/apache/maven/reporting/maven-reporting-api/debian/maven-reporting-api-debian.jar"/>
- <include name="org/apache/maven/wagon/wagon-provider-api/debian/wagon-provider-api-debian.jar"/>
- <include name="org/apache/maven/wagon/wagon-ssh-common/debian/wagon-ssh-common-debian.jar"/>
- <include name="org/apache/maven/wagon/wagon-ssh/debian/wagon-ssh-debian.jar"/>
- <include name="org/codehaus/plexus/plexus-container-default/1.0-alpha/plexus-container-default-1.0-alpha.jar"/>
- <include name="org/codehaus/plexus/plexus-interactivity-api/debian/plexus-interactivity-api-debian.jar"/>
- <include name="org/codehaus/plexus/plexus-interpolation/debian/plexus-interpolation-debian.jar"/>
- <include name="org/codehaus/plexus/plexus-utils/debian/plexus-utils-debian.jar"/>
- <include name="org/sonatype/plexus/plexus-cipher/debian/plexus-cipher-debian.jar"/>
- <include name="org/sonatype/plexus/plexus-sec-dispatcher/debian/plexus-sec-dispatcher-debian.jar"/>
- </fileset>
- </path>
- <java fork="true" dir="maven-plugin-plugin" classname="org.apache.maven.cli.MavenCli" failonerror="true">
- <jvmarg value="-Xmx256M"/>
- <classpath refid="maven.classpath"/>
- <arg value="-Dmaven.test.skip"/>
- <arg value="--offline"/>
- <arg value="-e"/>
- <arg value="-B"/>
- <arg value="-s${basedir}/debian/tmp/maven-settings.xml"/>
- <arg value="org.apache.maven.plugins:maven-plugin-plugin:${version}:descriptor"/>
- </java>
-
- <copy todir="." overwrite="true" >
- <fileset dir="." includes="**/pom.xml.save" />
- <globmapper from="*.save" to="*"/>
- </copy>
-
- <!-- re-package, this time with the correct pom files -->
- <packagemodule dir="" />
- <packagemodule dir="maven-plugin-tools-api" />
- <packagemodule dir="maven-plugin-annotations" />
- <packagemodule dir="maven-plugin-tools-annotations" />
- <packagemodule dir="maven-plugin-tools-model" />
- <packagemodule dir="maven-plugin-tools-ant"/>
- <packagemodule dir="maven-plugin-tools-beanshell"/>
- <packagemodule dir="maven-plugin-tools-generators"/>
- <packagemodule dir="maven-plugin-tools-java"/>
- <packagemodule dir="maven-plugin-tools-javadoc"/>
- <packagemodule dir="maven-script/maven-script-ant"/>
- <packagemodule dir="maven-script/maven-script-beanshell"/>
- <packagemodule dir="maven-plugin-plugin"/>
-
- </target>
-
- <target name="javadoc">
- <javadoc destdir="${javadoc.dir}">
- <packageset dir="maven-plugin-tools-api/src/main/java/"/>
- <packageset dir="maven-plugin-tools-beanshell/src/main/java/"/>
- <packageset dir="maven-plugin-tools-java/src/main/java/"/>
- <packageset dir="maven-plugin-tools-javadoc/src/main/java/"/>
- <packageset dir="maven-plugin-plugin/src/main/java/"/>
- </javadoc>
- </target>
-
-</project>
diff --git a/debian/changelog b/debian/changelog
index 7ac6f5a..2635fb2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+maven-plugin-tools (3.3-4) UNRELEASED; urgency=medium
+
+ * Team upload.
+ * Build with maven-debian-helper
+
+ -- Emmanuel Bourg <ebourg at apache.org> Wed, 27 Jan 2016 10:08:59 +0100
+
maven-plugin-tools (3.3-3) unstable; urgency=medium
* Team upload.
diff --git a/debian/components-tools-annotations.xml b/debian/components-tools-annotations.xml
deleted file mode 100644
index a203199..0000000
--- a/debian/components-tools-annotations.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<component-set>
- <components>
- <component>
- <role>org.apache.maven.tools.plugin.annotations.scanner.MojoAnnotationsScanner</role>
- <role-hint>default</role-hint>
- <implementation>org.apache.maven.tools.plugin.annotations.scanner.DefaultMojoAnnotationsScanner</implementation>
- <description />
- <isolated-realm>false</isolated-realm>
- </component>
- <component>
- <role>org.apache.maven.tools.plugin.extractor.MojoDescriptorExtractor</role>
- <role-hint>java-annotations</role-hint>
- <implementation>org.apache.maven.tools.plugin.annotations.JavaAnnotationsMojoDescriptorExtractor</implementation>
- <description />
- <isolated-realm>false</isolated-realm>
- <requirements>
- <requirement>
- <role>org.apache.maven.tools.plugin.annotations.scanner.MojoAnnotationsScanner</role>
- <role-hint />
- <field-name>mojoAnnotationsScanner</field-name>
- </requirement>
- <requirement>
- <role>org.apache.maven.artifact.resolver.ArtifactResolver</role>
- <role-hint />
- <field-name>artifactResolver</field-name>
- </requirement>
- <requirement>
- <role>org.apache.maven.artifact.factory.ArtifactFactory</role>
- <role-hint />
- <field-name>artifactFactory</field-name>
- </requirement>
- <requirement>
- <role>org.codehaus.plexus.archiver.manager.ArchiverManager</role>
- <role-hint />
- <field-name>archiverManager</field-name>
- </requirement>
- </requirements>
- </component>
- </components>
-</component-set>
-
diff --git a/debian/components-tools-ant.xml b/debian/components-tools-ant.xml
deleted file mode 100644
index acee7b0..0000000
--- a/debian/components-tools-ant.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<component-set>
- <components>
- <component>
- <role>org.apache.maven.tools.plugin.extractor.MojoDescriptorExtractor</role>
- <role-hint>ant</role-hint>
- <implementation>org.apache.maven.tools.plugin.extractor.ant.AntMojoDescriptorExtractor</implementation>
- <description />
- <isolated-realm>false</isolated-realm>
- </component>
- </components>
-</component-set>
diff --git a/debian/components-tools-beanshell.xml b/debian/components-tools-beanshell.xml
deleted file mode 100644
index b776806..0000000
--- a/debian/components-tools-beanshell.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<component-set>
- <components>
- <component>
- <role>org.apache.maven.tools.plugin.extractor.MojoDescriptorExtractor</role>
- <role-hint>bsh</role-hint>
- <implementation>org.apache.maven.tools.plugin.extractor.beanshell.BeanshellMojoDescriptorExtractor</implementation>
- <description />
- <isolated-realm>false</isolated-realm>
- </component>
- </components>
-</component-set>
-
diff --git a/debian/components-tools-java.xml b/debian/components-tools-java.xml
deleted file mode 100644
index 2c8cd47..0000000
--- a/debian/components-tools-java.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<component-set>
- <components>
- <component>
- <role>org.apache.maven.tools.plugin.extractor.MojoDescriptorExtractor</role>
- <role-hint>java</role-hint>
- <implementation>org.apache.maven.tools.plugin.extractor.java.JavaMojoDescriptorExtractor</implementation>
- <description />
- <isolated-realm>false</isolated-realm>
- </component>
- </components>
-</component-set>
diff --git a/debian/control b/debian/control
index 5b15c76..e8bd02a 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: optional
Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
Uploaders: Torsten Werner <twerner at debian.org>,
Ludovic Claude <ludovic.claude at laposte.net>
-Build-Depends: cdbs, debhelper (>= 9), default-jdk, libjaxp1.3-java
+Build-Depends: debhelper (>= 9), default-jdk
Build-Depends-Indep: ant,
ant-optional,
bsh,
@@ -16,7 +16,7 @@ Build-Depends-Indep: ant,
libjtidy-java,
libmaven-reporting-impl-java,
libmaven2-core-java (>= 2.2.1-12),
- libmodello-java,
+ libmodello-maven-plugin-java,
libplexus-ant-factory-java,
libplexus-bsh-factory-java,
libplexus-containers1.5-java,
@@ -24,8 +24,7 @@ Build-Depends-Indep: ant,
libplexus-velocity-java,
libqdox-java,
libxbean-java,
- maven-ant-helper (>= 7.8),
- maven-repo-helper,
+ maven-debian-helper (>= 2.0.3),
velocity
Standards-Version: 3.9.6
Vcs-Git: git://anonscm.debian.org/pkg-java/maven-plugin-tools.git
@@ -44,7 +43,7 @@ Depends: bsh,
libxbean-java,
libasm4-java,
${misc:Depends}
-Description: Maven Plugin Tools Base POM
+Description: Maven Plugin Tools
Maven is a software project management and comprehension tool. Based on the
concept of a project object model (POM), Maven can manage a project's build,
reporting and documentation from a central piece of information.
diff --git a/debian/libmaven-plugin-tools-java.poms b/debian/libmaven-plugin-tools-java.poms
index f21ca5b..a2bd692 100644
--- a/debian/libmaven-plugin-tools-java.poms
+++ b/debian/libmaven-plugin-tools-java.poms
@@ -1,6 +1,33 @@
+# List of POM files for the package
+# Format of this file is:
+# <path to pom file> [option]*
+# where option can be:
+# --ignore: ignore this POM and its artifact if any
+# --ignore-pom: don't install the POM. To use on POM files that are created
+# temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms]
+# --no-parent: remove the <parent> tag from the POM
+# --package=<package>: an alternative package to use when installing this POM
+# and its artifact
+# --has-package-version: to indicate that the original version of the POM is the same as the upstream part
+# of the version for the package.
+# --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM
+# during a clean operation with mh_cleanpom or mh_installpom
+# --artifact=<path>: path to the build artifact associated with this POM,
+# it will be installed when using the command mh_install. [mh_install]
+# --java-lib: install the jar into /usr/share/java to comply with Debian
+# packaging guidelines
+# --usj-name=<name>: name to use when installing the library in /usr/share/java
+# --usj-version=<version>: version to use when installing the library in /usr/share/java
+# --no-usj-versionless: don't install the versionless link in /usr/share/java
+# --dest-jar=<path>: the destination for the real jar.
+# It will be installed with mh_install. [mh_install]
+# --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
+# --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
+# Empty by default. [mh_install]
+#
pom.xml --no-parent --has-package-version
maven-plugin-annotations/pom.xml --has-package-version
-maven-plugin-plugin/pom.xml --no-parent --has-package-version
+maven-plugin-plugin/pom.xml --has-package-version
maven-plugin-tools-annotations/pom.xml --has-package-version
maven-plugin-tools-ant/pom.xml --has-package-version
maven-plugin-tools-api/pom.xml --has-package-version
@@ -10,5 +37,5 @@ maven-plugin-tools-generators/pom.xml --has-package-version
maven-plugin-tools-java/pom.xml --has-package-version
maven-plugin-tools-javadoc/pom.xml --has-package-version
maven-script/pom.xml --has-package-version
-maven-script/maven-script-ant/pom.xml --has-package-version
-maven-script/maven-script-beanshell/pom.xml --has-package-version
+maven-script/maven-script-ant/pom.xml --has-package-version --no-usj-versionless
+maven-script/maven-script-beanshell/pom.xml --has-package-version --no-usj-versionless
diff --git a/debian/maven-settings.xml b/debian/maven-settings.xml
deleted file mode 100644
index 1ecaf8c..0000000
--- a/debian/maven-settings.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<!--
- This is a minimal settings.xml that switches maven to offline mode
- and uses the Debian repo as the local repo.
--->
-
-<settings>
- <localRepository>BASEDIR/debian/tmp/maven-repo/</localRepository>
- <offline>true</offline>
-</settings>
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..3588e11
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,7 @@
+
+org.apache.maven.plugins maven-enforcer-plugin * * * *
+org.apache.maven.plugins maven-release-plugin * * * *
+org.apache.maven.plugins maven-source-plugin * * * *
+org.easytesting fest-assert * * * *
+xmlunit xmlunit * * * *
+org.apache.maven.plugin-testing maven-plugin-testing-harness * * * *
diff --git a/debian/maven.properties b/debian/maven.properties
new file mode 100644
index 0000000..e593715
--- /dev/null
+++ b/debian/maven.properties
@@ -0,0 +1,5 @@
+# Include here properties to pass to Maven during the build.
+# For example:
+# maven.test.skip=true
+
+maven.test.skip=true
diff --git a/debian/maven.rules b/debian/maven.rules
index 3b81ca1..bf2df87 100644
--- a/debian/maven.rules
+++ b/debian/maven.rules
@@ -1,9 +1,8 @@
# newer beanshell versions use the group org.beanshell instead of bsh
s/bsh/org.beanshell/ bsh jar s/.*/debian/
-# keep the version for all Maven plugins as versionless plugins don't work
-* * maven-plugin *
-org.codehaus.plexus plexus-container-default jar s/1\.0-alpha.*/1.0-alpha/
junit junit jar s/3\..*/3.x/
org.ow2.asm * * s/.*/4.x/
org.apache.maven maven-artifact * s/3\..*/3.x/
s/bsh/org.beanshell/ bsh * s/.*/debian/
+org.codehaus.plexus plexus-compiler-manager * s/.*/2.x/ * *
+org.codehaus.plexus plexus-component-metadata maven-plugin s/.*/1.5.5/ * *
diff --git a/debian/patches/06-plexus-component-metadata-version.patch b/debian/patches/06-plexus-component-metadata-version.patch
new file mode 100644
index 0000000..bd2b54b
--- /dev/null
+++ b/debian/patches/06-plexus-component-metadata-version.patch
@@ -0,0 +1,13 @@
+Description: Set the version of the plexus-component-metadata plugin
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: not-needed
+--- a/pom.xml
++++ b/pom.xml
+@@ -287,6 +287,7 @@
+ <plugin>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-component-metadata</artifactId>
++ <version>1.5.5</version>
+ <executions>
+ <execution>
+ <goals>
diff --git a/debian/patches/series b/debian/patches/series
index 5b5dcf0..a75eeb0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@
03-plexus-utils2-compatibility.patch
04-reproducible-plugin-descriptor.patch
05-fix-plugin-annotation.patch
+06-plexus-component-metadata-version.patch
diff --git a/debian/plugin.xml b/debian/plugin.xml
deleted file mode 100644
index 21337e3..0000000
--- a/debian/plugin.xml
+++ /dev/null
@@ -1,1139 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!-- Generated by maven-plugin-tools 3.2 on 2014-05-03 -->
-
-<plugin>
- <name>Maven Plugin Plugin</name>
- <description>The Plugin Plugin is used to create a Maven plugin descriptor for any Mojo's found in the source tree,
- to include in the JAR. It is also used to generate Xdoc files for the Mojos as well as for updating the
- plugin registry, the artifact metadata and a generic help goal.</description>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-plugin-plugin</artifactId>
- <version>3.3</version>
- <goalPrefix>plugin</goalPrefix>
- <isolatedRealm>false</isolatedRealm>
- <inheritedByDefault>true</inheritedByDefault>
- <mojos>
- <mojo>
- <goal>updateRegistry</goal>
- <description>Update the user plugin registry (if it's in use) to reflect the version we're installing.</description>
- <requiresDirectInvocation>false</requiresDirectInvocation>
- <requiresProject>true</requiresProject>
- <requiresReports>false</requiresReports>
- <aggregator>false</aggregator>
- <requiresOnline>false</requiresOnline>
- <inheritedByDefault>true</inheritedByDefault>
- <phase>install</phase>
- <implementation>org.apache.maven.plugin.plugin.UpdatePluginRegistryMojo</implementation>
- <language>java</language>
- <instantiationStrategy>per-lookup</instantiationStrategy>
- <executionStrategy>once-per-session</executionStrategy>
- <since>2.0</since>
- <threadSafe>true</threadSafe>
- <parameters>
- <parameter>
- <name>artifactId</name>
- <type>java.lang.String</type>
- <required>true</required>
- <editable>false</editable>
- <description>The artifact id of the project currently being built.</description>
- </parameter>
- <parameter>
- <name>groupId</name>
- <type>java.lang.String</type>
- <required>true</required>
- <editable>false</editable>
- <description>The group id of the project currently being built.</description>
- </parameter>
- <parameter>
- <name>skip</name>
- <type>boolean</type>
- <since>2.8</since>
- <required>false</required>
- <editable>true</editable>
- <description>Set this to "true" to skip invoking any goals or reports of the plugin.</description>
- </parameter>
- <parameter>
- <name>skipUpdatePluginRegistry</name>
- <type>boolean</type>
- <since>2.8</since>
- <required>false</required>
- <editable>true</editable>
- <description>Set this to "true" to skip updating the plugin registry.</description>
- </parameter>
- <parameter>
- <name>usePluginRegistry</name>
- <type>boolean</type>
- <required>true</required>
- <editable>false</editable>
- <description>Indicates whether the <code>plugin-registry.xml</code> file is used by Maven or not
-to manage plugin versions.</description>
- </parameter>
- <parameter>
- <name>version</name>
- <type>java.lang.String</type>
- <required>true</required>
- <editable>false</editable>
- <description>The version of the project currently being built.</description>
- </parameter>
- </parameters>
- <configuration>
- <artifactId implementation="java.lang.String" default-value="${project.artifactId}"/>
- <groupId implementation="java.lang.String" default-value="${project.groupId}"/>
- <skip implementation="boolean" default-value="false">${maven.plugin.skip}</skip>
- <skipUpdatePluginRegistry implementation="boolean" default-value="false">${maven.plugin.update.registry.skip}</skipUpdatePluginRegistry>
- <usePluginRegistry implementation="boolean" default-value="${settings.usePluginRegistry}"/>
- <version implementation="java.lang.String" default-value="${project.artifact.version}"/>
- </configuration>
- <requirements>
- <requirement>
- <role>org.apache.maven.plugin.registry.MavenPluginRegistryBuilder</role>
- <field-name>pluginRegistryBuilder</field-name>
- </requirement>
- </requirements>
- </mojo>
- <mojo>
- <goal>report</goal>
- <description>Generates the Plugin's documentation report.</description>
- <requiresDirectInvocation>false</requiresDirectInvocation>
- <requiresProject>true</requiresProject>
- <requiresReports>false</requiresReports>
- <aggregator>false</aggregator>
- <requiresOnline>false</requiresOnline>
- <inheritedByDefault>true</inheritedByDefault>
- <executePhase>process-classes</executePhase>
- <implementation>org.apache.maven.plugin.plugin.PluginReport</implementation>
- <language>java</language>
- <instantiationStrategy>per-lookup</instantiationStrategy>
- <executionStrategy>once-per-session</executionStrategy>
- <since>2.0</since>
- <threadSafe>true</threadSafe>
- <parameters>
- <parameter>
- <name>dependencies</name>
- <type>java.util.Set</type>
- <since>3.0</since>
- <required>true</required>
- <editable>false</editable>
- <description>The set of dependencies for the current project</description>
- </parameter>
- <parameter>
- <name>encoding</name>
- <type>java.lang.String</type>
- <since>2.7</since>
- <required>false</required>
- <editable>true</editable>
- <description>The file encoding of the source files.</description>
- </parameter>
- <parameter>
- <name>goalPrefix</name>
- <type>java.lang.String</type>
- <since>2.4</since>
- <required>false</required>
- <editable>true</editable>
- <description>The goal prefix that will appear before the ":".
-By default, this plugin applies a heuristic to derive a heuristic from
-the plugin's artifactId.
-<p/>
-It removes any occurrences of the regular expression <strong>-?maven-?</strong>,
-and then removes any occurrences of <strong>-?plugin-?</strong>.
-<p>
-For example, horsefeature-maven-plugin becomes horsefeature.
-</p>
-<p>
-(There is a special for maven-plugin-plugin; it is mapped to 'plugin'.
-</p></description>
- </parameter>
- <parameter>
- <name>local</name>
- <type>org.apache.maven.artifact.repository.ArtifactRepository</type>
- <since>3.0</since>
- <required>true</required>
- <editable>false</editable>
- <description>Location of the local repository.</description>
- </parameter>
- <parameter>
- <name>outputDirectory</name>
- <type>java.io.File</type>
- <required>false</required>
- <editable>true</editable>
- <description>Report output directory for mojo pages.</description>
- </parameter>
- <parameter>
- <name>remoteRepos</name>
- <type>java.util.List</type>
- <since>3.0</since>
- <required>true</required>
- <editable>false</editable>
- <description>List of Remote Repositories used by the resolver</description>
- </parameter>
- <parameter>
- <name>requirements</name>
- <type>org.apache.maven.plugin.plugin.Requirements</type>
- <required>false</required>
- <editable>true</editable>
- <description>Specify some requirements to execute this plugin.
-Example:
-<pre>
-<requirements>
- <maven>2.0</maven>
- <jdk>1.4</jdk>
- <memory>256m</memory>
- <diskSpace>1m</diskSpace>
- <others>
- <property>
- <name>SVN</name>
- <value>1.4.6</value>
- </property>
- </others>
-</requirements>
-</pre></description>
- </parameter>
- <parameter>
- <name>skip</name>
- <type>boolean</type>
- <since>2.8</since>
- <required>false</required>
- <editable>true</editable>
- <description>Set this to "true" to skip invoking any goals or reports of the plugin.</description>
- </parameter>
- <parameter>
- <name>skipReport</name>
- <type>boolean</type>
- <since>2.8</since>
- <required>false</required>
- <editable>true</editable>
- <description>Set this to "true" to skip generating the report.</description>
- </parameter>
- <parameter>
- <name>project</name>
- <type>org.apache.maven.project.MavenProject</type>
- <required>true</required>
- <editable>false</editable>
- <description></description>
- </parameter>
- </parameters>
- <configuration>
- <dependencies implementation="java.util.Set" default-value="${project.artifacts}"/>
- <encoding implementation="java.lang.String" default-value="${project.build.sourceEncoding}">${encoding}</encoding>
- <goalPrefix implementation="java.lang.String">${goalPrefix}</goalPrefix>
- <local implementation="org.apache.maven.artifact.repository.ArtifactRepository" default-value="${localRepository}"/>
- <outputDirectory implementation="java.io.File" default-value="${project.build.directory}/generated-site/xdoc"/>
- <remoteRepos implementation="java.util.List" default-value="${project.remoteArtifactRepositories}"/>
- <skip implementation="boolean" default-value="false">${maven.plugin.skip}</skip>
- <skipReport implementation="boolean" default-value="false">${maven.plugin.report.skip}</skipReport>
- <project implementation="org.apache.maven.project.MavenProject" default-value="${project}"/>
- </configuration>
- <requirements>
- <requirement>
- <role>org.apache.maven.tools.plugin.scanner.MojoScanner</role>
- <field-name>mojoScanner</field-name>
- </requirement>
- <requirement>
- <role>org.apache.maven.doxia.siterenderer.Renderer</role>
- <field-name>siteRenderer</field-name>
- </requirement>
- </requirements>
- </mojo>
- <mojo>
- <goal>xdoc</goal>
- <description>Generate Xdoc files for the project mojos or goals.</description>
- <requiresDirectInvocation>false</requiresDirectInvocation>
- <requiresProject>true</requiresProject>
- <requiresReports>false</requiresReports>
- <aggregator>false</aggregator>
- <requiresOnline>false</requiresOnline>
- <inheritedByDefault>true</inheritedByDefault>
- <implementation>org.apache.maven.plugin.plugin.XdocGeneratorMojo</implementation>
- <language>java</language>
- <instantiationStrategy>per-lookup</instantiationStrategy>
- <executionStrategy>once-per-session</executionStrategy>
- <since>2.0</since>
- <threadSafe>true</threadSafe>
- <parameters>
- <parameter>
- <name>dependencies</name>
- <type>java.util.Set</type>
- <since>3.0</since>
- <required>true</required>
- <editable>false</editable>
- <description>The set of dependencies for the current project</description>
- </parameter>
- <parameter>
- <name>encoding</name>
- <type>java.lang.String</type>
- <since>2.5</since>
- <required>false</required>
- <editable>true</editable>
- <description>The file encoding of the source files.</description>
- </parameter>
- <parameter>
- <name>extractors</name>
- <type>java.util.Set</type>
- <required>false</required>
- <editable>true</editable>
- <description>The role names of mojo extractors to use.
-<p/>
-If not set, all mojo extractors will be used. If set to an empty extractor name, no mojo extractors
-will be used.
-<p/>
-Example:
-<p/>
-<pre>
- <!-- Use all mojo extractors -->
- <extractors/>
-
- <!-- Use no mojo extractors -->
- <extractors>
- <extractor/>
- </extractors>
-
- <!-- Use only bsh mojo extractor -->
- <extractors>
- <extractor>bsh</extractor>
- </extractors>
-</pre></description>
- </parameter>
- <parameter>
- <name>goalPrefix</name>
- <type>java.lang.String</type>
- <required>false</required>
- <editable>true</editable>
- <description>The goal prefix that will appear before the ":".</description>
- </parameter>
- <parameter>
- <name>local</name>
- <type>org.apache.maven.artifact.repository.ArtifactRepository</type>
- <since>3.0</since>
- <required>true</required>
- <editable>false</editable>
- <description>Location of the local repository.</description>
- </parameter>
- <parameter>
- <name>outputDirectory</name>
- <type>java.io.File</type>
- <required>false</required>
- <editable>true</editable>
- <description>The directory where the generated Xdoc files will be put.</description>
- </parameter>
- <parameter>
- <name>packagingTypes</name>
- <type>java.util.List</type>
- <since>3.3</since>
- <required>false</required>
- <editable>true</editable>
- <description>Maven plugin packaging types. Default is single "maven-plugin".</description>
- </parameter>
- <parameter>
- <name>remoteRepos</name>
- <type>java.util.List</type>
- <since>3.0</since>
- <required>true</required>
- <editable>false</editable>
- <description>List of Remote Repositories used by the resolver</description>
- </parameter>
- <parameter>
- <name>skip</name>
- <type>boolean</type>
- <since>2.8</since>
- <required>false</required>
- <editable>true</editable>
- <description>Set this to "true" to skip invoking any goals or reports of the plugin.</description>
- </parameter>
- <parameter>
- <name>skipErrorNoDescriptorsFound</name>
- <type>boolean</type>
- <since>3.0</since>
- <required>false</required>
- <editable>true</editable>
- <description>By default an exception is throw if no mojo descriptor is found. As the maven-plugin is defined in core, the
-descriptor generator mojo is bound to generate-resources phase.
-But for annotations, the compiled classes are needed, so skip error</description>
- </parameter>
- <parameter>
- <name>project</name>
- <type>org.apache.maven.project.MavenProject</type>
- <required>true</required>
- <editable>false</editable>
- <description></description>
- </parameter>
- </parameters>
- <configuration>
- <dependencies implementation="java.util.Set" default-value="${project.artifacts}"/>
- <encoding implementation="java.lang.String" default-value="${project.build.sourceEncoding}">${encoding}</encoding>
- <local implementation="org.apache.maven.artifact.repository.ArtifactRepository" default-value="${localRepository}"/>
- <outputDirectory implementation="java.io.File" default-value="${project.build.directory}/generated-site/xdoc"/>
- <remoteRepos implementation="java.util.List" default-value="${project.remoteArtifactRepositories}"/>
- <skip implementation="boolean" default-value="false">${maven.plugin.skip}</skip>
- <skipErrorNoDescriptorsFound implementation="boolean" default-value="false">${maven.plugin.skipErrorNoDescriptorsFound}</skipErrorNoDescriptorsFound>
- <project implementation="org.apache.maven.project.MavenProject" default-value="${project}"/>
- </configuration>
- <requirements>
- <requirement>
- <role>org.apache.maven.tools.plugin.scanner.MojoScanner</role>
- <field-name>mojoScanner</field-name>
- </requirement>
- </requirements>
- </mojo>
- <mojo>
- <goal>addPluginArtifactMetadata</goal>
- <description>Inject any plugin-specific
-<a href="/ref/current/maven-repository-metadata/repository-metadata.html">artifact metadata</a> to the project's
-artifact, for subsequent installation and deployment.
-It is used:
-<ol>
-<li>to add the <code>latest</code> metadata (which is plugin-specific) for shipping alongside the plugin's artifact</li>
-<li>to define plugin mapping in the group</li>
-</ol></description>
- <requiresDirectInvocation>false</requiresDirectInvocation>
- <requiresProject>true</requiresProject>
- <requiresReports>false</requiresReports>
- <aggregator>false</aggregator>
- <requiresOnline>false</requiresOnline>
- <inheritedByDefault>true</inheritedByDefault>
- <phase>package</phase>
- <implementation>org.apache.maven.plugin.plugin.metadata.AddPluginArtifactMetadataMojo</implementation>
- <language>java</language>
- <instantiationStrategy>per-lookup</instantiationStrategy>
- <executionStrategy>once-per-session</executionStrategy>
- <since>2.0</since>
- <threadSafe>true</threadSafe>
- <parameters>
- <parameter>
- <name>goalPrefix</name>
- <type>java.lang.String</type>
- <required>false</required>
- <editable>true</editable>
- <description>The prefix for the plugin goal.</description>
- </parameter>
- <parameter>
- <name>skip</name>
- <type>boolean</type>
- <since>2.8</since>
- <required>false</required>
- <editable>true</editable>
- <description>Set this to "true" to skip invoking any goals or reports of the plugin.</description>
- </parameter>
- <parameter>
- <name>project</name>
- <type>org.apache.maven.project.MavenProject</type>
- <required>true</required>
- <editable>false</editable>
- <description></description>
- </parameter>
- </parameters>
- <configuration>
- <skip implementation="boolean" default-value="false">${maven.plugin.skip}</skip>
- <project implementation="org.apache.maven.project.MavenProject" default-value="${project}"/>
- </configuration>
- </mojo>
- <mojo>
- <goal>help</goal>
- <description>Display help information on maven-plugin-plugin.<br/>
-Call <code>mvn plugin:help -Ddetail=true -Dgoal=<goal-name></code> to display parameter details.</description>
- <requiresDirectInvocation>false</requiresDirectInvocation>
- <requiresProject>false</requiresProject>
- <requiresReports>false</requiresReports>
- <aggregator>false</aggregator>
- <requiresOnline>false</requiresOnline>
- <inheritedByDefault>true</inheritedByDefault>
- <implementation>org.apache.maven.plugin.plugin.HelpMojo</implementation>
- <language>java</language>
- <instantiationStrategy>per-lookup</instantiationStrategy>
- <executionStrategy>once-per-session</executionStrategy>
- <threadSafe>true</threadSafe>
- <parameters>
- <parameter>
- <name>detail</name>
- <type>boolean</type>
- <required>false</required>
- <editable>true</editable>
- <description>If <code>true</code>, display all settable properties for each goal.</description>
- </parameter>
- <parameter>
- <name>goal</name>
- <type>java.lang.String</type>
- <required>false</required>
- <editable>true</editable>
- <description>The name of the goal for which to show help. If unspecified, all goals will be displayed.</description>
- </parameter>
- <parameter>
- <name>indentSize</name>
- <type>int</type>
- <required>false</required>
- <editable>true</editable>
- <description>The number of spaces per indentation level, should be positive.</description>
- </parameter>
- <parameter>
- <name>lineLength</name>
- <type>int</type>
- <required>false</required>
- <editable>true</editable>
- <description>The maximum length of a display line, should be positive.</description>
- </parameter>
- </parameters>
- <configuration>
- <detail implementation="boolean" default-value="false">${detail}</detail>
- <goal implementation="java.lang.String">${goal}</goal>
- <indentSize implementation="int" default-value="2">${indentSize}</indentSize>
- <lineLength implementation="int" default-value="80">${lineLength}</lineLength>
- </configuration>
- </mojo>
- <mojo>
- <goal>helpmojo</goal>
- <description>Generates a <code>HelpMojo</code> class.</description>
- <requiresDependencyResolution>compile</requiresDependencyResolution>
- <requiresDirectInvocation>false</requiresDirectInvocation>
- <requiresProject>true</requiresProject>
- <requiresReports>false</requiresReports>
- <aggregator>false</aggregator>
- <requiresOnline>false</requiresOnline>
- <inheritedByDefault>true</inheritedByDefault>
- <phase>generate-sources</phase>
- <implementation>org.apache.maven.plugin.plugin.HelpGeneratorMojo</implementation>
- <language>java</language>
- <instantiationStrategy>per-lookup</instantiationStrategy>
- <executionStrategy>once-per-session</executionStrategy>
- <since>2.4</since>
- <threadSafe>true</threadSafe>
- <parameters>
- <parameter>
- <name>dependencies</name>
- <type>java.util.Set</type>
- <since>3.0</since>
- <required>true</required>
- <editable>false</editable>
- <description>The set of dependencies for the current project</description>
- </parameter>
- <parameter>
- <name>encoding</name>
- <type>java.lang.String</type>
- <since>2.5</since>
- <required>false</required>
- <editable>true</editable>
- <description>The file encoding of the source files.</description>
- </parameter>
- <parameter>
- <name>extractors</name>
- <type>java.util.Set</type>
- <required>false</required>
- <editable>true</editable>
- <description>The role names of mojo extractors to use.
-<p/>
-If not set, all mojo extractors will be used. If set to an empty extractor name, no mojo extractors
-will be used.
-<p/>
-Example:
-<p/>
-<pre>
- <!-- Use all mojo extractors -->
- <extractors/>
-
- <!-- Use no mojo extractors -->
- <extractors>
- <extractor/>
- </extractors>
-
- <!-- Use only bsh mojo extractor -->
- <extractors>
- <extractor>bsh</extractor>
- </extractors>
-</pre></description>
- </parameter>
- <parameter>
- <name>goalPrefix</name>
- <type>java.lang.String</type>
- <required>false</required>
- <editable>true</editable>
- <description>The goal prefix that will appear before the ":".</description>
- </parameter>
- <parameter>
- <name>helpPackageName</name>
- <type>java.lang.String</type>
- <since>2.6</since>
- <required>false</required>
- <editable>true</editable>
- <description>The name of the package for the generated <code>HelpMojo</code>. By default, the package will be calculated based
-on the packages of the other plugin goals.</description>
- </parameter>
- <parameter>
- <name>local</name>
- <type>org.apache.maven.artifact.repository.ArtifactRepository</type>
- <since>3.0</since>
- <required>true</required>
- <editable>false</editable>
- <description>Location of the local repository.</description>
- </parameter>
- <parameter>
- <name>outputDirectory</name>
- <type>java.io.File</type>
- <required>false</required>
- <editable>true</editable>
- <description>The directory where the generated <code>HelpMojo</code> file will be put.</description>
- </parameter>
- <parameter>
- <name>packagingTypes</name>
- <type>java.util.List</type>
- <since>3.3</since>
- <required>false</required>
- <editable>true</editable>
- <description>Maven plugin packaging types. Default is single "maven-plugin".</description>
- </parameter>
- <parameter>
- <name>remoteRepos</name>
- <type>java.util.List</type>
- <since>3.0</since>
- <required>true</required>
- <editable>false</editable>
- <description>List of Remote Repositories used by the resolver</description>
- </parameter>
- <parameter>
- <name>skip</name>
- <type>boolean</type>
- <since>2.8</since>
- <required>false</required>
- <editable>true</editable>
- <description>Set this to "true" to skip invoking any goals or reports of the plugin.</description>
- </parameter>
- <parameter>
- <name>skipErrorNoDescriptorsFound</name>
- <type>boolean</type>
- <since>3.0</since>
- <required>false</required>
- <editable>true</editable>
- <description>By default an exception is throw if no mojo descriptor is found. As the maven-plugin is defined in core, the
-descriptor generator mojo is bound to generate-resources phase.
-But for annotations, the compiled classes are needed, so skip error</description>
- </parameter>
- <parameter>
- <name>project</name>
- <type>org.apache.maven.project.MavenProject</type>
- <required>true</required>
- <editable>false</editable>
- <description></description>
- </parameter>
- </parameters>
- <configuration>
- <dependencies implementation="java.util.Set" default-value="${project.artifacts}"/>
- <encoding implementation="java.lang.String" default-value="${project.build.sourceEncoding}">${encoding}</encoding>
- <local implementation="org.apache.maven.artifact.repository.ArtifactRepository" default-value="${localRepository}"/>
- <outputDirectory implementation="java.io.File" default-value="${project.build.directory}/generated-sources/plugin"/>
- <remoteRepos implementation="java.util.List" default-value="${project.remoteArtifactRepositories}"/>
- <skip implementation="boolean" default-value="false">${maven.plugin.skip}</skip>
- <skipErrorNoDescriptorsFound implementation="boolean" default-value="false">${maven.plugin.skipErrorNoDescriptorsFound}</skipErrorNoDescriptorsFound>
- <project implementation="org.apache.maven.project.MavenProject" default-value="${project}"/>
- </configuration>
- <requirements>
- <requirement>
- <role>org.apache.maven.tools.plugin.scanner.MojoScanner</role>
- <field-name>mojoScanner</field-name>
- </requirement>
- <requirement>
- <role>org.codehaus.plexus.velocity.VelocityComponent</role>
- <field-name>velocity</field-name>
- </requirement>
- </requirements>
- </mojo>
- <mojo>
- <goal>descriptor</goal>
- <description>Generate a plugin descriptor.
-<br/>
-<b>Note:</b> Since 3.0, for Java 5 plugin annotations support,
-default <a href="http://maven.apache.org/ref/current/maven-core/lifecycles.html">phase</a>
-defined by this goal is after the "compilation" of any scripts. This doesn't override
-<a href="/ref/current/maven-core/default-bindings.html#Bindings_for_maven-plugin_packaging">the default binding coded
-at generate-resources phase</a> in Maven core.</description>
- <requiresDependencyResolution>runtime</requiresDependencyResolution>
- <requiresDirectInvocation>false</requiresDirectInvocation>
- <requiresProject>true</requiresProject>
- <requiresReports>false</requiresReports>
- <aggregator>false</aggregator>
- <requiresOnline>false</requiresOnline>
- <inheritedByDefault>true</inheritedByDefault>
- <phase>process-classes</phase>
- <implementation>org.apache.maven.plugin.plugin.DescriptorGeneratorMojo</implementation>
- <language>java</language>
- <instantiationStrategy>per-lookup</instantiationStrategy>
- <executionStrategy>once-per-session</executionStrategy>
- <since>2.0</since>
- <threadSafe>true</threadSafe>
- <parameters>
- <parameter>
- <name>dependencies</name>
- <type>java.util.Set</type>
- <since>3.0</since>
- <required>true</required>
- <editable>false</editable>
- <description>The set of dependencies for the current project</description>
- </parameter>
- <parameter>
- <name>encoding</name>
- <type>java.lang.String</type>
- <since>2.5</since>
- <required>false</required>
- <editable>true</editable>
- <description>The file encoding of the source files.</description>
- </parameter>
- <parameter>
- <name>extractors</name>
- <type>java.util.Set</type>
- <required>false</required>
- <editable>true</editable>
- <description>The role names of mojo extractors to use.
-<p/>
-If not set, all mojo extractors will be used. If set to an empty extractor name, no mojo extractors
-will be used.
-<p/>
-Example:
-<p/>
-<pre>
- <!-- Use all mojo extractors -->
- <extractors/>
-
- <!-- Use no mojo extractors -->
- <extractors>
- <extractor/>
- </extractors>
-
- <!-- Use only bsh mojo extractor -->
- <extractors>
- <extractor>bsh</extractor>
- </extractors>
-</pre></description>
- </parameter>
- <parameter>
- <name>goalPrefix</name>
- <type>java.lang.String</type>
- <required>false</required>
- <editable>true</editable>
- <description>The goal prefix that will appear before the ":".</description>
- </parameter>
- <parameter>
- <name>local</name>
- <type>org.apache.maven.artifact.repository.ArtifactRepository</type>
- <since>3.0</since>
- <required>true</required>
- <editable>false</editable>
- <description>Location of the local repository.</description>
- </parameter>
- <parameter>
- <name>outputDirectory</name>
- <type>java.io.File</type>
- <required>false</required>
- <editable>true</editable>
- <description>The directory where the generated <code>plugin.xml</code> file will be put.</description>
- </parameter>
- <parameter>
- <name>packagingTypes</name>
- <type>java.util.List</type>
- <since>3.3</since>
- <required>false</required>
- <editable>true</editable>
- <description>Maven plugin packaging types. Default is single "maven-plugin".</description>
- </parameter>
- <parameter>
- <name>remoteRepos</name>
- <type>java.util.List</type>
- <since>3.0</since>
- <required>true</required>
- <editable>false</editable>
- <description>List of Remote Repositories used by the resolver</description>
- </parameter>
- <parameter>
- <name>skip</name>
- <type>boolean</type>
- <since>2.8</since>
- <required>false</required>
- <editable>true</editable>
- <description>Set this to "true" to skip invoking any goals or reports of the plugin.</description>
- </parameter>
- <parameter>
- <name>skipDescriptor</name>
- <type>boolean</type>
- <since>2.6</since>
- <required>false</required>
- <editable>true</editable>
- <description>A flag to disable generation of the <code>plugin.xml</code> in favor of a hand authored plugin descriptor.</description>
- </parameter>
- <parameter>
- <name>skipErrorNoDescriptorsFound</name>
- <type>boolean</type>
- <since>3.0</since>
- <required>false</required>
- <editable>true</editable>
- <description>By default an exception is throw if no mojo descriptor is found. As the maven-plugin is defined in core, the
-descriptor generator mojo is bound to generate-resources phase.
-But for annotations, the compiled classes are needed, so skip error</description>
- </parameter>
- <parameter>
- <name>project</name>
- <type>org.apache.maven.project.MavenProject</type>
- <required>true</required>
- <editable>false</editable>
- <description></description>
- </parameter>
- </parameters>
- <configuration>
- <dependencies implementation="java.util.Set" default-value="${project.artifacts}"/>
- <encoding implementation="java.lang.String" default-value="${project.build.sourceEncoding}">${encoding}</encoding>
- <local implementation="org.apache.maven.artifact.repository.ArtifactRepository" default-value="${localRepository}"/>
- <outputDirectory implementation="java.io.File" default-value="${project.build.outputDirectory}/META-INF/maven"/>
- <remoteRepos implementation="java.util.List" default-value="${project.remoteArtifactRepositories}"/>
- <skip implementation="boolean" default-value="false">${maven.plugin.skip}</skip>
- <skipDescriptor implementation="boolean" default-value="false"/>
- <skipErrorNoDescriptorsFound implementation="boolean" default-value="false">${maven.plugin.skipErrorNoDescriptorsFound}</skipErrorNoDescriptorsFound>
- <project implementation="org.apache.maven.project.MavenProject" default-value="${project}"/>
- </configuration>
- <requirements>
- <requirement>
- <role>org.apache.maven.tools.plugin.scanner.MojoScanner</role>
- <field-name>mojoScanner</field-name>
- </requirement>
- </requirements>
- </mojo>
- </mojos>
- <dependencies>
- <dependency>
- <groupId>org.apache.maven.plugin-tools</groupId>
- <artifactId>maven-plugin-tools-annotations</artifactId>
- <type>jar</type>
- <version>3.3</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven.plugin-tools</groupId>
- <artifactId>maven-plugin-annotations</artifactId>
- <type>jar</type>
- <version>3.3</version>
- </dependency>
- <dependency>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-component-annotations</artifactId>
- <type>jar</type>
- <version>1.5.5</version>
- </dependency>
- <dependency>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-container-default</artifactId>
- <type>jar</type>
- <version>1.0-alpha-9-stable-1</version>
- </dependency>
- <dependency>
- <groupId>classworlds</groupId>
- <artifactId>classworlds</artifactId>
- <type>jar</type>
- <version>1.1-alpha-2</version>
- </dependency>
- <dependency>
- <groupId>org.ow2.asm</groupId>
- <artifactId>asm</artifactId>
- <type>jar</type>
- <version>5.0.2</version>
- </dependency>
- <dependency>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-archiver</artifactId>
- <type>jar</type>
- <version>2.1.1</version>
- </dependency>
- <dependency>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-io</artifactId>
- <type>jar</type>
- <version>2.0.3</version>
- </dependency>
- <dependency>
- <groupId>com.thoughtworks.qdox</groupId>
- <artifactId>qdox</artifactId>
- <type>jar</type>
- <version>1.12.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven.doxia</groupId>
- <artifactId>doxia-sink-api</artifactId>
- <type>jar</type>
- <version>1.2</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven.doxia</groupId>
- <artifactId>doxia-logging-api</artifactId>
- <type>jar</type>
- <version>1.2</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven.doxia</groupId>
- <artifactId>doxia-site-renderer</artifactId>
- <type>jar</type>
- <version>1.2</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven.doxia</groupId>
- <artifactId>doxia-core</artifactId>
- <type>jar</type>
- <version>1.2</version>
- </dependency>
- <dependency>
- <groupId>xerces</groupId>
- <artifactId>xercesImpl</artifactId>
- <type>jar</type>
- <version>2.9.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpclient</artifactId>
- <type>jar</type>
- <version>4.0.2</version>
- </dependency>
- <dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpcore</artifactId>
- <type>jar</type>
- <version>4.0.1</version>
- </dependency>
- <dependency>
- <groupId>commons-codec</groupId>
- <artifactId>commons-codec</artifactId>
- <type>jar</type>
- <version>1.3</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven.doxia</groupId>
- <artifactId>doxia-decoration-model</artifactId>
- <type>jar</type>
- <version>1.2</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven.doxia</groupId>
- <artifactId>doxia-module-xhtml</artifactId>
- <type>jar</type>
- <version>1.2</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven.doxia</groupId>
- <artifactId>doxia-module-fml</artifactId>
- <type>jar</type>
- <version>1.2</version>
- </dependency>
- <dependency>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-i18n</artifactId>
- <type>jar</type>
- <version>1.0-beta-7</version>
- </dependency>
- <dependency>
- <groupId>commons-collections</groupId>
- <artifactId>commons-collections</artifactId>
- <type>jar</type>
- <version>3.2.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-plugin-api</artifactId>
- <type>jar</type>
- <version>2.2.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-model</artifactId>
- <type>jar</type>
- <version>2.2.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-repository-metadata</artifactId>
- <type>jar</type>
- <version>2.2.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-project</artifactId>
- <type>jar</type>
- <version>2.2.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-settings</artifactId>
- <type>jar</type>
- <version>2.2.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-profile</artifactId>
- <type>jar</type>
- <version>2.2.1</version>
- </dependency>
- <dependency>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-interpolation</artifactId>
- <type>jar</type>
- <version>1.11</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-plugin-descriptor</artifactId>
- <type>jar</type>
- <version>2.2.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-plugin-registry</artifactId>
- <type>jar</type>
- <version>2.2.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven.plugin-tools</groupId>
- <artifactId>maven-plugin-tools-api</artifactId>
- <type>jar</type>
- <version>3.3</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven.plugin-tools</groupId>
- <artifactId>maven-plugin-tools-generators</artifactId>
- <type>jar</type>
- <version>3.3</version>
- </dependency>
- <dependency>
- <groupId>org.ow2.asm</groupId>
- <artifactId>asm-commons</artifactId>
- <type>jar</type>
- <version>5.0.2</version>
- </dependency>
- <dependency>
- <groupId>org.ow2.asm</groupId>
- <artifactId>asm-tree</artifactId>
- <type>jar</type>
- <version>5.0.2</version>
- </dependency>
- <dependency>
- <groupId>net.sf.jtidy</groupId>
- <artifactId>jtidy</artifactId>
- <type>jar</type>
- <version>r938</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-artifact-manager</artifactId>
- <type>jar</type>
- <version>2.2.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven.wagon</groupId>
- <artifactId>wagon-provider-api</artifactId>
- <type>jar</type>
- <version>1.0-beta-6</version>
- </dependency>
- <dependency>
- <groupId>backport-util-concurrent</groupId>
- <artifactId>backport-util-concurrent</artifactId>
- <type>jar</type>
- <version>3.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-artifact</artifactId>
- <type>jar</type>
- <version>2.2.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven.reporting</groupId>
- <artifactId>maven-reporting-impl</artifactId>
- <type>jar</type>
- <version>2.1</version>
- </dependency>
- <dependency>
- <groupId>commons-validator</groupId>
- <artifactId>commons-validator</artifactId>
- <type>jar</type>
- <version>1.2.0</version>
- </dependency>
- <dependency>
- <groupId>commons-beanutils</groupId>
- <artifactId>commons-beanutils</artifactId>
- <type>jar</type>
- <version>1.7.0</version>
- </dependency>
- <dependency>
- <groupId>commons-digester</groupId>
- <artifactId>commons-digester</artifactId>
- <type>jar</type>
- <version>1.6</version>
- </dependency>
- <dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- <type>jar</type>
- <version>1.0.4</version>
- </dependency>
- <dependency>
- <groupId>oro</groupId>
- <artifactId>oro</artifactId>
- <type>jar</type>
- <version>2.0.8</version>
- </dependency>
- <dependency>
- <groupId>xml-apis</groupId>
- <artifactId>xml-apis</artifactId>
- <type>jar</type>
- <version>1.0.b2</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven.reporting</groupId>
- <artifactId>maven-reporting-api</artifactId>
- <type>jar</type>
- <version>3.0</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven.plugin-tools</groupId>
- <artifactId>maven-plugin-tools-java</artifactId>
- <type>jar</type>
- <version>3.3</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven.plugin-tools</groupId>
- <artifactId>maven-plugin-tools-beanshell</artifactId>
- <type>jar</type>
- <version>3.3</version>
- </dependency>
- <dependency>
- <groupId>org.beanshell</groupId>
- <artifactId>bsh</artifactId>
- <type>jar</type>
- <version>1.3.0</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven.plugin-tools</groupId>
- <artifactId>maven-plugin-tools-model</artifactId>
- <type>jar</type>
- <version>3.3</version>
- </dependency>
- <dependency>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-utils</artifactId>
- <type>jar</type>
- <version>3.0.15</version>
- </dependency>
- <dependency>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-velocity</artifactId>
- <type>jar</type>
- <version>1.1.8</version>
- </dependency>
- <dependency>
- <groupId>org.apache.velocity</groupId>
- <artifactId>velocity</artifactId>
- <type>jar</type>
- <version>1.7</version>
- </dependency>
- <dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- <type>jar</type>
- <version>2.4</version>
- </dependency>
- <dependency>
- <groupId>commons-httpclient</groupId>
- <artifactId>commons-httpclient</artifactId>
- <type>jar</type>
- <version>3.0</version>
- </dependency>
- </dependencies>
-</plugin>
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
index 7682eaa..d755df6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,57 +1,7 @@
#!/usr/bin/make -f
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/ant.mk
-
-PACKAGE := $(DEB_SOURCE_PACKAGE)
-VERSION := $(DEB_UPSTREAM_VERSION)
-JAVA_HOME := /usr/lib/jvm/default-java
-DEB_JARS := ant-nodeps maven-repo-helper
-DEB_ANT_BUILD_TARGET := package #javadoc
-DEB_ANT_BUILDFILE := debian/build.xml
-DEB_ANT_ARGS := -Dpackage=$(PACKAGE) -Dversion=$(VERSION)
-API_DOCS := target/api
-DEB_CLASSPATH := $(DEB_CLASSPATH):maven-plugin-tools-api/target/classes
+%:
+ dh $@ --buildsystem=maven
get-orig-source:
- -uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
-
-makebuilddir/lib$(PACKAGE)-java::
- install -d debian/tmp/maven-repo
- cp -rL /usr/share/maven-repo/* debian/tmp/maven-repo/
- -rm -rf debian/tmp/maven-repo/org/apache/maven/plugins/
- -rm -rf debian/tmp/maven-repo/org/apache/maven/plugin-tools/
- cat debian/maven-settings.xml | sed 's|BASEDIR|$(realpath $(DEB_BUILDDIR))|g' > debian/tmp/maven-settings.xml
-
-binary-post-install/lib$(PACKAGE)-java::
- mh_installpoms -plib$(PACKAGE)-java
- mh_installjar -plib$(PACKAGE)-java maven-script/maven-script-ant/pom.xml maven-script/maven-script-ant/target/maven-script-ant-$(VERSION).jar
- mh_installjar -plib$(PACKAGE)-java maven-script/maven-script-beanshell/pom.xml maven-script/maven-script-beanshell/target/maven-script-beanshell-$(VERSION).jar
- mh_installjar -plib$(PACKAGE)-java -l maven-plugin-plugin/pom.xml maven-plugin-plugin/target/maven-plugin-plugin-$(VERSION).jar
- mh_installjar -plib$(PACKAGE)-java -l maven-plugin-annotations/pom.xml maven-plugin-annotations/target/maven-plugin-annotations-$(VERSION).jar
- mh_installjar -plib$(PACKAGE)-java -l maven-plugin-tools-annotations/pom.xml maven-plugin-tools-annotations/target/maven-plugin-tools-annotations-$(VERSION).jar
- mh_installjar -plib$(PACKAGE)-java -l maven-plugin-tools-ant/pom.xml maven-plugin-tools-ant/target/maven-plugin-tools-ant-$(VERSION).jar
- mh_installjar -plib$(PACKAGE)-java -l maven-plugin-tools-api/pom.xml maven-plugin-tools-api/target/maven-plugin-tools-api-$(VERSION).jar
- mh_installjar -plib$(PACKAGE)-java -l maven-plugin-tools-model/pom.xml maven-plugin-tools-model/target/maven-plugin-tools-model-$(VERSION).jar
- mh_installjar -plib$(PACKAGE)-java -l maven-plugin-tools-beanshell/pom.xml maven-plugin-tools-beanshell/target/maven-plugin-tools-beanshell-$(VERSION).jar
- mh_installjar -plib$(PACKAGE)-java -l maven-plugin-tools-generators/pom.xml maven-plugin-tools-generators/target/maven-plugin-tools-generators-$(VERSION).jar
- mh_installjar -plib$(PACKAGE)-java -l maven-plugin-tools-java/pom.xml maven-plugin-tools-java/target/maven-plugin-tools-java-$(VERSION).jar
- mh_installjar -plib$(PACKAGE)-java -l maven-plugin-tools-javadoc/pom.xml maven-plugin-tools-javadoc/target/maven-plugin-tools-javadoc-$(VERSION).jar
-
-clean::
- mh_unpatchpoms -plib$(PACKAGE)-java
- mh_clean
- rm -Rf target
- rm -Rf maven-plugin-tools-api/target
- rm -Rf maven-plugin-tools-model/target
- rm -Rf maven-plugin-tools-java/target
- rm -Rf maven-plugin-tools-javadoc/target
- rm -Rf maven-plugin-tools-beanshell/target
- rm -Rf maven-plugin-tools-ant/target
- rm -Rf maven-plugin-tools-annotations/target
- rm -Rf maven-plugin-tools-generators/target
- rm -Rf maven-script/maven-script-ant/target
- rm -Rf maven-script/maven-script-beanshell/target
- rm -Rf maven-plugin-annotations/target
- rm -Rf maven-plugin-plugin/target
- find . | grep pom.xml.save | xargs rm -f
+ uscan --download-current-version --force-download --rename
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/maven-plugin-tools.git
More information about the pkg-java-commits
mailing list