Compare commits

...

766 Commits

Author SHA1 Message Date
Stephen Connolly 7fcab60985 Update 'Jenkinsfile'
stephenc2/maven-plugin-tools/master There was a failure building this commit Details
stephenc/maven-plugin-tools/master There was a failure building this commit Details
2017-10-27 16:25:15 +00:00
Stephen Connolly d682b25820 Add a Jenkinsfile
stephenc/maven-plugin-tools/master This commit looks good Details
2017-10-27 13:24:53 +01:00
Hervé Boutemy a7fc242de5 [MPLUGIN-327] switched to Git 2017-10-22 11:27:32 +02:00
Herve Boutemy 8d1ba27e95 fix IT configuration (and explain why)
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1809798 13f79535-47bb-0310-9956-ffa450edef68
2017-09-27 01:53:50 +00:00
Herve Boutemy f99796ee68 add Java 8 specific source code to check that compiler is configured with source/target 1.8
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1809797 13f79535-47bb-0310-9956-ffa450edef68
2017-09-27 01:12:06 +00:00
Herve Boutemy a3371bc6fb upgrade m-compiler-p to a version that supports maven.compiler.source/target properties
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1809794 13f79535-47bb-0310-9956-ffa450edef68
2017-09-27 00:55:18 +00:00
Herve Boutemy e564b8d54d upgrade maven-invoker-plugin to latest
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1809793 13f79535-47bb-0310-9956-ffa450edef68
2017-09-27 00:35:21 +00:00
Robert Scholte d38ef497bc [MPLUGIN-324] javadoc generated by helpmojo goal of maven-plugin-plugin produces build failures
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1806713 13f79535-47bb-0310-9956-ffa450edef68
2017-08-30 17:14:24 +00:00
Christian Schulte 92f5eaaa3d o Updated to stop suppressing exceptions when closing resources fails.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1784346 13f79535-47bb-0310-9956-ffa450edef68
2017-02-25 04:14:32 +00:00
Christian Schulte d484f85160 o Updated to make the test work when checking out into a directory like "/tmp/Spaces & Special Char/plugin-tools".
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1784345 13f79535-47bb-0310-9956-ffa450edef68
2017-02-25 04:12:14 +00:00
Robert Scholte 04684f0fc3 [MPLUGIN-321] improve documentation on maven-plugin-annotations telling that optional=true is sufficient
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1778915 13f79535-47bb-0310-9956-ffa450edef68
2017-01-15 13:21:08 +00:00
Guillaume Boué e44bb78aff [MPLUGIN-290] Version 3.4 fails to parse enums with Regex patterns
Already fixed by the upgrade of QDox to 2.0-M5 done in r1778362. Test added to prevent regressions.

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1778912 13f79535-47bb-0310-9956-ffa450edef68
2017-01-15 13:08:04 +00:00
Guillaume Boué 1f70e4ea47 Updating the version from 3.6-SNAPSHOT to 3.5.1-SNAPSHOT as per http://mail-archives.apache.org/mod_mbox/maven-dev/201701.mbox/%3Cop.ytya62tukdkhrr%40desktop-2khsk44%3E.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1778908 13f79535-47bb-0310-9956-ffa450edef68
2017-01-15 12:19:50 +00:00
Herve Boutemy 3ec7f6f61d [MPLUGIN-319] fixed compilation issue (no generics)
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1778778 13f79535-47bb-0310-9956-ffa450edef68
2017-01-14 14:58:12 +00:00
Robert Scholte bcf94564ba [MPLUGIN-319] @since values ignored in report
New strategy where we don't need a parameter anymore (who would change it?)


git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1778770 13f79535-47bb-0310-9956-ffa450edef68
2017-01-14 13:39:47 +00:00
Herve Boutemy 6fda7882f1 [MPLUGIN-319] fixed IT since parameter was renamed
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1778762 13f79535-47bb-0310-9956-ffa450edef68
2017-01-14 12:27:16 +00:00
Herve Boutemy e430efe682 [MPLUGIN-319] renamed parameter, improved documentation, and removed readonly
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1778722 13f79535-47bb-0310-9956-ffa450edef68
2017-01-14 05:01:35 +00:00
Herve Boutemy e598cdfd30 [MPLUGIN-319] improved javadoc
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1778721 13f79535-47bb-0310-9956-ffa450edef68
2017-01-14 04:31:02 +00:00
Herve Boutemy 053932347f [MPLUGIN-319] added @since
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1778719 13f79535-47bb-0310-9956-ffa450edef68
2017-01-14 04:10:31 +00:00
Herve Boutemy 81eb53a1c5 [MPLUGIN-319] added references to MNG-6109 bug
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1778718 13f79535-47bb-0310-9956-ffa450edef68
2017-01-14 03:54:45 +00:00
Guillaume Boué 49349dee7a [MPLUGIN-314] invalid requirement role generated in plugin.xml
[MPLUGIN-320] JavaJavadocMojoDescriptorExtractor fails with Java 8 lambdas.

Updating QDox to 2.0-M5, containing the fixes for both of those issues (see QDOX-13 and QDOX-15).

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1778362 13f79535-47bb-0310-9956-ffa450edef68
2017-01-12 00:07:08 +00:00
Guillaume Boué f50e9ebb58 Updating the unit tests so that they can be run successfully directly inside Eclipse: this means fixing the location of the basedir by extending from PlexusTestCase and using the getBasedir() method.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1778361 13f79535-47bb-0310-9956-ffa450edef68
2017-01-12 00:06:50 +00:00
Guillaume Boué 117eaf66a5 [MPLUGIN-319] @since values ignored in report
The IT relies on reading the generated HTML site for the test mojo in English, but the report is written in the default locale of the JVM. As such, it fails when run on machines with a locale different than English. Therefore, the locale needs to be forced to English in the MAVEN_OPTS.

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1778360 13f79535-47bb-0310-9956-ffa450edef68
2017-01-12 00:06:37 +00:00
Robert Scholte 365f900755 [MPLUGIN-315] improve mojo description: show parameter name as <parameter>
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1770579 13f79535-47bb-0310-9956-ffa450edef68
2016-11-20 18:51:40 +00:00
Robert Scholte d49dbb8b79 [MPLUGIN-319] @since values ignored in report
match IT folder with issue


git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1770563 13f79535-47bb-0310-9956-ffa450edef68
2016-11-20 14:45:37 +00:00
Robert Scholte 89a82c2963 [MPLUGIN-319] @since values ignored in report
Only use plugin.xml for M3.4.0 and above due to MNG-6109

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1770562 13f79535-47bb-0310-9956-ffa450edef68
2016-11-20 14:42:29 +00:00
Robert Scholte f223b01735 module-info must be excluded
use m-plugin-p 3.5 to build plugin, since it supports java9

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1769688 13f79535-47bb-0310-9956-ffa450edef68
2016-11-14 20:46:57 +00:00
Robert Scholte 2767d04ccb Fix Maven logo
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1758298 13f79535-47bb-0310-9956-ffa450edef68
2016-08-29 20:35:38 +00:00
Robert Scholte 5e063a0907 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1757928 13f79535-47bb-0310-9956-ffa450edef68
2016-08-26 21:19:10 +00:00
Robert Scholte 4bd90ea35f [maven-release-plugin] prepare release maven-plugin-tools-3.5
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1757926 13f79535-47bb-0310-9956-ffa450edef68
2016-08-26 21:18:52 +00:00
Robert Scholte 4ac5b187dc Upgrade skins which are compatible with maven-site-plugin 3.5
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1757925 13f79535-47bb-0310-9956-ffa450edef68
2016-08-26 21:17:57 +00:00
Robert Scholte 3aaa8d275c Rollback 3.5 release
Add extra-enforcer-rules 1.0-beta-5 to be able to generate docs

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1757916 13f79535-47bb-0310-9956-ffa450edef68
2016-08-26 20:07:12 +00:00
Robert Scholte e0fe0f017f [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1757912 13f79535-47bb-0310-9956-ffa450edef68
2016-08-26 19:39:16 +00:00
Robert Scholte 176760d3f9 [maven-release-plugin] prepare release maven-plugin-tools-3.5
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1757910 13f79535-47bb-0310-9956-ffa450edef68
2016-08-26 19:38:58 +00:00
Robert Scholte 197e306311 [MPLUGIN-312] maven-plugin-tools-annotations visitors fail scanning java8 annotations
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1757909 13f79535-47bb-0310-9956-ffa450edef68
2016-08-26 19:31:15 +00:00
Robert Scholte 79490bad16 Upgrade EasyMock and migrate tests
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1757908 13f79535-47bb-0310-9956-ffa450edef68
2016-08-26 19:30:10 +00:00
Robert Scholte 52c7bcc7c0 Upgrade QDox to 2.0-M4
Introduce jdk9 profile with ASM 6.0_ALPHA

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1757907 13f79535-47bb-0310-9956-ffa450edef68
2016-08-26 19:27:56 +00:00
Robert Scholte 15180d93b0 [MPLUGIN-292] HelpMojo contains malformed HTML which causes javadoc to fail under JDK 8
Apply proper html escaping

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1756391 13f79535-47bb-0310-9956-ffa450edef68
2016-08-15 14:48:09 +00:00
Robert Scholte c20a5f300b [MPLUGIN-275] Move LifecycleMapping and ArtifactHandler from maven-core to target packaging plugin
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1756248 13f79535-47bb-0310-9956-ffa450edef68
2016-08-13 09:12:25 +00:00
Robert Scholte f0d7f725a4 [MPLUGIN-299] Help mojo cannot display goal details
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1756221 13f79535-47bb-0310-9956-ffa450edef68
2016-08-12 20:18:48 +00:00
Robert Scholte 629dd38f3d Ensure native EOL
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1756059 13f79535-47bb-0310-9956-ffa450edef68
2016-08-11 22:15:35 +00:00
Robert Scholte ec99a5982d Integration tests now reuse source/target values project, otherwise some tests use 1.5 as default which would make them fail when using JDK9
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1756058 13f79535-47bb-0310-9956-ffa450edef68
2016-08-11 22:13:46 +00:00
Robert Scholte 6992f7719b [MPLUGIN-310] PluginReport should use generated plugin.xml by default
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1756054 13f79535-47bb-0310-9956-ffa450edef68
2016-08-11 21:47:06 +00:00
Robert Scholte 9963ca473d Use property instead of the deprecated expression in test to prevent warnings in logging
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1756051 13f79535-47bb-0310-9956-ffa450edef68
2016-08-11 21:36:54 +00:00
Robert Scholte dacb6e6b6d javadoc-maven-plugin 2.10.4 released, so don't use its SNAPSHOT anymore
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1756042 13f79535-47bb-0310-9956-ffa450edef68
2016-08-11 20:16:12 +00:00
Robert Scholte 9a7fd1e70d [MPLUGIN-305] MojoAnnotationsScanner should have better control over dependency scanning
Improve javadoc, thanks to Paul Benedict

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1756035 13f79535-47bb-0310-9956-ffa450edef68
2016-08-11 19:43:10 +00:00
Robert Scholte 34920f0a2c [MPLUGIN-309] Upgrade to maven-parent-30
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1756034 13f79535-47bb-0310-9956-ffa450edef68
2016-08-11 19:36:18 +00:00
Robert Scholte 7c58d51900 [MPLUGIN-305] MojoAnnotationsScanner should have better control over dependency scanning
Improve documentation

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1756022 13f79535-47bb-0310-9956-ffa450edef68
2016-08-11 18:07:18 +00:00
Robert Scholte 372526b052 [MPLUGIN-305] MojoAnnotationsScanner should have better control over dependency scanning
Introduce parameter mojoDependencies 

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1754998 13f79535-47bb-0310-9956-ffa450edef68
2016-08-02 19:35:27 +00:00
Guillaume Boué 22fcf70b89 [MPLUGIN-307] The "alias" field on the annotation "@Parameter" is not considered for goal "plugin:report"
PluginXdocGenerator didn't include the alias for parameters in the report. Added to the end of the bullet list.

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1754050 13f79535-47bb-0310-9956-ffa450edef68
2016-07-25 21:19:22 +00:00
Robert Scholte a44d4f1719 [MPLUGIN-304] MojoAnnotationsScanner should ignore special classes
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1753419 13f79535-47bb-0310-9956-ffa450edef68
2016-07-19 19:27:24 +00:00
Michael Osipov 7dd7d23ebf [MPLUGIN-295] Upgrade Maven Invoker Plugin version to 1.10
Submitted-by: Grzegorz Slowikowski

This closes #8

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1745865 13f79535-47bb-0310-9956-ffa450edef68
2016-05-28 10:48:21 +00:00
Karl Heinz Marbaise 250f72677d [MPLUGIN-301] Text improvement.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1744886 13f79535-47bb-0310-9956-ffa450edef68
2016-05-21 10:11:58 +00:00
Robert Scholte 8fd7093a5c [MPLUGIN-300] Prepare taglets for Java9
put tools.jar dependency in pre-java9 profile

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1744413 13f79535-47bb-0310-9956-ffa450edef68
2016-05-18 14:33:45 +00:00
Herve Boutemy 1525c61b93 updated Jira url
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1743929 13f79535-47bb-0310-9956-ffa450edef68
2016-05-15 17:53:39 +00:00
Herve Boutemy 51a8d562ad updated Jira url
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1743896 13f79535-47bb-0310-9956-ffa450edef68
2016-05-15 09:15:59 +00:00
Christian Schulte 7b952b87a3 [MPLUGIN-296] java.lang.ClassNotFoundException: org.apache.maven.plugins.annotations.Execute
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1728736 13f79535-47bb-0310-9956-ffa450edef68
2016-02-05 21:55:25 +00:00
Herve Boutemy 547e3868c7 moved Jira from Codehaus to Apache
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1671462 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 00:54:26 +00:00
Herve Boutemy 257e61a72e changed svnpubsub url from /content to /components
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1670219 13f79535-47bb-0310-9956-ffa450edef68
2015-03-30 23:38:27 +00:00
Dennis Lundberg e982dbf1c6 Ignore .idea directory.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1667949 13f79535-47bb-0310-9956-ffa450edef68
2015-03-20 08:00:21 +00:00
Dennis Lundberg 6edd624afc Use the correct syntax for defaultValue attribute when warning about deprecated @Component usage.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1667948 13f79535-47bb-0310-9956-ffa450edef68
2015-03-20 07:58:44 +00:00
Herve Boutemy cc006dbd8e improved message: mojo source files are read, not only metadata
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1659900 13f79535-47bb-0310-9956-ffa450edef68
2015-02-15 08:56:06 +00:00
Herve Boutemy 0fec67e0eb [MPLUGIN-289] improved output
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1659897 13f79535-47bb-0310-9956-ffa450edef68
2015-02-15 08:50:34 +00:00
Herve Boutemy 4b16f1d883 [MPLUGIN-288] forgot javadoc config
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1649910 13f79535-47bb-0310-9956-ffa450edef68
2015-01-06 18:57:50 +00:00
Herve Boutemy 267e446889 [MPLUGIN-288] refactoring: changed plugin-tools' model package
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1649908 13f79535-47bb-0310-9956-ffa450edef68
2015-01-06 18:56:48 +00:00
Herve Boutemy e3b6db6b40 fixed links to maven-script sub-modules
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1649441 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 22:28:34 +00:00
Herve Boutemy 45a627148b [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648956 13f79535-47bb-0310-9956-ffa450edef68
2015-01-01 21:57:27 +00:00
Herve Boutemy 4eaf2678a2 [maven-release-plugin] prepare release maven-plugin-tools-3.4
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648954 13f79535-47bb-0310-9956-ffa450edef68
2015-01-01 21:57:10 +00:00
Herve Boutemy 8e51a50e0b by default, only result of extraction is useful: turn previous message to debug only
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648953 13f79535-47bb-0310-9956-ffa450edef68
2015-01-01 21:52:28 +00:00
Herve Boutemy bfc52d95df fixed links
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648952 13f79535-47bb-0310-9956-ffa450edef68
2015-01-01 21:44:15 +00:00
Herve Boutemy 5ab96a0efb fixed javadoc issues that caused warnings
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648942 13f79535-47bb-0310-9956-ffa450edef68
2015-01-01 21:11:43 +00:00
Herve Boutemy e8dfae0cbc back to 3.4-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648936 13f79535-47bb-0310-9956-ffa450edef68
2015-01-01 20:35:28 +00:00
Herve Boutemy b622b0198e [MPLUGIN-287] refactoring: updated documentation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648933 13f79535-47bb-0310-9956-ffa450edef68
2015-01-01 20:11:33 +00:00
Herve Boutemy 409d56c504 [MPLUGIN-287] refactoring: consistent package name for extractor and javadoc
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648914 13f79535-47bb-0310-9956-ffa450edef68
2015-01-01 17:43:20 +00:00
Herve Boutemy 7fdabadb3c added javadoc groups definition to improve aggregate output and show code structure
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648856 13f79535-47bb-0310-9956-ffa450edef68
2015-01-01 15:33:25 +00:00
Robert Scholte 75987012b1 Move maven-plugin-plugin to end, so all reactor projects are ready to be installed by the maven-invoker-plugin for the integration-tests
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648767 13f79535-47bb-0310-9956-ffa450edef68
2014-12-31 19:07:32 +00:00
Herve Boutemy 7a2ed415cd [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648759 13f79535-47bb-0310-9956-ffa450edef68
2014-12-31 17:56:48 +00:00
Herve Boutemy 732b82b2da [maven-release-plugin] prepare release maven-plugin-tools-3.4
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648757 13f79535-47bb-0310-9956-ffa450edef68
2014-12-31 17:56:31 +00:00
Herve Boutemy 3b54fdbc28 ok, release plugin refuses a property here without trying to update
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648755 13f79535-47bb-0310-9956-ffa450edef68
2014-12-31 17:55:55 +00:00
Herve Boutemy 4167674992 ok, release plugin refuses any other dependency version
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648754 13f79535-47bb-0310-9956-ffa450edef68
2014-12-31 17:52:12 +00:00
Herve Boutemy 7500654003 trying with plugin-tools version property from parent pom: perhaps release plugin won't interfere here
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648753 13f79535-47bb-0310-9956-ffa450edef68
2014-12-31 17:48:13 +00:00
Herve Boutemy 3394354af1 changed annotations version since release plugin doesn't accept any other
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648744 13f79535-47bb-0310-9956-ffa450edef68
2014-12-31 17:23:31 +00:00
Robert Scholte 7426d551af [MPLUGIN-272] Descriptor goal fail with java 8 and interface with default method: upgrade QDox
Upgraded QDox from 1.12.1 to 2.0-M3

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648726 13f79535-47bb-0310-9956-ffa450edef68
2014-12-31 15:59:28 +00:00
Robert Scholte 35ca9b5a80 Avoid setting systemVariables in pom, otherwise running tests from IDE generates a META-INF -folder in the module-root. This pollutes the project structure and will cause a rat-exception.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648711 13f79535-47bb-0310-9956-ffa450edef68
2014-12-31 14:49:33 +00:00
Herve Boutemy 0f464acc12 removed old dependency in profile which seems unused now...
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648708 13f79535-47bb-0310-9956-ffa450edef68
2014-12-31 14:44:34 +00:00
Herve Boutemy fa0a5fc105 annotations extractor marked runtime, but need annotations as provided and with previous release version to compile current sources
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648696 13f79535-47bb-0310-9956-ffa450edef68
2014-12-31 14:03:05 +00:00
Herve Boutemy 99359ef1b6 improved documentation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648270 13f79535-47bb-0310-9956-ffa450edef68
2014-12-28 23:11:42 +00:00
Herve Boutemy b0fd53aaa7 [MPLUGIN-285] changed 'java' extractor id to 'java-javadoc' to match 'java-annotations'
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648268 13f79535-47bb-0310-9956-ffa450edef68
2014-12-28 22:53:03 +00:00
Herve Boutemy d988e0b43c changed INFO message: extractors ids are not really languages
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648262 13f79535-47bb-0310-9956-ffa450edef68
2014-12-28 22:16:31 +00:00
Robert Scholte 1089b54c3f Fix dependencies. tests-classified jars depend on junit, which was pulled in by old QDox versions. This makes the project valid again, although I'd prefer NOT to depend on tests-classified jars.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648240 13f79535-47bb-0310-9956-ffa450edef68
2014-12-28 18:28:50 +00:00
Herve Boutemy 6984e9d27f [MPLUGIN-284] don't try to extract mojos from Beanshell by default
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648237 13f79535-47bb-0310-9956-ffa450edef68
2014-12-28 17:52:08 +00:00
Herve Boutemy 5af1f627a8 reordered default extractors
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1648234 13f79535-47bb-0310-9956-ffa450edef68
2014-12-28 17:41:43 +00:00
Herve Boutemy de5875e0af improved java version discovery algorithm with ideas taken from MPIR
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1647925 13f79535-47bb-0310-9956-ffa450edef68
2014-12-25 23:22:56 +00:00
Karl Heinz Marbaise 9e1a66d448 [MPLUGIN-283] Upgrade plexus-utils to 3.0.20
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1647381 13f79535-47bb-0310-9956-ffa450edef68
2014-12-22 19:21:10 +00:00
Karl Heinz Marbaise b13ad1288e [MPLUGIN-281] Removed dependency plexus-container-default:1.0-alpha-9-stable-1
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1647380 13f79535-47bb-0310-9956-ffa450edef68
2014-12-22 19:07:05 +00:00
Herve Boutemy bdb03e597c updated maven-reporting-impl and Doxia versions
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1645807 13f79535-47bb-0310-9956-ffa450edef68
2014-12-16 01:01:11 +00:00
Herve Boutemy 1f029f5fb1 [MPLUGIN-280] removed obsolete xdoc goal since it was superceeded by report goal/report
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1645484 13f79535-47bb-0310-9956-ffa450edef68
2014-12-14 18:23:20 +00:00
Herve Boutemy 5c7faf1b8e removed dead code
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1645470 13f79535-47bb-0310-9956-ffa450edef68
2014-12-14 17:05:24 +00:00
Herve Boutemy 599b468d0d [MPLUGIN-279] added IT with quite complete scenarios and fixed algorithm
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1645468 13f79535-47bb-0310-9956-ffa450edef68
2014-12-14 17:02:53 +00:00
Herve Boutemy a1b3723559 code organization
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1645462 13f79535-47bb-0310-9956-ffa450edef68
2014-12-14 15:41:22 +00:00
Herve Boutemy 66444b15df updated parent pom and fixed errors reported by Checkstyle
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1642372 13f79535-47bb-0310-9956-ffa450edef68
2014-11-28 22:41:25 +00:00
Herve Boutemy 311aa09218 default value
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1637765 13f79535-47bb-0310-9956-ffa450edef68
2014-11-09 23:58:49 +00:00
Herve Boutemy 58a8f57588 [MPLUGIN-279] use default properties when no configuration in m-compiler-p
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1637762 13f79535-47bb-0310-9956-ffa450edef68
2014-11-09 23:26:29 +00:00
Herve Boutemy f516f754c5 code simplification
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1637747 13f79535-47bb-0310-9956-ffa450edef68
2014-11-09 21:26:03 +00:00
Herve Boutemy f10b51e352 avoid 'Default target for maven-compiler-plugin version 3.1' info in plugin-report
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1637746 13f79535-47bb-0310-9956-ffa450edef68
2014-11-09 21:25:52 +00:00
Herve Boutemy 936f421eab [MPLUGIN-278] updated Maven prerequisite to 2.2.1 (parent pom was already updated, but not the plugin...)
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1637736 13f79535-47bb-0310-9956-ffa450edef68
2014-11-09 21:09:48 +00:00
Herve Boutemy 7bc6873931 [MPLUGIN-274] fixed style errors in generated HelpMojo source
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1628556 13f79535-47bb-0310-9956-ffa450edef68
2014-09-30 21:45:16 +00:00
Dennis Lundberg 045ab59621 Add an exclude for Rat.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1626498 13f79535-47bb-0310-9956-ffa450edef68
2014-09-20 21:28:39 +00:00
Dennis Lundberg 1190048b92 [MPLUGIN-270] Deprecation of classical Maven objects as components is broken when using Javadoc tags
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1611013 13f79535-47bb-0310-9956-ffa450edef68
2014-07-16 13:53:11 +00:00
Dennis Lundberg f8c4b373e7 [MPLUGIN-266] Incorrect warning comment about deprecated @component usage for maven objects
Additional tweaks to the warning message

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1610976 13f79535-47bb-0310-9956-ffa450edef68
2014-07-16 12:17:54 +00:00
Dennis Lundberg 00288684b1 [MPLUGIN-266] Incorrect warning comment about deprecated @component usage for maven objects
Additional tweaks to the warning message

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1610973 13f79535-47bb-0310-9956-ffa450edef68
2014-07-16 11:55:05 +00:00
Herve Boutemy 4dc8598822 [MNGSITE-152] added license and download links to plugin page
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1605476 13f79535-47bb-0310-9956-ffa450edef68
2014-06-25 16:21:47 +00:00
Herve Boutemy e1fb52356f [MNGSITE-152] added license and download links
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1605196 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 21:08:10 +00:00
Herve Boutemy 2aa4a2c9cd [MPLUGIN-267] added Maven 2 specific configuration inside a profile
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1601007 13f79535-47bb-0310-9956-ffa450edef68
2014-06-06 20:48:48 +00:00
Herve Boutemy e0b306c105 [MPLUGIN-267] added Maven 2 specific configuration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1599392 13f79535-47bb-0310-9956-ffa450edef68
2014-06-02 23:36:55 +00:00
Herve Boutemy 3bb1fbf154 [MPLUGIN-267] document how to change desriptor phase instead of running it twice with skipErrorNoDescriptorsFound
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1599273 13f79535-47bb-0310-9956-ffa450edef68
2014-06-02 17:17:46 +00:00
Herve Boutemy f36105f19c try to make the IT pass on Windows
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1599269 13f79535-47bb-0310-9956-ffa450edef68
2014-06-02 17:07:07 +00:00
Herve Boutemy a2602cf139 avoid @Component for Maven objects: replaced with normal @Parameters
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1599157 13f79535-47bb-0310-9956-ffa450edef68
2014-06-02 10:18:47 +00:00
Herve Boutemy f0a8bb4b3a use latest maven-scm-publish-plugin
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1599152 13f79535-47bb-0310-9956-ffa450edef68
2014-06-02 10:10:49 +00:00
Herve Boutemy 4e00ec6fc3 fixed typo
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1599151 13f79535-47bb-0310-9956-ffa450edef68
2014-06-02 10:08:42 +00:00
Tony Chemit f224aa88c6 [MPLUGIN-266] Incorrect warning comment about deprecated @component usage for maven objects
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1599146 13f79535-47bb-0310-9956-ffa450edef68
2014-06-02 09:54:18 +00:00
Herve Boutemy bb948bfbc8 [MPLUGIN-238] avoid HelpMojo failure when using java-annotations without any configuration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1599050 13f79535-47bb-0310-9956-ffa450edef68
2014-06-01 21:20:30 +00:00
Herve Boutemy 660e74e052 [MPLUGIN-238] improved Usage documentation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1595059 13f79535-47bb-0310-9956-ffa450edef68
2014-05-15 21:35:46 +00:00
Herve Boutemy b0b5558bc0 disabled this IT for Maven 2 since it requires a mvn option which has been introduced in Maven 3
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1593683 13f79535-47bb-0310-9956-ffa450edef68
2014-05-10 10:58:07 +00:00
Herve Boutemy ebf0b9465e [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1592272 13f79535-47bb-0310-9956-ffa450edef68
2014-05-03 19:24:33 +00:00
Herve Boutemy 11054a8bce [maven-release-plugin] prepare release maven-plugin-tools-3.3
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1592270 13f79535-47bb-0310-9956-ffa450edef68
2014-05-03 19:24:23 +00:00
Herve Boutemy e2504fa821 use autoVersionSubmodules
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1592268 13f79535-47bb-0310-9956-ffa450edef68
2014-05-03 19:23:22 +00:00
Herve Boutemy e1e487489f use "Maven Plugin Tools Java 5 Annotations" instead of "Maven Plugin Java 5 Annotations"
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1592266 13f79535-47bb-0310-9956-ffa450edef68
2014-05-03 19:13:35 +00:00
Herve Boutemy daf8877b3d code simplification
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1592265 13f79535-47bb-0310-9956-ffa450edef68
2014-05-03 19:05:48 +00:00
Herve Boutemy 63a11167e0 limit debug output: display found class only when annotation is found
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1592262 13f79535-47bb-0310-9956-ffa450edef68
2014-05-03 18:51:13 +00:00
Herve Boutemy 32a8740e72 [MPLUGIN-260] added IT for JDK 8
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1592249 13f79535-47bb-0310-9956-ffa450edef68
2014-05-03 16:57:04 +00:00
Herve Boutemy c6e68e8d48 fixed errors reported by Checkstyle
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1592247 13f79535-47bb-0310-9956-ffa450edef68
2014-05-03 16:38:36 +00:00
Herve Boutemy 2bcc4fc6e9 improved names
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1592241 13f79535-47bb-0310-9956-ffa450edef68
2014-05-03 16:27:12 +00:00
Herve Boutemy ca9c92eaab improved javadoc
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1592237 13f79535-47bb-0310-9956-ffa450edef68
2014-05-03 16:19:49 +00:00
Herve Boutemy c0ba1194b1 [MPLUGIN-265] removed deprecated API since introduction of PluginToolsRequest
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1592229 13f79535-47bb-0310-9956-ffa450edef68
2014-05-03 15:50:05 +00:00
Herve Boutemy 37b87d5ef5 [MPLUGIN-259] added @Parameter name="xxx" to set bean property name different from class' field
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1592217 13f79535-47bb-0310-9956-ffa450edef68
2014-05-03 15:20:29 +00:00
Herve Boutemy 10d0a99bec code simplification
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1592004 13f79535-47bb-0310-9956-ffa450edef68
2014-05-02 18:39:11 +00:00
Herve Boutemy a6eab7460b code simplification
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1591999 13f79535-47bb-0310-9956-ffa450edef68
2014-05-02 18:29:41 +00:00
Herve Boutemy ba103c598f removed mailing lists configuration since they are inherited from parent
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1590816 13f79535-47bb-0310-9956-ffa450edef68
2014-04-28 21:46:20 +00:00
Herve Boutemy 5d6415745b added contributor
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1590815 13f79535-47bb-0310-9956-ffa450edef68
2014-04-28 21:44:54 +00:00
Herve Boutemy c339131883 removed too verbose debug log items
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1590814 13f79535-47bb-0310-9956-ffa450edef68
2014-04-28 21:42:54 +00:00
Herve Boutemy b8b9a466aa [MPLUGIN-242] reverted unit test in r1590803 since it breaks actual maven-plugin-plugin build which is using plugin-tools 3.2 (affected by the bug)
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1590812 13f79535-47bb-0310-9956-ffa450edef68
2014-04-28 21:37:03 +00:00
Herve Boutemy 6d936298d3 [MPLUGIN-242] NullPointerException in MojoClassVisitor.visit() fix
Submitted by: Mikolaj Izdebski

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1590811 13f79535-47bb-0310-9956-ffa450edef68
2014-04-28 21:34:44 +00:00
Herve Boutemy 62561197e8 [MPLUGIN-242] NullPointerException in MojoClassVisitor.visit() unit test
Submitted by: Mikolaj Izdebski

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1590803 13f79535-47bb-0310-9956-ffa450edef68
2014-04-28 21:18:04 +00:00
Herve Boutemy 58f5506c59 added explanations before magic snippet
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1590404 13f79535-47bb-0310-9956-ffa450edef68
2014-04-27 15:26:43 +00:00
Herve Boutemy f8a946df81 [MPLUGIN-257] deprecated classical Maven objects as components: replaced with code snippets in documentation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1590401 13f79535-47bb-0310-9956-ffa450edef68
2014-04-27 15:00:54 +00:00
Herve Boutemy 4db874b18f show ${project.basedir} instead of ${basedir}
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1590398 13f79535-47bb-0310-9956-ffa450edef68
2014-04-27 14:14:41 +00:00
Herve Boutemy df4ae65314 need escape
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1590397 13f79535-47bb-0310-9956-ffa450edef68
2014-04-27 14:00:54 +00:00
Herve Boutemy 8f0a5ee56a [MPLUGIN-262] fixed mojo deprecation too
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1590392 13f79535-47bb-0310-9956-ffa450edef68
2014-04-27 13:38:36 +00:00
Herve Boutemy 4f4c32b9dc added contributor
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1590391 13f79535-47bb-0310-9956-ffa450edef68
2014-04-27 13:33:10 +00:00
Herve Boutemy 1de6bf4e70 [MPLUGIN-262] generated HelpMojo doesn't display default values and user properties.
Submitted by: Slawomir Jaranowski
applied with format fixes and check of expected output

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1590390 13f79535-47bb-0310-9956-ffa450edef68
2014-04-27 13:32:42 +00:00
Herve Boutemy a28ba3d065 [MPLUGIN-262] prepare more precise checks of help output
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1590389 13f79535-47bb-0310-9956-ffa450edef68
2014-04-27 13:17:05 +00:00
Herve Boutemy 166e0f7215 [MPLUGIN-262] prepare more precise checks of help output
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1590388 13f79535-47bb-0310-9956-ffa450edef68
2014-04-27 13:11:40 +00:00
Herve Boutemy 837f681ee8 updated parent pom
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1590365 13f79535-47bb-0310-9956-ffa450edef68
2014-04-27 09:23:37 +00:00
Olivier Lamy 52446a83ea add contributor
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1589345 13f79535-47bb-0310-9956-ffa450edef68
2014-04-23 06:13:51 +00:00
Olivier Lamy bfcfcaef95 asm 5.0.2
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1589344 13f79535-47bb-0310-9956-ffa450edef68
2014-04-23 06:12:53 +00:00
Olivier Lamy 485b860846 [MPLUGIN-260] Plugin that uses annotations in Java 8 source can't generate descriptor
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1589343 13f79535-47bb-0310-9956-ffa450edef68
2014-04-23 06:12:48 +00:00
Olivier Lamy e020e993df more in .gitignore
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1589342 13f79535-47bb-0310-9956-ffa450edef68
2014-04-23 06:12:38 +00:00
Robert Scholte 3e30bae1a5 [MPLUGIN-191] plugin-info.html is not created
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1588642 13f79535-47bb-0310-9956-ffa450edef68
2014-04-19 11:31:57 +00:00
Igor Fedorenko 191200d6f4 MPLUGIN-264 made supported packaging types configurable
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1588273 13f79535-47bb-0310-9956-ffa450edef68
2014-04-17 15:06:59 +00:00
Dennis Lundberg feedd25653 Specify version for maven-plugin-plugin in reporting.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1585585 13f79535-47bb-0310-9956-ffa450edef68
2014-04-07 21:08:41 +00:00
Dennis Lundberg 6a8cd85aad Add missing license header.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1585584 13f79535-47bb-0310-9956-ffa450edef68
2014-04-07 21:04:43 +00:00
Dennis Lundberg 0d809ca731 Add missing license header.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1585580 13f79535-47bb-0310-9956-ffa450edef68
2014-04-07 20:30:40 +00:00
Dennis Lundberg 8c4c09bf1b Add missing license headers.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1585579 13f79535-47bb-0310-9956-ffa450edef68
2014-04-07 20:30:05 +00:00
Herve Boutemy 266d573247 [MPLUGIN-255] Generated HelpMojo doesn't close resource stream
Submitted by: Juan Hernandez
applied with formatting fix

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1578572 13f79535-47bb-0310-9956-ffa450edef68
2014-03-17 21:07:49 +00:00
Herve Boutemy abd5f5966a [MPLUGIN-261] sort goals in generated plugin.xml
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1575558 13f79535-47bb-0310-9956-ffa450edef68
2014-03-08 16:32:05 +00:00
Robert Scholte 60184b7dbd [MPLUGIN-258] IT failures with Jdk 8 (EA)
upgrade m-invopker-p to 1.8

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1565725 13f79535-47bb-0310-9956-ffa450edef68
2014-02-07 16:52:28 +00:00
Robert Scholte dfd7b1b1ae Fix ITs for M3.1
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1565715 13f79535-47bb-0310-9956-ffa450edef68
2014-02-07 16:36:58 +00:00
Herve Boutemy c163b34e7e Update the groupId for beanshell
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1535869 13f79535-47bb-0310-9956-ffa450edef68
2013-10-25 20:56:46 +00:00
Dennis Lundberg a9f44394d6 Ignore IDEA-files.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1512220 13f79535-47bb-0310-9956-ffa450edef68
2013-08-09 09:34:30 +00:00
Herve Boutemy 665f29590a Tony is now a committer
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1508590 13f79535-47bb-0310-9956-ffa450edef68
2013-07-30 19:42:42 +00:00
Herve Boutemy 55423bbe43 added contributor
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1508588 13f79535-47bb-0310-9956-ffa450edef68
2013-07-30 19:42:12 +00:00
Herve Boutemy d7e27e6bd0 remove JDK 8 javadoc warnings
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1508587 13f79535-47bb-0310-9956-ffa450edef68
2013-07-30 19:38:20 +00:00
Herve Boutemy 9a8f79c110 [MPLUGIN-244] Help mojo generates Javadoc, which is not accepted by JDK 8 doclint
Submitted by: Muminur Choudhury


git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1508586 13f79535-47bb-0310-9956-ffa450edef68
2013-07-30 19:37:44 +00:00
Herve Boutemy 3ed2aef1df [MPLUGIN-246] Clarify that super class must also use annotations
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1505228 13f79535-47bb-0310-9956-ffa450edef68
2013-07-20 22:14:54 +00:00
Herve Boutemy c497984b82 [MPLUGIN-250] link to the new 1.1.0 version
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1505221 13f79535-47bb-0310-9956-ffa450edef68
2013-07-20 22:05:48 +00:00
Herve Boutemy 0c5a83e673 [MPLUGIN-250] created plugin-metadata descriptor version 1.1.0 to add the since element, which cannot be added into already released 1.0.0 version
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1505220 13f79535-47bb-0310-9956-ffa450edef68
2013-07-20 22:03:41 +00:00
Herve Boutemy f3e2aa95c4 [MPLUGIN-248] fixed XML-Namespace in ITs for ant-based mojos.
Submitted by Mirko Friedenhagen

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1505215 13f79535-47bb-0310-9956-ffa450edef68
2013-07-20 21:39:39 +00:00
Herve Boutemy 264d24fc4d typo
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1505213 13f79535-47bb-0310-9956-ffa450edef68
2013-07-20 21:37:03 +00:00
Herve Boutemy 337b88b68f add schema location in descriptor reference
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1505212 13f79535-47bb-0310-9956-ffa450edef68
2013-07-20 21:34:11 +00:00
Herve Boutemy 9c26ce960d [MPLUGIN-249] give snippets to show use of expressions to get Maven objects
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1505210 13f79535-47bb-0310-9956-ffa450edef68
2013-07-20 21:20:38 +00:00
Herve Boutemy a1e15b0b7b reordered goals in list
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1505205 13f79535-47bb-0310-9956-ffa450edef68
2013-07-20 20:50:01 +00:00
Herve Boutemy d7d64cbe0e improved description
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1470122 13f79535-47bb-0310-9956-ffa450edef68
2013-04-20 07:37:43 +00:00
Herve Boutemy d827052906 added <project> root tag to help syntax highlighting
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1470121 13f79535-47bb-0310-9956-ffa450edef68
2013-04-20 07:27:35 +00:00
Herve Boutemy 0a4d198a47 switched Annotations and POM Configuration paragraphs to match with user's interest: start with annotations, end with pre-requisites
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1470120 13f79535-47bb-0310-9956-ffa450edef68
2013-04-20 07:23:30 +00:00
Herve Boutemy 10acc051bf improved documentation: replaced links to annotations javadoc with link to annotations intro page
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1470118 13f79535-47bb-0310-9956-ffa450edef68
2013-04-20 07:18:23 +00:00
Olivier Lamy ef3b5a16ba fix svnpubsub configuration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1438198 13f79535-47bb-0310-9956-ffa450edef68
2013-01-24 21:17:00 +00:00
Olivier Lamy 9029098178 svnpubsub configuration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1438192 13f79535-47bb-0310-9956-ffa450edef68
2013-01-24 21:03:46 +00:00
Olivier Lamy 425b95b909 [MPLUGIN-239] Execute goal does not passes from mojos.xml pluginMetadata
Submitted by Ben Tatham.

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1438099 13f79535-47bb-0310-9956-ffa450edef68
2013-01-24 17:38:07 +00:00
Olivier Lamy fecb6817e2 upgrade to last parent pom
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1438098 13f79535-47bb-0310-9956-ffa450edef68
2013-01-24 17:37:50 +00:00
Benson Margulies 0d3bc50059 (no jira) add more javadoc to spare someone else stepping into a trap.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1427510 13f79535-47bb-0310-9956-ffa450edef68
2013-01-01 18:46:27 +00:00
Herve Boutemy 5fe4d7d344 added javadoc
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1418683 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 15:09:27 +00:00
Anders Hammar fcc328fb6e Fixed incorrect English wording
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1415181 13f79535-47bb-0310-9956-ffa450edef68
2012-11-29 14:31:26 +00:00
Anders Hammar 435fbb1d04 Added a missing comma in code example
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1415163 13f79535-47bb-0310-9956-ffa450edef68
2012-11-29 13:57:49 +00:00
Anders Hammar f67446b914 [MPLUGIN-236] Value for Mojo's 'defaultPhase' parameter is incorrectly a string in examples
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1415161 13f79535-47bb-0310-9956-ffa450edef68
2012-11-29 13:54:53 +00:00
Anders Hammar 3bc4d86dba [MPLUGIN-235] Doc example incorrectly states that plexus-utils is needed as a dependency
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1415152 13f79535-47bb-0310-9956-ffa450edef68
2012-11-29 13:14:32 +00:00
Olivier Lamy 411ab0bb48 [MPLUGIN-234] Extreme amounts of debug logging.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1412307 13f79535-47bb-0310-9956-ffa450edef68
2012-11-21 21:27:04 +00:00
Herve Boutemy 40397727da [MPLUGIN-233] removed InstanciationStrategy enum from annotations
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406929 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 05:29:49 +00:00
Herve Boutemy 215037c7e5 fixed errors reported by Checkstyle
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406928 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 05:24:33 +00:00
Herve Boutemy 7627ead935 fixed typo
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406925 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 05:14:49 +00:00
Herve Boutemy f4ba12c794 manual content substitution (instead of renaming to index.xml.vm)
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406923 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 05:07:10 +00:00
Kristian Rosenvold befacc9f58 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406626 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 13:33:10 +00:00
Kristian Rosenvold 0824ea11e5 [maven-release-plugin] prepare release maven-plugin-tools-3.2
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406623 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 13:32:21 +00:00
Kristian Rosenvold a0666fd96a o Also, work with maven 2.2.1
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406615 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 13:26:25 +00:00
Kristian Rosenvold 4cc340b2d4 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406563 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 11:32:34 +00:00
Kristian Rosenvold 6991661a40 [maven-release-plugin] prepare release maven-plugin-tools-3.2
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406561 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 11:31:37 +00:00
Kristian Rosenvold 43755711de o Added additional message with underlying cause
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406554 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 11:17:02 +00:00
Kristian Rosenvold b66095855d o Logging works even better when the logger is not null
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406538 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 10:49:01 +00:00
Herve Boutemy 805e0f84a7 [MPLUGIN-227]
o avoid NPE but get (intended-)explicit warning when unexpected situation happens (probably caused by using different plugin version between source generation and XML descriptor generation phases)
o try guessing the directory in such situation, using default location
o but don't fail in any case: 

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406480 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 07:20:12 +00:00
Herve Boutemy 5d366fc36f upgraded mpir to 2.6 to avoid MPIR-255
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406474 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 06:30:21 +00:00
Kristian Rosenvold a5647ce2c8 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406221 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 16:57:58 +00:00
Kristian Rosenvold eca08f011f [maven-release-plugin] prepare release maven-plugin-tools-3.2
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406219 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 16:57:04 +00:00
Kristian Rosenvold 8bf5e39f23 Removed more version numbers.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406218 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 16:55:38 +00:00
Kristian Rosenvold c8daa9d43f o Removed version number. Yuck
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406215 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 16:49:05 +00:00
Kristian Rosenvold 7bb944fbd5 Removed plugin-plugin from plugin management in its own module
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406181 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 15:36:34 +00:00
Kristian Rosenvold 1bf5543db3 REvert 3.2 release attempt
This reverts commit e9e95bdc8d2629aa72d3e2f7c0230275ee2b40f7.

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406179 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 15:32:59 +00:00
Kristian Rosenvold 188b792d5b [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406048 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 05:52:36 +00:00
Kristian Rosenvold 020cb87d5c [maven-release-plugin] prepare release maven-plugin-tools-3.2
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406046 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 05:51:45 +00:00
Robert Scholte 197ce98685 Remove setUseAnnotations from PluginHelpGenerator, PluginToolsRequest has enough info to decide this.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1406001 13f79535-47bb-0310-9956-ffa450edef68
2012-11-05 22:34:46 +00:00
Dennis Lundberg 570bb47130 [MPLUGIN-223] HelpMojo is not extracted when using java-annotations extractor
- Add an IT to verify that this issue has been solved

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405948 13f79535-47bb-0310-9956-ffa450edef68
2012-11-05 20:50:43 +00:00
Robert Scholte 1a3ad06e35 Update QDox to 1.12.1
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405658 13f79535-47bb-0310-9956-ffa450edef68
2012-11-04 22:40:20 +00:00
Herve Boutemy 404009701f updated plexus-archiver
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405654 13f79535-47bb-0310-9956-ffa450edef68
2012-11-04 22:22:02 +00:00
Robert Scholte 866e3c18f0 These nested if statements could be combined
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405633 13f79535-47bb-0310-9956-ffa450edef68
2012-11-04 20:50:33 +00:00
Robert Scholte 96cb878188 Avoid calling toString() on String objects; this is unnecessary.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405631 13f79535-47bb-0310-9956-ffa450edef68
2012-11-04 20:44:47 +00:00
Robert Scholte b7120e30cc String.indexOf(char) is faster than String.indexOf(String).
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405630 13f79535-47bb-0310-9956-ffa450edef68
2012-11-04 20:38:18 +00:00
Robert Scholte 1de1779688 Add definitionList of special Maven objects with their class
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405624 13f79535-47bb-0310-9956-ffa450edef68
2012-11-04 19:37:07 +00:00
Herve Boutemy 134e412a36 improved descriptions
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405607 13f79535-47bb-0310-9956-ffa450edef68
2012-11-04 18:54:17 +00:00
Herve Boutemy afe2ca3e3f PluginDescriptor is available only for Maven 3
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405603 13f79535-47bb-0310-9956-ffa450edef68
2012-11-04 18:48:08 +00:00
Herve Boutemy db38a1222a provided scope is sufficient
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405600 13f79535-47bb-0310-9956-ffa450edef68
2012-11-04 18:41:11 +00:00
Robert Scholte 618cd24a12 [MPLUGIN-220] Can not use regex in @Parameter(defaultValue)
Confirm with IT that qdox-1.12.1-SNAPSHOT will fix the issue.
Update once QDox is released

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405438 13f79535-47bb-0310-9956-ffa450edef68
2012-11-03 22:47:37 +00:00
Robert Scholte 43877dc10f [MPLUGIN-232] java-basic-annotations IT for maven-plugin-plugin fails due to a missing description-tag in the plugin-help.xml
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405437 13f79535-47bb-0310-9956-ffa450edef68
2012-11-03 22:44:28 +00:00
Robert Scholte 224a654684 [MPLUGIN-232] java-basic-annotations IT for maven-plugin-plugin fails with M2.2.1 due to a missing description-tag in the plugin-help.xml
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405401 13f79535-47bb-0310-9956-ffa450edef68
2012-11-03 19:02:34 +00:00
Robert Scholte 6e6ee108b7 [MPLUGIN-231] Switch to plugin annotations for the generated help-mojo if the Maven Plugin depends on maven-plugin-annotations
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405379 13f79535-47bb-0310-9956-ffa450edef68
2012-11-03 16:42:01 +00:00
Robert Scholte 0435027899 [MPLUGIN-231] Switch to plugin annotations for the generated help-mojo if the Maven Plugin depends on maven-plugin-annotations
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405371 13f79535-47bb-0310-9956-ffa450edef68
2012-11-03 15:54:02 +00:00
Herve Boutemy 27581ab1ee ${plugin} is only recognized by Maven 3
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405336 13f79535-47bb-0310-9956-ffa450edef68
2012-11-03 13:56:10 +00:00
Robert Scholte 8488b8267d [MPLUGIN-230] sync help-goal with goal-report: Use 'User property' instead of 'Expression'
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405334 13f79535-47bb-0310-9956-ffa450edef68
2012-11-03 13:55:21 +00:00
Herve Boutemy 6ca8252f0a [MPLUGIN-225] made generated descriptor from MojoExecution as Component compatible with Maven 2
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405330 13f79535-47bb-0310-9956-ffa450edef68
2012-11-03 13:28:02 +00:00
Herve Boutemy 80aacd51f2 [MPLUGIN-225] made generated descriptor from MojoExecution as Component compatible with Maven 2
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405318 13f79535-47bb-0310-9956-ffa450edef68
2012-11-03 10:57:36 +00:00
Herve Boutemy ed7124add7 fixed encoding used when rewriting HelpMojo source
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405268 13f79535-47bb-0310-9956-ffa450edef68
2012-11-03 02:44:29 +00:00
Herve Boutemy 4a1d287e0f fixed encoding used when reading HelpMojo Velocity template
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405266 13f79535-47bb-0310-9956-ffa450edef68
2012-11-03 02:37:32 +00:00
Herve Boutemy 2077b3e8cf closed streams
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405265 13f79535-47bb-0310-9956-ffa450edef68
2012-11-03 02:34:18 +00:00
Herve Boutemy 62dca6fbd5 fixed inconsistency between source file location and package name used when ant mojo
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405262 13f79535-47bb-0310-9956-ffa450edef68
2012-11-03 02:32:14 +00:00
Herve Boutemy 92df3b3987 [MPLUGIN-227] rewrite HelpMojo source file when rewriting class file to keep package name info in sync and not disturb javadoc with an empty package name
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405260 13f79535-47bb-0310-9956-ffa450edef68
2012-11-03 02:15:17 +00:00
Herve Boutemy a757bee927 code formatting
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405094 13f79535-47bb-0310-9956-ffa450edef68
2012-11-02 18:37:37 +00:00
Kristian Rosenvold 0ba0555964 [MPLUGIN-229] Converted to use dom instead of xpp3dom
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1405040 13f79535-47bb-0310-9956-ffa450edef68
2012-11-02 16:35:31 +00:00
Herve Boutemy b81e8af383 improved notice about phases
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1389660 13f79535-47bb-0310-9956-ffa450edef68
2012-09-25 00:03:37 +00:00
Herve Boutemy b93ab8fca8 avoid code duplication for plugin-help.xml path between PluginDescriptorGenerator and PluginHelpGenerator
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1389657 13f79535-47bb-0310-9956-ffa450edef68
2012-09-24 23:57:41 +00:00
Herve Boutemy 55e9f2dcfb added explanations about the 2-phase generation necessary for Java 5 annotations
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1389655 13f79535-47bb-0310-9956-ffa450edef68
2012-09-24 23:47:38 +00:00
Herve Boutemy 70439924a9 added a reference section with plugin descriptor item
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1388839 13f79535-47bb-0310-9956-ffa450edef68
2012-09-22 16:33:06 +00:00
Herve Boutemy 0178366f82 improved artifact description
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1388838 13f79535-47bb-0310-9956-ffa450edef68
2012-09-22 16:31:57 +00:00
Herve Boutemy 2ead1c9957 added a link to MNG-5346
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1385317 13f79535-47bb-0310-9956-ffa450edef68
2012-09-16 16:51:43 +00:00
Robert Scholte 7dc8061119 Add packaging
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1375778 13f79535-47bb-0310-9956-ffa450edef68
2012-08-21 20:43:29 +00:00
Olivier Lamy 2a925264f5 use last parent pom
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1372611 13f79535-47bb-0310-9956-ffa450edef68
2012-08-13 20:58:08 +00:00
Olivier Lamy 61834d0374 clarify scope of annotations for plugin execution
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1372610 13f79535-47bb-0310-9956-ffa450edef68
2012-08-13 20:57:58 +00:00
Olivier Lamy 74f2a09f0d fix doc
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1367804 13f79535-47bb-0310-9956-ffa450edef68
2012-07-31 22:22:05 +00:00
Olivier Lamy 51d5a633f6 this it need maven3
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1367509 13f79535-47bb-0310-9956-ffa450edef68
2012-07-31 11:56:54 +00:00
Olivier Lamy b7cd9996e8 only scope compile is needed for annotations
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1367470 13f79535-47bb-0310-9956-ffa450edef68
2012-07-31 09:03:18 +00:00
Olivier Lamy 3a046c33e2 exclude default reports in it to run fast
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1367252 13f79535-47bb-0310-9956-ffa450edef68
2012-07-30 19:57:48 +00:00
Olivier Lamy d7eff2bf5d add missing license headers
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1367251 13f79535-47bb-0310-9956-ffa450edef68
2012-07-30 19:57:38 +00:00
Olivier Lamy a2ee6a2ed2 [MPLUGIN-222] 'Since' information is not shown on generated site (ANT Mojos).
Submitted by Tinguaro Barreno.

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1367250 13f79535-47bb-0310-9956-ffa450edef68
2012-07-30 19:57:20 +00:00
Herve Boutemy 6a460fe73d code simplification
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1363509 13f79535-47bb-0310-9956-ffa450edef68
2012-07-19 19:56:20 +00:00
Herve Boutemy cdf5f235a0 maven-plugin-plugin 3.1 released
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1356992 13f79535-47bb-0310-9956-ffa450edef68
2012-07-03 22:15:26 +00:00
Herve Boutemy 06dbbb5f7f code formatting
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1356324 13f79535-47bb-0310-9956-ffa450edef68
2012-07-02 16:29:45 +00:00
Benson Margulies 0c494380bc MPLUGIN-219: Instantiate spelled wrong in annotation
o new enum added with correct spelling
o compatibility arranged.


git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1356038 13f79535-47bb-0310-9956-ffa450edef68
2012-07-01 22:34:15 +00:00
Herve Boutemy f01f612574 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1355646 13f79535-47bb-0310-9956-ffa450edef68
2012-06-30 06:10:28 +00:00
Herve Boutemy cdc72acb2d [maven-release-plugin] prepare release maven-plugin-tools-3.1
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1355644 13f79535-47bb-0310-9956-ffa450edef68
2012-06-30 06:09:56 +00:00
Herve Boutemy cc5c0c8c75 removed duplicate dependency declaration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1355643 13f79535-47bb-0310-9956-ffa450edef68
2012-06-30 06:08:45 +00:00
Herve Boutemy 2c651a2544 use current maven-plugin-tools-annotations version
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1355568 13f79535-47bb-0310-9956-ffa450edef68
2012-06-29 21:32:24 +00:00
Olivier Lamy 185b9b5d3b add missing license headers
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1355363 13f79535-47bb-0310-9956-ffa450edef68
2012-06-29 13:26:38 +00:00
Olivier Lamy 11bda581d3 add Tinguaro Barreno in contributor section
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1355362 13f79535-47bb-0310-9956-ffa450edef68
2012-06-29 13:26:23 +00:00
Olivier Lamy d3b5a9226c [MPLUGIN-218] Tag 'since' not recognized in the plugin model
Submitted by Tinguaro Barreno.

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1355361 13f79535-47bb-0310-9956-ffa450edef68
2012-06-29 13:26:08 +00:00
Olivier Lamy 44ba0e4554 fix 1.7 build
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1354978 13f79535-47bb-0310-9956-ffa450edef68
2012-06-28 12:29:34 +00:00
Herve Boutemy c312cac3bb code simplification
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1354250 13f79535-47bb-0310-9956-ffa450edef68
2012-06-26 21:36:53 +00:00
Herve Boutemy af47cb96c6 use constant
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1354249 13f79535-47bb-0310-9956-ffa450edef68
2012-06-26 21:34:34 +00:00
Herve Boutemy fdcb229aa4 moved help mojo rewriting code to PluginHelpGenerator
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1354239 13f79535-47bb-0310-9956-ffa450edef68
2012-06-26 21:19:06 +00:00
Herve Boutemy 297b152d05 extracted writeHelpPropertiesFile() method
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1354222 13f79535-47bb-0310-9956-ffa450edef68
2012-06-26 20:52:33 +00:00
Herve Boutemy d75dfaa768 code simplification
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1354217 13f79535-47bb-0310-9956-ffa450edef68
2012-06-26 20:40:36 +00:00
Herve Boutemy 2585ccafb2 renamed parameter
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1354212 13f79535-47bb-0310-9956-ffa450edef68
2012-06-26 20:34:17 +00:00
Olivier Lamy dce2541a3e reorder module
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1353877 13f79535-47bb-0310-9956-ffa450edef68
2012-06-26 09:00:13 +00:00
Olivier Lamy 8abeb549bd add a contributors section
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1353838 13f79535-47bb-0310-9956-ffa450edef68
2012-06-26 07:03:22 +00:00
Olivier Lamy 0ac08a36fc [MPLUGIN-217] HelpMojo (always) contains description for the maven-plugin-plugin
Submitted by Tony Chemit.

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1353837 13f79535-47bb-0310-9956-ffa450edef68
2012-06-26 07:03:11 +00:00
Robert Scholte 2892e3570d Replace ${goal} for goal in @Parameter property
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1353755 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 21:50:42 +00:00
Olivier Lamy cacac1179b correct close FileInputStream
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1353725 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 20:17:07 +00:00
Herve Boutemy dae672097a changed annotation IT to match javadoc tag IT
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1353335 13f79535-47bb-0310-9956-ffa450edef68
2012-06-24 21:33:09 +00:00
Herve Boutemy c46422fe0d [MPLUGIN-216] fixed default dependency resolution value as none for java 5 annotations
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1353331 13f79535-47bb-0310-9956-ffa450edef68
2012-06-24 20:59:37 +00:00
Herve Boutemy c1e288aedd [MPLUGIN-215] don't generate content with empty value, due to default values defined for annotations
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1353251 13f79535-47bb-0310-9956-ffa450edef68
2012-06-24 11:49:20 +00:00
Herve Boutemy 1c9a253347 [MPLUGIN-214] fixed description generated by Maven objects marked as component (required=true and no implementation, and since+deprecated for tags)
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1353231 13f79535-47bb-0310-9956-ffa450edef68
2012-06-24 08:36:58 +00:00
Herve Boutemy 2bf4bff377 improved (feedback appreciated) documentation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1353228 13f79535-47bb-0310-9956-ffa450edef68
2012-06-24 08:16:01 +00:00
Olivier Lamy 71415e98eb [MPLUGIN-213] NullPointerException in descriptor goal
Submitted by Tony Chemit.

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1352829 13f79535-47bb-0310-9956-ffa450edef68
2012-06-22 10:10:50 +00:00
Herve Boutemy 8fa0dc72fb extended @Component explanations
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1346185 13f79535-47bb-0310-9956-ffa450edef68
2012-06-04 22:31:45 +00:00
Herve Boutemy f4716d081b explained noticeable differences between plugin tools annotations and javadoc tags
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1346183 13f79535-47bb-0310-9956-ffa450edef68
2012-06-04 22:30:13 +00:00
Herve Boutemy 16b822ef91 removed complex explanation not necessary in intro
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1346181 13f79535-47bb-0310-9956-ffa450edef68
2012-06-04 22:15:52 +00:00
Herve Boutemy e7d35fa079 typo
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1346180 13f79535-47bb-0310-9956-ffa450edef68
2012-06-04 22:14:37 +00:00
Herve Boutemy 3e256f7e17 typos
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1346179 13f79535-47bb-0310-9956-ffa450edef68
2012-06-04 22:13:33 +00:00
Herve Boutemy 030713aa69 [MPLUGIN-208] HelpMojo class generated by helpmojo goal uses deprecated expression="${propertyName}" annotation instead of property="propertyName"
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1346166 13f79535-47bb-0310-9956-ffa450edef68
2012-06-04 21:29:47 +00:00
Herve Boutemy 017a3d5ca6 [MPLUGIN-210] NPE in generated help mojo with M2 when no goal has description
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1345805 13f79535-47bb-0310-9956-ffa450edef68
2012-06-03 23:39:34 +00:00
Herve Boutemy 7230ba93e3 [MPLUGIN-209] use maven-plugin-tools' java 5 annotations
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1345787 13f79535-47bb-0310-9956-ffa450edef68
2012-06-03 21:58:22 +00:00
Herve Boutemy d3bf47a4f3 extended intro
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1345776 13f79535-47bb-0310-9956-ffa450edef68
2012-06-03 20:51:48 +00:00
Herve Boutemy 81da0e6343 added "see also" subsection with links to plugin-testing and maven-plugin-API
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1345436 13f79535-47bb-0310-9956-ffa450edef68
2012-06-02 04:28:31 +00:00
Herve Boutemy 6a2c0dfce7 fixed POM xsd location
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1344949 13f79535-47bb-0310-9956-ffa450edef68
2012-06-01 00:20:23 +00:00
Olivier Lamy 9874a33bc4 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343202 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 10:48:58 +00:00
Olivier Lamy a6adf83696 [maven-release-plugin] prepare release maven-plugin-tools-3.0
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343200 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 10:48:47 +00:00
Olivier Lamy 267ed41c4c fix it and missing annotations to descriptor values set
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343198 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 10:39:49 +00:00
Herve Boutemy f6ac9094af fixed documentation: @since and @deprecated are ignored for components
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343182 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 10:04:16 +00:00
Herve Boutemy 8409babf38 extended IT for annotations
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343181 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 10:03:40 +00:00
Herve Boutemy 404aeb03b5 extended IT for javadoc tags
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343175 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 09:39:00 +00:00
Herve Boutemy a99880200b [MPLUGIN-207] generate since elements in descriptor
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343173 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 09:30:23 +00:00
Olivier Lamy 12f6d3fe88 remove non needed noisy debug log
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343170 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 09:26:10 +00:00
Herve Boutemy 6c06f4bcdd improved error message
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343166 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 08:54:25 +00:00
Olivier Lamy 09b55931a9 add comments
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343161 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 08:15:56 +00:00
Olivier Lamy fe79314db9 [MPLUGIN-206] add it classes
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343160 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 08:15:41 +00:00
Olivier Lamy e37c9d413c [MPLUGIN-206] Annotations in superclasses are not found if an intermediate class is not annotated.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343159 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 08:15:25 +00:00
Olivier Lamy 3381348ff3 [MPLUGIN-205] @Mojo in maven-plugin-annotations does not use the specified value of requiresProject
Submitted by Joseph Walton.

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343148 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 06:43:33 +00:00
Olivier Lamy 0b37bdb7e2 release compiler plugin 2.5
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343146 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 06:21:45 +00:00
Herve Boutemy 5652eb99e4 fixed problems reported by Checkstyle
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343107 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 21:35:40 +00:00
Herve Boutemy 2ebeedd214 removed redundant static modifier
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343106 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 21:31:23 +00:00
Herve Boutemy 328f9208db renamed constant
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343105 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 21:30:35 +00:00
Herve Boutemy 1e7bbd5bc6 [MPLUGIN-204] added support for some Maven objects injected as components: session, project, mojo, plugin and settings
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343086 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 20:21:15 +00:00
Herve Boutemy 4229553d33 fixed typo
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343068 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 17:30:32 +00:00
Herve Boutemy dcd8debb6d rewrote the exact algorithm from previous version for help output
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343067 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 17:14:25 +00:00
Herve Boutemy df7c13e0b3 fixed links to m-plugin-p
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343024 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 10:05:32 +00:00
Herve Boutemy 9918243996 Robert is committer
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343022 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 10:03:25 +00:00
Herve Boutemy fd2fdff716 fixed configuration now that it inherits from maven-plugin-tools
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343021 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 10:02:41 +00:00
Herve Boutemy 255e64684e upgraded m-site-p to 3.1 and removed workaround for MSITE-602
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343017 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 09:33:25 +00:00
Herve Boutemy 35a27f33fe added comment in generated files to show how+when it was generated
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1343014 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 08:38:53 +00:00
Herve Boutemy 41d5e05eb9 sort help content
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1342989 13f79535-47bb-0310-9956-ffa450edef68
2012-05-26 23:05:14 +00:00
Herve Boutemy 7ddd1f2459 extracted writeGoal() and writeParameter() methods
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1342986 13f79535-47bb-0310-9956-ffa450edef68
2012-05-26 22:43:27 +00:00
Herve Boutemy 74a8581cc4 don't show readonly parameters in help
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1342977 13f79535-47bb-0310-9956-ffa450edef68
2012-05-26 22:01:29 +00:00
Herve Boutemy b8269c2016 code improvement
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1342976 13f79535-47bb-0310-9956-ffa450edef68
2012-05-26 21:39:02 +00:00
Herve Boutemy aa60192803 created PLUGIN_HELP_PATH constant instead of pluginHelpPath attribute
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1342969 13f79535-47bb-0310-9956-ffa450edef68
2012-05-26 21:14:01 +00:00
Herve Boutemy d6f76bfc90 fixed typo
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1342964 13f79535-47bb-0310-9956-ffa450edef68
2012-05-26 20:58:09 +00:00
Herve Boutemy 6cc24a1747 read plugin-help.xml with encoding detection
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1342963 13f79535-47bb-0310-9956-ffa450edef68
2012-05-26 20:56:04 +00:00
Herve Boutemy 93e82e524e renamed plugin-description.xml to plugin-help.xml
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1342957 13f79535-47bb-0310-9956-ffa450edef68
2012-05-26 20:29:09 +00:00
Herve Boutemy 46532f2300 code simplification
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1342928 13f79535-47bb-0310-9956-ffa450edef68
2012-05-26 17:12:27 +00:00
Herve Boutemy a50582836c improved documentation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1342927 13f79535-47bb-0310-9956-ffa450edef68
2012-05-26 17:06:12 +00:00
Herve Boutemy 402137be54 renamed variable
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1342925 13f79535-47bb-0310-9956-ffa450edef68
2012-05-26 16:55:47 +00:00
Herve Boutemy 2e6586509a added readonly parameter
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1342912 13f79535-47bb-0310-9956-ffa450edef68
2012-05-26 15:34:01 +00:00
Herve Boutemy 6ba729d8af code formatting
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1342907 13f79535-47bb-0310-9956-ffa450edef68
2012-05-26 15:15:35 +00:00
Herve Boutemy 95b3420c87 [MPLUGIN-202] reverted specific tools.jar location on Mac from r 1342453 since it wreaks havoc
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1342857 13f79535-47bb-0310-9956-ffa450edef68
2012-05-26 05:57:11 +00:00
Olivier Lamy cdd2a24cab desactivate mac profile as it cause failure for me
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1342547 13f79535-47bb-0310-9956-ffa450edef68
2012-05-25 09:41:05 +00:00
Olivier Lamy 43e7709cf7 maven invoker plugin 1.6 for all modules
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1342546 13f79535-47bb-0310-9956-ffa450edef68
2012-05-25 09:40:57 +00:00
Olivier Lamy 9e57eea052 maven invoker plugin 1.6
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1342539 13f79535-47bb-0310-9956-ffa450edef68
2012-05-25 09:13:56 +00:00
Herve Boutemy 60dfe5e861 [MPLUGIN-202] specific tools.jar location on Mac
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1342453 13f79535-47bb-0310-9956-ffa450edef68
2012-05-24 21:51:49 +00:00
Herve Boutemy fce4579278 updated link to current instead of forced 3.0.4
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1342435 13f79535-47bb-0310-9956-ffa450edef68
2012-05-24 21:27:12 +00:00
Herve Boutemy ff7fff513d added a link to the injection code provided by Maven core
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1342433 13f79535-47bb-0310-9956-ffa450edef68
2012-05-24 21:26:29 +00:00
Olivier Lamy 5c58ab6d40 use hint rather than roleHint fix documentation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1341653 13f79535-47bb-0310-9956-ffa450edef68
2012-05-22 21:43:00 +00:00
Olivier Lamy f375619f9c use hint rather than roleHint
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1341650 13f79535-47bb-0310-9956-ffa450edef68
2012-05-22 21:42:04 +00:00
Herve Boutemy b3be96af8e o fixed role as Class<?> type
o improved examples

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1341647 13f79535-47bb-0310-9956-ffa450edef68
2012-05-22 21:35:43 +00:00
Olivier Lamy e5f2c4746d add an aggregated checkstyle report
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1341305 13f79535-47bb-0310-9956-ffa450edef68
2012-05-22 05:00:15 +00:00
Herve Boutemy 6636839798 added descriptions
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1341243 13f79535-47bb-0310-9956-ffa450edef68
2012-05-21 22:45:48 +00:00
Herve Boutemy 503c946cda added maven-script to index
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1341242 13f79535-47bb-0310-9956-ffa450edef68
2012-05-21 22:45:34 +00:00
Olivier Lamy fc02ad2f0d more cleanup due to parent change of plugin
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1341238 13f79535-47bb-0310-9956-ffa450edef68
2012-05-21 22:40:27 +00:00
Olivier Lamy 9655a274f9 plugin has now plugin-tools as parent instead of plugins parent to avoid copy/paste of depMngt
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1341237 13f79535-47bb-0310-9956-ffa450edef68
2012-05-21 22:40:17 +00:00
Herve Boutemy 1ef2b2e74e improved javadoc
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1341236 13f79535-47bb-0310-9956-ffa450edef68
2012-05-21 22:37:15 +00:00
Herve Boutemy dd4eadd2d4 sidebar is more convenient than topbar (same update as r1340832)
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1341234 13f79535-47bb-0310-9956-ffa450edef68
2012-05-21 22:27:03 +00:00
Herve Boutemy f4b0dfae2a updated dependency graph with maven-script
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1341233 13f79535-47bb-0310-9956-ffa450edef68
2012-05-21 22:25:18 +00:00
Olivier Lamy 6391bc314d fix image
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1341219 13f79535-47bb-0310-9956-ffa450edef68
2012-05-21 21:52:47 +00:00
Olivier Lamy 1592532f04 dedicate to hboutemy conversion with Apache OpenOffice works fine :P
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1341212 13f79535-47bb-0310-9956-ffa450edef68
2012-05-21 21:43:16 +00:00
Herve Boutemy c8b67549cf improved name and description
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1341187 13f79535-47bb-0310-9956-ffa450edef68
2012-05-21 20:14:35 +00:00
Herve Boutemy aa718c105f added generics
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1341185 13f79535-47bb-0310-9956-ffa450edef68
2012-05-21 20:10:04 +00:00
Olivier Lamy 88a6f9df83 move ant version to a property
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340913 13f79535-47bb-0310-9956-ffa450edef68
2012-05-21 07:35:26 +00:00
Olivier Lamy aa929e452f fix groupId
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340868 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 23:01:33 +00:00
Olivier Lamy c519ab14d5 add maven script as dependency for it tests
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340867 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 23:01:19 +00:00
Olivier Lamy 08a26f371f move maven version to a property
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340866 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 23:01:05 +00:00
Olivier Lamy 995c59127a fix pom for maven script
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340865 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 23:00:56 +00:00
Olivier Lamy da58bced25 [MPLUGIN-200] move maven-script to maven-plugin-tools.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340859 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 22:19:41 +00:00
Herve Boutemy eeb238a4f3 sidebar is more convenient than topbar
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340832 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 20:33:41 +00:00
Herve Boutemy 34b1e5e922 code simplification
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340814 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 19:34:47 +00:00
Herve Boutemy 776632fa7d extracted addUl() methods to avoid copy/paste
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340812 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 19:32:03 +00:00
Herve Boutemy f603ef639d added pom xsd reference
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340807 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 19:23:12 +00:00
Herve Boutemy eada36d538 [MPLUGIN-201] added "User Property" to the parameter description report to clearly show the property that can be used to override default value of a parameter
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340805 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 19:16:01 +00:00
Robert Scholte 1b2f9288b2 update qdox to 1.12
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340801 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 19:07:25 +00:00
Herve Boutemy 2bc4e52ac7 removed unused method parameters
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340728 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 14:10:38 +00:00
Olivier Lamy 8569bbeb56 @Component role attribute is now of type Class<?>
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340709 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 13:20:25 +00:00
Herve Boutemy e647661af9 code simplification
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340702 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 12:56:23 +00:00
Herve Boutemy 745441f7aa extracted scanAnnotations() and scanJavadoc() methods for better understanding
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340693 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 12:26:44 +00:00
Herve Boutemy 99ff18a545 reverted r1340586: readonly is useful to avoid normal configuration of a plugin attribute at use time
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340685 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 11:48:46 +00:00
Herve Boutemy f794cc3566 fixed absolute references
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340587 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 22:52:50 +00:00
Herve Boutemy bf49e7e7b5 removed readonly parameter to @Parameter annotation since this attribute was only useful when @Component didn't exist
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340586 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 22:42:30 +00:00
Herve Boutemy dd36eda12f [MPLUGIN-196] added property support to report
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340581 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 22:23:37 +00:00
Herve Boutemy 02b29353d6 [MPLUGIN-196] added property support to javadoc tags in addition to expression, deprecating expression
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340574 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 21:53:49 +00:00
Herve Boutemy 0a1066ff87 [MPLUGIN-199] removed old undocumented "property" feature of javadoc tags (ie changing field name)
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340565 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 20:57:43 +00:00
Olivier Lamy 3a52298a04 improve note on super classes when using annotations for sources
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340364 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 07:10:52 +00:00
Olivier Lamy 54711e8649 add note on super classes when using annotations
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340363 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 07:10:41 +00:00
Herve Boutemy ec6605ef9a added a link to PluginParameterExpressionEvaluator
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340250 13f79535-47bb-0310-9956-ffa450edef68
2012-05-18 21:10:21 +00:00
Herve Boutemy d2e612f91b format
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1340083 13f79535-47bb-0310-9956-ffa450edef68
2012-05-18 12:39:49 +00:00
Herve Boutemy 9fb65daacc improved documentation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1339893 13f79535-47bb-0310-9956-ffa450edef68
2012-05-17 22:28:02 +00:00
Herve Boutemy 3bf23ba831 fixed documentation for latests changes (DependencyScope -> ResolutionScope, expression -> property, removal of readonly and required from Component)
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1339889 13f79535-47bb-0310-9956-ffa450edef68
2012-05-17 22:22:49 +00:00
Herve Boutemy 092e4267b0 [MPLUGIN-196] rename expression attribute of parameter to property for Java 5 annotation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1339888 13f79535-47bb-0310-9956-ffa450edef68
2012-05-17 22:20:31 +00:00
Herve Boutemy 53dfd41c54 removed readonly and required attributes, started with r1339666
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1339872 13f79535-47bb-0310-9956-ffa450edef68
2012-05-17 21:45:16 +00:00
Herve Boutemy c63c9e01fb fixed IT for Maven 2
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1339721 13f79535-47bb-0310-9956-ffa450edef68
2012-05-17 17:16:40 +00:00
Herve Boutemy a2be81a06d fixed IT broken since DependencyScope was renamed to ResolutionScope in r1338393
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1339704 13f79535-47bb-0310-9956-ffa450edef68
2012-05-17 16:53:56 +00:00
Herve Boutemy 95826b76f8 added invoker report for its
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1339693 13f79535-47bb-0310-9956-ffa450edef68
2012-05-17 16:33:09 +00:00
Herve Boutemy 34400e4e3c removed readonly and required attributes from component configuration, both in java 5 annotations or javadoc tags documentation, since they are ignored
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1339666 13f79535-47bb-0310-9956-ffa450edef68
2012-05-17 15:52:18 +00:00
Herve Boutemy 5a16d68d60 copied readonly definition from plugin descriptor's editable (editable = !readonly)
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1339661 13f79535-47bb-0310-9956-ffa450edef68
2012-05-17 15:49:42 +00:00
Herve Boutemy 684e7110b1 replace '"" +' construct with String.valueOf()
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1339556 13f79535-47bb-0310-9956-ffa450edef68
2012-05-17 11:23:12 +00:00
Herve Boutemy 014281f0e5 improved documentation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338454 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 22:10:36 +00:00
Herve Boutemy 005e039cc4 improved documentation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338451 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 21:59:09 +00:00
Herve Boutemy 1deb8df171 improved documentation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338450 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 21:55:33 +00:00
Herve Boutemy e285450e0f fixed typos
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338443 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 21:35:47 +00:00
Herve Boutemy 60c3654f4d added link to Annotations section
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338440 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 21:35:34 +00:00
Olivier Lamy 4abefe4080 add it test for plugin report with annotations
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338439 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 21:33:29 +00:00
Herve Boutemy b123530814 improved javadoc
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338437 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 21:31:18 +00:00
Herve Boutemy 180bcb36c9 reworked documentation with links to javadoc
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338436 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 21:27:59 +00:00
Herve Boutemy be82de952e removed unused import
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338429 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 21:18:44 +00:00
Herve Boutemy 1905753a7e added javadoc
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338427 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 21:11:15 +00:00
Herve Boutemy d56e6cba11 renamed DependencyScope to ResolutionScope to better match the intent
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338393 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 20:46:10 +00:00
Herve Boutemy 30fe737999 improved javadoc
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338388 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 20:38:09 +00:00
Olivier Lamy 650437ad74 improve test of requiresDependencyResolution
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338386 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 20:26:18 +00:00
Olivier Lamy dea91901e7 add an other scope available in m3
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338373 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 19:57:32 +00:00
Olivier Lamy fb03985d58 link from index to annotations doc page
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338358 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 19:38:10 +00:00
Olivier Lamy 9e9ec6d85b add a beanshell mojo documentation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338357 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 19:37:58 +00:00
Olivier Lamy b01afaf047 add documentation for ant mojo
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338356 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 19:37:45 +00:00
Olivier Lamy c31075dd21 add SNIPPET for documentation purpose
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338293 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 17:07:37 +00:00
Olivier Lamy dd9b113101 add a simple it for beanshell mojo
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338290 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 16:54:01 +00:00
Olivier Lamy 5dd3ecc698 use StringBuilder rather than StringBuffer
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338289 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 16:53:36 +00:00
Olivier Lamy a500a70267 ignore .DS_Store
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338288 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 16:53:00 +00:00
Olivier Lamy 3fbcbd8561 add a profile to deploy snapshot docs and use smaller images
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338051 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 08:10:28 +00:00
Olivier Lamy d57970a552 use fluido skin with topbar to have a fresh new look. I hope Herve will like it :-)
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338050 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 08:10:00 +00:00
Olivier Lamy 68470f909c add documentation for mojos with annotations
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338049 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 08:09:23 +00:00
Olivier Lamy aa9ca62315 better default value for @Component
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338048 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 08:08:49 +00:00
Olivier Lamy a608a24dbe those annotations are only a field level
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338004 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 23:05:11 +00:00
Olivier Lamy 34c68c011d annotation need only class retentionPolicy
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338003 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 23:04:57 +00:00
Olivier Lamy 44d4e6bec0 compiler plugin 2.4 is faster
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337998 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 22:42:36 +00:00
Herve Boutemy 5acafb5f28 improved documentation on metadata requirements
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337988 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 21:54:24 +00:00
Herve Boutemy 8c8f049dc5 reworked modules order for better documentation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337986 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 21:38:00 +00:00
Herve Boutemy bec5cbed25 added an overview picture
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337985 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 21:35:01 +00:00
Herve Boutemy d485d00095 improved javadoc
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337971 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 19:25:10 +00:00
Herve Boutemy 1e332e1122 added links to Plugin Descriptor reference documentation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337970 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 19:21:49 +00:00
Herve Boutemy 1176e0624c updated phase
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337969 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 19:14:16 +00:00
Herve Boutemy 51e608af77 added a menu item to Maven Plugin Tools
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337967 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 19:08:38 +00:00
Herve Boutemy 4b0853179f fixed ant ITs
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337965 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 19:01:22 +00:00
Olivier Lamy 94b7573eff pom cleanup
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337868 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 13:06:31 +00:00
Olivier Lamy ef5a70646b remove empty directory
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337867 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 13:04:07 +00:00
Olivier Lamy cbd4578330 missed to add the file
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337866 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 13:03:30 +00:00
Olivier Lamy 4feea7b268 move ant test to maven plugin it tests
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337865 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 13:03:13 +00:00
Olivier Lamy 0d9832fdd5 missed to add the file
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337863 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 12:54:02 +00:00
Olivier Lamy bbe8ee8d63 move ant test to maven plugin it tests
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337862 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 12:52:59 +00:00
Herve Boutemy 945c5ca255 code simplification
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337856 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 12:14:25 +00:00
Herve Boutemy bed85a8a9e removed unused imports
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337855 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 12:14:07 +00:00
Herve Boutemy cb0fda1300 continue refactoring: split generation utils from PluginUtils to GeneratorUtils
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337854 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 12:09:13 +00:00
Herve Boutemy bac8a5305b code simplification
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337852 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 11:28:59 +00:00
Herve Boutemy d1998943e5 fixed typo
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337850 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 11:23:29 +00:00
Herve Boutemy a9aca6f75c refactoring: split generators part of maven-plugin-tools-api to its own maven-plugin-tools-generators module
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337845 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 11:09:17 +00:00
Herve Boutemy e62732ebe9 [MPLUGIN-195] link to Maven Phases reference from mojo generated documentation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337819 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 09:19:07 +00:00
Herve Boutemy 169cb9dcc2 [MPLUGIN-194] support expression="a property" in addition to expression="${a property}"
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337816 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 09:04:24 +00:00
Herve Boutemy fb6cee3d5c use generics
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337814 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 08:52:32 +00:00
Herve Boutemy 369596166a [MPLUGIN-189] changed descriptor goal default phase from generate-resources to process-classes for Java 5 annotations (which are actually taken from compiled code, not from source)
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337808 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 08:29:05 +00:00
Olivier Lamy b606a755c8 take care to close stream in finally block
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337729 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 23:15:53 +00:00
Olivier Lamy 218d09253e use Integer.valueOf rather than new Integer
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337728 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 23:15:38 +00:00
Olivier Lamy da30b6f44f it test moved to plugin it
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337716 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 22:54:01 +00:00
Olivier Lamy a0635587e4 add a simple it test with ant mojo
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337714 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 22:52:34 +00:00
Herve Boutemy e42b381a7f removed dead code
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337712 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 22:41:56 +00:00
Herve Boutemy b7864f235b formatting
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337705 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 22:14:26 +00:00
Herve Boutemy b08d45c9d8 code simplification
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337701 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 22:01:10 +00:00
Herve Boutemy e5756b0911 extracted method to PluginUtils instead of 2 copy/paste
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337699 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:52:23 +00:00
Olivier Lamy fb1a7dfed3 remove empty directories
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337696 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:37:42 +00:00
Olivier Lamy d62a360110 use released version of invoker plugin
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337694 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:34:09 +00:00
Olivier Lamy d132fe7590 generate components.xml rather than writing it manually java sources module
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337693 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:34:01 +00:00
Olivier Lamy c9fb1abe07 remove empty directories
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337691 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:26:36 +00:00
Olivier Lamy a90bf9c54d generate components.xml rather than writing it manually beanshell module
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337690 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:26:15 +00:00
Olivier Lamy 9b628bd0fe remove empty directories
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337680 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:21:30 +00:00
Olivier Lamy 298d385345 generate components.xml rather than writing it manually ant module
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337676 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:21:01 +00:00
Olivier Lamy 59feab387b remove empty directories
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337659 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:14:18 +00:00
Olivier Lamy 2f1b305901 javadoc from components.xml and remove file
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337658 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:13:41 +00:00
Olivier Lamy b6e4781de6 generate components.xml rather than writing it manually
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337657 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:13:24 +00:00
Olivier Lamy ca84ee10df restore required and readonly attributes in @Component (not sure the need of that :-) ) maybe future use in core.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337639 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 20:37:35 +00:00
Herve Boutemy 98cebd50b7 removed unused import
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337614 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 19:17:25 +00:00
Herve Boutemy b7d3437c2a use generics
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337613 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 19:17:00 +00:00
Herve Boutemy d660e7540a extended overview of the plugin
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337610 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 19:07:21 +00:00
Herve Boutemy 5d63f01d12 reverted maven-reporting-impl upgrade since it causes a failure with mvn 2.2.1
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337606 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 19:01:13 +00:00
Herve Boutemy b3acbd4df6 enum introduction fix
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337601 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 17:46:30 +00:00
Herve Boutemy f960418b9c enum introduction fix
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337600 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 17:41:36 +00:00
Herve Boutemy c95ea5dd89 first pass at IT fix since enums introduction
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337599 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 17:38:03 +00:00
Herve Boutemy 360a9d2e8e added InstanciationStrategy enumeration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337592 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 17:07:01 +00:00
Herve Boutemy c9063cbb83 added DependencyScope enumeration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337586 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 16:14:40 +00:00
Herve Boutemy 1d5f6f7c7d improved documentation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337571 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 15:32:45 +00:00
Herve Boutemy 36f982ee7a changed name for more consistency with other extractors
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337570 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 15:27:38 +00:00
Herve Boutemy d429187237 fixed typo
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337569 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 15:25:54 +00:00
Herve Boutemy 72dada3d21 added documentation, with the same example as Mojo Javadoc Tags
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337568 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 15:23:34 +00:00
Herve Boutemy eeac216d3f updated maven-reporting-impl
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337559 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 14:58:43 +00:00
Herve Boutemy e77f26d98f code formatting
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337556 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 14:51:14 +00:00
Herve Boutemy 11ffeac723 improved module documentation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337555 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 14:43:42 +00:00
Herve Boutemy acc5979f13 removed unused imports
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337554 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 14:39:30 +00:00
Herve Boutemy be9e53279b fixed little formatting issues
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337553 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 14:37:52 +00:00
Herve Boutemy 3c3ef6d796 improved documentation about Mojo Javadoc Tags
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337552 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 14:33:19 +00:00
Herve Boutemy e6b364faf5 [MPLUGIN-189] added java 5 annotations in the tool overview
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337551 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 14:22:30 +00:00
Olivier Lamy 59abfb17dc magnify name :-)
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337510 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 10:57:34 +00:00
Olivier Lamy eccd10ed12 merge r 1337493
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337501 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 10:29:14 +00:00
Olivier Lamy aa3154917c merge -r 1331607:1337487 https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189
merge annotations branch



git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337500 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 10:27:50 +00:00
Herve Boutemy 45f4ad6034 improved javadoc
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1337493 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 10:01:00 +00:00
Olivier Lamy a534b3d2b5 fix ci url
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1337460 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 07:16:25 +00:00
Olivier Lamy 6b38de8036 fix help content generation from <pre> tag
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1337408 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 23:06:56 +00:00
Olivier Lamy a9bb0f6571 restore javadoc comment on the generated help mojo
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1337406 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 22:56:12 +00:00
Olivier Lamy 69afeb1a56 fix mvn 2 compatibility
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1337351 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 20:02:08 +00:00
Olivier Lamy 34ebb1721b use generics
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1337280 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 16:46:48 +00:00
Olivier Lamy 2f6eee2513 [MPLUGIN-189] if helpPackageName is not configured change the package of the generic class name to have a similar package as before annotations
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1337279 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 16:46:34 +00:00
Olivier Lamy 643c8de61c fix package name parameter for help generation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1337278 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 16:46:13 +00:00
Olivier Lamy 73885abdbc prevent write files in scm tree during tests
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1337277 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 16:46:01 +00:00
Olivier Lamy 2eef7a412b don't test help generation in all it, use doclet for help generation to not force users to add annotations artifact as a dependency
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1337275 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 16:45:45 +00:00
Olivier Lamy 0aa8ad9c05 missed to add files
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1337274 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 16:45:16 +00:00
Olivier Lamy 4ec2eaf3a5 [MPLUGIN-189] push some stuff on help for annotations
the goal is to have a generic class which will read the descriptor.
Copy of the descriptor with cleaning html for description fields (copy in a path META-INF/maven/${groupId}/${artifactId}/plugin-description.xml

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1337273 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 16:44:59 +00:00
Olivier Lamy ba66d8def7 add warning if artifact with sources classifier not found
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1336293 13f79535-47bb-0310-9956-ffa450edef68
2012-05-09 16:45:49 +00:00
Olivier Lamy d85b22ec88 [MPLUGIN-189] scan sources from dependencies if sources classifier found to get @since,@deprecated and text
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1336291 13f79535-47bb-0310-9956-ffa450edef68
2012-05-09 16:45:26 +00:00
Olivier Lamy ccc68be0c6 @Execute can come from parent classes hierarchy
order parameters/components on fieldName order to ensure stability of tests.

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1336290 13f79535-47bb-0310-9956-ffa450edef68
2012-05-09 16:43:54 +00:00
Olivier Lamy d1e2e09ba8 add the directory only if exists
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1336288 13f79535-47bb-0310-9956-ffa450edef68
2012-05-09 16:43:10 +00:00
Olivier Lamy 9badbe7f68 [MPLUGIN-189] scan sources from reactors project to get @since,@deprecated and text
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1335767 13f79535-47bb-0310-9956-ffa450edef68
2012-05-08 21:01:42 +00:00
Olivier Lamy 261a3cf86a exclude @Mojo annotation when coming from classes from dependencies
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1335766 13f79535-47bb-0310-9956-ffa450edef68
2012-05-08 21:01:28 +00:00
Olivier Lamy 3dd6a922a9 store the origin artifact of the annotation for later use
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1335765 13f79535-47bb-0310-9956-ffa450edef68
2012-05-08 21:01:10 +00:00
Olivier Lamy 18e8cb4178 use artifacts for scanning for future use
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1335764 13f79535-47bb-0310-9956-ffa450edef68
2012-05-08 21:00:44 +00:00
Olivier Lamy 77a87b0236 [MPLUGIN-189] support inheritence from classes available in dependencies: it with annotations in parent class available in reactors
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1335763 13f79535-47bb-0310-9956-ffa450edef68
2012-05-08 21:00:16 +00:00
Olivier Lamy 2373bae319 [MPLUGIN-189] support components field inheritance without role defined
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1335092 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 16:15:35 +00:00
Olivier Lamy e008c8012c [MPLUGIN-189] support components field inheritance
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1335091 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 16:15:12 +00:00
Olivier Lamy 1a12b44178 private field
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1335071 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 15:40:34 +00:00
Olivier Lamy a4ba9593bb improve it
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1335070 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 15:40:20 +00:00
Olivier Lamy ccc0c36afe [MPLUGIN-189] support parameter field inheritance
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1335069 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 15:39:56 +00:00
Herve Boutemy c86e344131 added svn:ignore
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1334809 13f79535-47bb-0310-9956-ffa450edef68
2012-05-06 22:32:37 +00:00
Olivier Lamy 32975142d5 comment test for help generation with annotations due to chicken and eggs trouble
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1333851 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 10:05:28 +00:00
Olivier Lamy 28a6f54643 revert back phase change help generation with doclet must continue to work
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1333850 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 10:05:16 +00:00
Olivier Lamy ddebc219e5 support @since @deprecated and description at class level
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1333849 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 10:04:31 +00:00
Olivier Lamy 06470fdc2a move to a Map with className as key to merge with javadoc scan
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1333848 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 10:04:16 +00:00
Olivier Lamy 5da55eb1be add an it test.
add a flag to prevent error when using only annotations: no descriptors found
extraction is bind to generate-sources in maven core for maven-plugin packaging so at this stage no classes available for scanning annotations

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1333847 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 10:03:54 +00:00
Olivier Lamy 5e3bc49bf1 add TODO for scanning dependencies and sources too for javadoc @since, @deprecated and comments
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1333846 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 10:03:05 +00:00
Olivier Lamy ceb02db5b8 missing ASF license header
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1333845 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 10:02:49 +00:00
Olivier Lamy 581a5da641 move annotations to an other artifacts: users only need annotations and the whole content of the scan tooling
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1333844 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 10:02:40 +00:00
Olivier Lamy bd7823e539 [MPLUGIN-189] datamodel to MojoDescriptor
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1333843 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 10:01:52 +00:00
Olivier Lamy 193f03e404 expose datamodel classes for Mojo and Execute annotations
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1333842 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 10:01:39 +00:00
Olivier Lamy 58fd600871 missing license header in pom
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1333841 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 10:01:23 +00:00
Olivier Lamy ef09ac0dcb add missing @since 3.0
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1333840 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 10:01:14 +00:00
Olivier Lamy e2512e1859 [MPLUGIN-189] add a datamodel parent class with description,since and deprecated which need to parse with qdox
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1333839 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 10:00:53 +00:00
Olivier Lamy 7575a48961 test we have className and parentClassName after scanning
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1333837 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 10:00:32 +00:00
Olivier Lamy dfec22a65e [MPLUGIN-189] cleanup with moving some classes to separate packages
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1333836 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 10:00:19 +00:00
Olivier Lamy 7e10f5b09f [MPLUGIN-189] commit some stuff on annotation scanning
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1333835 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 09:59:49 +00:00
Olivier Lamy 8c108af423 Goal annotation renamed to Mojo, ThreadSafe moved to an attribute in Mojo annotation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1332010 13f79535-47bb-0310-9956-ffa450edef68
2012-04-29 22:00:20 +00:00
Olivier Lamy 8f804a31b5 add missing annotation parameters
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1331838 13f79535-47bb-0310-9956-ffa450edef68
2012-04-28 21:23:35 +00:00
Olivier Lamy f4945e157a [MPLUGIN-189] add java 5 annotations support to mark Mojo sources
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1331837 13f79535-47bb-0310-9956-ffa450edef68
2012-04-28 21:23:10 +00:00
Olivier Lamy 587879842d gitignore .idea
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1331730 13f79535-47bb-0310-9956-ffa450edef68
2012-04-28 09:35:36 +00:00
Olivier Lamy 991cf2c9be gitignore .idea
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1331729 13f79535-47bb-0310-9956-ffa450edef68
2012-04-28 09:34:58 +00:00
Olivier Lamy 6a4e7387fc simplify properties with using ${project.version}
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1331711 13f79535-47bb-0310-9956-ffa450edef68
2012-04-28 08:41:46 +00:00
Olivier Lamy a396a42d68 bump version to 3.0-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1331709 13f79535-47bb-0310-9956-ffa450edef68
2012-04-28 08:35:48 +00:00
Olivier Lamy ef7a965551 svn merge -r 1331609:1331611 https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189/
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1331614 13f79535-47bb-0310-9956-ffa450edef68
2012-04-27 22:10:12 +00:00
Olivier Lamy 3c1c831de4 avoid it running twice
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1331611 13f79535-47bb-0310-9956-ffa450edef68
2012-04-27 22:07:49 +00:00
Olivier Lamy 0ee73352c3 ignore .idea
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1331610 13f79535-47bb-0310-9956-ffa450edef68
2012-04-27 22:04:33 +00:00
Olivier Lamy c04e1e2ce4 create a branch for MPLUGIN-189 mojo with 1.5 annotations.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1331607 13f79535-47bb-0310-9956-ffa450edef68
2012-04-27 21:40:58 +00:00
Robert Scholte e3c0d1e684 Add IT for MPLUGIN-187, can't reproduce it with current version
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1328474 13f79535-47bb-0310-9956-ffa450edef68
2012-04-20 18:28:26 +00:00
Herve Boutemy 4060aabd27 updated maven-plugin-plugin overview to match description in http://maven.apache.org/plugins/
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1220561 13f79535-47bb-0310-9956-ffa450edef68
2011-12-18 23:28:33 +00:00
Herve Boutemy 871516003f removed jdoc package
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1220560 13f79535-47bb-0310-9956-ffa450edef68
2011-12-18 22:52:52 +00:00
Herve Boutemy da4f1a1bf7 [MPLUGIN-190@ added @executionStrategy support and deprecated @attainAlways
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1215517 13f79535-47bb-0310-9956-ffa450edef68
2011-12-17 16:03:52 +00:00
Herve Boutemy ec993bc2de fixed typos
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1215443 13f79535-47bb-0310-9956-ffa450edef68
2011-12-17 08:38:31 +00:00
Herve Boutemy c5d1e65728 more Java 5 syntax use
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1215442 13f79535-47bb-0310-9956-ffa450edef68
2011-12-17 08:28:53 +00:00
Herve Boutemy fb2232b54f improved documentation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1215323 13f79535-47bb-0310-9956-ffa450edef68
2011-12-16 22:36:01 +00:00
Herve Boutemy 14fa7efb74 transformed unit test to a more complete one
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1215322 13f79535-47bb-0310-9956-ffa450edef68
2011-12-16 22:28:37 +00:00
Herve Boutemy d39092e447 fixed comparison reprodicibility problems against plugin-expected.xml by sorting mojos and parameters lists
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1212910 13f79535-47bb-0310-9956-ffa450edef68
2011-12-10 22:40:00 +00:00
Herve Boutemy f1d00798bf more Java 5 use
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1212908 13f79535-47bb-0310-9956-ffa450edef68
2011-12-10 22:38:37 +00:00
Herve Boutemy c61b94ee17 more Java 5 use
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1212905 13f79535-47bb-0310-9956-ffa450edef68
2011-12-10 22:31:48 +00:00
Herve Boutemy 3d4c51b6d9 disabled failure on plugin.xml comparison: need to find a better technique
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1212762 13f79535-47bb-0310-9956-ffa450edef68
2011-12-10 10:37:19 +00:00
Herve Boutemy 154592cb9a check generated plugin.xml against reference plugin-expected.xml
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1210039 13f79535-47bb-0310-9956-ffa450edef68
2011-12-04 01:05:04 +00:00
Herve Boutemy c32d7e7b5c removed unused imports
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1201356 13f79535-47bb-0310-9956-ffa450edef68
2011-11-12 23:43:56 +00:00
Herve Boutemy 2f5568284f generate plugin descriptor for later comparison with expected content
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1201353 13f79535-47bb-0310-9956-ffa450edef68
2011-11-12 23:42:45 +00:00
Herve Boutemy 9f2696c98a close stream
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1200898 13f79535-47bb-0310-9956-ffa450edef68
2011-11-11 14:26:56 +00:00
Herve Boutemy f9bf892e25 use generics and other little code improvements
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1200891 13f79535-47bb-0310-9956-ffa450edef68
2011-11-11 14:05:46 +00:00
Herve Boutemy ce29792f53 added annotations example
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1187995 13f79535-47bb-0310-9956-ffa450edef68
2011-10-23 22:28:27 +00:00
Herve Boutemy b68bc62da0 added generics
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1184913 13f79535-47bb-0310-9956-ffa450edef68
2011-10-16 19:55:45 +00:00
Herve Boutemy 28f55707bc ordered THREAD_SAFE constant
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1184910 13f79535-47bb-0310-9956-ffa450edef68
2011-10-16 19:46:15 +00:00
Herve Boutemy 0c9db91e7f improved documentation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1184907 13f79535-47bb-0310-9956-ffa450edef68
2011-10-16 19:38:02 +00:00
Herve Boutemy 63d5fea846 fixed relative links
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1178959 13f79535-47bb-0310-9956-ffa450edef68
2011-10-04 21:24:11 +00:00
Herve Boutemy 6daae712b5 removed unused import
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1178583 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 21:22:09 +00:00
Olivier Lamy f8006b44b7 add a simple .gitignore
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1178090 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 21:10:51 +00:00
Herve Boutemy 022ac5922a added generics
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1164751 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 22:34:26 +00:00
Herve Boutemy e4747a5ccf added xsd and updated deprecated attribute
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1164735 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 22:03:09 +00:00
Herve Boutemy 0de9ffa666 added direct javadoc and jxr entries in Overview menu
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1164702 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 20:44:25 +00:00
Herve Boutemy e05c32d462 added aggregated javadoc and jxr with menu entry
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1164700 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 20:41:43 +00:00
Herve Boutemy 9d5fe284c6 o updated maven-reporting-impl version to match Doxia update
o removed configuration already inherited from parent
o simplified poms

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1164686 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 20:16:28 +00:00
Herve Boutemy eee0b9c069 o updated maven-reporting-impl version to match Doxia update
o removed configuration already inherited from parent

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1164679 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 19:59:25 +00:00
Herve Boutemy b4717f0c9a improved french translation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1164677 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 19:51:10 +00:00
Benson Margulies 9adfa004ec First I made some pointless POM changes, and then the release plugin didn't quite put things back
the way it found them at the end of prepare. Put everything back into line for the next round.


git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1164629 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 16:53:58 +00:00
Benson Margulies 98556bd4e8 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1164612 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 16:24:38 +00:00
Benson Margulies efca52a3ea [maven-release-plugin] prepare release maven-plugin-tools-2.9
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1164610 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 16:24:26 +00:00
Benson Margulies 1b4cf03cea pre-release cleanup, site plugin 3.0, etc.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1164601 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 16:11:05 +00:00
Benson Margulies e0ae576de1 Try to make release plugin happy.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1164593 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 15:55:35 +00:00
Benson Margulies 93cc7a1052 Update to new parent version.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1164591 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 15:54:50 +00:00
Benson Margulies 20c5286c7c [MPLUGIN-179] Clarify the goalPrefix (is there a default value for example) param
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1164587 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 15:47:35 +00:00
Benson Margulies 8a41324bbd [MPLUGIN-177] Required JDK incorrectly specified if using default for m-compiler-p
o forgot two svn adds.


git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1164585 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 15:40:15 +00:00
Benson Margulies 89be0cfb89 [MPLUGIN-177] Required JDK incorrectly specified if using default for m-compiler-p
o if the target isn't there, refer the reader to the compiler plugin. Don't try to 
maintain a list of default versions for compiler plugin versions, and never say '1.1'.


git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1164584 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 15:38:56 +00:00
Benson Margulies 2a9baa7354 [MPLUGIN-124]: The generated documentation for a Mojo should show if it is a build plugin or a reporting plugin
o adjust wording after reading Vincent's remarks more carefully.


git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1164547 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 14:21:50 +00:00
Benson Margulies a1f9697b64 [MPLUGIN-124] The generated documentation for a Mojo should show if it is a build plugin or a reporting plugin
o This renders text corresponding to @requiresReport. There is no metadata that I can find
that answers the question 'Can this be invoked as a reporting plugin'


git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1164545 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 14:19:21 +00:00
Benson Margulies 7e5d5325bf [MPLUGIN-120]: Update to Doxia 1.2
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1164530 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 13:39:42 +00:00
Benson Margulies 03e3a1d4c3 [MPLUGIN-168] Plugins with no mojos lead to exception and failure in PluginReport
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1164525 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 13:31:56 +00:00
Stephen Connolly f8e21c5bf7 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1133745 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 09:29:28 +00:00
Stephen Connolly a07e6b6adc [maven-release-plugin] prepare release maven-plugin-tools-2.8
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1133742 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 09:28:05 +00:00
Stephen Connolly f188051c3a update some plugin versions which were specified explicitly and fix relativePath for m-p-p
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1133739 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 09:26:31 +00:00
Stephen Connolly 595cc6897c [MPLUGIN-174] Add standard skip configuration option.
o There may be valid use cases where the skip property is useful.

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1133737 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 09:20:50 +00:00
Stephen Connolly bf39ba1803 minor reformat of the poms to conform with recommended style
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1133710 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 08:33:21 +00:00
Stephen Connolly ebe3373c73 update to latest parents
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1133708 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 08:30:17 +00:00
Stephen Connolly 065a85cc28 [MPLUGIN-184] Upgrade to JDK5
Submitted by: Robert Scholte

o Applied with one change (upgraded surefire version from 2.4.3 to 2.8.1)

o All integration tests still passing on my machine

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1133707 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 08:28:59 +00:00
Stephen Connolly 6c63ab9110 [MPLUGIN-173] Start using net.sf.jtidy artifact with correct I/O encoding
Submitted by: Stanislav Ochotnicky

o Applied without change

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1133705 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 08:21:03 +00:00
Stephen Connolly 723c6c03bf fix typo in r1125604
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1125820 13f79535-47bb-0310-9956-ffa450edef68
2011-05-21 21:18:44 +00:00
Stephen Connolly f88a58cecb No point sitting on this change any longer.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1125604 13f79535-47bb-0310-9956-ffa450edef68
2011-05-21 00:21:26 +00:00
Dennis Lundberg 3a0081e45b Add ciManagement for Jenkins.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1103526 13f79535-47bb-0310-9956-ffa450edef68
2011-05-15 20:11:33 +00:00
Dennis Lundberg 3c5911b8a9 [MPLUGIN-183] When setting useJava5 to true the generated code has warnings for Java 5 features
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1098364 13f79535-47bb-0310-9956-ffa450edef68
2011-05-01 16:07:11 +00:00
Dennis Lundberg 0cd203af4e o Add correct stagingSiteURL
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1098360 13f79535-47bb-0310-9956-ffa450edef68
2011-05-01 15:46:30 +00:00
Benjamin Bentmann 4b7fd20413 o Added license headers
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1067723 13f79535-47bb-0310-9956-ffa450edef68
2011-02-06 18:27:06 +00:00
Benjamin Bentmann d9f85927fd o Fixed ITs for Maven 3.x to use proper Site Plugin
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1067721 13f79535-47bb-0310-9956-ffa450edef68
2011-02-06 18:23:31 +00:00
Dennis Lundberg cc3dde3174 o Fix stagingSiteURL
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1067553 13f79535-47bb-0310-9956-ffa450edef68
2011-02-06 00:10:19 +00:00
Dennis Lundberg ce8ec2ee7e [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1067548 13f79535-47bb-0310-9956-ffa450edef68
2011-02-05 23:06:16 +00:00
Dennis Lundberg f60b137608 [maven-release-plugin] prepare release maven-plugin-tools-2.7
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1067546 13f79535-47bb-0310-9956-ffa450edef68
2011-02-05 23:05:12 +00:00
Dennis Lundberg 8605ba634c o Use maven-site-plugin 2.2, to avoid AIOOB Exception.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1067540 13f79535-47bb-0310-9956-ffa450edef68
2011-02-05 22:12:52 +00:00
Dennis Lundberg 7f32cbc96f o Fix errors reported by Checkstyle.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1067539 13f79535-47bb-0310-9956-ffa450edef68
2011-02-05 22:11:34 +00:00
Dennis Lundberg 4e5f561c73 o Add missing license headers.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1067538 13f79535-47bb-0310-9956-ffa450edef68
2011-02-05 22:10:52 +00:00
Dennis Lundberg 6f9281c25b o Upgrade to maven-parent 18.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1067532 13f79535-47bb-0310-9956-ffa450edef68
2011-02-05 21:48:33 +00:00
Lukas Theussl b42791542d [MPLUGIN-180] use correct (input) encoding as default
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1059774 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 07:45:10 +00:00
Lukas Theussl 3f754b9ef6 [MPLUGIN-180] forward encoding to the PluginToolsRequest
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1059551 13f79535-47bb-0310-9956-ffa450edef68
2011-01-16 13:14:04 +00:00
Dennis Lundberg 269ca6f328 [MPLUGIN-165] Upgrading to Maven Site 2.1 messes up plugin site generation
Submitted by: Robert Scholte
Reviewed by: Dennis Lundberg

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1057355 13f79535-47bb-0310-9956-ffa450edef68
2011-01-10 20:58:09 +00:00
Benjamin Bentmann a30e8eabbd [MPLUGIN-176] helpmojo: Use Java 5 generics in generated help mojo
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1050558 13f79535-47bb-0310-9956-ffa450edef68
2010-12-18 00:46:38 +00:00
Benjamin Bentmann 9ea26413d9 [MPLUGIN-178] Generated help mojo should indicate parameter expression and required status
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1050544 13f79535-47bb-0310-9956-ffa450edef68
2010-12-18 00:18:09 +00:00
Benjamin Bentmann 629ed1299a o Removed irritating reference to Maven version 2
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1023489 13f79535-47bb-0310-9956-ffa450edef68
2010-10-17 12:57:32 +00:00
Benjamin Bentmann 87c21dc717 [MPLUGIN-171] Mark generated help goal as thread-safe
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@944821 13f79535-47bb-0310-9956-ffa450edef68
2010-05-16 12:38:17 +00:00
Benjamin Bentmann 5fa8be28e3 [MPLUGIN-170] Mark plugin as thread-safe
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@944815 13f79535-47bb-0310-9956-ffa450edef68
2010-05-16 12:28:02 +00:00
Benjamin Bentmann 36580431d3 o Fixed JIRA report
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@944806 13f79535-47bb-0310-9956-ffa450edef68
2010-05-16 11:44:35 +00:00
Benjamin Bentmann 443248d28e o Formatted code
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@944804 13f79535-47bb-0310-9956-ffa450edef68
2010-05-16 11:34:46 +00:00
Herve Boutemy b121baede4 updated reporting plugins dependencies: maven-reporting-api 3.0 and maven-reporting-impl 2.0.5
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@943730 13f79535-47bb-0310-9956-ffa450edef68
2010-05-12 22:35:02 +00:00
Benjamin Bentmann 9844091074 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@940017 13f79535-47bb-0310-9956-ffa450edef68
2010-05-01 13:48:14 +00:00
Benjamin Bentmann 10fe5e9de1 [maven-release-plugin] prepare release maven-plugin-tools-2.6
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@940014 13f79535-47bb-0310-9956-ffa450edef68
2010-05-01 13:47:12 +00:00
Benjamin Bentmann e869ef7b62 [MPLUGIN-146] Implement pluginXml parameter for maven-plugin-plugin
o Added a skip parameter instead which simply allows usage of src/main/resources/META-INF/maven/plugin.xml to yield the desired effect

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@940010 13f79535-47bb-0310-9956-ffa450edef68
2010-05-01 13:35:33 +00:00
Benjamin Bentmann a54c0dca73 o Polished code
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@940009 13f79535-47bb-0310-9956-ffa450edef68
2010-05-01 13:32:37 +00:00
Benjamin Bentmann 8f3fb7e4e2 [MPLUGIN-168] Provide ability to set package of HelpMojo
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@940004 13f79535-47bb-0310-9956-ffa450edef68
2010-05-01 12:54:30 +00:00
Benjamin Bentmann 94f941a1e5 o Updated to plexus-utils:2.0.5
o Updated to qdox:1.11
o Updated to maven-invoker-plugin:1.5

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@939993 13f79535-47bb-0310-9956-ffa450edef68
2010-05-01 12:20:51 +00:00
Benjamin Bentmann 65bc9e27f2 o Extended ITs
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@939992 13f79535-47bb-0310-9956-ffa450edef68
2010-05-01 12:19:13 +00:00
Benjamin Bentmann 420accac73 o Updated to plexus-utils:2.0.5
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@939983 13f79535-47bb-0310-9956-ffa450edef68
2010-05-01 11:53:33 +00:00
Dennis Lundberg ba67980170 [MPLUGIN-166] Add Swedish translation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@938647 13f79535-47bb-0310-9956-ffa450edef68
2010-04-27 21:00:33 +00:00
Benjamin Bentmann b8a9bbe373 o Polished code
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@938263 13f79535-47bb-0310-9956-ffa450edef68
2010-04-26 22:48:25 +00:00
Benjamin Bentmann 3da36fb45d o Bumped version to 2.6-SNAPSHOT to account for recent feature additions
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@938255 13f79535-47bb-0310-9956-ffa450edef68
2010-04-26 21:57:50 +00:00
Benjamin Bentmann 414cf00f4f o Inherited from maven-plugins:17 and maven-parent:16
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@938250 13f79535-47bb-0310-9956-ffa450edef68
2010-04-26 21:51:25 +00:00
Kristian Rosenvold ee79e019e3 [MPLUGIN-169][MPLUGIN-159] Added support for @threadSafe and @requiresDependencyCollection
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@938248 13f79535-47bb-0310-9956-ffa450edef68
2010-04-26 21:32:51 +00:00
Benjamin Bentmann 5b1e090544 o Fixed mailing list links
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@930751 13f79535-47bb-0310-9956-ffa450edef68
2010-04-04 21:23:09 +00:00
Dennis Lundberg 437b52372d o Minor tweaks to the site
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@897545 13f79535-47bb-0310-9956-ffa450edef68
2010-01-09 21:08:06 +00:00
Dennis Lundberg 4b2570debc o Add xml schema
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@897544 13f79535-47bb-0310-9956-ffa450edef68
2010-01-09 21:06:11 +00:00
Dennis Lundberg 1dc296a1b4 o Remove skin since we are using Maven Parent 11+
o Add xml schema

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@897539 13f79535-47bb-0310-9956-ffa450edef68
2010-01-09 20:49:51 +00:00
Dennis Lundberg f0fc40bb1d Remove unnecessary project name.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@897537 13f79535-47bb-0310-9956-ffa450edef68
2010-01-09 20:48:34 +00:00
Benjamin Bentmann dba47ff264 o Inherited from maven-plugins:16 and maven-parent:15
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@894998 13f79535-47bb-0310-9956-ffa450edef68
2010-01-01 12:17:16 +00:00
Herve Boutemy fba95a7f95 fixed typos
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@829420 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 17:42:59 +00:00
Herve Boutemy 367d7e1adf added modello xsd
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@829382 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 14:53:47 +00:00
Benjamin Bentmann 4ccdd97698 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@821525 13f79535-47bb-0310-9956-ffa450edef68
2009-10-04 12:10:07 +00:00
Benjamin Bentmann 9ab0f55cb5 [maven-release-plugin] prepare release maven-plugin-tools-2.5.1
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@821522 13f79535-47bb-0310-9956-ffa450edef68
2009-10-04 12:09:08 +00:00
Benjamin Bentmann cc22497ec4 o Added undeclared dependencies
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@821520 13f79535-47bb-0310-9956-ffa450edef68
2009-10-04 11:55:07 +00:00
Benjamin Bentmann d11dfa4223 [MPLUGIN-148] PluginXdocGenerator generates poorly formed output when default values contain XML
Submitted by: Brent N Atkinson

o Enriched with test

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@821512 13f79535-47bb-0310-9956-ffa450edef68
2009-10-04 11:22:41 +00:00
Benjamin Bentmann 6cb48fbe1e [MPLUGIN-162] Update to QDox 1.10
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@821370 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03 17:30:55 +00:00
Benjamin Bentmann 0556d6182d [MPLUGIN-161] plugin:xdoc generates an incomplete description about the execution of another plugin goal
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@821367 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03 17:17:48 +00:00
Benjamin Bentmann 63cd33c8c4 o Updated to maven-invoker-plugin:1.4
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@818777 13f79535-47bb-0310-9956-ffa450edef68
2009-09-25 09:11:28 +00:00
Herve Boutemy 274c8f6bba updated parent pom
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@817452 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 22:47:10 +00:00
Herve Boutemy 78153ef33d updated parent pom
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@817451 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 22:42:33 +00:00
Benjamin Bentmann 8f3547b1a8 o Strengthened IT
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@811706 13f79535-47bb-0310-9956-ffa450edef68
2009-09-05 20:09:31 +00:00
Vincent Siveton 3c2bde6892 MPLUGIN-158: Bump to Doxia 1.0
o added doxia 1.0

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@804674 13f79535-47bb-0310-9956-ffa450edef68
2009-08-16 11:50:37 +00:00
Vincent Siveton 65063ace8d MPLUGIN-157: Review the Doxia Sink calls
o added Doxia schema
o fix empty attributes

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@804672 13f79535-47bb-0310-9956-ffa450edef68
2009-08-16 11:48:30 +00:00
Vincent Siveton b708f3a2b0 o fixed ambiguous links
o added Doxia xsd

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@802373 13f79535-47bb-0310-9956-ffa450edef68
2009-08-08 13:36:47 +00:00
Benjamin Bentmann 6899312e11 o Enabled filtering of version
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@800625 13f79535-47bb-0310-9956-ffa450edef68
2009-08-03 23:37:13 +00:00
Benjamin Bentmann 08da1932fd [MPLUGIN-156] Stabilize ordering of configuration and requirements in generated plugin descriptor
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@800623 13f79535-47bb-0310-9956-ffa450edef68
2009-08-03 23:30:38 +00:00
Benjamin Bentmann 11c9b57a72 o Used filtering to include current plugin version in site docs
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@793379 13f79535-47bb-0310-9956-ffa450edef68
2009-07-12 17:21:27 +00:00
Benjamin Bentmann a6b3580c3e [MPLUGIN-150] Update to QDox 1.9.2
o Updated dependency and added tests that would fail without the update

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@792653 13f79535-47bb-0310-9956-ffa450edef68
2009-07-09 19:44:53 +00:00
Benjamin Bentmann 074cf5ba40 [MPLUGIN-150] Update to QDox 1.9.1
o Updated dependency and added IT to motivate update

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@773320 13f79535-47bb-0310-9956-ffa450edef68
2009-05-10 10:06:36 +00:00
Benjamin Bentmann c8a4f2eef2 o Used http://maven.apache.org/xsd/* for schema location
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@748846 13f79535-47bb-0310-9956-ffa450edef68
2009-02-28 13:06:32 +00:00
John Dennis Casey 2f81783965 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@747095 13f79535-47bb-0310-9956-ffa450edef68
2009-02-23 18:11:00 +00:00
John Dennis Casey 6dd3ca4230 [maven-release-plugin] prepare release maven-plugin-tools-2.5
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@747093 13f79535-47bb-0310-9956-ffa450edef68
2009-02-23 18:10:42 +00:00
Benjamin Bentmann 9ebabd646f [MPLUGIN-110] Make easier to pass parameters into MojoDescriptorExtractors
o Catched potential linkage error when users update the plugin version but forget the dependencies and provide a more helpful error message

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@746796 13f79535-47bb-0310-9956-ffa450edef68
2009-02-22 18:41:03 +00:00
Benjamin Bentmann 43d32fdfea o Added IT to check help mojo generation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@746519 13f79535-47bb-0310-9956-ffa450edef68
2009-02-21 14:31:06 +00:00
Benjamin Bentmann 421e3f622c o Inherited from maven-parent:11
o Inherited from maven-plugins:13

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@746462 13f79535-47bb-0310-9956-ffa450edef68
2009-02-21 09:30:07 +00:00
Benjamin Bentmann 4ccbdfa20a [MPLUGIN-101] Allow customization of file encoding used for mojo extraction
o Added IT

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@746415 13f79535-47bb-0310-9956-ffa450edef68
2009-02-20 23:29:29 +00:00
Benjamin Bentmann 7f49d49717 o Updated tests to use non-deprecated API
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@746407 13f79535-47bb-0310-9956-ffa450edef68
2009-02-20 22:55:44 +00:00
Benjamin Bentmann 5f9cec0836 [MPLUGIN-106] remove no mojo deprecation warning and throw an exception
o Enabled unit test

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@746402 13f79535-47bb-0310-9956-ffa450edef68
2009-02-20 22:45:16 +00:00
Benjamin Bentmann 1ef2a82af8 o Fixed some javadoc issues
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@746400 13f79535-47bb-0310-9956-ffa450edef68
2009-02-20 22:42:13 +00:00
Benjamin Bentmann 23b1cd791f [MPLUGIN-100] Allow customization of file encoding used for generated help goal
o Used encoding from request for output file

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@746389 13f79535-47bb-0310-9956-ffa450edef68
2009-02-20 22:26:33 +00:00
Benjamin Bentmann a2ded7300c o Adjusted encoding default value to follow our proposal
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@746386 13f79535-47bb-0310-9956-ffa450edef68
2009-02-20 22:17:25 +00:00
John Dennis Casey 5c42776c50 [MPLUGIN-111] Warn about the use of platform encoding for extracting mojo metadata. This warning is adapted from that used in the resources plugin, from maven-filtering.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@746382 13f79535-47bb-0310-9956-ffa450edef68
2009-02-20 21:58:19 +00:00
John Dennis Casey b38d62494f [MPLUGIN-106] Throw an exception when no mojo defs found for a plugin, instead of merely warning about it.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@746379 13f79535-47bb-0310-9956-ffa450edef68
2009-02-20 21:49:40 +00:00
John Dennis Casey d488f9c649 [MPLUGIN-100] Pass new PluginToolsRequest through Generator instances too, so generators like the help mojo generator can use the encoding, etc. parameters.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@746372 13f79535-47bb-0310-9956-ffa450edef68
2009-02-20 21:42:27 +00:00
John Dennis Casey 03ed8882f2 [MPLUGIN-101] Add encoding parameter to maven-plugin-plugin mojos, and add encoding to PluginToolsRequest to allow it to pass through the plugin tools when executed.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@746366 13f79535-47bb-0310-9956-ffa450edef68
2009-02-20 21:13:39 +00:00
John Dennis Casey 0e1c3d6155 [MPLUGIN-110] make pluginToolsVersion property consistent here and in maven-plugin-plugin. The API has changed, so we need to avoid plugin-tools-* < 2.5.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@746361 13f79535-47bb-0310-9956-ffa450edef68
2009-02-20 20:27:01 +00:00
John Dennis Casey 9f303ca83c [MPLUGIN-110] Amend API to pass PluginToolsRequest around instead of project and pluginDescriptor. This will allow expansion of parameter passing in the future to include things like encoding, etc.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@746360 13f79535-47bb-0310-9956-ffa450edef68
2009-02-20 20:25:53 +00:00
Benjamin Bentmann 0f407357e3 o Synced version of dependencies on plugin tools with project version
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@746347 13f79535-47bb-0310-9956-ffa450edef68
2009-02-20 19:47:26 +00:00
John Dennis Casey aee74af5a0 [MNG-4030] Change version to 2.5-SNAPSHOT in preparation for staging a release.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@746063 13f79535-47bb-0310-9956-ffa450edef68
2009-02-20 00:12:02 +00:00
Brian E Fox 1b3bc47cc5 use the new parent
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@744349 13f79535-47bb-0310-9956-ffa450edef68
2009-02-14 01:25:24 +00:00
John Dennis Casey 9d329bb771 [MNG-3971] Injecting plugin parameters necessary to provide standard classpaths currently available in the antrun plugin, and also plugin-style expression evaluation within the Ant script itself.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@743583 13f79535-47bb-0310-9956-ffa450edef68
2009-02-12 01:00:40 +00:00
Vincent Siveton 9cc4386b3a o bump to maven-stylus-skin:1.1
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@735012 13f79535-47bb-0310-9956-ffa450edef68
2009-01-16 13:53:39 +00:00
Benjamin Bentmann 9aa7d6212d [MPLUGIN-141] Output warning for deprecated component expressions
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@731237 13f79535-47bb-0310-9956-ffa450edef68
2009-01-04 12:24:34 +00:00
Benjamin Bentmann f3458ce478 [MPLUGIN-140] Plugin report states wrong JDK requirement
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@730368 13f79535-47bb-0310-9956-ffa450edef68
2008-12-31 10:37:22 +00:00
Dennis Lundberg c2b40e8397 o Put back the breadcrumbs that were removed in r729027.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@729877 13f79535-47bb-0310-9956-ffa450edef68
2008-12-29 12:04:39 +00:00
Vincent Siveton a0d8efe152 o using maven-stylus-skin snap due to r728944
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@729027 13f79535-47bb-0310-9956-ffa450edef68
2008-12-23 16:18:37 +00:00
Benjamin Bentmann 166929ac4c o Inherited from maven-parent:10
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@728924 13f79535-47bb-0310-9956-ffa450edef68
2008-12-23 10:49:20 +00:00
Herve Boutemy e458ef9898 [MNG-3224] plugin-metadata XSD has wrong namespace
o specify unique namespace

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@728813 13f79535-47bb-0310-9956-ffa450edef68
2008-12-22 22:24:51 +00:00
Benjamin Bentmann c061da352d o Migrated test for MPLUGIN-105 into automated IT suite
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@703706 13f79535-47bb-0310-9956-ffa450edef68
2008-10-11 18:41:20 +00:00
Herve Boutemy 8e70adc89b code simplification
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@703672 13f79535-47bb-0310-9956-ffa450edef68
2008-10-11 15:04:58 +00:00
Herve Boutemy bb97cde734 use fixed encoding instead of platform encoding
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@702255 13f79535-47bb-0310-9956-ffa450edef68
2008-10-06 20:49:29 +00:00
Benjamin Bentmann ab8736ed17 o Converted "unit" test into full-blown IT (e.g. to support repo managers)
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@700413 13f79535-47bb-0310-9956-ffa450edef68
2008-09-30 11:07:40 +00:00
Benjamin Bentmann ef52310e90 o Updated to maven-invoker-plugin:1.3
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@700377 13f79535-47bb-0310-9956-ffa450edef68
2008-09-30 07:51:40 +00:00
Benjamin Bentmann 916118cb05 o Migrated core IT 0013 over to its corresponding plugin project
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@698148 13f79535-47bb-0310-9956-ffa450edef68
2008-09-23 12:00:54 +00:00
Benjamin Bentmann 3abda526a2 o Added <version> element to example POM snippets to promote best practice
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@698015 13f79535-47bb-0310-9956-ffa450edef68
2008-09-22 21:59:44 +00:00
Benjamin Bentmann e1a52fcdad o Inherited from maven-plugins:12
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@698014 13f79535-47bb-0310-9956-ffa450edef68
2008-09-22 21:57:37 +00:00
Benjamin Bentmann c551c6a63c o Polished site
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@695160 13f79535-47bb-0310-9956-ffa450edef68
2008-09-14 09:28:08 +00:00
Benjamin Bentmann 4ae636f4d2 o Polished site
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@694657 13f79535-47bb-0310-9956-ffa450edef68
2008-09-12 09:01:48 +00:00
Benjamin Bentmann ef64da32a6 o Inherited from maven-parent:9
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@694648 13f79535-47bb-0310-9956-ffa450edef68
2008-09-12 08:25:26 +00:00
Benjamin Bentmann 0989ec1c08 o Adjusted log level
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@693887 13f79535-47bb-0310-9956-ffa450edef68
2008-09-10 16:37:28 +00:00
Benjamin Bentmann 2ec42912fd o Polished documentation
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@693885 13f79535-47bb-0310-9956-ffa450edef68
2008-09-10 16:34:50 +00:00
Benjamin Bentmann 74c384ebe5 [MPLUGIN-138] Suppress bogus warning in case goalPrefix has been set to default goal prefix
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@691149 13f79535-47bb-0310-9956-ffa450edef68
2008-09-02 08:26:12 +00:00
Vincent Siveton e4a1c9311d o be sure that deprecated tag for parameter is not empty
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@690503 13f79535-47bb-0310-9956-ffa450edef68
2008-08-30 13:39:27 +00:00
Vincent Siveton e14d6818b1 MPLUGIN-137: PluginDescriptorGenerator doesn't write plugin name
o added missing field

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@690496 13f79535-47bb-0310-9956-ffa450edef68
2008-08-30 13:06:17 +00:00
Vincent Siveton 5639cdc491 o take car if pluginDescriptor.getName() is unknown
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@690415 13f79535-47bb-0310-9956-ffa450edef68
2008-08-29 22:53:35 +00:00
Vincent Siveton aa820b38dc o take car if pluginDescriptor.getName() is unknown
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@690414 13f79535-47bb-0310-9956-ffa450edef68
2008-08-29 22:50:34 +00:00
Vincent Siveton 27414b458d o revert part of r690203 and improved it
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@690403 13f79535-47bb-0310-9956-ffa450edef68
2008-08-29 22:08:31 +00:00
Vincent Siveton a8b07dbe42 o ordering mojodescriptors and parameters
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@690203 13f79535-47bb-0310-9956-ffa450edef68
2008-08-29 12:22:19 +00:00
Benjamin Bentmann 8bbc1941e8 o Updated index page of plugin site
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@690177 13f79535-47bb-0310-9956-ffa450edef68
2008-08-29 10:53:02 +00:00
Benjamin Bentmann f7e09860e3 o Made "System Requirements" and "Usage" subsections of "Plugin Documentation" to match logical structure
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@689910 13f79535-47bb-0310-9956-ffa450edef68
2008-08-28 17:36:10 +00:00
Benjamin Bentmann 578e36362e o Explicitly stated UTF-8 as file encoding
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@689876 13f79535-47bb-0310-9956-ffa450edef68
2008-08-28 16:33:24 +00:00
John Dennis Casey 7e65cf62ad [MNG-3731] Detect absolute script directories, and only prepend basedir to relative paths.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@689698 13f79535-47bb-0310-9956-ffa450edef68
2008-08-28 02:09:10 +00:00
John Dennis Casey 969c5cb752 bumping pluginToolsVersion to 2.4.4-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@689697 13f79535-47bb-0310-9956-ffa450edef68
2008-08-28 02:08:27 +00:00
Benjamin Bentmann f3922a425d o Updated index page of plugin site
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@688564 13f79535-47bb-0310-9956-ffa450edef68
2008-08-24 21:34:33 +00:00
Benjamin Bentmann 69f5bd3eb2 [MPLUGIN-135] Deprecated info in parameter table of goal page contains garbage
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@687801 13f79535-47bb-0310-9956-ffa450edef68
2008-08-21 16:46:26 +00:00
Vincent Siveton b85de01ba8 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@685860 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 11:35:35 +00:00
Vincent Siveton b66e09de0e [maven-release-plugin] prepare release maven-plugin-tools-2.4.3
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@685858 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 11:34:12 +00:00
Vincent Siveton be433596c1 o fixed BOM
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@685857 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 11:30:02 +00:00
Vincent Siveton 89e60a34bf o revert r685847 since it is unit tests and not ITs
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@685851 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 11:10:45 +00:00
Vincent Siveton a0a01e4807 o Synced id and activation of integration-tests with core ITs
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@685847 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 10:52:42 +00:00
Vincent Siveton e5c4c3c563 o removed reporting tag
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@685846 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 10:50:39 +00:00
Vincent Siveton f178cd48a8 o normalize date and comments
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@685842 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 10:43:01 +00:00
Vincent Siveton da57cba2a1 o fixed Javadoc
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@685841 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 10:36:32 +00:00
Vincent Siveton 4ae217c887 o ordered POM following our conventions
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@685840 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 10:35:52 +00:00
Vincent Siveton 7a4c3a9bd5 MPLUGIN-134: Review the support of Mojo's annotations
o ordering annotations

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@685111 13f79535-47bb-0310-9956-ffa450edef68
2008-08-12 10:38:09 +00:00
Vincent Siveton e10914b835 MPLUGIN-133: JavaMojoDescriptorExtractor doesn't handle @requiresProject
o added the support of @requiresProject

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684956 13f79535-47bb-0310-9956-ffa450edef68
2008-08-11 22:04:46 +00:00
Benjamin Bentmann 207f2876f7 o Updated SCM web url
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684595 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 21:07:16 +00:00
Benjamin Bentmann af24fd6d6d o Fixed nesting of block-level elements
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684481 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 12:13:27 +00:00
Benjamin Bentmann 1a9739f878 [MPLUGIN-132] Don't encourage users to use "mvn -up" to update plugins
o Updated German bundle

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684476 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 12:03:02 +00:00
Vincent Siveton c0ab72d4e5 o fixed French typo
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684469 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 11:46:13 +00:00
Vincent Siveton d5f8688fec MPLUGIN-132: Don't encourage users to use "mvn -up" to update plugins
o removed mvn -up

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684468 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 11:45:11 +00:00
Vincent Siveton 5f13b24b5f o fixed pluginToolsVersion property
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684259 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 13:25:20 +00:00
Vincent Siveton 6261464990 o using maven-parent:8 to make a release
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684254 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 13:14:17 +00:00
Vincent Siveton 1ead7d92ff o using latest version of maven artifacts, p-u, plugin-descriptor
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684252 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 13:08:00 +00:00
Vincent Siveton ec18637ce8 o ordered pom tags
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684251 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 13:05:43 +00:00
Vincent Siveton 6fa10d184e o added a reporting profile with some plugins
o added release notes link

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684250 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 13:03:55 +00:00
Vincent Siveton b8c362cdce o updated dependencies version: maven artifacts, maven-reporting-impl, testing-harness
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684248 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 12:56:13 +00:00
Vincent Siveton a7c07da38d o using latest testing-harness
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684247 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 12:55:04 +00:00
Vincent Siveton d9230d26fd o updated to latest modello
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684246 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 12:54:20 +00:00
Vincent Siveton 8e49ca4c38 o updated dependencies version to latest: p-u, testing-harness, plugin-descriptor
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684245 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 12:53:48 +00:00
Vincent Siveton 5060d590a6 o added l10n-maven-plugin report in a reporting profile
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684242 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 12:36:07 +00:00
Vincent Siveton 5d38c8d3a8 o fixed checkstyle + updated javadoc
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684241 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 12:16:04 +00:00
Vincent Siveton 65a52813c7 o fixed checkstyle + updated javadoc
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684240 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 12:15:40 +00:00
Vincent Siveton e84fa8eeaa o fixed checkstyle + updated javadoc
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684238 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 12:15:04 +00:00
Vincent Siveton 126320356b o code readingness
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684237 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 12:14:13 +00:00
Vincent Siveton 4c3d449369 o fixed checkstyle + updated javadoc
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684236 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 12:11:34 +00:00
Vincent Siveton fa601065d6 o fixed checkstyle + updated javadoc
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684232 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 12:08:18 +00:00
Vincent Siveton e798f33a69 MPLUGIN-33: Unrecognized tag when trying to fork lifecycle from an ant-based mojo
o generated the metadata xsd and documentation
o updated modello to 1.0-alpha-20
o update the documentation 

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684087 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 20:50:34 +00:00
Vincent Siveton e4d2f9c283 MPLUGIN-131: PluginXdocGenerator doesn't handle correctly the Resource bundles and make typo in some languages
o move all i18n texts in bundle
o using MessageFormat to format some values

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@684062 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 19:28:52 +00:00
Vincent Siveton ef016223f4 MPLUGIN-128: Add a line break before writing default value in description field
o added a line break and used strong tag

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@683993 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 15:08:42 +00:00
Vincent Siveton e834ade9d1 MPLUGIN-130: PluginDescriptorGenerator doesn't write deprecated tag for a mojo
o added deprecated tag

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@683987 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 14:52:32 +00:00
Vincent Siveton 2f241ee5e4 o revert part of r683705 due to comments on dev@
o change the modifier to private for generated toLines()

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@683951 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 12:31:31 +00:00
Vincent Siveton 6a27c2f25b o added a validation for lineLength and indentSize and updated Javadoc (should be positive)
o change modifier for toLines() into public static so it could be used outside like in the help plugin

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@683705 13f79535-47bb-0310-9956-ffa450edef68
2008-08-07 20:29:31 +00:00
Arnaud Heritier 0d7321f265 Check that maven-parent 9 works with all projects
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@683423 13f79535-47bb-0310-9956-ffa450edef68
2008-08-06 21:53:33 +00:00
Vincent Siveton a64b09a571 o pluginToolsVersion property should be the pom version
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@683378 13f79535-47bb-0310-9956-ffa450edef68
2008-08-06 19:10:45 +00:00
Vincent Siveton dfcc49f871 o improved the generated class Javadoc and added @author tag
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@683377 13f79535-47bb-0310-9956-ffa450edef68
2008-08-06 19:06:37 +00:00
Vincent Siveton 741179ac0c o deprecated toText and move this method to PluginUtils
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@683374 13f79535-47bb-0310-9956-ffa450edef68
2008-08-06 19:03:43 +00:00
Benjamin Bentmann 2900246e01 [MPLUGIN-129] Avoid generation of emtpy plugin report for POM projects
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@681142 13f79535-47bb-0310-9956-ffa450edef68
2008-07-30 17:48:08 +00:00
Benjamin Bentmann afb4e34338 [MPLUGIN-126] Report mojo outputs XDoc into wrong directory if outputDirectory parameter is overriden with a relative path
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@677730 13f79535-47bb-0310-9956-ffa450edef68
2008-07-17 21:18:06 +00:00
Vincent Siveton 2d35862ed0 o provided minimalist site.xml and apt files
o using <menu/> tag in site.xml

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@677131 13f79535-47bb-0310-9956-ffa450edef68
2008-07-16 02:06:59 +00:00
Vincent Siveton 5ed3f4f8f7 o upgraded to some latest plugins
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@677130 13f79535-47bb-0310-9956-ffa450edef68
2008-07-16 02:05:31 +00:00
Benjamin Bentmann cda65146bf [MPLUGIN-125] Add deprecation messages to output of help mojo
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@676060 13f79535-47bb-0310-9956-ffa450edef68
2008-07-11 19:49:59 +00:00
Benjamin Bentmann fbede8b03c [MPLUGIN-26] Parsing issue due to qdox regression
o Updated to QDOX 1.6.3

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@675225 13f79535-47bb-0310-9956-ffa450edef68
2008-07-09 15:22:09 +00:00
Dennis Lundberg 801cb982b2 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@670427 13f79535-47bb-0310-9956-ffa450edef68
2008-06-22 22:26:47 +00:00
Dennis Lundberg 141b089114 [maven-release-plugin] prepare release maven-plugin-tools-2.4.2
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@670425 13f79535-47bb-0310-9956-ffa450edef68
2008-06-22 22:26:24 +00:00
388 changed files with 26057 additions and 5686 deletions

15
.gitignore vendored 100644
View File

@ -0,0 +1,15 @@
target
#idea
*.iml
.idea
out/
#eclipse
.classpath
.project
.settings
.DS_Store
.java-version

1
Jenkinsfile vendored 100644
View File

@ -0,0 +1 @@
asfMavenStdBuild(javaVersions:['8','7'])

23
deploySite.sh 100644
View File

@ -0,0 +1,23 @@
#!/bin/sh
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
mvn -Preporting site site:stage $@
mvn scm-publish:publish-scm $@

View File

@ -0,0 +1,41 @@
<?xml version='1.0' encoding='UTF-8'?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>maven-plugin-tools</artifactId>
<groupId>org.apache.maven.plugin-tools</groupId>
<version>3.5.1-SNAPSHOT</version>
</parent>
<artifactId>maven-plugin-annotations</artifactId>
<name>Maven Plugin Tools Java 5 Annotations</name>
<description>Java 5 annotations to use in Mojos</description>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
<version>3.0</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,54 @@
package org.apache.maven.plugins.annotations;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Used to configure injection of Plexus components by
* <a href="/ref/current/maven-core/apidocs/org/apache/maven/plugin/MavenPluginManager.html">
* <code>MavenPluginManager.getConfiguredMojo(...)</code></a>.
*
* @author Olivier Lamy
* @since 3.0
*/
@Documented
@Retention( RetentionPolicy.CLASS )
@Target( { ElementType.FIELD } )
@Inherited
public @interface Component
{
/**
* role of the component to inject.
* @return the role
*/
Class<?> role() default Object.class;
/**
* hint of the component to inject.
* @return the hint
*/
String hint() default "";
}

View File

@ -0,0 +1,58 @@
package org.apache.maven.plugins.annotations;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Used if your Mojo needs to fork a <a href="/ref/3.0.4/maven-core/lifecycles.html">lifecycle</a>.
*
* @author Olivier Lamy
* @since 3.0
*/
@Documented
@Retention( RetentionPolicy.CLASS )
@Target( ElementType.TYPE )
@Inherited
public @interface Execute
{
/**
* lifecycle phase to fork. Note that specifying a phase overrides specifying a goal.
* @return the phase
*/
LifecyclePhase phase() default LifecyclePhase.NONE;
/**
* goal to fork. Note that specifying a phase overrides specifying a goal.
* @return the goal
*/
String goal() default "";
/**
* lifecycle id to fork.
* @return the lifecycle id
*/
String lifecycle() default "";
}

View File

@ -0,0 +1,46 @@
package org.apache.maven.plugins.annotations;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
* Component instantiation strategy.
*
* @author Hervé Boutemy
* @since 3.0
*/
public enum InstantiationStrategy
{
PER_LOOKUP( "per-lookup" ),
SINGLETON( "singleton" ),
KEEP_ALIVE( "keep-alive" ),
POOLABLE( "poolable" );
private final String id;
InstantiationStrategy( String id )
{
this.id = id;
}
public String id()
{
return this.id;
}
}

View File

@ -0,0 +1,77 @@
package org.apache.maven.plugins.annotations;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
* <a href="/ref/3.0.4/maven-core/lifecycles.html">Lifecycle phases</a>.
* @author Olivier Lamy
* @since 3.0
*/
public enum LifecyclePhase
{
VALIDATE( "validate" ),
INITIALIZE( "initialize" ),
GENERATE_SOURCES( "generate-sources" ),
PROCESS_SOURCES( "process-sources" ),
GENERATE_RESOURCES( "generate-resources" ),
PROCESS_RESOURCES( "process-resources" ),
COMPILE( "compile" ),
PROCESS_CLASSES( "process-classes" ),
GENERATE_TEST_SOURCES( "generate-test-sources" ),
PROCESS_TEST_SOURCES( "process-test-sources" ),
GENERATE_TEST_RESOURCES( "generate-test-resources" ),
PROCESS_TEST_RESOURCES( "process-test-resources" ),
TEST_COMPILE( "test-compile" ),
PROCESS_TEST_CLASSES( "process-test-classes" ),
TEST( "test" ),
PREPARE_PACKAGE( "prepare-package" ),
PACKAGE( "package" ),
PRE_INTEGRATION_TEST( "pre-integration-test" ),
INTEGRATION_TEST( "integration-test" ),
POST_INTEGRATION_TEST( "post-integration-test" ),
VERIFY( "verify" ),
INSTALL( "install" ),
DEPLOY( "deploy" ),
PRE_CLEAN( "pre-clean" ),
CLEAN( "clean" ),
POST_CLEAN( "post-clean" ),
PRE_SITE( "pre-site" ),
SITE( "site" ),
POST_SITE( "post-site" ),
SITE_DEPLOY( "site-deploy" ),
NONE( "" );
private final String id;
LifecyclePhase( String id )
{
this.id = id;
}
public String id()
{
return this.id;
}
}

View File

@ -0,0 +1,120 @@
package org.apache.maven.plugins.annotations;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotation will mark your class as a Mojo (ie. goal in a Maven plugin).
*
* @author Olivier Lamy
* @since 3.0
*/
@Documented
@Retention( RetentionPolicy.CLASS )
@Target( ElementType.TYPE )
@Inherited
public @interface Mojo
{
/**
* goal name (required).
* @return the goal name
*/
String name();
/**
* default phase to bind your mojo.
* @return the default phase
*/
LifecyclePhase defaultPhase() default LifecyclePhase.NONE;
/**
* the required dependency resolution scope.
* @return the required dependency resolution scope
*/
ResolutionScope requiresDependencyResolution() default ResolutionScope.NONE;
/**
* the required dependency collection scope.
* @return the required dependency collection scope
*/
ResolutionScope requiresDependencyCollection() default ResolutionScope.NONE;
/**
* your Mojo instantiation strategy. (Only <code>per-lookup</code> and <code>singleton</code> are supported)
* @return the instantiation strategy
*/
InstantiationStrategy instantiationStrategy() default InstantiationStrategy.PER_LOOKUP;
/**
* execution strategy: <code>once-per-session</code> or <code>always</code>.
* @return <code>once-per-session</code> or <code>always</code>
*/
String executionStrategy() default "once-per-session";
/**
* does your mojo requires a project to be executed?
* @return requires a project
*/
boolean requiresProject() default true;
/**
* does your mojo requires a reporting context to be executed?
* @return requires a reporting context
*/
boolean requiresReports() default false;
/**
* if the Mojo uses the Maven project and its child modules.
* @return uses the Maven project and its child modules
*/
boolean aggregator() default false;
/**
* can this Mojo be invoked directly only?
* @return invoked directly only
*/
boolean requiresDirectInvocation() default false;
/**
* does this Mojo need to be online to be executed?
* @return need to be online
*/
boolean requiresOnline() default false;
boolean inheritByDefault() default true;
/**
* own configurator class.
* @return own configurator class
*/
String configurator() default "";
/**
* is your mojo thread safe (since Maven 3.x)?
* @return is thread safe
*/
boolean threadSafe() default false;
}

View File

@ -0,0 +1,88 @@
package org.apache.maven.plugins.annotations;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Used to configure your Mojo parameters to be injected by
* <a href="/ref/current/maven-core/apidocs/org/apache/maven/plugin/MavenPluginManager.html">
* <code>MavenPluginManager.getConfiguredMojo(...)</code></a>.
*
* @author Olivier Lamy
* @since 3.0
*/
@Documented
@Retention( RetentionPolicy.CLASS )
@Target( { ElementType.FIELD } )
@Inherited
public @interface Parameter
{
/**
* name of the bean property used to get/set the field: by default, field name is used.
* @return the name of the bean property
*/
String name() default "";
/**
* alias supported to get parameter value.
* @return the alias
*/
String alias() default "";
/**
* Property to use to retrieve a value. Can come from <code>-D</code> execution, setting properties or pom
* properties.
* @return property name
*/
String property() default "";
/**
* parameter default value, eventually containing <code>${...}</code> expressions which will be interpreted at
* inject time: see
* <a href="/ref/current/maven-core/apidocs/org/apache/maven/plugin/PluginParameterExpressionEvaluator.html">
* PluginParameterExpressionEvaluator</a>.
* @return the default value
*/
String defaultValue() default "";
/**
* is the parameter required?
* @return <code>true</code> if the Mojo should fail when the parameter cannot be injected
*/
boolean required() default false;
/**
* Specifies that this parameter cannot be configured directly by the user (as in the case of POM-specified
* configuration). This is useful when you want to force the user to use common POM elements rather than plugin
* configurations, as in the case where you want to use the artifact's final name as a parameter. In this case, you
* want the user to modify <code>&lt;build&gt;&lt;finalName/&gt;&lt;/build&gt;</code> rather than specifying a value
* for finalName directly in the plugin configuration section. It is also useful to ensure that - for example - a
* List-typed parameter which expects items of type Artifact doesn't get a List full of Strings.
*
* @return <code>true</code> if the user should not be allowed to configure the parameter directly
*/
boolean readonly() default false;
}

View File

@ -0,0 +1,75 @@
package org.apache.maven.plugins.annotations;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.artifact.Artifact;
/**
* Dependencies resolution scopes available before
* <a href="/ref/current/maven-core/apidocs/org/apache/maven/lifecycle/internal/MojoExecutor.html">mojo execution</a>.
*
* @author Hervé Boutemy
* @since 3.0
*/
public enum ResolutionScope
{
/**
* empty resolution scope
*/
NONE( null ),
/**
* <code>compile</code> resolution scope
* = <code>compile</code> + <code>system</code> + <code>provided</code> dependencies
*/
COMPILE( Artifact.SCOPE_COMPILE ),
/**
* <code>compile+runtime</code> resolution scope (Maven 3 only)
* = <code>compile</code> + <code>system</code> + <code>provided</code> + <code>runtime</code> dependencies
*/
COMPILE_PLUS_RUNTIME( Artifact.SCOPE_COMPILE_PLUS_RUNTIME ),
/**
* <code>runtime</code> resolution scope
* = <code>compile</code> + <code>runtime</code> dependencies
*/
RUNTIME( Artifact.SCOPE_RUNTIME ),
/**
* <code>runtime+system</code> resolution scope (Maven 3 only)
* = <code>compile</code> + <code>system</code> + <code>runtime</code> dependencies
*/
RUNTIME_PLUS_SYSTEM( Artifact.SCOPE_RUNTIME_PLUS_SYSTEM ),
/**
* <code>test</code> resolution scope
* = <code>compile</code> + <code>system</code> + <code>provided</code> + <code>runtime</code> + <code>test</code>
* dependencies
*/
TEST( Artifact.SCOPE_TEST );
private final String id;
ResolutionScope( String id )
{
this.id = id;
}
public String id()
{
return this.id;
}
}

View File

@ -0,0 +1,38 @@
------
About ${project.name}
------
Hervé Boutemy
------
2012-06-03
------
~~ Licensed to the Apache Software Foundation (ASF) under one
~~ or more contributor license agreements. See the NOTICE file
~~ distributed with this work for additional information
~~ regarding copyright ownership. The ASF licenses this file
~~ to you under the Apache License, Version 2.0 (the
~~ "License"); you may not use this file except in compliance
~~ with the License. You may obtain a copy of the License at
~~
~~ http://www.apache.org/licenses/LICENSE-2.0
~~
~~ Unless required by applicable law or agreed to in writing,
~~ software distributed under the License is distributed on an
~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~~ KIND, either express or implied. See the License for the
~~ specific language governing permissions and limitations
~~ under the License.
~~ NOTE: For help with the syntax of this file, see:
~~ http://maven.apache.org/doxia/references/apt-format.html
About ${project.name}
${project.description}
* Usage
To be able to {{{../maven-plugin-tools-annotations/index.html}use Maven Plugin Tools Java 5 Annotations}},
some configuration has to be done in <<<pom.xml>>>: see
{{{../maven-plugin-plugin/examples/using-annotations.html#POM_configuration} Using Plugin Tools Java5 Annotations}}
example in {{{../maven-plugin-plugin} <<<maven-plugin-plugin>>>}} documentation.

View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project xmlns="http://maven.apache.org/DECORATION/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd">
<body>
<menu name="Overview">
<item name="Introduction" href="index.html"/>
<item name="JavaDocs" href="apidocs/index.html"/>
<item name="Source Xref" href="xref/index.html"/>
<!--item name="FAQ" href="faq.html"/-->
</menu>
</body>
</project>

View File

@ -17,20 +17,20 @@
~ specific language governing permissions and limitations
~ under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugins</artifactId>
<version>11</version>
<artifactId>maven-plugin-tools</artifactId>
<groupId>org.apache.maven.plugin-tools</groupId>
<version>3.5.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>Maven Plugin Plugin</name>
<version>2.4.2-SNAPSHOT</version>
<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
@ -38,71 +38,48 @@
</description>
<prerequisites>
<maven>2.0.6</maven>
<maven>2.2.1</maven>
</prerequisites>
<issueManagement>
<system>jira</system>
<url>http://jira.codehaus.org/browse/MPLUGIN</url>
</issueManagement>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/maven/plugin-tools/trunk/maven-plugin-plugin/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/plugin-tools/trunk/maven-plugin-plugin/</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/maven/plugin-tools/trunk/maven-plugin-plugin/</url>
</scm>
<build>
<pluginManagement>
<plugins>
<!-- pin to a previous version so it doesn't get reloaded during build -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>2.4.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.4</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<executions>
<execution>
<id>generated-helpmojo</id>
<goals>
<goal>helpmojo</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.modello</groupId>
<artifactId>modello-maven-plugin</artifactId>
<version>1.0-alpha-18</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<version>1.0.0</version>
<models>
<model>src/main/mdo/pluginRequirements.mdo</model>
</models>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<doxiaVersion>1.4</doxiaVersion>
<doxia-sitetoolsVersion>1.4</doxia-sitetoolsVersion>
<it.debug>true</it.debug>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-api</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-generators</artifactId>
</dependency>
<!-- runtime extractors used by default by plugin-tools -->
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-annotations</artifactId>
<scope>runtime</scope>
</dependency>
<!-- for source code annotations of the mojos -->
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<!-- from stricter view, should use ${mavenPluginToolsVersion} but this is causing problems with release plugin -->
<!--version>${mavenPluginToolsVersion}</version-->
<!--
Do not use 'provided' scope here. The annotations are a transitive dependency of
'maven-plugin-tools-annotations' which fails to load at runtime when not available.
-->
</dependency>
<!-- doxia -->
<dependency>
<groupId>org.apache.maven.doxia</groupId>
@ -125,72 +102,53 @@
</exclusions>
</dependency>
<!-- maven -->
<!-- Maven -->
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-model</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-repository-metadata</artifactId>
<version>2.0</version>
<version>${mavenVersion}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-descriptor</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-registry</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-api</artifactId>
<version>${mavenVersion}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact-manager</artifactId>
<version>2.0</version>
<version>${mavenVersion}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
<version>2.0</version>
</dependency>
<!-- shared -->
<dependency>
<groupId>org.apache.maven.reporting</groupId>
<artifactId>maven-reporting-impl</artifactId>
<version>2.0.4.1</version>
<version>2.3</version>
</dependency>
<dependency>
<groupId>org.apache.maven.reporting</groupId>
<artifactId>maven-reporting-api</artifactId>
<version>2.0.4</version>
</dependency>
<!-- Maven runtime -->
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-beanshell</artifactId>
<scope>runtime</scope>
<version>3.0</version>
</dependency>
<!-- plexus -->
@ -198,73 +156,268 @@
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-velocity</artifactId>
<exclusions>
<exclusion>
<groupId>velocity</groupId>
<artifactId>velocity</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>maven-surefire-common</artifactId>
<version>2.19.1</version>
</dependency>
<!-- other -->
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity</artifactId>
</dependency>
<!-- needed for it tests -->
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-script-beanshell</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-script-ant</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>src/main/filtered-resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<configuration>
<excludes combine.children="append">
<!-- This file should exactly match the output of this project -->
<exclude>src/it/help-basic/expected-help.txt</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.modello</groupId>
<artifactId>modello-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<version>1.0.0</version>
<models>
<model>src/main/mdo/pluginRequirements.mdo</model>
</models>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>enforce</goal>
</goals>
<id>ensure-no-container-api</id>
<configuration>
<rules>
<bannedDependencies>
<excludes>
<exclude>org.codehaus.plexus:plexus-component-api</exclude>
</excludes>
<message>The new containers are not supported. You probably added a dependency that is missing the exclusions.</message>
</bannedDependencies>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.5</version>
<!-- will use previous maven-plugin-plugin release to build current maven-plugin-plugin as configured in parent -->
<executions>
<execution>
<id>default-descriptor</id>
<phase>process-classes</phase>
</execution>
<execution>
<id>generated-helpmojo</id>
<goals>
<goal>helpmojo</goal>
</goals>
<configuration>
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>l10n-maven-plugin</artifactId>
<version>1.0-alpha-1</version>
<configuration>
<locales>
<locale>de</locale>
<locale>fr</locale>
</locales>
</configuration>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.3</version><!-- cannot use ${mavenPluginToolsVersion} property because release plugin would try to update -->
<reportSets>
<reportSet>
<reports>
<report>report</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<version>${mavenInvokerPluginVersion}</version>
</plugin>
</plugins>
</reporting>
<!-- Copy from project up -->
<dependencyManagement>
<dependencies>
<!-- maven -->
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-api</artifactId>
<version>${pluginToolsVersion}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-model</artifactId>
<version>${pluginToolsVersion}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-java</artifactId>
<version>${pluginToolsVersion}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-beanshell</artifactId>
<version>${pluginToolsVersion}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-descriptor</artifactId>
<version>2.0.5</version>
</dependency>
<!-- plexus -->
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>1.5.1</version>
</dependency>
</dependencies>
</dependencyManagement>
<distributionManagement>
<site>
<id>apache.website</id>
<url>scp://people.apache.org/www/maven.apache.org/plugins/maven-plugin-plugin</url>
</site>
</distributionManagement>
<properties>
<doxiaVersion>1.0-alpha-10</doxiaVersion>
<doxia-sitetoolsVersion>1.0-alpha-10</doxia-sitetoolsVersion>
<pluginToolsVersion>2.4.2-SNAPSHOT</pluginToolsVersion>
</properties>
<profiles>
<profile>
<id>reporting</id>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<version>${mavenInvokerPluginVersion}</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>l10n-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<configuration>
<locales>
<locale>de</locale>
<locale>fr</locale>
<locale>sv</locale>
</locales>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changes-plugin</artifactId>
<version>2.5</version>
<configuration>
<!-- For JIRA-report -->
<columnNames>Type,Key,Summary,Assignee,Status,Resolution,Fix Version</columnNames>
<maxEntries>200</maxEntries>
<onlyCurrentVersion>true</onlyCurrentVersion>
<resolutionIds>Closed</resolutionIds>
<sortColumnNames>Type,Key</sortColumnNames>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>jira-report</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
</profile>
<profile>
<id>run-its</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<version>${mavenInvokerPluginVersion}</version>
<configuration>
<debug>${it.debug}</debug>
<projectsDirectory>src/it</projectsDirectory>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
<preBuildHookScript>setup</preBuildHookScript>
<postBuildHookScript>verify</postBuildHookScript>
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
<settingsFile>src/it/settings.xml</settingsFile>
<filterProperties>
<sitePluginVersion>3.3</sitePluginVersion>
<antVersion>${antVersion}</antVersion>
</filterProperties>
<properties>
<maven.compiler.source>${maven.compiler.source}</maven.compiler.source>
<maven.compiler.target>${maven.compiler.target}</maven.compiler.target>
</properties>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>install</goal>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>maven-2</id>
<activation>
<file>
<!-- This employs that the basedir expression is only recognized by Maven 3.x (see MNG-2363) -->
<missing>${basedir}</missing>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<configuration>
<!-- see https://issues.apache.org/jira/browse/MNG-5346 -->
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
</configuration>
<executions>
<execution>
<id>mojo-descriptor</id>
<goals>
<goal>descriptor</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

View File

@ -0,0 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
invoker.goals.1 = install
invoker.goals.2 = org.apache.maven.its.annotation-with-inheritance-from-deps:annotation-with-inheritance-from-deps:1.0-SNAPSHOT:first
invoker.goals.3 = org.apache.maven.its.annotation-with-inheritance-from-deps:annotation-with-inheritance-from-deps:1.0-SNAPSHOT:help

View File

@ -0,0 +1,136 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.its.annotation-with-inheritance-from-deps</groupId>
<artifactId>annotation-with-inheritance-from-deps</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<name>Maven Integration Test :: annotation-with-inheritance-from-deps</name>
<description>
Test plugin-plugin, which tests maven-plugin-tools-api and
maven-plugin-tools-java. This will generate a plugin descriptor from
java-based mojo sources, install the plugin, and then use it.
</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<plexusCompilerVersion>1.8.6</plexusCompilerVersion>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId>
<version>@mavenVersion@</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>@project.version@</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-annotations</artifactId>
<version>@project.version@</version>
<classifier>tests</classifier>
</dependency>
<dependency>
<!-- dependency of org.apache.maven.plugin-tools:maven-plugin-tools-annotations:@project.version@:jar:tests -->
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.2</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-compiler-manager</artifactId>
<version>${plexusCompilerVersion}</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-compiler-javac</artifactId>
<version>${plexusCompilerVersion}</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.0.1</version>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.4</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>@project.version@</version>
<configuration>
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
</configuration>
<executions>
<execution>
<id>mojo-descriptor</id>
<goals>
<goal>descriptor</goal>
</goals>
</execution>
<execution>
<id>help-goal</id>
<goals>
<goal>helpmojo</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,75 @@
package org.apache.maven.plugin.coreit;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.ResolutionScope;
import org.apache.maven.plugins.annotations.Execute;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.tools.plugin.extractor.annotations.FooMojo;
import org.apache.maven.project.MavenProjectHelper;
/**
* Touches a test file.
*
* @since 1.2
* @deprecated Don't use!
*/
@Mojo( name = "first", requiresDependencyResolution = ResolutionScope.TEST, defaultPhase = LifecyclePhase.INTEGRATION_TEST )
public class FirstMojo
extends FooMojo
{
/**
* @since 0.1
* @deprecated As of 0.2
*/
@Parameter( alias = "alias" )
private String aliasedParam;
@Component( role = MavenProjectHelper.class )// , roleHint = "default"
private Object projectHelper;
public void execute()
throws MojoExecutionException
{
if ( bar == null )
{
throw new MojoExecutionException( "bar == null" );
}
if ( beer == null )
{
throw new MojoExecutionException( "beer == null" );
}
if ( projectHelper == null )
{
throw new MojoExecutionException( "projectHelper == null" );
}
if ( compilerManager == null )
{
throw new MojoExecutionException( "compilerManager == null" );
}
}
}

View File

@ -0,0 +1,37 @@
<?xml version='1.0'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<lifecycles>
<lifecycle>
<id>my-lifecycle</id>
<phases>
<phase>
<id>process-classes</id>
</phase>
<phase>
<id>test</id>
<configuration>
<classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</phase>
</phases>
</lifecycle>
</lifecycles>

View File

@ -0,0 +1,99 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
assert descriptorFile.isFile()
File oldHelpClass = new File( basedir, "target/classes/HelpMojo.class" );
assert !oldHelpClass.exists()
File newHelpClass = new File( basedir, "target/classes/org/apache/maven/plugin/coreit/HelpMojo.class" );
assert newHelpClass.exists()
def pluginDescriptor = new XmlParser().parse( descriptorFile );
def mojo = pluginDescriptor.mojos.mojo.findAll{ it.goal.text() == "first"}[0]
assert mojo.goal.text() == 'first'
assert mojo.implementation.text() == 'org.apache.maven.plugin.coreit.FirstMojo'
assert mojo.language.text() == 'java'
assert mojo.description.text() == 'Touches a test file.'
assert mojo.deprecated.text() == "Don't use!"
assert mojo.requiresDependencyResolution.text() == 'test'
assert mojo.requiresDependencyCollection.text() == ''
assert mojo.requiresProject.text() == 'true'
assert mojo.requiresOnline.text() == 'false'
assert mojo.requiresDirectInvocation.text() == 'false'
assert mojo.aggregator.text() == 'false'
assert mojo.threadSafe.text() == 'false'
assert mojo.phase.text() == 'integration-test'
assert mojo.executePhase.text() == 'package'
assert mojo.executeLifecycle.text() == 'my-lifecycle'
assert mojo.configuration.bar[0].text() == '${thebar}'
assert mojo.configuration.bar[0].'@implementation' == 'java.lang.String'
assert mojo.configuration.bar[0].'@default-value' == 'coolbar'
assert mojo.configuration.beer[0].text() == '${thebeer}'
assert mojo.configuration.beer[0].'@implementation' == 'java.lang.String'
assert mojo.configuration.beer[0].'@default-value' == 'coolbeer'
assert mojo.requirements.requirement.size() == 3
assert mojo.requirements.requirement[1].role.text() == 'org.codehaus.plexus.compiler.manager.CompilerManager'
assert mojo.requirements.requirement[1].'role-hint'.text() == ''
assert mojo.requirements.requirement[1].'field-name'.text() == 'compilerManager'
assert mojo.requirements.requirement[2].role.text() == 'org.apache.maven.project.MavenProjectHelper'
//assert mojo.requirements.requirement[2].'role-hint'.text() == 'default'
assert mojo.requirements.requirement[2].'field-name'.text() == 'projectHelper'
assert mojo.parameters.parameter.size() == 3
def parameter = mojo.parameters.parameter.findAll{ it.name.text() == "aliasedParam"}[0]
assert parameter.name.text() == 'aliasedParam'
assert parameter.alias.text() == 'alias'
assert parameter.type.text() == 'java.lang.String'
assert parameter.deprecated.text() == 'As of 0.2'
assert parameter.required.text() == 'false'
assert parameter.editable.text() == 'true'
assert parameter.description.text() == ''
parameter = mojo.parameters.parameter.findAll{ it.name.text() == "beer"}[0]
assert parameter.name.text() == 'beer'
assert parameter.alias.isEmpty()
assert parameter.type.text() == 'java.lang.String'
assert parameter.deprecated.text() == "wine is better"
assert parameter.required.text() == 'false'
assert parameter.editable.text() == 'true'
assert parameter.description.text() == 'beer for non french folks'
parameter = mojo.parameters.parameter.findAll{ it.name.text() == "bar"}[0]
assert parameter.name.text() == 'bar'
assert parameter.alias.isEmpty()
assert parameter.type.text() == 'java.lang.String'
assert parameter.deprecated.isEmpty()
assert parameter.required.text() == 'true'
assert parameter.editable.text() == 'true'
assert parameter.description.text() == 'the cool bar to go'
return true;

View File

@ -0,0 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
invoker.goals.1 = clean install -DskipTests
invoker.goals.2 = org.apache.maven.its.annotation-with-inheritance-reactor:module-mojo:1.0-SNAPSHOT:it0014
invoker.goals.3 = org.apache.maven.its.annotation-with-inheritance-reactor:module-mojo:1.0-SNAPSHOT:first

View File

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.maven.its.annotation-with-inheritance-reactor</groupId>
<artifactId>annotation-with-inheritance-reactor</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>module-abstract-mojo</artifactId>
</project>

View File

@ -0,0 +1,64 @@
package org.apache.maven.plugins;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.Execute;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.codehaus.plexus.compiler.manager.CompilerManager;
import org.apache.maven.artifact.metadata.ArtifactMetadataSource;
import java.io.File;
/**
* Touches a test file.
*
*/
public abstract class AbstractFirstMojo
extends AbstractMojo
{
/**
* Project directory.
*/
@Parameter( defaultValue = "${basedir}", readonly = true )
protected File basedir;
@Parameter( property = "first.touchFile", defaultValue = "${project.build.directory}/touch.txt",
required = true )
protected File touchFile;
/**
* Plexus compiler manager.
*/
@Component
protected CompilerManager compilerManager;
/**
*
*/
@Component( role = ArtifactMetadataSource.class, hint = "maven" )
protected ArtifactMetadataSource artifactMetadataSource;
}

View File

@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.maven.its.annotation-with-inheritance-reactor</groupId>
<artifactId>annotation-with-inheritance-reactor</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>module-mojo</artifactId>
<packaging>maven-plugin</packaging>
<dependencies>
<dependency>
<groupId>org.apache.maven.its.annotation-with-inheritance-reactor</groupId>
<artifactId>module-abstract-mojo</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>@project.version@</version>
<configuration>
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
</configuration>
<executions>
<execution>
<id>mojo-descriptor</id>
<goals>
<goal>descriptor</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,66 @@
package org.apache.maven.plugin.coreit;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import java.io.File;
import java.io.IOException;
/**
* Touches a test file.
*
*/
@Mojo( name = "it0014" )
public class CoreIt0014Mojo
extends AbstractMojo
{
@Parameter( property = "project.build.directory", required = true )
private String outputDirectory;
public void execute()
throws MojoExecutionException
{
getLog().info( "outputDirectory = " + outputDirectory );
File f = new File( outputDirectory );
if ( !f.exists() )
{
f.mkdirs();
}
File touch = new File( f, "touch.txt" );
try
{
touch.createNewFile();
}
catch ( IOException e )
{
throw new MojoExecutionException( "Error writing verification file.", e );
}
}
}

View File

@ -0,0 +1,80 @@
package org.apache.maven.plugin.coreit;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.ResolutionScope;
import org.apache.maven.plugins.annotations.Execute;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.plugins.AbstractFirstMojo;
import org.apache.maven.project.MavenProjectHelper;
/**
* Touches a test file.
*
* @since 1.2
* @deprecated Don't use!
*/
@Mojo( name = "first", requiresDependencyResolution = ResolutionScope.TEST, defaultPhase = LifecyclePhase.INTEGRATION_TEST )
@Execute( phase = LifecyclePhase.GENERATE_SOURCES, lifecycle = "cobertura" )
public class FirstMojo
extends AbstractFirstMojo
{
/**
* @since 0.1
* @deprecated As of 0.2
*/
@Parameter( alias = "alias" )
private String aliasedParam;
@Component( role = MavenProjectHelper.class )
private Object projectHelper;
public void execute()
throws MojoExecutionException
{
if ( basedir == null )
{
throw new MojoExecutionException( "basedir == null" );
}
if ( touchFile == null )
{
throw new MojoExecutionException( "touchFile == null" );
}
if ( projectHelper == null )
{
throw new MojoExecutionException( "projectHelper == null" );
}
if ( compilerManager == null )
{
throw new MojoExecutionException( "compilerManager == null" );
}
if (! ( projectHelper instanceof MavenProjectHelper ))
{
throw new MojoExecutionException( "! projectHelper instanceof MavenProjectHelper" );
}
}
}

View File

@ -0,0 +1,39 @@
package org.apache.maven.plugin.coreit;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugins.annotations.ResolutionScope;
import org.apache.maven.plugins.annotations.Mojo;
/**
* Does nothing special.
*
*/
@Mojo( name = "second", requiresDependencyCollection = ResolutionScope.COMPILE, threadSafe = true )
public class SecondMojo
extends AbstractMojo
{
public void execute()
{
}
}

View File

@ -0,0 +1,37 @@
<?xml version='1.0'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<lifecycles>
<lifecycle>
<id>cobertura</id>
<phases>
<phase>
<id>process-classes</id>
</phase>
<phase>
<id>test</id>
<configuration>
<classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</phase>
</phases>
</lifecycle>
</lifecycles>

View File

@ -0,0 +1,107 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.its.annotation-with-inheritance-reactor</groupId>
<artifactId>annotation-with-inheritance-reactor</artifactId>
<version>1.0-SNAPSHOT</version>
<name>Maven Integration Test :: annotation-with-inheritance</name>
<packaging>pom</packaging>
<modules>
<module>module-abstract-mojo</module>
<module>module-mojo</module>
</modules>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<plexusCompilerVersion>1.8.6</plexusCompilerVersion>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-annotations</artifactId>
<version>@project.version@</version>
<classifier>tests</classifier>
</dependency>
<dependency>
<!-- dependency of org.apache.maven.plugin-tools:maven-plugin-tools-annotations:@project.version@:jar:tests -->
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.2</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId>
<version>@mavenVersion@</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>@project.version@</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-compiler-manager</artifactId>
<version>${plexusCompilerVersion}</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-compiler-javac</artifactId>
<version>${plexusCompilerVersion}</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-api</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.4</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>

View File

@ -0,0 +1,99 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
File touchFile = new File( basedir, "module-mojo/target/touch.txt" )
assert touchFile.isFile()
File descriptorFile = new File( basedir, "module-mojo/target/classes/META-INF/maven/plugin.xml" );
assert descriptorFile.isFile()
def pluginDescriptor = new XmlParser().parse( descriptorFile );
assert pluginDescriptor.mojos.mojo.size() == 3
def mojo = pluginDescriptor.mojos.mojo.findAll{ it.goal.text() == "first"}[0]
assert mojo.goal.text() == 'first'
assert mojo.implementation.text() == 'org.apache.maven.plugin.coreit.FirstMojo'
assert mojo.language.text() == 'java'
assert mojo.description.text() == 'Touches a test file.'
assert mojo.deprecated.text() == "Don't use!"
assert mojo.requiresDependencyResolution.text() == 'test'
assert mojo.requiresDependencyCollection.text() == ''
assert mojo.requiresProject.text() == 'true'
assert mojo.requiresOnline.text() == 'false'
assert mojo.requiresDirectInvocation.text() == 'false'
assert mojo.aggregator.text() == 'false'
assert mojo.threadSafe.text() == 'false'
assert mojo.phase.text() == 'integration-test'
assert mojo.executePhase.text() == 'generate-sources'
assert mojo.executeLifecycle.text() == 'cobertura'
assert mojo.configuration.basedir[0].text() == ''
assert mojo.configuration.basedir[0].'@implementation' == 'java.io.File'
assert mojo.configuration.basedir[0].'@default-value' == '${basedir}'
assert mojo.configuration.touchFile[0].text() == '${first.touchFile}'
assert mojo.configuration.touchFile[0].'@implementation' == 'java.io.File'
assert mojo.configuration.touchFile[0].'@default-value' == '${project.build.directory}/touch.txt'
assert mojo.requirements.requirement.size() == 3
assert mojo.requirements.requirement[2].role.text() == 'org.apache.maven.project.MavenProjectHelper'
//assert mojo.requirements.requirement[2].'role-hint'.text() == 'default'
assert mojo.requirements.requirement[2].'field-name'.text() == 'projectHelper'
assert mojo.parameters.parameter.size() == 3
def parameter = mojo.parameters.parameter.findAll{ it.name.text() == "aliasedParam"}[0]
assert parameter.name.text() == 'aliasedParam'
assert parameter.alias.text() == 'alias'
assert parameter.type.text() == 'java.lang.String'
assert parameter.deprecated.text() == 'As of 0.2'
assert parameter.required.text() == 'false'
assert parameter.editable.text() == 'true'
assert parameter.description.text() == ''
parameter = mojo.parameters.parameter.findAll{ it.name.text() == "touchFile"}[0]
assert parameter.name.text() == 'touchFile'
assert parameter.alias.isEmpty()
assert parameter.type.text() == 'java.io.File'
assert parameter.deprecated.isEmpty()
assert parameter.required.text() == 'true'
assert parameter.editable.text() == 'true'
assert parameter.description.text() == ''
parameter = mojo.parameters.parameter.findAll{ it.name.text() == "basedir"}[0]
assert parameter.name.text() == 'basedir'
assert parameter.alias.isEmpty()
assert parameter.type.text() == 'java.io.File'
assert parameter.deprecated.isEmpty()
assert parameter.required.text() == 'false'
assert parameter.editable.text() == 'false'
assert parameter.description.text() == 'Project directory.'
mojo = pluginDescriptor.mojos.mojo.findAll{ it.goal.text() == "second"}[0]
assert mojo.requiresDependencyCollection.text() == 'compile'
assert mojo.threadSafe.text() == 'true'
return true;

View File

@ -0,0 +1,22 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
invoker.goals.1 = clean install -DskipTests
invoker.goals.2 = org.apache.maven.its.annotation-with-inheritance:annotation-with-inheritance:1.0-SNAPSHOT:it0014
invoker.goals.3 = org.apache.maven.its.annotation-with-inheritance:annotation-with-inheritance:1.0-SNAPSHOT:first
invoker.goals.4 = org.apache.maven.its.annotation-with-inheritance:annotation-with-inheritance:1.0-SNAPSHOT:help
invoker.goals.5 = org.apache.maven.its.annotation-with-inheritance:annotation-with-inheritance:1.0-SNAPSHOT:third

View File

@ -0,0 +1,134 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.its.annotation-with-inheritance</groupId>
<artifactId>annotation-with-inheritance</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<name>Maven Integration Test :: annotation-with-inheritance</name>
<description>
Test plugin-plugin, which tests maven-plugin-tools-api and
maven-plugin-tools-java. This will generate a plugin descriptor from
java-based mojo sources, install the plugin, and then use it.
</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<plexusCompilerVersion>1.8.6</plexusCompilerVersion>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId>
<version>@mavenVersion@</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>@project.version@</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-compiler-manager</artifactId>
<version>${plexusCompilerVersion}</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-compiler-javac</artifactId>
<version>${plexusCompilerVersion}</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-exec</artifactId>
<version>1.1</version>
<scope>runtime</scope>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.4</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>@project.version@</version>
<configuration>
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
</configuration>
<executions>
<execution>
<id>mojo-descriptor</id>
<goals>
<goal>descriptor</goal>
</goals>
</execution>
<execution>
<id>help-goal</id>
<goals>
<goal>helpmojo</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,63 @@
package org.apache.maven.plugin.coreit;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.Execute;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.codehaus.plexus.compiler.manager.CompilerManager;
import org.apache.maven.artifact.metadata.ArtifactMetadataSource;
import java.io.File;
/**
*
*/
public abstract class AbstractFirstMojo
extends AbstractMojo
{
/**
* Project directory.
*/
@Parameter( defaultValue = "${basedir}", readonly = true )
protected File basedir;
@Parameter( property = "first.touchFile", defaultValue = "${project.build.directory}/touch.txt",
required = true )
protected File touchFile;
/**
* Plexus compiler manager.
*/
@Component
protected CompilerManager compilerManager;
/**
*
*/
@Component( role = ArtifactMetadataSource.class, hint = "maven" )
protected ArtifactMetadataSource artifactMetadataSource;
}

View File

@ -0,0 +1,43 @@
package org.apache.maven.plugin.coreit;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.Execute;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.codehaus.plexus.compiler.manager.CompilerManager;
import org.apache.maven.artifact.metadata.ArtifactMetadataSource;
import java.io.File;
/**
*
*/
public abstract class AbstractFooMojo
extends AbstractFirstMojo
{
// MPLUGIN-206
}

View File

@ -0,0 +1,66 @@
package org.apache.maven.plugin.coreit;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import java.io.File;
import java.io.IOException;
/**
* Touches a test file.
*
*/
@Mojo( name = "it0014" )
public class CoreIt0014Mojo
extends AbstractMojo
{
@Parameter( property = "project.build.directory", required = true )
private String outputDirectory;
public void execute()
throws MojoExecutionException
{
getLog().info( "outputDirectory = " + outputDirectory );
File f = new File( outputDirectory );
if ( !f.exists() )
{
f.mkdirs();
}
File touch = new File( f, "touch.txt" );
try
{
touch.createNewFile();
}
catch ( IOException e )
{
throw new MojoExecutionException( "Error writing verification file.", e );
}
}
}

View File

@ -0,0 +1,87 @@
package org.apache.maven.plugin.coreit;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.artifact.Artifact;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.ResolutionScope;
import org.apache.maven.plugins.annotations.Execute;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.project.MavenProjectHelper;
import java.util.Set;
/**
* Touches a test file.
*
* @since 1.2
* @deprecated Don't use!
*/
@Mojo( name = "first", requiresDependencyResolution = ResolutionScope.COMPILE,
defaultPhase = LifecyclePhase.INTEGRATION_TEST )
@Execute( phase = LifecyclePhase.GENERATE_SOURCES, lifecycle = "cobertura" )
public class FirstMojo
extends AbstractFirstMojo
{
/**
* @since 0.1
* @deprecated As of 0.2
*/
@Parameter( alias = "alias" )
private String aliasedParam;
@Component( role = MavenProjectHelper.class )//, roleHint = "default"
private Object projectHelper;
@Parameter( defaultValue = "${project.artifacts}", required = true, readonly = true )
private Set<Artifact> dependencies;
public void execute()
throws MojoExecutionException
{
if ( basedir == null )
{
throw new MojoExecutionException( "basedir == null" );
}
if ( touchFile == null )
{
throw new MojoExecutionException( "touchFile == null" );
}
if ( projectHelper == null )
{
throw new MojoExecutionException( "projectHelper == null" );
}
if ( compilerManager == null )
{
throw new MojoExecutionException( "compilerManager == null" );
}
if ( dependencies.isEmpty() )
{
throw new MojoExecutionException( "dependencies.isEmpty()" );
}
}
}

View File

@ -0,0 +1,39 @@
package org.apache.maven.plugin.coreit;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugins.annotations.ResolutionScope;
import org.apache.maven.plugins.annotations.Mojo;
/**
* Does nothing special.
*
*/
@Mojo( name = "second", requiresDependencyCollection = ResolutionScope.COMPILE, threadSafe = true )
public class SecondMojo
extends AbstractMojo
{
public void execute()
{
}
}

View File

@ -0,0 +1,87 @@
package org.apache.maven.plugin.coreit;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.artifact.Artifact;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.ResolutionScope;
import org.apache.maven.plugins.annotations.Execute;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.project.MavenProjectHelper;
import java.util.Set;
/**
* Touches a test file.
*
* @since 1.2
* @deprecated Don't use!
*/
@Mojo( name = "third", requiresDependencyResolution = ResolutionScope.COMPILE,
defaultPhase = LifecyclePhase.INTEGRATION_TEST )
@Execute( phase = LifecyclePhase.GENERATE_SOURCES, lifecycle = "cobertura" )
public class ThirdMojo
extends AbstractFooMojo
{
/**
* @since 0.1
* @deprecated As of 0.2
*/
@Parameter( alias = "alias" )
private String aliasedParam;
@Component( role = MavenProjectHelper.class )//, roleHint = "default"
private Object projectHelper;
@Parameter( defaultValue = "${project.artifacts}", required = true, readonly = true )
private Set<Artifact> dependencies;
public void execute()
throws MojoExecutionException
{
if ( basedir == null )
{
throw new MojoExecutionException( "basedir == null" );
}
if ( touchFile == null )
{
throw new MojoExecutionException( "touchFile == null" );
}
if ( projectHelper == null )
{
throw new MojoExecutionException( "projectHelper == null" );
}
if ( compilerManager == null )
{
throw new MojoExecutionException( "compilerManager == null" );
}
if ( dependencies.isEmpty() )
{
throw new MojoExecutionException( "dependencies.isEmpty()" );
}
}
}

View File

@ -0,0 +1,37 @@
<?xml version='1.0'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<lifecycles>
<lifecycle>
<id>cobertura</id>
<phases>
<phase>
<id>process-classes</id>
</phase>
<phase>
<id>test</id>
<configuration>
<classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</phase>
</phases>
</lifecycle>
</lifecycles>

View File

@ -0,0 +1,103 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
File touchFile = new File( basedir, "target/touch.txt" )
assert touchFile.isFile()
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
assert descriptorFile.isFile()
File oldHelpClass = new File( basedir, "target/classes/HelpMojo.class" );
assert !oldHelpClass.exists()
File newHelpClass = new File( basedir, "target/classes/org/apache/maven/plugin/coreit/HelpMojo.class" );
assert newHelpClass.exists()
def pluginDescriptor = new XmlParser().parse( descriptorFile );
def mojo = pluginDescriptor.mojos.mojo.findAll{ it.goal.text() == "first" }[0]
assert mojo.goal.text() == 'first'
assert mojo.implementation.text() == 'org.apache.maven.plugin.coreit.FirstMojo'
assert mojo.language.text() == 'java'
assert mojo.description.text() == 'Touches a test file.'
assert mojo.deprecated.text() == "Don't use!"
assert mojo.requiresDependencyResolution.text() == 'compile'
assert mojo.requiresDependencyCollection.text() == ''
assert mojo.requiresProject.text() == 'true'
assert mojo.requiresOnline.text() == 'false'
assert mojo.requiresDirectInvocation.text() == 'false'
assert mojo.aggregator.text() == 'false'
assert mojo.threadSafe.text() == 'false'
assert mojo.phase.text() == 'integration-test'
assert mojo.executePhase.text() == 'generate-sources'
assert mojo.executeLifecycle.text() == 'cobertura'
assert mojo.configuration.basedir[0].text() == ''
assert mojo.configuration.basedir[0].'@implementation' == 'java.io.File'
assert mojo.configuration.basedir[0].'@default-value' == '${basedir}'
assert mojo.configuration.touchFile[0].text() == '${first.touchFile}'
assert mojo.configuration.touchFile[0].'@implementation' == 'java.io.File'
assert mojo.configuration.touchFile[0].'@default-value' == '${project.build.directory}/touch.txt'
assert mojo.requirements.requirement.size() == 3
assert mojo.requirements.requirement[2].role.text() == 'org.apache.maven.project.MavenProjectHelper'
//assert mojo.requirements.requirement[2].'role-hint'.text() == 'default'
assert mojo.requirements.requirement[2].'field-name'.text() == 'projectHelper'
assert mojo.parameters.parameter.size() == 4
def parameter = mojo.parameters.parameter.findAll{ it.name.text() == "aliasedParam"}[0]
assert parameter.name.text() == 'aliasedParam'
assert parameter.alias.text() == 'alias'
assert parameter.type.text() == 'java.lang.String'
assert parameter.deprecated.text() == 'As of 0.2'
assert parameter.required.text() == 'false'
assert parameter.editable.text() == 'true'
assert parameter.description.text() == ''
parameter = mojo.parameters.parameter.findAll{ it.name.text() == "touchFile"}[0]
assert parameter.name.text() == 'touchFile'
assert parameter.alias.isEmpty()
assert parameter.type.text() == 'java.io.File'
assert parameter.deprecated.isEmpty()
assert parameter.required.text() == 'true'
assert parameter.editable.text() == 'true'
assert parameter.description.text() == ''
parameter = mojo.parameters.parameter.findAll{ it.name.text() == "basedir"}[0]
assert parameter.name.text() == 'basedir'
assert parameter.alias.isEmpty()
assert parameter.type.text() == 'java.io.File'
assert parameter.deprecated.isEmpty()
assert parameter.required.text() == 'false'
assert parameter.editable.text() == 'false'
assert parameter.description.text() == 'Project directory.'
mojo = pluginDescriptor.mojos.mojo.findAll{ it.goal.text() == "second"}[0]
assert mojo.requiresDependencyCollection.text() == 'compile'
assert mojo.threadSafe.text() == 'true'
return true;

View File

@ -0,0 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
invoker.goals.1 = clean install -DskipTests
invoker.goals.2 = org.apache.maven.ant.it:maven-ant-it-basic:1.0-SNAPSHOT:touch -Dname=touch.txt

View File

@ -19,35 +19,48 @@
~ under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 ../../../../maven-site/target/site/maven-v4_0_0.xsd ">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.ant.it</groupId>
<artifactId>maven-ant-it-basic</artifactId>
<name>Basic Ant-Mojo Integration Test</name>
<version>1.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<name>Basic Ant-Mojo Integration Test</name>
<description>Tests the simplest case of using an Ant script to drive a mojo.</description>
<properties>
<pluginPluginVersion>@project.version@</pluginPluginVersion>
</properties>
<dependencies>
<dependency>
<groupId>ant</groupId>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5</version>
<version>@antVersion@</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-script-ant</artifactId>
<version>@project.version@</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>${pluginPluginVersion}</version>
<configuration>
<prefix>antBasic</prefix>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-ant</artifactId>
<version>2.0.1</version>
<version>${pluginPluginVersion}</version>
</dependency>
</dependencies>
</plugin>

View File

@ -18,9 +18,10 @@
~ specific language governing permissions and limitations
~ under the License.
-->
<!-- START SNIPPET: ant-build -->
<project>
<target name="test">
<echo>Hello, ${name}!</echo>
<target name="touch-file">
<touch mkdirs="true" file="target/${name}"/>
</target>
</project>
</project>
<!-- END SNIPPET: ant-build -->

View File

@ -18,12 +18,17 @@
~ specific language governing permissions and limitations
~ under the License.
-->
<pluginMetadata xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 ../../../../../../maven-plugin-tools-model/target/generated-site/xsd/plugin-metadata-1.0.0.xsd ">
<!-- START SNIPPET: ant-mojo -->
<pluginMetadata
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/PLUGIN-METADATA/1.1.0"
xsi:schemaLocation="http://maven.apache.org/PLUGIN-METADATA/1.1.0 http://maven.apache.org/xsd/plugin-metadata-1.1.0.xsd">
<mojos>
<mojo>
<call>test</call>
<goal>test</goal>
<!-- target name to call in ant script -->
<call>touch-file</call>
<!-- mojo goal name -->
<goal>touch</goal>
<parameters>
<parameter>
<name>name</name>
@ -36,3 +41,4 @@
</mojo>
</mojos>
</pluginMetadata>
<!-- END SNIPPET: ant-mojo -->

View File

@ -0,0 +1,30 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
File touchFile = new File( basedir, "target/touch.txt" )
assert touchFile.isFile()
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
assert descriptorFile.isFile()
File oldHelpClass = new File( basedir, "target/classes/HelpMojo.class" );
assert !oldHelpClass.exists()
return true;

View File

@ -0,0 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
invoker.goals.1 = clean install -DskipTests
invoker.goals.2 = org.apache.maven.ant.it:maven-ant-it-referenceParameter:1.0-SNAPSHOT:test

View File

@ -19,40 +19,44 @@
~ under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 ../../../../maven-site/target/site/maven-v4_0_0.xsd ">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.plugins</groupId>
<groupId>org.apache.maven.ant.it</groupId>
<artifactId>maven-ant-it-referenceParameter</artifactId>
<name>Ant-Mojo Integration Test with non-String parameter</name>
<version>1.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<name>Ant-Mojo Integration Test with non-String parameter</name>
<description>Tests using an Ant script to drive a mojo where a parameter is not a String type.</description>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-script-ant</artifactId>
<version>2.0.2</version>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>@antVersion@</version>
</dependency>
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5</version>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-script-ant</artifactId>
<version>@project.version@</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>@project.version@</version>
<configuration>
<goalPrefix>antWithRefs</goalPrefix>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-ant</artifactId>
<version>2.0.2</version>
<version>@project.version@</version>
</dependency>
</dependencies>
</plugin>

View File

@ -18,8 +18,10 @@
~ specific language governing permissions and limitations
~ under the License.
-->
<pluginMetadata xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 ../../../../../../maven-plugin-tools-model/target/generated-site/xsd/plugin-metadata-1.0.0.xsd ">
<pluginMetadata
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/PLUGIN-METADATA/1.0.0"
xsi:schemaLocation="http://maven.apache.org/PLUGIN-METADATA/1.0.0 http://maven.apache.org/xsd/plugin-metadata-1.0.0.xsd">
<mojos>
<mojo>
<call>test</call>

View File

@ -0,0 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
invoker.goals.1 = clean install -DskipTests
#invoker.goals.2 = org.apache.maven.ant.it:maven-ant-it-referenceParameter:1.0-SNAPSHOT:test

View File

@ -30,33 +30,37 @@
<name>Simple Ant-Mojo</name>
<packaging>maven-plugin</packaging>
<description>Tests the simplest case of using an Ant script to drive a mojo.</description>
<properties>
<pluginPluginVersion>@project.version@</pluginPluginVersion><!-- -->
</properties>
<dependencies>
<dependency>
<groupId>ant</groupId>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-script-ant</artifactId>
<version>2.0.1</version>
<version>@project.version@</version>
</dependency>
</dependencies>
<build>
<scriptSourceDirectory>src/main/scripts</scriptSourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>${pluginPluginVersion}</version>
<configuration>
<prefix>antSimpleUsage</prefix>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-ant</artifactId>
<version>2.0.1</version>
<version>@project.version@</version>
</dependency>
</dependencies>
</plugin>

View File

@ -18,8 +18,10 @@
~ specific language governing permissions and limitations
~ under the License.
-->
<pluginMetadata xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 ../../../../../../maven-plugin-tools-model/target/generated-site/xsd/plugin-metadata-1.0.0.xsd ">
<pluginMetadata
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/PLUGIN-METADATA/1.0.0"
xsi:schemaLocation="http://maven.apache.org/PLUGIN-METADATA/1.0.0 http://maven.apache.org/xsd/plugin-metadata-1.0.0.xsd">
<mojos>
<mojo>
<call>test</call>

View File

@ -19,23 +19,27 @@
~ under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 ../../../../maven-site/target/site/maven-v4_0_0.xsd ">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.ant.it</groupId>
<artifactId>simpleUsage-root</artifactId>
<name>Simple-Usage Ant-Mojo Integration Test - Root</name>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Simple-Usage Ant-Mojo Integration Test - Root</name>
<description>Tests the simplest case of using an Ant script to drive a mojo.</description>
<dependencies>
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>@antVersion@</version>
</dependency>
</dependencies>
</dependencyManagement>
<modules>
<module>plugin</module>
<module>usage</module>

View File

@ -29,28 +29,20 @@
<artifactId>simpleUsage-usage</artifactId>
<name>Simple Ant-Mojo Usage Case</name>
<description>Tests the simplest case of using an Ant script to drive a mojo.</description>
<dependencies>
<dependency>
<groupId>ant</groupId>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.ant.it</groupId>
<artifactId>simpleUsage-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-ant-factory</artifactId>
<version>1.0-alpha-1-SNAPSHOT</version>
</dependency>
</dependencies>
<configuration>
<name>Hani</name>

View File

@ -0,0 +1,49 @@
<?xml version='1.0' encoding='UTF-8'?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
<artifactId>trivial-maven-plugin</artifactId>
<packaging>maven-plugin</packaging>
<version>1.0</version>
<name>trivial-maven-plugin</name>
<description>Just a test project</description>
<url>http://nowere.test</url>
<inceptionYear>2012</inceptionYear>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>@project.version@</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-ant</artifactId>
<version>@project.version@</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,35 @@
<?xml version='1.0' encoding='UTF-8'?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<project name="ant-tasks">
<!-- +++++++++++++++++++++++++++++++++++++++++++ -->
<!-- Global Properties -->
<!-- +++++++++++++++++++++++++++++++++++++++++++ -->
<!-- taskdef resource="net/sf/antcontrib/antcontrib.properties"/-->
<!-- +++++++++++++++++++++++++++++++++++++++++++ -->
<!-- Main task -->
<!-- +++++++++++++++++++++++++++++++++++++++++++ -->
<target name="sample-task">
<echo message="${message}."/>
</target>
</project>

View File

@ -0,0 +1,46 @@
<?xml version='1.0' encoding='UTF-8'?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<pluginMetadata
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/PLUGIN-METADATA/1.1.0"
xsi:schemaLocation="http://maven.apache.org/PLUGIN-METADATA/1.1.0 http://maven.apache.org/xsd/plugin-metadata-1.1.0.xsd">
<mojos>
<mojo>
<goal>sample</goal>
<call>sample-task</call>
<description>Just a test</description>
<requiresDirectInvocation>false</requiresDirectInvocation>
<requiresProject>false</requiresProject>
<since>1.0</since>
<parameters>
<parameter>
<name>message</name>
<type>java.lang.String</type>
<required>true</required>
<readonly>true</readonly>
<since>1.0</since>
<description>Test param</description>
</parameter>
</parameters>
</mojo>
</mojos>
</pluginMetadata>

View File

@ -0,0 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
invoker.goals.1 = clean install -DskipTests
invoker.goals.2 = org.apache.maven.beanshell.it:maven-beanshell-it-basic:1.0-SNAPSHOT:touch -Dname=touch.txt

View File

@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.beanshell.it</groupId>
<artifactId>maven-beanshell-it-basic</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<name>Basic Beanshell-Mojo Integration Test</name>
<properties>
<pluginPluginVersion>@project.version@</pluginPluginVersion><!-- -->
</properties>
<dependencies>
<dependency>
<groupId>bsh</groupId>
<artifactId>bsh</artifactId>
<version>1.3.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-script-beanshell</artifactId>
<version>@project.version@</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>${pluginPluginVersion}</version>
<configuration>
<prefix>beanshellBasic</prefix>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-beanshell</artifactId>
<version>${pluginPluginVersion}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,65 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// START SNIPPET: beanshell-mojo
/**
* Touches a test file.
*
* @goal touch
* @requiresDependencyResolution=test
* @deprecated Don't use!
* @since 1.2
*/
import org.apache.maven.plugin.Mojo;
import org.apache.maven.script.beanshell.BeanshellMojoAdapter;
import org.codehaus.plexus.util.FileUtils;
execute()
{
logger.info( "Executing beanshell mojo..." );
FileUtils.fileWrite( outDir + "/" + name, "This is a Beanshell test" );
}
/**
* Output directory for files.
*
* @parameter expression="${project.build.directory}"
* @required
*/
setOutDir( file )
{
outDir = file;
}
/**
*
*
* @parameter expression="${name}"
* @required
*/
setName( name )
{
name = name;
}
return new BeanshellMojoAdapter( (Mojo) this, this.interpreter );
// END SNIPPET: beanshell-mojo

View File

@ -0,0 +1,27 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
File touchFile = new File( basedir, "target/touch.txt" )
assert touchFile.exists()
assert touchFile.isFile()
content = touchFile.text
assert content.contains('This is a Beanshell test');
return true;

View File

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>test</groupId>
<artifactId>maven-since-3.x</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<groupId>test</groupId>
<artifactId>antsample-maven-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>ANT Sample</name>
<description>Just a test project</description>
<url>http://nowere.test</url>
<inceptionYear>2012</inceptionYear>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>@project.version@</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-ant</artifactId>
<version>@project.version@</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>@project.version@</version>
</plugin>
</plugins>
</reporting>
</project>

View File

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<project name="ant-tasks">
<!-- +++++++++++++++++++++++++++++++++++++++++++ -->
<!-- Global Properties -->
<!-- +++++++++++++++++++++++++++++++++++++++++++ -->
<!-- taskdef resource="net/sf/antcontrib/antcontrib.properties"/-->
<!-- +++++++++++++++++++++++++++++++++++++++++++ -->
<!-- Main task -->
<!-- +++++++++++++++++++++++++++++++++++++++++++ -->
<target name="sample-task">
<echo message="${message}."/>
</target>
</project>

View File

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<pluginMetadata
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/PLUGIN-METADATA/1.1.0"
xsi:schemaLocation="http://maven.apache.org/PLUGIN-METADATA/1.1.0 http://maven.apache.org/xsd/plugin-metadata-1.1.0.xsd">
<mojos>
<mojo>
<goal>sample</goal>
<call>sample-task</call>
<description>Just a test</description>
<requiresDirectInvocation>false</requiresDirectInvocation>
<requiresProject>false</requiresProject>
<since>1.0</since>
<parameters>
<parameter>
<name>message</name>
<type>java.lang.String</type>
<required>true</required>
<readonly>false</readonly>
<since>0.9</since>
<description>Test param</description>
</parameter>
</parameters>
</mojo>
</mojos>
</pluginMetadata>

View File

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<project name="${artifactId}">
<publishDate position="right" format="dd/MM/yyyy, HH:mm" />
<version position="right"/>
<poweredBy>
<logo name="Maven" href="http://maven.apache.org/"
img="${project.url}/images/maven-feather.png" />
</poweredBy>
<body>
<menu name="Overview">
<item name="Introduction" href="index.html"/>
<item name="Goals" href="plugin-info.html"/>
<item name="Usage" href="usage.html"/>
<item name="FAQ" href="faq.html"/>
</menu>
${reports}
</body>
</project>

View File

@ -0,0 +1,21 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
invoker.goals.1 = clean install site
invoker.maven.version = 3.0+

View File

@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>test</groupId>
<artifactId>maven-since-3.x</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<groupId>test</groupId>
<artifactId>javasample-maven-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>Java Sample</name>
<description>Java Maven Mojo.</description>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,82 @@
package test;
/*
* Copyright 2001-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
/**
* Goal which touches a timestamp file.
*
* @goal touch
* @since 1.0
*
* @phase process-sources
*/
public class MyMojo
extends AbstractMojo
{
/**
* Location of the file.
* @parameter property="project.build.directory"
* @required
*/
private File outputDirectory;
public void execute()
throws MojoExecutionException
{
File f = outputDirectory;
if ( !f.exists() )
{
f.mkdirs();
}
File touch = new File( f, "touch.txt" );
FileWriter w = null;
try
{
w = new FileWriter( touch );
w.write( "touch.txt" );
}
catch ( IOException e )
{
throw new MojoExecutionException( "Error creating file " + touch, e );
}
finally
{
if ( w != null )
{
try
{
w.close();
}
catch ( IOException e )
{
// ignore
}
}
}
}
}

View File

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<project name="${artifactId}">
<publishDate position="right" format="dd/MM/yyyy, HH:mm" />
<version position="right"/>
<poweredBy>
<logo name="Maven" href="http://maven.apache.org/"
img="${project.url}/images/maven-feather.png" />
</poweredBy>
<body>
<menu name="Overview">
<item name="Introduction" href="index.html"/>
<item name="Goals" href="plugin-info.html"/>
<item name="Usage" href="usage.html"/>
<item name="FAQ" href="faq.html"/>
</menu>
${reports}
</body>
</project>

View File

@ -0,0 +1,94 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
<artifactId>maven-since-3.x</artifactId>
<version>1.0-SNAPSHOT</version>
<name>Samples</name>
<packaging>pom</packaging>
<description>Just a test project</description>
<url>http://nowere.test</url>
<inceptionYear>2012</inceptionYear>
<modules>
<module>antsample-maven-plugin</module>
<module>javasample-maven-plugin</module>
</modules>
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.0.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.1</version>
<executions>
<execution>
<id>generated-helpmojo</id>
<goals>
<goal>helpmojo</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-ant</artifactId>
<version>3.1</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>@sitePluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-help-plugin</artifactId>
<version>2.1.1</version>
</plugin>
</plugins>
</build>
<reporting>
<excludeDefaults>true</excludeDefaults>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.1</version>
</plugin>
</plugins>
</reporting>
</project>

View File

@ -0,0 +1,27 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
File touchFile = new File( basedir, "antsample-maven-plugin/target/site/sample-mojo.html" )
assert touchFile.exists()
assert touchFile.isFile()
content = touchFile.text
assert content.contains('Since');
return true;

View File

@ -0,0 +1,25 @@
[INFO] help 1.0-SNAPSHOT
Tests generation and compilation of the help mojo.
help:test
Deprecated. As of 1.0, use the "quoted" goal instead.
MOJO-DESCRIPTION. Some 'quotation' marks and backslashes '\\', some important
javadoc
and an inline link to AnotherMojo.
Available parameters:
defaultParam (Default: escape\backslash)
This parameter uses 'quotation' marks and backslashes '\\' in its
description. Those characters must be escaped in Java string literals.
deprecatedParam
Deprecated. As of version 1.0, use the {@link #defaultParam} instead.
This parameter is deprecated.
undocumentedParam
Required: Yes
User property: test.undocumented

View File

@ -0,0 +1,23 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
invoker.maven.version = 3.0+
invoker.goals.1 = clean install -DskipTests
invoker.goals.2 = org.apache.maven.its.plugin:help:1.0-SNAPSHOT:help
invoker.goals.3 = --log-file help.log org.apache.maven.its.plugin:help:1.0-SNAPSHOT:help
# --log-file option is only supported by Maven 3
invoker.maven.version = 3.0+

View File

@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.its.plugin</groupId>
<artifactId>help</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<description>
Tests generation and compilation of the help mojo.
</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>@project.version@</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.4</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>@project.version@</version>
<executions>
<execution>
<id>default-descriptor</id>
<phase>process-classes</phase>
</execution>
<execution>
<id>help-goal</id>
<goals>
<goal>helpmojo</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,68 @@
package test;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
/**
* MOJO-DESCRIPTION. Some "quotation" marks and backslashes '\\', some <strong>important</strong> javadoc<br> and an
* inline link to {@link test.AnotherMojo}.
*
* @deprecated As of 1.0, use the "quoted" goal instead.
* @since 2.1
*/
@Mojo( name= "test" )
public class MyMojo
extends AbstractMojo
{
/**
* This parameter uses "quotation" marks and backslashes '\\' in its description. Those characters <em>must</em> be
* escaped in Java string literals.
*
* @since 2.0
*/
@Parameter( defaultValue = "escape\\backslash" )
private String defaultParam;
/**
* This parameter is deprecated.
*
* @deprecated As of version 1.0, use the {@link #defaultParam} instead.
*/
@Parameter
private String deprecatedParam;
@Parameter( property = "test.undocumented", required = true )
private String undocumentedParam;
/**
* Readonly parameter: should not be proposed for configuration.
*/
@Parameter( defaultValue = "not for configuration", readonly = true )
private String readonly;
public void execute()
{
}
}

View File

@ -0,0 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
detail = true
goal = test

View File

@ -0,0 +1,28 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
expected = new File( basedir, "expected-help.txt" ).text.trim().replace( "\r", "" );
log = new File( basedir, "help.log" ).text.replace( "\r", "" );
log = log.substring( log.indexOf( "[INFO] help 1.0-SNAPSHOT" ) );
log = log.substring( 0, log.indexOf( "[INFO]", 5 ) ).trim();
assert log == expected;
return true;

View File

@ -0,0 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
invoker.goals = clean compile

View File

@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.its.plugin</groupId>
<artifactId>help-package</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<description>
Tests generation of the help mojo in a user-specified package (MPLUGIN-168).
</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.0.1</version>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.4</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>@project.version@</version>
<configuration>
<helpPackageName>test.help</helpPackageName>
</configuration>
<executions>
<execution>
<id>help-goal</id>
<goals>
<goal>helpmojo</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,37 @@
package test;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.plugin.AbstractMojo;
/**
* MOJO-DESCRIPTION.
*
* @goal test
*/
public class MyMojo
extends AbstractMojo
{
public void execute()
{
}
}

View File

@ -0,0 +1,26 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import java.io.*;
File helpMojo = new File( basedir, "target/classes/test/help/HelpMojo.class" );
if ( !helpMojo.isFile() )
{
throw new FileNotFoundException( "Missing/misplaced: " + helpMojo );
}

View File

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.maven.its.plugin</groupId>
<artifactId>ipcr</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>ipcr-dep-a</artifactId>
<packaging>jar</packaging>
<name>Dependency A</name>
<description>
Test that the component used to scan sources for annotations does not analyze classes from the plugin's own class
realm while traversing the class hierarchy (see QDOX-148). This module provides a simple dependency to build up
the class realm of interest.
</description>
</project>

View File

@ -0,0 +1,24 @@
package test;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
public class ClassA
{
}

View File

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.maven.its.plugin</groupId>
<artifactId>ipcr</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>ipcr-dep-b</artifactId>
<packaging>jar</packaging>
<name>Dependency B</name>
<description>
Test that the component used to scan sources for annotations does not analyze classes from the plugin's own class
realm while traversing the class hierarchy (see QDOX-148). This module provides a simple dependency to build up
the class realm of interest.
</description>
<dependencies>
<dependency>
<groupId>org.apache.maven.its.plugin</groupId>
<artifactId>ipcr-dep-a</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,33 @@
package test;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
public class ClassB
{
/**
* For the test we want to trigger a linkage error when resolving ClassA. However, we want this error to occur when
* analyzing ClassB and not when loading ClassB itself.
*/
public void triggerLazyLinkageError(ClassA param)
{
}
}

View File

@ -0,0 +1,22 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
invoker.goals.1 = clean install -DskipTests
invoker.profiles.1 = setup
invoker.goals.2 = clean process-classes
invoker.profiles.2 = test

View File

@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.its.plugin</groupId>
<artifactId>ipcr</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Aggregator</name>
<description>
Test that the component used to scan sources for annotations does not analyze classes from the plugin's own class
realm while traversing the class hierarchy (see QDOX-148).
</description>
<profiles>
<profile>
<!-- builds the dependencies requires to exhibit the problem -->
<id>setup</id>
<modules>
<module>dep-a</module>
<module>dep-b</module>
</modules>
</profile>
<profile>
<!-- runs the test -->
<id>test</id>
<modules>
<module>test</module>
</modules>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>@project.version@</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>
</project>

View File

@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.maven.its.plugin</groupId>
<artifactId>ipcr</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>ipcr-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>Test Plugin</name>
<description>
Test that the component used to scan sources for annotations does not analyze classes from the plugin's own class
realm while traversing the class hierarchy (see QDOX-148). This module provides the plugin sources to scan.
</description>
<dependencies>
<!--
This project depends on both ipcr-dep-b and (indirectly) ipcr-dep-a. However, the plugin realm only contains
ipcr-dep-b, causing a linkage error when erroneously traversing the class hierarchy.
-->
<dependency>
<groupId>org.apache.maven.its.plugin</groupId>
<artifactId>ipcr-dep-b</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.apache.maven.its.plugin</groupId>
<artifactId>ipcr-dep-b</artifactId>
<version>1.0-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>org.apache.maven.its.plugin</groupId>
<artifactId>ipcr-dep-a</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,34 @@
package test;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
* This is the source class to be scanned for annotations. While scanning, QDox must not try to resolve references to
* other types like the super class from the plugin class realm. The plugin class realm has no relation at all to
* the project class path. In particular, the plugin class realm could (by incident) contain different versions of those
* types or could be incomplete (due to exclusions). The later case leads to NoClassDefFoundErrors, crashing the scan.
*
* @goal test
*/
public class SomeMojo
extends ClassB
{
}

View File

@ -0,0 +1,21 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
invoker.java.version = 1.8+
invoker.goals.1 = clean install -DskipTests
invoker.goals.2 = org.apache.maven.its.basic-java-annotations:maven-it-basic-java-annotations:1.0-SNAPSHOT:it0014
invoker.goals.3 = org.apache.maven.its.basic-java-annotations:maven-it-basic-java-annotations:1.0-SNAPSHOT:help

View File

@ -0,0 +1,108 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.its.basic-java-annotations</groupId>
<artifactId>maven-it-basic-java-annotations</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<name>Maven Integration Test :: basic-java-annotations-jdk8</name>
<description>
Test plugin-plugin, which tests maven-plugin-tools-api and
maven-plugin-tools-java. This will generate a plugin descriptor from
java-based mojo sources, install the plugin, and then use it.
</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- pom properties values not taken into account since invoker defines properties -->
<!-- that override what's defined in pom -->
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>@project.version@</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source><!-- avoid ${maven.compiler.source} since value is not as expected -->
<target>1.8</target><!-- avoid ${maven.compiler.target} since value is not as expected -->
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>@project.version@</version>
<configuration>
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
</configuration>
<executions>
<execution>
<id>mojo-descriptor</id>
<goals>
<goal>descriptor</goal>
</goals>
</execution>
<execution>
<id>help-goal</id>
<goals>
<goal>helpmojo</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,66 @@
package org.apache.maven.plugin.coreit;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import java.io.File;
import java.io.IOException;
/**
* Touches a test file.
*
*/
@Mojo( name = "it0014" )
public class CoreIt0014Mojo
extends AbstractMojo
{
@Parameter( property = "project.build.directory", required = true )
private String outputDirectory;
public void execute()
throws MojoExecutionException
{
getLog().info( "outputDirectory = " + outputDirectory );
File f = new File( outputDirectory );
if ( !f.exists() )
{
f.mkdirs();
}
File touch = new File( f, "touch.txt" );
try
{
touch.createNewFile();
}
catch ( IOException e )
{
throw new MojoExecutionException( "Error writing verification file.", e );
}
}
}

View File

@ -0,0 +1,91 @@
package org.apache.maven.plugin.coreit;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.execution.MavenSession;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecution;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.descriptor.PluginDescriptor;
import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.ResolutionScope;
import org.apache.maven.plugins.annotations.Execute;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.project.MavenProject;
import org.apache.maven.project.MavenProjectHelper;
import org.apache.maven.settings.Settings;
import java.io.File;
/**
* Touches a test file.
*
* @since 1.2
* @deprecated Don't use!
*/
@Mojo( name = "first", requiresDependencyResolution = ResolutionScope.TEST, defaultPhase = LifecyclePhase.INTEGRATION_TEST )
@Execute( phase = LifecyclePhase.GENERATE_SOURCES, lifecycle = "cobertura" )
public class FirstMojo
extends AbstractMojo
{
/**
* Project directory.
*/
@Parameter( defaultValue = "${basedir}", readonly = true )
private File basedir;
@Parameter( property = "first.touchFile", defaultValue = "${project.build.directory}/touch.txt",
required = true )
private File touchFile;
/**
* @since 0.1
* @deprecated As of 0.2
*/
@Parameter( name = "namedParam", alias = "alias" )
private String aliasedParam;
@Component( role = MavenProjectHelper.class, hint = "test" )
private Object projectHelper;
@Component
private MavenSession session;
@Component
private MavenProject project;
@Component
private MojoExecution mojo;
@Component
private PluginDescriptor plugin;
@Component
private Settings settings;
public void execute()
throws MojoExecutionException
{
}
}

View File

@ -0,0 +1,47 @@
package org.apache.maven.plugin.coreit;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import java.io.File;
import java.io.IOException;
/**
* Could not use regex in @Parameter(defaultValue)
*/
@Mojo( name = "mplugin-220" )
public class MPlugin220Mojo
extends AbstractMojo
{
@Parameter( defaultValue = "[a-zA-Z]{2,}-\\\\d+" )
private String regex;
public void execute()
throws MojoExecutionException
{
getLog().info( "regex = " + regex );
}
}

View File

@ -0,0 +1,76 @@
package org.apache.maven.plugin.coreit;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.ResolutionScope;
import org.apache.maven.plugins.annotations.Execute;
import org.apache.maven.plugins.annotations.InstantiationStrategy;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.project.MavenProjectHelper;
/**
* Checks maximum annotations with non-default values.
*
* @since since-text
* @deprecated deprecated-text
*/
@Mojo( name = "maximal",
aggregator = true,
configurator = "configurator-hint",
requiresDependencyResolution = ResolutionScope.COMPILE,
requiresDependencyCollection = ResolutionScope.TEST,
defaultPhase = LifecyclePhase.PACKAGE,
executionStrategy = "always",
instantiationStrategy = InstantiationStrategy.SINGLETON,
inheritByDefault = false,
requiresDirectInvocation = true,
requiresOnline = true,
requiresProject = false,
requiresReports = true,
threadSafe = true )
@Execute( phase = LifecyclePhase.COMPILE )
public class Maximal
extends AbstractMojo
{
/**
* Parameter description.
*
* @since since-text
* @deprecated deprecated-text
*/
@Parameter( alias = "myAlias",
property = "aProperty",
defaultValue = "${anExpression}",
readonly = true,
required = true )
private String param;
@Component( role = MavenProjectHelper.class, hint = "test" )
private Object projectHelper;
public void execute()
{
}
}

View File

@ -0,0 +1,43 @@
package org.apache.maven.plugin.coreit;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.project.MavenProjectHelper;
// minimum annotations => default values
@Mojo( name = "minimal" )
public class Minimal
extends AbstractMojo
{
@Parameter
private String param;
@Component
private MavenProjectHelper projectHelper;
public void execute()
{
}
}

View File

@ -0,0 +1,30 @@
package fr.ca;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
public interface TestInterface {
/**
* Java 8 required to support such default method implementation
*/
public default void foo(){
}
}

View File

@ -0,0 +1,231 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
File touchFile = new File( basedir, "target/touch.txt" )
assert touchFile.isFile()
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
assert descriptorFile.isFile()
def pluginDescriptor = new XmlParser().parse( descriptorFile );
def mojo = pluginDescriptor.mojos.mojo.findAll{ it.goal.text() == "first" }[0]
assert mojo.goal.text() == 'first'
assert mojo.implementation.text() == 'org.apache.maven.plugin.coreit.FirstMojo'
assert mojo.language.text() == 'java'
assert mojo.description.text() == 'Touches a test file.'
assert mojo.deprecated.text() == "Don't use!"
assert mojo.requiresDependencyResolution.text() == 'test'
assert mojo.requiresDependencyCollection.text() == ''
assert mojo.requiresProject.text() == 'true'
assert mojo.requiresOnline.text() == 'false'
assert mojo.requiresDirectInvocation.text() == 'false'
assert mojo.aggregator.text() == 'false'
assert mojo.threadSafe.text() == 'false'
assert mojo.phase.text() == 'integration-test'
assert mojo.executePhase.text() == 'generate-sources'
assert mojo.executeLifecycle.text() == 'cobertura'
assert mojo.configuration.basedir[0].text() == ''
assert mojo.configuration.basedir[0].'@implementation' == 'java.io.File'
assert mojo.configuration.basedir[0].'@default-value' == '${basedir}'
assert mojo.configuration.touchFile[0].text() == '${first.touchFile}'
assert mojo.configuration.touchFile[0].'@implementation' == 'java.io.File'
assert mojo.configuration.touchFile[0].'@default-value' == '${project.build.directory}/touch.txt'
assert mojo.configuration.session[0].text() == ''
assert mojo.configuration.session[0].'@implementation' == 'org.apache.maven.execution.MavenSession'
assert mojo.configuration.session[0].'@default-value' == '${session}'
assert mojo.configuration.project[0].text() == ''
assert mojo.configuration.project[0].'@implementation' == 'org.apache.maven.project.MavenProject'
assert mojo.configuration.project[0].'@default-value' == '${project}'
assert mojo.configuration.mojo[0].text() == ''
assert mojo.configuration.mojo[0].'@implementation' == 'org.apache.maven.plugin.MojoExecution'
assert mojo.configuration.mojo[0].'@default-value' == '${mojoExecution}'
assert mojo.configuration.plugin[0].text() == ''
assert mojo.configuration.plugin[0].'@implementation' == 'org.apache.maven.plugin.descriptor.PluginDescriptor'
assert mojo.configuration.plugin[0].'@default-value' == '${plugin}'
assert mojo.configuration.settings[0].text() == ''
assert mojo.configuration.settings[0].'@implementation' == 'org.apache.maven.settings.Settings'
assert mojo.configuration.settings[0].'@default-value' == '${settings}'
assert mojo.requirements.requirement.size() == 1
assert mojo.requirements.requirement[0].role.text() == 'org.apache.maven.project.MavenProjectHelper'
assert mojo.requirements.requirement[0].'role-hint'.text() == 'test'
assert mojo.requirements.requirement[0].'field-name'.text() == 'projectHelper'
assert mojo.parameters.parameter.size() == 8
parameter = mojo.parameters.parameter.findAll{ it.name.text() == "namedParam" }[0]
assert parameter.name.text() == 'namedParam'
assert parameter.alias.text() == 'alias'
assert parameter.type.text() == 'java.lang.String'
assert parameter.deprecated.text() == 'As of 0.2'
assert parameter.required.text() == 'false'
assert parameter.editable.text() == 'true'
assert parameter.description.text() == ''
parameter = mojo.parameters.parameter.findAll{ it.name.text() == "basedir" }[0]
assert parameter.name.text() == 'basedir'
assert parameter.alias.isEmpty()
assert parameter.type.text() == 'java.io.File'
assert parameter.deprecated.isEmpty()
assert parameter.required.text() == 'false'
assert parameter.editable.text() == 'false'
assert parameter.description.text() == 'Project directory.'
parameter = mojo.parameters.parameter.findAll{ it.name.text() == "mojo" }[0]
assert parameter.name.text() == 'mojo'
assert parameter.alias.isEmpty()
assert parameter.type.text() == 'org.apache.maven.plugin.MojoExecution'
assert parameter.deprecated.isEmpty()
assert parameter.required.text() == 'true'
assert parameter.editable.text() == 'false'
assert parameter.description.text() == ''
parameter = mojo.parameters.parameter.findAll{ it.name.text() == "plugin" }[0]
assert parameter.name.text() == 'plugin'
assert parameter.alias.isEmpty()
assert parameter.type.text() == 'org.apache.maven.plugin.descriptor.PluginDescriptor'
assert parameter.deprecated.isEmpty()
assert parameter.required.text() == 'true'
assert parameter.editable.text() == 'false'
assert parameter.description.text() == ''
parameter = mojo.parameters.parameter.findAll{ it.name.text() == "project" }[0]
assert parameter.name.text() == 'project'
assert parameter.alias.isEmpty()
assert parameter.type.text() == 'org.apache.maven.project.MavenProject'
assert parameter.deprecated.isEmpty()
assert parameter.required.text() == 'true'
assert parameter.editable.text() == 'false'
assert parameter.description.text() == ''
parameter = mojo.parameters.parameter.findAll{ it.name.text() == "session" }[0]
assert parameter.name.text() == 'session'
assert parameter.alias.isEmpty()
assert parameter.type.text() == 'org.apache.maven.execution.MavenSession'
assert parameter.deprecated.isEmpty()
assert parameter.required.text() == 'true'
assert parameter.editable.text() == 'false'
assert parameter.description.text() == ''
parameter = mojo.parameters.parameter.findAll{ it.name.text() == "settings" }[0]
assert parameter.name.text() == 'settings'
assert parameter.alias.isEmpty()
assert parameter.type.text() == 'org.apache.maven.settings.Settings'
assert parameter.deprecated.isEmpty()
assert parameter.required.text() == 'true'
assert parameter.editable.text() == 'false'
assert parameter.description.text() == ''
parameter = mojo.parameters.parameter.findAll{ it.name.text() == "touchFile" }[0]
assert parameter.name.text() == 'touchFile'
assert parameter.alias.isEmpty()
assert parameter.type.text() == 'java.io.File'
assert parameter.deprecated.isEmpty()
assert parameter.required.text() == 'true'
assert parameter.editable.text() == 'true'
assert parameter.description.text() == ''
// check default values
mojo = pluginDescriptor.mojos.mojo.findAll{ it.goal.text() == "minimal"}[0]
assert mojo.goal.text() == 'minimal'
assert mojo.implementation.text() == 'org.apache.maven.plugin.coreit.Minimal'
assert mojo.language.text() == 'java'
assert mojo.description.text() == ''
assert mojo.deprecated.text() == ''
assert mojo.requiresDependencyResolution.text() == ''
assert mojo.requiresDependencyCollection.text() == ''
assert mojo.requiresProject.text() == 'true'
assert mojo.requiresOnline.text() == 'false'
assert mojo.requiresDirectInvocation.text() == 'false'
assert mojo.requiresReports.text() == 'false'
assert mojo.aggregator.text() == 'false'
assert mojo.threadSafe.text() == 'false'
assert mojo.phase.text() == ''
assert mojo.executePhase.text() == ''
assert mojo.executeLifecycle.text() == ''
assert mojo.executionStrategy.text() == 'once-per-session'
assert mojo.inheritedByDefault.text() == 'true'
assert mojo.instantiationStrategy.text() == 'per-lookup'
parameter = mojo.parameters.parameter.findAll{ it.name.text() == "param" }[0]
assert parameter.name.text() == 'param'
assert parameter.alias.text() == ''
assert parameter.type.text() == 'java.lang.String'
assert parameter.deprecated.text() == ''
assert parameter.required.text() == 'false'
assert parameter.editable.text() == 'true'
assert parameter.description.text() == ''
def requirement = mojo.requirements.requirement.findAll{ it.'field-name'.text() == "projectHelper" }[0]
assert requirement.role.text() == 'org.apache.maven.project.MavenProjectHelper'
// check values set by every annotation
mojo = pluginDescriptor.mojos.mojo.findAll{ it.goal.text() == "maximal"}[0]
assert mojo.goal.text() == 'maximal'
assert mojo.implementation.text() == 'org.apache.maven.plugin.coreit.Maximal'
assert mojo.language.text() == 'java'
assert mojo.description.text() == 'Checks maximum annotations with non-default values.'
assert mojo.deprecated.text() == 'deprecated-text'
assert mojo.requiresDependencyResolution.text() == 'compile'
assert mojo.requiresDependencyCollection.text() == 'test'
assert mojo.requiresProject.text() == 'false'
assert mojo.requiresOnline.text() == 'true'
assert mojo.requiresDirectInvocation.text() == 'true'
assert mojo.requiresReports.text() == 'true'
assert mojo.aggregator.text() == 'true'
assert mojo.configurator.text() == 'configurator-hint'
assert mojo.threadSafe.text() == 'true'
assert mojo.phase.text() == 'package'
assert mojo.executePhase.text() == 'compile'
assert mojo.executeLifecycle.text() == ''
assert mojo.executionStrategy.text() == 'always'
assert mojo.inheritedByDefault.text() == 'false'
assert mojo.instantiationStrategy.text() == 'singleton'
parameter = mojo.parameters.parameter.findAll{ it.name.text() == "param" }[0]
assert parameter.name.text() == 'param'
assert parameter.alias.text() == 'myAlias'
assert parameter.type.text() == 'java.lang.String'
assert parameter.since.text() == 'since-text'
assert parameter.deprecated.text() == 'deprecated-text'
assert parameter.required.text() == 'true'
assert parameter.editable.text() == 'false'
assert parameter.description.text() == 'Parameter description.'
requirement = mojo.requirements.requirement.findAll{ it.'field-name'.text() == "projectHelper" }[0]
assert requirement.role.text() == 'org.apache.maven.project.MavenProjectHelper'
// check help mojo source and class
assert new File( basedir, "target/classes/org/apache/maven/plugin/coreit/HelpMojo.class" ).isFile()
assert new File( basedir, "target/generated-sources/plugin/org/apache/maven/plugin/coreit/HelpMojo.java" ).isFile()
assert !new File( basedir, "target/generated-sources/plugin/HelpMojo.java" ).isFile()
return true;

Some files were not shown because too many files have changed in this diff Show More