Compare commits

...

202 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
267 changed files with 7472 additions and 1863 deletions

3
.gitignore vendored
View File

@ -3,6 +3,7 @@ target
#idea
*.iml
.idea
out/
#eclipse
.classpath
@ -10,3 +11,5 @@ target
.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

@ -23,13 +23,13 @@
<parent>
<artifactId>maven-plugin-tools</artifactId>
<groupId>org.apache.maven.plugin-tools</groupId>
<version>3.2</version>
<version>3.5.1-SNAPSHOT</version>
</parent>
<artifactId>maven-plugin-annotations</artifactId>
<name>Maven Plugin Java 5 Annotations</name>
<description>Java 5 annotations to use in Mojos.</description>
<name>Maven Plugin Tools Java 5 Annotations</name>
<description>Java 5 annotations to use in Mojos</description>
<dependencies>
<dependency>

View File

@ -29,15 +29,7 @@ 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> and special Maven
* objects as well:
* <dl>
* <dt>mojoExecution</dt> <dd>org.apache.maven.plugin.MojoExecution</dd>
* <dt>project</dt> <dd>org.apache.maven.project.MavenProject</dd>
* <dt>session</dt> <dd>org.apache.maven.execution.MavenSession</dd>
* <dt>settings</dt> <dd>org.apache.maven.settings.Settings</dd>
* <dt>plugin (Maven-3 only)</dt><dd>org.apache.maven.plugin.descriptor.PluginDescriptor</dd>
* </dl>
* <code>MavenPluginManager.getConfiguredMojo(...)</code></a>.
*
* @author Olivier Lamy
* @since 3.0

View File

@ -39,13 +39,13 @@ import java.lang.annotation.Target;
public @interface Execute
{
/**
* lifecycle phase to fork.
* lifecycle phase to fork. Note that specifying a phase overrides specifying a goal.
* @return the phase
*/
LifecyclePhase phase() default LifecyclePhase.NONE;
/**
* goal to fork.
* goal to fork. Note that specifying a phase overrides specifying a goal.
* @return the goal
*/
String goal() default "";

View File

@ -20,7 +20,7 @@ package org.apache.maven.plugins.annotations;
*/
/**
* Component instanciation strategy.
* Component instantiation strategy.
*
* @author Hervé Boutemy
* @since 3.0
@ -34,7 +34,7 @@ public enum InstantiationStrategy
private final String id;
InstantiationStrategy(String id)
InstantiationStrategy( String id )
{
this.id = id;
}

View File

@ -52,13 +52,13 @@ public @interface Mojo
/**
* the required dependency resolution scope.
* @return
* @return the required dependency resolution scope
*/
ResolutionScope requiresDependencyResolution() default ResolutionScope.NONE;
/**
* the required dependency collection scope.
* @return
* @return the required dependency collection scope
*/
ResolutionScope requiresDependencyCollection() default ResolutionScope.NONE;
@ -68,14 +68,6 @@ public @interface Mojo
*/
InstantiationStrategy instantiationStrategy() default InstantiationStrategy.PER_LOOKUP;
/**
* The original spelling of the instantiationStrategy attribute.
* @see #instantiationStrategy()
* @return the instantiation strategy
*/
@Deprecated
InstanciationStrategy instanciationStrategy() default InstanciationStrategy.PER_LOOKUP;
/**
* execution strategy: <code>once-per-session</code> or <code>always</code>.
* @return <code>once-per-session</code> or <code>always</code>
@ -84,31 +76,31 @@ public @interface Mojo
/**
* does your mojo requires a project to be executed?
* @return
* @return requires a project
*/
boolean requiresProject() default true;
/**
* does your mojo requires a reporting context to be executed?
* @return
* @return requires a reporting context
*/
boolean requiresReports() default false;
/**
* if the Mojo uses the Maven project and its child modules.
* @return
* @return uses the Maven project and its child modules
*/
boolean aggregator() default false;
/**
* can this Mojo be invoked directly only?
* @return
* @return invoked directly only
*/
boolean requiresDirectInvocation() default false;
/**
* does this Mojo need to be online to be executed?
* @return
* @return need to be online
*/
boolean requiresOnline() default false;
@ -116,13 +108,13 @@ public @interface Mojo
/**
* own configurator class.
* @return
* @return own configurator class
*/
String configurator() default "";
/**
* is your mojo thread safe (since Maven 3.x)?
* @return
* @return is thread safe
*/
boolean threadSafe() default false;
}

View File

@ -40,6 +40,12 @@ import java.lang.annotation.Target;
@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
@ -47,7 +53,8 @@ public @interface Parameter
String alias() default "";
/**
* Property to use to retrieve a value. Can come from <code>-D</code> execution, setting properties or pom properties.
* 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 "";

View File

@ -32,18 +32,7 @@ About ${project.name}
* Usage
To be able to {{{../maven-plugin-tools-annotations/index.html}use Maven Plugin Java 5 Annotations}},
add this artifact to your project dependencies in <<<pom.xml>>>:
+--------+
<project>
<dependencies>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
+--------+
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

@ -23,7 +23,7 @@
<parent>
<artifactId>maven-plugin-tools</artifactId>
<groupId>org.apache.maven.plugin-tools</groupId>
<version>3.2</version>
<version>3.5.1-SNAPSHOT</version>
</parent>
<groupId>org.apache.maven.plugins</groupId>
@ -38,20 +38,46 @@
</description>
<prerequisites>
<maven>2.0.6</maven>
<maven>2.2.1</maven>
</prerequisites>
<properties>
<doxiaVersion>1.2</doxiaVersion>
<doxia-sitetoolsVersion>1.2</doxia-sitetoolsVersion>
<doxiaVersion>1.4</doxiaVersion>
<doxia-sitetoolsVersion>1.4</doxia-sitetoolsVersion>
<it.debug>true</it.debug>
<mavenPluginPluginVersion>3.1</mavenPluginPluginVersion>
</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 -->
@ -76,7 +102,7 @@
</exclusions>
</dependency>
<!-- maven -->
<!-- Maven -->
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
@ -103,15 +129,6 @@
<artifactId>maven-plugin-registry</artifactId>
<version>${mavenVersion}</version>
</dependency>
<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>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact-manager</artifactId>
@ -126,7 +143,7 @@
<dependency>
<groupId>org.apache.maven.reporting</groupId>
<artifactId>maven-reporting-impl</artifactId>
<version>2.1</version><!-- 2.2 causes IT failure with mvn 2.2.1 -->
<version>2.3</version>
</dependency>
<dependency>
<groupId>org.apache.maven.reporting</groupId>
@ -134,23 +151,6 @@
<version>3.0</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>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-model</artifactId>
<scope>runtime</scope>
</dependency>
<!-- plexus -->
<dependency>
<groupId>org.codehaus.plexus</groupId>
@ -167,6 +167,13 @@
</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>
@ -190,6 +197,29 @@
</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>
@ -234,21 +264,21 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<configuration>
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
</configuration>
<version>3.5</version>
<!-- will use previous maven-plugin-plugin release to build current maven-plugin-plugin as configured in parent -->
<executions>
<execution>
<id>mojo-descriptor</id>
<goals>
<goal>descriptor</goal>
</goals>
<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>
@ -260,6 +290,7 @@
<plugin>
<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>
@ -333,17 +364,18 @@
<debug>${it.debug}</debug>
<projectsDirectory>src/it</projectsDirectory>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
<pomIncludes>
<pomInclude>*/pom.xml</pomInclude>
</pomIncludes>
<preBuildHookScript>setup</preBuildHookScript>
<postBuildHookScript>verify</postBuildHookScript>
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
<settingsFile>src/it/settings.xml</settingsFile>
<filterProperties>
<sitePluginVersion>3.0</sitePluginVersion>
<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>
@ -357,14 +389,35 @@
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-tools-annotations</artifactId>
<version>${project.version}</version>
<classifier>tests</classifier>
</dependency>
</dependencies>
</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

@ -1,3 +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

@ -62,6 +62,13 @@ under the License.
<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>

View File

@ -26,7 +26,7 @@ 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.annotations.FooMojo;
import org.apache.maven.tools.plugin.extractor.annotations.FooMojo;
import org.apache.maven.project.MavenProjectHelper;
/**

View File

@ -1,3 +1,23 @@
<?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>

View File

@ -1,3 +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.
*/
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
assert descriptorFile.isFile()

View File

@ -1,3 +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

@ -1,3 +1,23 @@
<?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>

View File

@ -50,6 +50,13 @@ under the License.
<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>

View File

@ -1,3 +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.
*/
File touchFile = new File( basedir, "module-mojo/target/touch.txt" )
assert touchFile.isFile()

View File

@ -1,3 +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:annotation-with-inheritance:1.0-SNAPSHOT:it0014
invoker.goals.3 = org.apache.maven.its.annotation-with-inheritance:annotation-with-inheritance:1.0-SNAPSHOT:first

View File

@ -1,3 +1,23 @@
<?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>

View File

@ -1,3 +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.
*/
File touchFile = new File( basedir, "target/touch.txt" )
assert touchFile.isFile()

View File

@ -1,3 +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,8 +19,10 @@
~ under the License.
-->
<!-- START SNIPPET: ant-mojo -->
<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 http://maven.apache.org/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.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>
<!-- target name to call in ant script -->

View File

@ -1,3 +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.
*/
File touchFile = new File( basedir, "target/touch.txt" )
assert touchFile.isFile()

View File

@ -1,3 +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

@ -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

@ -1,3 +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

@ -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

@ -17,7 +17,10 @@
~ specific language governing permissions and limitations
~ under the License.
-->
<pluginMetadata>
<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>

View File

@ -1,3 +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

@ -1,3 +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.
*/
// START SNIPPET: beanshell-mojo
/**
* Touches a test file.
@ -43,4 +62,4 @@ setName( name )
}
return new BeanshellMojoAdapter( (Mojo) this, this.interpreter );
// END SNIPPET: beanshell-mojo
// END SNIPPET: beanshell-mojo

View File

@ -1,3 +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.
*/
File touchFile = new File( basedir, "target/touch.txt" )
assert touchFile.exists()
assert touchFile.isFile()

View File

@ -17,7 +17,10 @@
~ specific language governing permissions and limitations
~ under the License.
-->
<pluginMetadata>
<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>

View File

@ -1,3 +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 site
invoker.maven.version = 3.0+

View File

@ -66,7 +66,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.0</version>
<version>@sitePluginVersion@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>

View File

@ -1,3 +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.
*/
File touchFile = new File( basedir, "antsample-maven-plugin/target/site/sample-mojo.html" )
assert touchFile.exists()
assert touchFile.isFile()

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

@ -1,2 +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

@ -46,6 +46,12 @@ under the License.
<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>
@ -64,6 +70,10 @@ under the License.
<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>

View File

@ -1,15 +1,36 @@
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}.
*
* @goal test
* @deprecated As of 1.0, use the "quoted" goal instead.
* @since 2.1
*/
@Mojo( name= "test" )
public class MyMojo
extends AbstractMojo
{
@ -18,31 +39,26 @@ public class MyMojo
* This parameter uses "quotation" marks and backslashes '\\' in its description. Those characters <em>must</em> be
* escaped in Java string literals.
*
* @parameter default-value="escape\\backslash"
* @since 2.0
*/
@Parameter( defaultValue = "escape\\backslash" )
private String defaultParam;
/**
* This parameter is deprecated.
*
* @parameter
* @deprecated As of version 1.0, us the {@link #defaultParam} instead.
* @deprecated As of version 1.0, use the {@link #defaultParam} instead.
*/
@Parameter
private String deprecatedParam;
/**
* @parameter expression="${test.undocumented}"
* @required
*/
@Parameter( property = "test.undocumented", required = true )
private String undocumentedParam;
/**
* Readonly parameter: should not be proposed for configuration.
*
* @parameter default-value="not for configuration"
* @readonly
*/
@Parameter( defaultValue = "not for configuration", readonly = true )
private String readonly;
public void execute()

View File

@ -1,2 +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

@ -1 +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

@ -1,5 +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.
*/
import org.apache.maven.plugin.AbstractMojo;
/**

View File

@ -1,3 +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.
*/
import java.io.*;
File helpMojo = new File( basedir, "target/classes/test/help/HelpMojo.class" );

View File

@ -1,5 +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

@ -1,5 +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 ClassB
{

View File

@ -1,3 +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.profiles.1 = setup

View File

@ -1,5 +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.
*/
/**
* 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

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

@ -1,4 +1,4 @@
package org.apache.maven.plugin.plugin;
package org.apache.maven.plugin.coreit;
/*
* Licensed to the Apache Software Foundation (ASF) under one
@ -19,39 +19,29 @@ package org.apache.maven.plugin.plugin;
* 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 org.apache.maven.tools.plugin.generator.Generator;
import org.apache.maven.tools.plugin.generator.PluginXdocGenerator;
import java.io.File;
import java.io.IOException;
/**
* Generate Xdoc files for the project mojos or goals.
*
* @author <a href="mailto:brett@apache.org">Brett Porter</a>
* @version $Id$
* @since 2.0
* Could not use regex in @Parameter(defaultValue)
*/
@Mojo( name = "xdoc", threadSafe = true )
public class XdocGeneratorMojo
extends AbstractGeneratorMojo
@Mojo( name = "mplugin-220" )
public class MPlugin220Mojo
extends AbstractMojo
{
/**
* The directory where the generated Xdoc files will be put.
*/
@Parameter( defaultValue = "${project.build.directory}/generated-site/xdoc" )
protected File outputDirectory;
@Parameter( defaultValue = "[a-zA-Z]{2,}-\\\\d+" )
private String regex;
/** {@inheritDoc} */
protected File getOutputDirectory()
public void execute()
throws MojoExecutionException
{
return outputDirectory;
getLog().info( "regex = " + regex );
}
/** {@inheritDoc} */
protected Generator createGenerator()
{
return new PluginXdocGenerator( project );
}
}

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;

View File

@ -1,3 +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.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

@ -62,7 +62,7 @@ public class FirstMojo
* @since 0.1
* @deprecated As of 0.2
*/
@Parameter( alias = "alias" )
@Parameter( name = "namedParam", alias = "alias" )
private String aliasedParam;
@Component( role = MavenProjectHelper.class, hint = "test" )

View File

@ -1,47 +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 );
}
}
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

@ -1,3 +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.
*/
File touchFile = new File( basedir, "target/touch.txt" )
assert touchFile.isFile()
@ -60,8 +79,8 @@ assert mojo.requirements.requirement[0].'field-name'.text() == 'projectHelper'
assert mojo.parameters.parameter.size() == 8
parameter = mojo.parameters.parameter.findAll{ it.name.text() == "aliasedParam" }[0]
assert parameter.name.text() == 'aliasedParam'
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'

View File

@ -1,3 +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.it0013:maven-it-it0013:1.0-SNAPSHOT:it0013

View File

@ -58,7 +58,7 @@ public class FirstMojo
private File touchFile;
/**
* @parameter alias="alias"
* @parameter name="namedParam" alias="alias"
* @deprecated As of 0.2
* @since 0.1
*/

View File

@ -1,3 +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.
*/
File touchFile = new File( basedir, "target/touch.txt" )
assert touchFile.isFile()
@ -32,36 +51,37 @@ 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.requirements.requirement.size() == 6
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}'
requirement = mojo.requirements.requirement.findAll{ it.'field-name'.text() == "session" }[0]
assert requirement.role.text() == 'org.apache.maven.execution.MavenSession'
assert requirement.'field-name'.text() == 'session'
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}'
requirement = mojo.requirements.requirement.findAll{ it.'field-name'.text() == "project" }[0]
assert requirement.role.text() == 'org.apache.maven.project.MavenProject'
assert requirement.'field-name'.text() == 'project'
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}'
requirement = mojo.requirements.requirement.findAll{ it.'field-name'.text() == "mojo" }[0]
assert requirement.role.text() == 'org.apache.maven.plugin.MojoExecution'
assert requirement.'field-name'.text() == 'mojo'
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}'
requirement = mojo.requirements.requirement.findAll{ it.'field-name'.text() == "plugin" }[0]
assert requirement.role.text() == 'org.apache.maven.plugin.descriptor.PluginDescriptor'
assert requirement.'field-name'.text() == 'plugin'
assert mojo.requirements.requirement.size() == 1
requirement = mojo.requirements.requirement.findAll{ it.'field-name'.text() == "settings" }[0]
assert requirement.role.text() == 'org.apache.maven.settings.Settings'
assert requirement.'field-name'.text() == 'settings'
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'
requirement = mojo.requirements.requirement.findAll{ it.'field-name'.text() == "projectHelper" }[0]
assert requirement.role.text() == 'org.apache.maven.project.MavenProjectHelper'
assert requirement.'role-hint'.text() == 'test'
assert requirement.'field-name'.text() == 'projectHelper'
assert mojo.parameters.parameter.size() == 8
assert mojo.parameters.parameter.size() == 3
parameter = mojo.parameters.parameter.findAll{ it.name.text() == "aliasedParam" }[0]
assert parameter.name.text() == 'aliasedParam'
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'
@ -78,51 +98,6 @@ 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()

View File

@ -1 +1,18 @@
invoker.goals = clean plugin:report -DskipTests
# 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 plugin:report -DskipTests

View File

@ -1,45 +1,45 @@
<?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.plugins.plugin.its</groupId>
<artifactId>mplugin-187</artifactId>
<version>1.0-SNAPSHOT</version>
<description>Verify that plugin:report succeeds</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>@project.version@</version>
</plugin>
</plugins>
</build>
<?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.plugins.plugin.its</groupId>
<artifactId>mplugin-187</artifactId>
<version>1.0-SNAPSHOT</version>
<description>Verify that plugin:report succeeds</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>@project.version@</version>
</plugin>
</plugins>
</build>
</project>

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 plugin:report

View File

@ -0,0 +1,67 @@
<?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.plugins.plugin.its</groupId>
<artifactId>mplugin-191</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<description>Verify that plugin-info.html and mojo pages are generated in the correct folder</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>@project.version@</version>
<configuration>
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>@project.version@</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.2.1</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,81 @@
package org.apache.maven.plugins.plugin.it;
/*
* 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.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
/**
* Goal which touches a timestamp file.
*/
@Mojo(name = "touch", defaultPhase = LifecyclePhase.PROCESS_RESOURCES)
public class MyMojo
extends AbstractMojo
{
/**
* Location of the file.
*/
@Parameter(defaultValue = "${project.build.directory}", required = true)
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,24 @@
/*
* 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 pluginInfo = new File( basedir, "target/site/plugin-info.html" );
assert pluginInfo.isFile()
File touchMojo = new File( basedir, "target/generated-site/xdoc/touch-mojo.xml" );
assert touchMojo.isFile()
return true;

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.
invoker.java.version = 1.8+
invoker.goals.1 = clean verify

View File

@ -0,0 +1,83 @@
<?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>test-plugin</groupId>
<artifactId>test-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>3.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>@project.version@</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>@project.version@</version>
<configuration>
<goalPrefix>FOO</goalPrefix>
</configuration>
<executions>
<execution>
<id>default-descriptor</id>
<goals>
<goal>descriptor</goal>
</goals>
<configuration>
</configuration>
<phase>process-classes</phase>
</execution>
<execution>
<id>help-descriptor</id>
<goals>
<goal>helpmojo</goal>
</goals>
<phase>process-classes</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,37 @@
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.
*/
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
/**
* Created by clement.agarini on 04/08/14.
*/
@Mojo(name="test-plugin",defaultPhase = LifecyclePhase.GENERATE_SOURCES)
public class MyMojo extends AbstractMojo {
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
}
}

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,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.maven.version = 3.0+
invoker.goals.1 = clean install -DskipTests
invoker.goals.2 = --log-file help.log org.apache.maven.its.plugin:help:1.0-SNAPSHOT:help

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,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;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
@Mojo( name= "test" )
public class MyMojo
extends AbstractMojo
{
@Parameter
private String empyAnnotatedParameter;
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,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.1 = clean process-classes

View File

@ -0,0 +1,82 @@
<?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.plugins.plugin.its</groupId>
<artifactId>mplugin305</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<url>https://issues.apache.org/jira/browse/MPLUGIN-305</url>
<properties>
<mavenPluginPluginVersion>@project.version@</mavenPluginPluginVersion>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>${mavenPluginPluginVersion}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>maven-surefire-common</artifactId>
<version>2.19.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>${mavenPluginPluginVersion}</version>
<configuration>
<extractors>
<extractor>java-annotations</extractor>
</extractors>
<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,289 @@
package org.apache.maven.plugins.plugin.it;
/*
* 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;
import java.util.List;
import org.apache.maven.plugin.surefire.AbstractSurefireMojo;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.surefire.suite.RunResult;
@Mojo(name="custom-surefire")
public class CustomSurefireMojo extends AbstractSurefireMojo {
public File getBasedir()
{
return null;
}
public File getClassesDirectory()
{
return null;
}
public String getDebugForkedProcess()
{
return null;
}
public Boolean getFailIfNoSpecifiedTests()
{
return null;
}
public int getForkedProcessTimeoutInSeconds()
{
return 0;
}
public double getParallelTestsTimeoutForcedInSeconds()
{
return 0;
}
public double getParallelTestsTimeoutInSeconds()
{
return 0;
}
public String getReportFormat()
{
return null;
}
public File getReportsDirectory()
{
return null;
}
public String getShutdown()
{
return null;
}
public int getSkipAfterFailureCount()
{
return 0;
}
public String getTest()
{
return null;
}
public File getTestClassesDirectory()
{
return null;
}
public boolean isPrintSummary()
{
return false;
}
public boolean isSkip()
{
return false;
}
public boolean isSkipExec()
{
return false;
}
public boolean isSkipTests()
{
return false;
}
public boolean isUseFile()
{
return false;
}
public boolean isUseManifestOnlyJar()
{
return false;
}
public boolean isUseSystemClassLoader()
{
return false;
}
public void setBasedir( File arg0 )
{
}
public void setClassesDirectory( File arg0 )
{
}
public void setDebugForkedProcess( String arg0 )
{
}
public void setFailIfNoSpecifiedTests( boolean arg0 )
{
}
public void setForkedProcessTimeoutInSeconds( int arg0 )
{
}
public void setParallelTestsTimeoutForcedInSeconds( double arg0 )
{
}
public void setParallelTestsTimeoutInSeconds( double arg0 )
{
}
public void setPrintSummary( boolean arg0 )
{
}
public void setReportFormat( String arg0 )
{
}
public void setReportsDirectory( File arg0 )
{
}
public void setSkip( boolean arg0 )
{
}
public void setSkipExec( boolean arg0 )
{
}
public void setSkipTests( boolean arg0 )
{
}
public void setTest( String arg0 )
{
}
public void setTestClassesDirectory( File arg0 )
{
}
public void setUseFile( boolean arg0 )
{
}
public void setUseManifestOnlyJar( boolean arg0 )
{
}
public void setUseSystemClassLoader( boolean arg0 )
{
}
@Override
protected String[] getDefaultIncludes()
{
return null;
}
@Override
public File getExcludesFile()
{
return null;
}
@Override
public List<String> getIncludes()
{
return null;
}
@Override
public File getIncludesFile()
{
return null;
}
@Override
protected String getPluginName()
{
return null;
}
@Override
protected int getRerunFailingTestsCount()
{
return 0;
}
@Override
public String getRunOrder()
{
return null;
}
@Override
public File[] getSuiteXmlFiles()
{
return null;
}
@Override
protected void handleSummary( RunResult arg0, Exception arg1 )
{
}
@Override
protected boolean hasSuiteXmlFiles()
{
return false;
}
@Override
protected boolean isSkipExecution()
{
return false;
}
@Override
public void setIncludes( List<String> arg0 )
{
}
@Override
public void setRunOrder( String arg0 )
{
}
@Override
public void setSuiteXmlFiles( File[] arg0 )
{
}
@Override
protected List<File> suiteXmlFiles()
{
return null;
}
}

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.
*/
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
assert descriptorFile.isFile()
def pluginDescriptor = new XmlParser().parse( descriptorFile );
assert pluginDescriptor.mojos.mojo.size() == 1
assert pluginDescriptor.mojos.mojo.parameters.parameter.size() == 50
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.1 = clean process-classes

View File

@ -0,0 +1,85 @@
<?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.plugins.plugin.its</groupId>
<artifactId>mplugin305</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<url>https://issues.apache.org/jira/browse/MPLUGIN-305</url>
<properties>
<mavenPluginPluginVersion>@project.version@</mavenPluginPluginVersion>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>${mavenPluginPluginVersion}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>maven-surefire-common</artifactId>
<version>2.19.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>${mavenPluginPluginVersion}</version>
<configuration>
<extractors>
<extractor>java-annotations</extractor>
</extractors>
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
</configuration>
<executions>
<execution>
<id>mojo-descriptor</id>
<goals>
<goal>descriptor</goal>
</goals>
<configuration>
<mojoDependencies/>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,289 @@
package org.apache.maven.plugins.plugin.it;
/*
* 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;
import java.util.List;
import org.apache.maven.plugin.surefire.AbstractSurefireMojo;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.surefire.suite.RunResult;
@Mojo(name="custom-surefire")
public class CustomSurefireMojo extends AbstractSurefireMojo {
public File getBasedir()
{
return null;
}
public File getClassesDirectory()
{
return null;
}
public String getDebugForkedProcess()
{
return null;
}
public Boolean getFailIfNoSpecifiedTests()
{
return null;
}
public int getForkedProcessTimeoutInSeconds()
{
return 0;
}
public double getParallelTestsTimeoutForcedInSeconds()
{
return 0;
}
public double getParallelTestsTimeoutInSeconds()
{
return 0;
}
public String getReportFormat()
{
return null;
}
public File getReportsDirectory()
{
return null;
}
public String getShutdown()
{
return null;
}
public int getSkipAfterFailureCount()
{
return 0;
}
public String getTest()
{
return null;
}
public File getTestClassesDirectory()
{
return null;
}
public boolean isPrintSummary()
{
return false;
}
public boolean isSkip()
{
return false;
}
public boolean isSkipExec()
{
return false;
}
public boolean isSkipTests()
{
return false;
}
public boolean isUseFile()
{
return false;
}
public boolean isUseManifestOnlyJar()
{
return false;
}
public boolean isUseSystemClassLoader()
{
return false;
}
public void setBasedir( File arg0 )
{
}
public void setClassesDirectory( File arg0 )
{
}
public void setDebugForkedProcess( String arg0 )
{
}
public void setFailIfNoSpecifiedTests( boolean arg0 )
{
}
public void setForkedProcessTimeoutInSeconds( int arg0 )
{
}
public void setParallelTestsTimeoutForcedInSeconds( double arg0 )
{
}
public void setParallelTestsTimeoutInSeconds( double arg0 )
{
}
public void setPrintSummary( boolean arg0 )
{
}
public void setReportFormat( String arg0 )
{
}
public void setReportsDirectory( File arg0 )
{
}
public void setSkip( boolean arg0 )
{
}
public void setSkipExec( boolean arg0 )
{
}
public void setSkipTests( boolean arg0 )
{
}
public void setTest( String arg0 )
{
}
public void setTestClassesDirectory( File arg0 )
{
}
public void setUseFile( boolean arg0 )
{
}
public void setUseManifestOnlyJar( boolean arg0 )
{
}
public void setUseSystemClassLoader( boolean arg0 )
{
}
@Override
protected String[] getDefaultIncludes()
{
return null;
}
@Override
public File getExcludesFile()
{
return null;
}
@Override
public List<String> getIncludes()
{
return null;
}
@Override
public File getIncludesFile()
{
return null;
}
@Override
protected String getPluginName()
{
return null;
}
@Override
protected int getRerunFailingTestsCount()
{
return 0;
}
@Override
public String getRunOrder()
{
return null;
}
@Override
public File[] getSuiteXmlFiles()
{
return null;
}
@Override
protected void handleSummary( RunResult arg0, Exception arg1 )
{
}
@Override
protected boolean hasSuiteXmlFiles()
{
return false;
}
@Override
protected boolean isSkipExecution()
{
return false;
}
@Override
public void setIncludes( List<String> arg0 )
{
}
@Override
public void setRunOrder( String arg0 )
{
}
@Override
public void setSuiteXmlFiles( File[] arg0 )
{
}
@Override
protected List<File> suiteXmlFiles()
{
return null;
}
}

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.
*/
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
assert descriptorFile.isFile()
def pluginDescriptor = new XmlParser().parse( descriptorFile );
assert pluginDescriptor.mojos.mojo.size() == 1
assert pluginDescriptor.mojos.mojo.parameters.parameter.size() == 0
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.1 = clean process-classes

View File

@ -0,0 +1,85 @@
<?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.plugins.plugin.its</groupId>
<artifactId>mplugin305</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<url>https://issues.apache.org/jira/browse/MPLUGIN-305</url>
<properties>
<mavenPluginPluginVersion>@project.version@</mavenPluginPluginVersion>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>${mavenPluginPluginVersion}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>maven-surefire-common</artifactId>
<version>2.19.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>${mavenPluginPluginVersion}</version>
<configuration>
<extractors>
<extractor>java-annotations</extractor>
</extractors>
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
<mojoDependencies>
<mojoDependency>org.apache.maven.surefire:maven-surefire-common</mojoDependency>
</mojoDependencies>
</configuration>
<executions>
<execution>
<id>mojo-descriptor</id>
<goals>
<goal>descriptor</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,289 @@
package org.apache.maven.plugins.plugin.it;
/*
* 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;
import java.util.List;
import org.apache.maven.plugin.surefire.AbstractSurefireMojo;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.surefire.suite.RunResult;
@Mojo(name="custom-surefire")
public class CustomSurefireMojo extends AbstractSurefireMojo {
public File getBasedir()
{
return null;
}
public File getClassesDirectory()
{
return null;
}
public String getDebugForkedProcess()
{
return null;
}
public Boolean getFailIfNoSpecifiedTests()
{
return null;
}
public int getForkedProcessTimeoutInSeconds()
{
return 0;
}
public double getParallelTestsTimeoutForcedInSeconds()
{
return 0;
}
public double getParallelTestsTimeoutInSeconds()
{
return 0;
}
public String getReportFormat()
{
return null;
}
public File getReportsDirectory()
{
return null;
}
public String getShutdown()
{
return null;
}
public int getSkipAfterFailureCount()
{
return 0;
}
public String getTest()
{
return null;
}
public File getTestClassesDirectory()
{
return null;
}
public boolean isPrintSummary()
{
return false;
}
public boolean isSkip()
{
return false;
}
public boolean isSkipExec()
{
return false;
}
public boolean isSkipTests()
{
return false;
}
public boolean isUseFile()
{
return false;
}
public boolean isUseManifestOnlyJar()
{
return false;
}
public boolean isUseSystemClassLoader()
{
return false;
}
public void setBasedir( File arg0 )
{
}
public void setClassesDirectory( File arg0 )
{
}
public void setDebugForkedProcess( String arg0 )
{
}
public void setFailIfNoSpecifiedTests( boolean arg0 )
{
}
public void setForkedProcessTimeoutInSeconds( int arg0 )
{
}
public void setParallelTestsTimeoutForcedInSeconds( double arg0 )
{
}
public void setParallelTestsTimeoutInSeconds( double arg0 )
{
}
public void setPrintSummary( boolean arg0 )
{
}
public void setReportFormat( String arg0 )
{
}
public void setReportsDirectory( File arg0 )
{
}
public void setSkip( boolean arg0 )
{
}
public void setSkipExec( boolean arg0 )
{
}
public void setSkipTests( boolean arg0 )
{
}
public void setTest( String arg0 )
{
}
public void setTestClassesDirectory( File arg0 )
{
}
public void setUseFile( boolean arg0 )
{
}
public void setUseManifestOnlyJar( boolean arg0 )
{
}
public void setUseSystemClassLoader( boolean arg0 )
{
}
@Override
protected String[] getDefaultIncludes()
{
return null;
}
@Override
public File getExcludesFile()
{
return null;
}
@Override
public List<String> getIncludes()
{
return null;
}
@Override
public File getIncludesFile()
{
return null;
}
@Override
protected String getPluginName()
{
return null;
}
@Override
protected int getRerunFailingTestsCount()
{
return 0;
}
@Override
public String getRunOrder()
{
return null;
}
@Override
public File[] getSuiteXmlFiles()
{
return null;
}
@Override
protected void handleSummary( RunResult arg0, Exception arg1 )
{
}
@Override
protected boolean hasSuiteXmlFiles()
{
return false;
}
@Override
protected boolean isSkipExecution()
{
return false;
}
@Override
public void setIncludes( List<String> arg0 )
{
}
@Override
public void setRunOrder( String arg0 )
{
}
@Override
public void setSuiteXmlFiles( File[] arg0 )
{
}
@Override
protected List<File> suiteXmlFiles()
{
return null;
}
}

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.
*/
File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
assert descriptorFile.isFile()
def pluginDescriptor = new XmlParser().parse( descriptorFile );
assert pluginDescriptor.mojos.mojo.size() == 1
assert pluginDescriptor.mojos.mojo.parameters.parameter.size() == 50
return true;

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.
invoker.goals = clean plugin:report
invoker.mavenOpts = -Duser.language=en -Duser.country=US -Duser.variant=US

View File

@ -0,0 +1,86 @@
<?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.plugins.its.plugin</groupId>
<artifactId>report-since</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<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>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>@project.version@</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>@sitePluginVersion@</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.4</version>
<reportSets>
<reportSet>
<reports>
<report>index</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<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,67 @@
package org;
/*
* 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;
/**
* Does nothing.
*
* @goal noop
* @phase process-sources
* @requiresDependencyResolution test
* @requiresDirectInvocation true
* @requiresOnline
* @inheritByDefault false
* @execute phase="compile"
* @aggregator
* @since 1.0
*
* @deprecated You don't use test goals, do you?
*/
public class MyMojo
extends AbstractMojo
{
/**
* This is a test.
*
* @parameter
* @required
*/
@SuppressWarnings( "unused" )
private String required;
/**
* This is a test.
*
* @parameter expression="${string}" default-value="${project.version}/</markup-must-be-escaped>"
* @deprecated Just testing.
* @since 1.1
*/
@SuppressWarnings( "unused" )
private String string;
public void execute()
{
// intentional do nothing
}
}

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.
*/
assert new File( basedir, 'target/generated-site' ).exists()
content = new File( basedir, 'target/generated-site/xdoc/noop-mojo.xml' ).text
assert content.contains( '<li><strong>Since</strong>: <code>1.0</code></li>' )
assert content.contains( '<li><strong>Since</strong>: <code>1.1</code></li>' )
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 = process-classes javadoc:javadoc

View File

@ -0,0 +1,95 @@
<?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.plugins.plugin.its</groupId>
<artifactId>mplugin3224</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<description>
Generation javadoc for private methods should be valid
</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>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.0-M1</version>
<configuration>
<level>private</level>
</configuration>
</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 org.apache.maven.plugin.AbstractMojo}.
*
* @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()
{
}
}

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