├── .asf.yaml ├── .git-blame-ignore-revs ├── .github ├── ISSUE_TEMPLATE │ ├── BUG.yml │ ├── FEATURE.yml │ └── config.yml ├── dependabot.yml ├── pull_request_template.md ├── release-drafter-3.x.yml ├── release-drafter.yml └── workflows │ ├── maven-verify.yml │ ├── pr-automation.yml │ ├── release-drafter.yml │ └── stale.yml ├── .gitignore ├── Jenkinsfile ├── LICENSE ├── NOTICE ├── README.md ├── deploySite.sh ├── maven-plugin-annotations ├── pom.xml └── src │ ├── main │ └── java │ │ └── org │ │ └── apache │ │ └── maven │ │ └── plugins │ │ └── annotations │ │ ├── Component.java │ │ ├── Execute.java │ │ ├── InstantiationStrategy.java │ │ ├── LifecyclePhase.java │ │ ├── Mojo.java │ │ ├── Parameter.java │ │ └── ResolutionScope.java │ └── site │ ├── apt │ └── index.apt.vm │ └── site.xml ├── maven-plugin-plugin ├── pom.xml └── src │ ├── it │ ├── annotation-with-inheritance-from-deps │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── apache │ │ │ │ │ └── maven │ │ │ │ │ └── plugin │ │ │ │ │ └── coreit │ │ │ │ │ └── FirstMojo.java │ │ │ │ └── resources │ │ │ │ └── META-INF │ │ │ │ └── maven │ │ │ │ └── lifecycle.xml │ │ └── verify.groovy │ ├── annotation-with-inheritance-reactor │ │ ├── invoker.properties │ │ ├── module-abstract-mojo │ │ │ ├── pom.xml │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── plugins │ │ │ │ └── AbstractFirstMojo.java │ │ ├── module-mojo │ │ │ ├── pom.xml │ │ │ └── src │ │ │ │ └── main │ │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── apache │ │ │ │ │ └── maven │ │ │ │ │ └── plugin │ │ │ │ │ └── coreit │ │ │ │ │ ├── CoreIt0014Mojo.java │ │ │ │ │ ├── FirstMojo.java │ │ │ │ │ └── SecondMojo.java │ │ │ │ └── resources │ │ │ │ └── META-INF │ │ │ │ └── maven │ │ │ │ └── lifecycle.xml │ │ ├── pom.xml │ │ └── verify.groovy │ ├── annotation-with-inheritance │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── apache │ │ │ │ │ └── maven │ │ │ │ │ └── plugin │ │ │ │ │ └── coreit │ │ │ │ │ ├── AbstractFirstMojo.java │ │ │ │ │ ├── AbstractFooMojo.java │ │ │ │ │ ├── CoreIt0014Mojo.java │ │ │ │ │ ├── FirstMojo.java │ │ │ │ │ ├── SecondMojo.java │ │ │ │ │ └── ThirdMojo.java │ │ │ │ └── resources │ │ │ │ └── META-INF │ │ │ │ └── maven │ │ │ │ └── lifecycle.xml │ │ └── verify.groovy │ ├── asm-failure │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── plugin │ │ │ │ └── coreit │ │ │ │ └── FirstMojo.java │ │ └── verify.groovy │ ├── help-basic-deprecated-annotation-only │ │ ├── expected-help.txt │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── test │ │ │ │ └── MyMojo.java │ │ ├── test.properties │ │ └── verify.groovy │ ├── help-basic-jdk11 │ │ ├── expected-help.txt │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── test │ │ │ │ └── MyMojo.java │ │ ├── test.properties │ │ └── verify.groovy │ ├── help-basic │ │ ├── expected-help.txt │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── test │ │ │ │ └── MyMojo.java │ │ ├── test.properties │ │ └── verify.groovy │ ├── java-basic-annotations-jdk8 │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── plugin │ │ │ │ └── coreit │ │ │ │ ├── CoreIt0014Mojo.java │ │ │ │ ├── FirstMojo.java │ │ │ │ ├── MPlugin220Mojo.java │ │ │ │ ├── Maximal.java │ │ │ │ ├── Minimal.java │ │ │ │ └── TestInterface.java │ │ └── verify.groovy │ ├── java-basic-annotations-jdkcurrent │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── plugin │ │ │ │ └── coreit │ │ │ │ ├── CoreIt0014Mojo.java │ │ │ │ ├── FirstMojo.java │ │ │ │ ├── MPlugin220Mojo.java │ │ │ │ ├── Maximal.java │ │ │ │ ├── Minimal.java │ │ │ │ └── TestInterface.java │ │ └── verify.groovy │ ├── java-basic-annotations │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── plugin │ │ │ │ └── coreit │ │ │ │ ├── CoreIt0014Mojo.java │ │ │ │ ├── FirstMojo.java │ │ │ │ ├── MPlugin220Mojo.java │ │ │ │ ├── MPlugin396Mojo.java │ │ │ │ ├── Maximal.java │ │ │ │ └── Minimal.java │ │ └── verify.groovy │ ├── mplugin-223 │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── plugins │ │ │ │ └── plugin │ │ │ │ └── it │ │ │ │ └── MyMojo.java │ │ └── verify.groovy │ ├── mplugin-272_java8 │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── fr │ │ │ └── ca │ │ │ ├── MyMojo.java │ │ │ └── TestInterface.java │ ├── mplugin-299_no-configuration │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── test │ │ │ │ └── MyMojo.java │ │ └── test.properties │ ├── mplugin-305_defaultMojoDependencies │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── plugins │ │ │ │ └── plugin │ │ │ │ └── it │ │ │ │ └── CustomSurefireMojo.java │ │ └── verify.groovy │ ├── mplugin-305_emptyMojoDependencies │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── plugins │ │ │ │ └── plugin │ │ │ │ └── it │ │ │ │ └── CustomSurefireMojo.java │ │ └── verify.groovy │ ├── mplugin-305_singleMojoDependencies │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── plugins │ │ │ │ └── plugin │ │ │ │ └── it │ │ │ │ └── CustomSurefireMojo.java │ │ └── verify.groovy │ ├── mplugin-324_javadoc │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── test │ │ │ └── MyMojo.java │ ├── mplugin-363_help-reproducible │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── test │ │ │ │ └── MyMojo.java │ │ └── verify.groovy │ ├── mplugin-370-maven-deps-scope-bad │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── plugin │ │ │ │ └── coreit │ │ │ │ └── FirstMojo.java │ │ └── verify.groovy │ ├── mplugin-370-maven-deps-scope-good │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── plugin │ │ │ │ └── coreit │ │ │ │ └── FirstMojo.java │ │ └── verify.groovy │ ├── mplugin-372-annotation-with-inheritance-from-provided-deps │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── apache │ │ │ │ │ └── maven │ │ │ │ │ └── plugin │ │ │ │ │ └── coreit │ │ │ │ │ └── FirstMojo.java │ │ │ │ └── resources │ │ │ │ └── META-INF │ │ │ │ └── maven │ │ │ │ └── lifecycle.xml │ │ └── verify.groovy │ ├── mplugin-382-exclude-provided-dependency │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── plugin │ │ │ │ └── coreit │ │ │ │ └── FirstMojo.java │ │ └── verify.groovy │ ├── mplugin-390 │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── plugin │ │ │ │ └── coreit │ │ │ │ └── FirstMojo.java │ │ └── verify.groovy │ ├── packaging-jar │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── plugin │ │ │ │ └── coreit │ │ │ │ └── FirstMojo.java │ │ └── verify.groovy │ ├── settings.xml │ ├── skip │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── plugin │ │ │ │ └── coreit │ │ │ │ └── FirstMojo.java │ │ └── verify.groovy │ ├── source-encoding │ │ ├── latin-1 │ │ │ ├── pom.xml │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── test │ │ │ │ └── MyMojo.java │ │ ├── pom.xml │ │ ├── utf-8 │ │ │ ├── pom.xml │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── test │ │ │ │ └── MyMojo.java │ │ └── verify.groovy │ ├── v4api-3x │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── its │ │ │ │ └── v4api │ │ │ │ └── FirstMojo.java │ │ └── verify.groovy │ └── v4api-4x │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── maven │ │ │ └── its │ │ │ └── v4api │ │ │ └── FirstMojo.java │ │ └── verify.groovy │ ├── main │ ├── filtered-resources │ │ └── META-INF │ │ │ └── plexus │ │ │ └── components.xml │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── maven │ │ │ ├── artifact │ │ │ └── repository │ │ │ │ └── metadata │ │ │ │ └── GroupRepositoryMetadata.java │ │ │ └── plugin │ │ │ └── plugin │ │ │ ├── AbstractGeneratorMojo.java │ │ │ ├── DescriptorGeneratorMojo.java │ │ │ ├── HelpGeneratorMojo.java │ │ │ └── metadata │ │ │ ├── AddPluginArtifactMetadataMojo.java │ │ │ └── LegacySupport.java │ └── resources │ │ └── META-INF │ │ └── m2e │ │ └── lifecycle-mapping-metadata.xml │ ├── site │ ├── apt │ │ ├── examples │ │ │ ├── generate-descriptor.apt.vm │ │ │ ├── generate-help.apt.vm │ │ │ └── using-annotations.apt.vm │ │ ├── index.apt │ │ └── usage.apt │ └── site.xml │ └── test │ └── java │ └── org │ └── apache │ └── maven │ └── plugin │ └── plugin │ ├── DescriptorGeneratorMojoTest.java │ └── HelpGeneratorMojoTest.java ├── maven-plugin-report-plugin ├── pom.xml └── src │ ├── it │ ├── fix-maven-since-3.x │ │ ├── invoker.properties │ │ ├── javasample-maven-plugin │ │ │ ├── pom.xml │ │ │ └── src │ │ │ │ ├── main │ │ │ │ └── java │ │ │ │ │ └── test │ │ │ │ │ └── MyMojo.java │ │ │ │ └── site │ │ │ │ └── site.xml │ │ ├── pom.xml │ │ └── verify.groovy │ ├── mplugin-187 │ │ ├── invoker.properties │ │ └── pom.xml │ ├── mplugin-191 │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── plugins │ │ │ │ └── plugin │ │ │ │ └── it │ │ │ │ └── MyMojo.java │ │ └── verify.groovy │ ├── mplugin-319_report-since │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── MyMojo.java │ │ └── verify.groovy │ ├── mplugin-394_report-encoding │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── test │ │ │ │ └── MyMojo.java │ │ └── verify.groovy │ ├── plugin-info-jdk │ │ ├── invoker.properties │ │ ├── plugin │ │ │ ├── pom.xml │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── resources │ │ │ │ └── META-INF │ │ │ │ └── maven │ │ │ │ └── plugin-enhanced.xml │ │ ├── pluginManagement │ │ │ ├── pom.xml │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── resources │ │ │ │ └── META-INF │ │ │ │ └── maven │ │ │ │ └── plugin-enhanced.xml │ │ ├── pom.xml │ │ ├── property │ │ │ ├── pom.xml │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── resources │ │ │ │ └── META-INF │ │ │ │ └── maven │ │ │ │ └── plugin-enhanced.xml │ │ ├── propertyRelease │ │ │ ├── pom.xml │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── resources │ │ │ │ └── META-INF │ │ │ │ └── maven │ │ │ │ └── plugin-enhanced.xml │ │ ├── test.properties │ │ └── verify.groovy │ ├── plugin-no-fork-report │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ ├── DummyReport.java │ │ │ │ └── MyMojo.java │ │ └── verify.groovy │ ├── plugin-report-detect-requirements-history │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── MyMojo.java │ │ └── verify.groovy │ ├── plugin-report-requirements-history │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── MyMojo.java │ │ └── verify.groovy │ ├── plugin-report-with-javadoc-links │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ ├── MyMojo.java │ │ │ │ ├── SimpleBean.java │ │ │ │ └── internal │ │ │ │ └── PrivateBean.java │ │ └── verify.groovy │ ├── plugin-report │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ ├── DummyReport.java │ │ │ │ └── MyMojo.java │ │ └── verify.groovy │ └── settings.xml │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── maven │ │ │ ├── plugin │ │ │ └── plugin │ │ │ │ └── report │ │ │ │ ├── AbstractPluginReportRenderer.java │ │ │ │ ├── GoalRenderer.java │ │ │ │ ├── PluginNoForkReport.java │ │ │ │ ├── PluginOverviewRenderer.java │ │ │ │ ├── PluginReport.java │ │ │ │ └── RequirementsHistory.java │ │ │ └── plugins │ │ │ └── plugin │ │ │ └── descriptor │ │ │ ├── EnhancedPluginDescriptorBuilder.java │ │ │ └── PluginDescriptorBuilder.java │ └── resources │ │ ├── plugin-report.properties │ │ ├── plugin-report_de.properties │ │ ├── plugin-report_en.properties │ │ ├── plugin-report_fr.properties │ │ └── plugin-report_sv.properties │ ├── site │ ├── apt │ │ ├── examples │ │ │ └── generate-report.apt.vm │ │ ├── index.apt │ │ └── usage.apt │ └── site.xml │ └── test │ ├── java │ └── org │ │ └── apache │ │ └── maven │ │ ├── plugin │ │ └── plugin │ │ │ └── report │ │ │ └── GoalRendererTest.java │ │ └── plugins │ │ └── plugin │ │ └── descriptor │ │ └── EnhancedPluginDescriptorBuilderTest.java │ └── resources │ └── plugin-enhanced.xml ├── maven-plugin-tools-annotations ├── pom.xml └── src │ ├── main │ └── java │ │ └── org │ │ └── apache │ │ └── maven │ │ └── tools │ │ └── plugin │ │ └── extractor │ │ └── annotations │ │ ├── JavaAnnotationsMojoDescriptorExtractor.java │ │ ├── converter │ │ ├── ConverterContext.java │ │ ├── JavaClassConverterContext.java │ │ ├── JavadocBlockTagsToXhtmlConverter.java │ │ ├── JavadocInlineTagsToXhtmlConverter.java │ │ └── tag │ │ │ ├── JavadocTagToHtmlConverter.java │ │ │ ├── LinkUtils.java │ │ │ ├── block │ │ │ ├── JavadocBlockTagToHtmlConverter.java │ │ │ └── SeeTagConverter.java │ │ │ └── inline │ │ │ ├── CodeTagConverter.java │ │ │ ├── DocRootTagConverter.java │ │ │ ├── JavadocInlineTagToHtmlConverter.java │ │ │ ├── LinkPlainTagToHtmlConverter.java │ │ │ ├── LinkTagToHtmlConverter.java │ │ │ ├── LiteralTagToHtmlConverter.java │ │ │ └── ValueTagConverter.java │ │ ├── datamodel │ │ ├── AnnotatedContent.java │ │ ├── AnnotatedField.java │ │ ├── ComponentAnnotationContent.java │ │ ├── ExecuteAnnotationContent.java │ │ ├── MojoAnnotationContent.java │ │ └── ParameterAnnotationContent.java │ │ └── scanner │ │ ├── DefaultMojoAnnotationsScanner.java │ │ ├── MojoAnnotatedClass.java │ │ ├── MojoAnnotationsScanner.java │ │ ├── MojoAnnotationsScannerRequest.java │ │ └── visitors │ │ ├── MojoAnnotationVisitor.java │ │ ├── MojoClassVisitor.java │ │ ├── MojoFieldVisitor.java │ │ ├── MojoMethodVisitor.java │ │ └── MojoParameterVisitor.java │ ├── site │ ├── apt │ │ └── index.apt │ └── site.xml │ └── test │ ├── java │ └── org │ │ └── apache │ │ └── maven │ │ └── tools │ │ └── plugin │ │ └── extractor │ │ └── annotations │ │ ├── AbstractFooMojo.java │ │ ├── ClassVersionComparatorTest.java │ │ ├── DeprecatedMojo.java │ │ ├── Execute2Mojo.java │ │ ├── ExecuteMojo.java │ │ ├── FooMojo.java │ │ ├── JavaAnnotationsMojoDescriptorExtractorTest.java │ │ ├── ParametersWithGenericsMojo.java │ │ ├── converter │ │ ├── JavaClassConverterContextTest.java │ │ ├── JavadocBlockTagsToXhtmlConverterTest.java │ │ ├── JavadocInlineTagsToXhtmlConverterTest.java │ │ ├── SimpleConverterContext.java │ │ ├── tag │ │ │ └── LinkUtilsTest.java │ │ └── test │ │ │ ├── CurrentClass.java │ │ │ ├── OtherClass.java │ │ │ ├── SuperClass.java │ │ │ └── other │ │ │ └── OtherClassOtherPackage.java │ │ └── scanner │ │ └── DefaultMojoAnnotationsScannerTest.java │ └── resources │ ├── java8-annotations.jar │ └── java9-module.jar ├── maven-plugin-tools-api ├── pom.xml └── src │ ├── main │ └── java │ │ └── org │ │ └── apache │ │ └── maven │ │ └── tools │ │ └── plugin │ │ ├── DefaultPluginToolsRequest.java │ │ ├── EnhancedParameterWrapper.java │ │ ├── ExtendedMojoDescriptor.java │ │ ├── ExtendedPluginDescriptor.java │ │ ├── PluginToolsRequest.java │ │ ├── extractor │ │ ├── AbstractScriptedMojoDescriptorExtractor.java │ │ ├── ExtractionException.java │ │ ├── GroupKey.java │ │ ├── MojoDescriptorExtractor.java │ │ └── MojoDescriptorExtractorComparator.java │ │ ├── javadoc │ │ ├── FullyQualifiedJavadocReference.java │ │ ├── JavadocLinkGenerator.java │ │ ├── JavadocReference.java │ │ └── JavadocSite.java │ │ ├── scanner │ │ ├── DefaultMojoScanner.java │ │ └── MojoScanner.java │ │ └── util │ │ └── PluginUtils.java │ ├── site │ ├── apt │ │ └── index.apt │ └── site.xml │ └── test │ ├── java │ └── org │ │ └── apache │ │ └── maven │ │ └── tools │ │ └── plugin │ │ ├── extractor │ │ └── GroupKeyTest.java │ │ ├── javadoc │ │ ├── JavadocLinkGeneratorTest.java │ │ ├── JavadocNonLtsSiteIT.java │ │ ├── JavadocReferenceTest.java │ │ ├── JavadocSiteIT.java │ │ └── JavadocSiteTest.java │ │ ├── scanner │ │ ├── DefaultMojoScannerTest.java │ │ ├── ScannerTestExtractor.java │ │ └── TestExtractor.java │ │ └── util │ │ ├── PluginUtilsTest.java │ │ ├── TestUtils.java │ │ └── stubs │ │ ├── MavenReportStub.java │ │ └── MojoStub.java │ └── resources │ ├── META-INF │ └── plexus │ │ └── scannerTestComponents.xml │ ├── javadoc │ ├── jdk11 │ │ ├── allclasses-index.html │ │ ├── allclasses.html │ │ ├── allpackages-index.html │ │ ├── constant-values.html │ │ ├── deprecated-list.html │ │ ├── element-list │ │ ├── help-doc.html │ │ ├── index-all.html │ │ ├── index.html │ │ ├── jquery │ │ │ ├── external │ │ │ │ └── jquery │ │ │ │ │ └── jquery.js │ │ │ ├── images │ │ │ │ ├── ui-bg_glass_55_fbf9ee_1x400.png │ │ │ │ ├── ui-bg_glass_65_dadada_1x400.png │ │ │ │ ├── ui-bg_glass_75_dadada_1x400.png │ │ │ │ ├── ui-bg_glass_75_e6e6e6_1x400.png │ │ │ │ ├── ui-bg_glass_95_fef1ec_1x400.png │ │ │ │ ├── ui-bg_highlight-soft_75_cccccc_1x100.png │ │ │ │ ├── ui-icons_222222_256x240.png │ │ │ │ ├── ui-icons_2e83ff_256x240.png │ │ │ │ ├── ui-icons_454545_256x240.png │ │ │ │ ├── ui-icons_888888_256x240.png │ │ │ │ └── ui-icons_cd0a0a_256x240.png │ │ │ ├── jquery-3.5.1.js │ │ │ ├── jquery-ui.css │ │ │ ├── jquery-ui.js │ │ │ ├── jquery-ui.min.css │ │ │ ├── jquery-ui.min.js │ │ │ ├── jquery-ui.structure.css │ │ │ ├── jquery-ui.structure.min.css │ │ │ ├── jszip-utils │ │ │ │ └── dist │ │ │ │ │ ├── jszip-utils-ie.js │ │ │ │ │ ├── jszip-utils-ie.min.js │ │ │ │ │ ├── jszip-utils.js │ │ │ │ │ └── jszip-utils.min.js │ │ │ └── jszip │ │ │ │ └── dist │ │ │ │ ├── jszip.js │ │ │ │ └── jszip.min.js │ │ ├── member-search-index.js │ │ ├── member-search-index.zip │ │ ├── org │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── tools │ │ │ │ └── plugin │ │ │ │ └── extractor │ │ │ │ └── annotations │ │ │ │ └── converter │ │ │ │ └── test │ │ │ │ ├── CurrentClass.html │ │ │ │ ├── OtherClass.html │ │ │ │ ├── SuperClass.html │ │ │ │ ├── other │ │ │ │ ├── OtherClassOtherPackage.EmbeddedEnum.html │ │ │ │ ├── OtherClassOtherPackage.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ ├── overview-summary.html │ │ ├── overview-tree.html │ │ ├── package-search-index.js │ │ ├── package-search-index.zip │ │ ├── resources │ │ │ ├── glass.png │ │ │ └── x.png │ │ ├── script.js │ │ ├── search.js │ │ ├── stylesheet.css │ │ ├── type-search-index.js │ │ └── type-search-index.zip │ ├── jdk17 │ │ ├── allclasses-index.html │ │ ├── allclasses.html │ │ ├── allpackages-index.html │ │ ├── constant-values.html │ │ ├── deprecated-list.html │ │ ├── element-list │ │ ├── help-doc.html │ │ ├── index-all.html │ │ ├── index.html │ │ ├── jquery-ui.overrides.css │ │ ├── jquery │ │ │ ├── external │ │ │ │ └── jquery │ │ │ │ │ └── jquery.js │ │ │ ├── images │ │ │ │ ├── ui-bg_glass_55_fbf9ee_1x400.png │ │ │ │ ├── ui-bg_glass_65_dadada_1x400.png │ │ │ │ ├── ui-bg_glass_75_dadada_1x400.png │ │ │ │ ├── ui-bg_glass_75_e6e6e6_1x400.png │ │ │ │ ├── ui-bg_glass_95_fef1ec_1x400.png │ │ │ │ ├── ui-bg_highlight-soft_75_cccccc_1x100.png │ │ │ │ ├── ui-icons_222222_256x240.png │ │ │ │ ├── ui-icons_2e83ff_256x240.png │ │ │ │ ├── ui-icons_454545_256x240.png │ │ │ │ ├── ui-icons_888888_256x240.png │ │ │ │ └── ui-icons_cd0a0a_256x240.png │ │ │ ├── jquery-3.5.1.js │ │ │ ├── jquery-ui.css │ │ │ ├── jquery-ui.js │ │ │ ├── jquery-ui.min.css │ │ │ ├── jquery-ui.min.js │ │ │ ├── jquery-ui.structure.css │ │ │ ├── jquery-ui.structure.min.css │ │ │ ├── jszip-utils │ │ │ │ └── dist │ │ │ │ │ ├── jszip-utils-ie.js │ │ │ │ │ ├── jszip-utils-ie.min.js │ │ │ │ │ ├── jszip-utils.js │ │ │ │ │ └── jszip-utils.min.js │ │ │ └── jszip │ │ │ │ └── dist │ │ │ │ ├── jszip.js │ │ │ │ └── jszip.min.js │ │ ├── legal │ │ │ ├── ADDITIONAL_LICENSE_INFO │ │ │ ├── ASSEMBLY_EXCEPTION │ │ │ ├── LICENSE │ │ │ ├── jquery.md │ │ │ └── jqueryUI.md │ │ ├── member-search-index.js │ │ ├── member-search-index.zip │ │ ├── module-search-index.js │ │ ├── org │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── tools │ │ │ │ └── plugin │ │ │ │ └── extractor │ │ │ │ └── annotations │ │ │ │ └── converter │ │ │ │ └── test │ │ │ │ ├── CurrentClass.html │ │ │ │ ├── OtherClass.html │ │ │ │ ├── SuperClass.html │ │ │ │ ├── other │ │ │ │ ├── OtherClassOtherPackage.EmbeddedEnum.html │ │ │ │ ├── OtherClassOtherPackage.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ ├── overview-summary.html │ │ ├── overview-tree.html │ │ ├── package-search-index.js │ │ ├── package-search-index.zip │ │ ├── resources │ │ │ ├── glass.png │ │ │ └── x.png │ │ ├── script-dir │ │ │ ├── images │ │ │ │ ├── ui-bg_glass_55_fbf9ee_1x400.png │ │ │ │ ├── ui-bg_glass_65_dadada_1x400.png │ │ │ │ ├── ui-bg_glass_75_dadada_1x400.png │ │ │ │ ├── ui-bg_glass_75_e6e6e6_1x400.png │ │ │ │ ├── ui-bg_glass_95_fef1ec_1x400.png │ │ │ │ ├── ui-bg_highlight-soft_75_cccccc_1x100.png │ │ │ │ ├── ui-icons_222222_256x240.png │ │ │ │ ├── ui-icons_2e83ff_256x240.png │ │ │ │ ├── ui-icons_454545_256x240.png │ │ │ │ ├── ui-icons_888888_256x240.png │ │ │ │ └── ui-icons_cd0a0a_256x240.png │ │ │ ├── jquery-3.5.1.min.js │ │ │ ├── jquery-ui.min.css │ │ │ ├── jquery-ui.min.js │ │ │ └── jquery-ui.structure.min.css │ │ ├── script.js │ │ ├── search.js │ │ ├── stylesheet.css │ │ ├── tag-search-index.js │ │ ├── type-search-index.js │ │ └── type-search-index.zip │ ├── jdk21 │ │ ├── allclasses-index.html │ │ ├── allpackages-index.html │ │ ├── constant-values.html │ │ ├── copy.svg │ │ ├── element-list │ │ ├── help-doc.html │ │ ├── index-all.html │ │ ├── index.html │ │ ├── legal │ │ │ ├── ADDITIONAL_LICENSE_INFO │ │ │ ├── ASSEMBLY_EXCEPTION │ │ │ ├── LICENSE │ │ │ ├── jquery.md │ │ │ └── jqueryUI.md │ │ ├── link.svg │ │ ├── member-search-index.js │ │ ├── module-search-index.js │ │ ├── org │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── tools │ │ │ │ └── plugin │ │ │ │ └── extractor │ │ │ │ └── annotations │ │ │ │ └── converter │ │ │ │ └── test │ │ │ │ ├── CurrentClass.html │ │ │ │ ├── OtherClass.html │ │ │ │ ├── SuperClass.html │ │ │ │ ├── other │ │ │ │ ├── OtherClassOtherPackage.EmbeddedEnum.html │ │ │ │ ├── OtherClassOtherPackage.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ ├── overview-summary.html │ │ ├── overview-tree.html │ │ ├── package-search-index.js │ │ ├── resources │ │ │ ├── glass.png │ │ │ └── x.png │ │ ├── script-dir │ │ │ ├── jquery-3.6.1.min.js │ │ │ ├── jquery-ui.min.css │ │ │ └── jquery-ui.min.js │ │ ├── script.js │ │ ├── search-page.js │ │ ├── search.html │ │ ├── search.js │ │ ├── stylesheet.css │ │ ├── tag-search-index.js │ │ └── type-search-index.js │ ├── jdk8 │ │ ├── allclasses-frame.html │ │ ├── allclasses-noframe.html │ │ ├── constant-values.html │ │ ├── deprecated-list.html │ │ ├── help-doc.html │ │ ├── index-all.html │ │ ├── index.html │ │ ├── org │ │ │ └── apache │ │ │ │ └── maven │ │ │ │ └── tools │ │ │ │ └── plugin │ │ │ │ └── extractor │ │ │ │ └── annotations │ │ │ │ └── converter │ │ │ │ └── test │ │ │ │ ├── CurrentClass.html │ │ │ │ ├── OtherClass.html │ │ │ │ ├── SuperClass.html │ │ │ │ ├── other │ │ │ │ ├── OtherClassOtherPackage.EmbeddedEnum.html │ │ │ │ ├── OtherClassOtherPackage.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ ├── overview-frame.html │ │ ├── overview-summary.html │ │ ├── overview-tree.html │ │ ├── package-list │ │ ├── script.js │ │ └── stylesheet.css │ └── readme.md │ ├── test.txt │ └── testExcludes.txt ├── maven-plugin-tools-generators ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── maven │ │ │ └── tools │ │ │ └── plugin │ │ │ └── generator │ │ │ ├── Converter.java │ │ │ ├── Generator.java │ │ │ ├── GeneratorException.java │ │ │ ├── GeneratorUtils.java │ │ │ ├── HtmlToPlainTextConverter.java │ │ │ ├── PluginDescriptorFilesGenerator.java │ │ │ └── PluginHelpGenerator.java │ └── resources │ │ ├── help-class-source-v4.vm │ │ └── help-class-source.vm │ ├── site │ └── site.xml │ └── test │ ├── java │ └── org │ │ └── apache │ │ └── maven │ │ └── tools │ │ └── plugin │ │ └── generator │ │ ├── AbstractGeneratorTestCase.java │ │ ├── GeneratorUtilsTest.java │ │ ├── HtmlToPlainTextConverterTest.java │ │ └── PluginDescriptorFilesGeneratorTest.java │ └── resources │ └── expected-testGoal-mojo.xml ├── pom.xml ├── prepare-svg.sh ├── src ├── config │ └── checkstyle-suppressions.xml └── site │ ├── resources │ ├── download.cgi │ └── images │ │ ├── plugin-descriptors.svg │ │ └── plugin-tools-deps.svg │ ├── site.xml │ └── xdoc │ ├── download.xml.vm │ ├── index.xml │ ├── plugin-descriptors.mmd │ └── plugin-tools-deps.odg └── svgo.config.mjs /.asf.yaml: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | # see https://s.apache.org/asfyaml 18 | github: 19 | description: "Apache Maven Plugin Tools" 20 | homepage: https://maven.apache.org/plugin-tools/ 21 | labels: 22 | - java 23 | - build-management 24 | - maven-plugins 25 | - maven-plugin-plugin 26 | - maven 27 | enabled_merge_buttons: 28 | squash: true 29 | merge: false 30 | rebase: true 31 | autolink_jira: 32 | - MPLUGIN 33 | del_branch_on_merge: true 34 | features: 35 | issues: true 36 | notifications: 37 | commits: commits@maven.apache.org 38 | issues: issues@maven.apache.org 39 | pullrequests: issues@maven.apache.org 40 | jira_options: link label 41 | -------------------------------------------------------------------------------- /.git-blame-ignore-revs: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | # 19 | 20 | # Change maven code style 21 | 21f9d21d93975e85bc090ea397c1bab7ffea7121 22 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/FEATURE.yml: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | # https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema 19 | 20 | name: Feature request 21 | description: File a proposal for new feature, improvement 22 | labels: ["enhancement"] 23 | 24 | body: 25 | - type: markdown 26 | attributes: 27 | value: | 28 | Thanks for taking the time to fill out this new feature, improvement proposal. 29 | 30 | - type: textarea 31 | id: message 32 | attributes: 33 | label: New feature, improvement proposal 34 | validations: 35 | required: true 36 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | # https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#configuring-the-template-chooser 19 | 20 | blank_issues_enabled: false 21 | 22 | contact_links: 23 | 24 | - name: Project Mailing Lists 25 | url: https://maven.apache.org/mailing-lists.html 26 | about: Please ask a question or discuss here 27 | 28 | - name: Old JIRA Issues 29 | url: https://issues.apache.org/jira/projects/MPLUGIN 30 | about: Please search old JIRA issues 31 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | version: 2 19 | updates: 20 | - package-ecosystem: "maven" 21 | directory: "/" 22 | schedule: 23 | interval: "daily" 24 | 25 | - package-ecosystem: "maven" 26 | directory: "/" 27 | schedule: 28 | interval: "daily" 29 | target-branch: "maven-plugin-tools-3.x" 30 | labels: 31 | - 3.x 32 | - dependencies 33 | 34 | - package-ecosystem: "github-actions" 35 | directory: "/" 36 | schedule: 37 | interval: "daily" 38 | 39 | - package-ecosystem: "github-actions" 40 | directory: "/" 41 | schedule: 42 | interval: "daily" 43 | target-branch: "maven-plugin-tools-3.x" 44 | labels: 45 | - 3.x 46 | - dependencies 47 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | Following this checklist to help us incorporate your 2 | contribution quickly and easily: 3 | 4 | - [ ] Your pull request should address just one issue, without pulling in other changes. 5 | - [ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. 6 | - [ ] Each commit in the pull request should have a meaningful subject line and body. 7 | Note that commits might be squashed by a maintainer on merge. 8 | - [ ] Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied. 9 | This may not always be possible but is a best-practice. 10 | - [ ] Run `mvn verify` to make sure basic checks pass. 11 | A more thorough check will be performed on your pull request automatically. 12 | - [ ] You have run the integration tests successfully (`mvn -Prun-its verify`). 13 | 14 | If your pull request is about ~20 lines of code you don't need to sign an 15 | [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf) if you are unsure 16 | please ask on the developers list. 17 | 18 | To make clear that you license your contribution under 19 | the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0) 20 | you have to acknowledge this by using the following check-box. 21 | 22 | - [ ] I hereby declare this contribution to be licenced under the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0) 23 | - [ ] In any other case, please file an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf). 24 | -------------------------------------------------------------------------------- /.github/release-drafter-3.x.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | _extends: maven-gh-actions-shared:.github/release-drafter.yml 19 | 20 | tag-template: maven-plugin-tools-$RESOLVED_VERSION 21 | -------------------------------------------------------------------------------- /.github/release-drafter.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | _extends: maven-gh-actions-shared 19 | 20 | tag-template: maven-plugin-tools-$RESOLVED_VERSION 21 | 22 | include-pre-releases: true 23 | prerelease: true 24 | 25 | header: | 26 | > [!WARNING] 27 | > This plugin is a Maven 4 plugin and requires Maven 4.x to run. 28 | -------------------------------------------------------------------------------- /.github/workflows/maven-verify.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | name: Verify 19 | 20 | on: 21 | push: 22 | pull_request: 23 | 24 | jobs: 25 | build: 26 | name: Verify 27 | uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v4 28 | with: 29 | maven4-enabled: true # build by Maven 3.x and 4.x 30 | 31 | -------------------------------------------------------------------------------- /.github/workflows/pr-automation.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | name: PR Automation 19 | on: 20 | pull_request_target: 21 | types: 22 | - closed 23 | 24 | jobs: 25 | pr-automation: 26 | name: PR Automation 27 | uses: apache/maven-gh-actions-shared/.github/workflows/pr-automation.yml@v4 28 | -------------------------------------------------------------------------------- /.github/workflows/release-drafter.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | name: Release Drafter 19 | on: 20 | push: 21 | branches: 22 | - master 23 | workflow_dispatch: 24 | 25 | jobs: 26 | update_release_draft: 27 | uses: apache/maven-gh-actions-shared/.github/workflows/release-drafter.yml@v4 28 | -------------------------------------------------------------------------------- /.github/workflows/stale.yml: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | name: Stale 19 | 20 | on: 21 | schedule: 22 | - cron: '43 2 * * *' 23 | issue_comment: 24 | types: [ 'created' ] 25 | 26 | jobs: 27 | stale: 28 | uses: 'apache/maven-gh-actions-shared/.github/workflows/stale.yml@v4' 29 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | 3 | #idea 4 | *.iml 5 | .idea 6 | out/ 7 | 8 | #eclipse 9 | .classpath 10 | .project 11 | .settings 12 | .checkstyle 13 | 14 | .DS_Store 15 | 16 | .java-version 17 | .factorypath 18 | 19 | /*.svg 20 | -------------------------------------------------------------------------------- /Jenkinsfile: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | asfMavenTlpPlgnBuild() 21 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Apache Maven Plugin Tools 2 | Copyright 2007-2024 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /deploySite.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Licensed to the Apache Software Foundation (ASF) under one 5 | # or more contributor license agreements. See the NOTICE file 6 | # distributed with this work for additional information 7 | # regarding copyright ownership. The ASF licenses this file 8 | # to you under the Apache License, Version 2.0 (the 9 | # "License"); you may not use this file except in compliance 10 | # with the License. You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, 15 | # software distributed under the License is distributed on an 16 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | # KIND, either express or implied. See the License for the 18 | # specific language governing permissions and limitations 19 | # under the License. 20 | # 21 | 22 | mvn -Preporting site site:stage $@ 23 | mvn scm-publish:publish-scm $@ 24 | -------------------------------------------------------------------------------- /maven-plugin-annotations/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 4.0.0 22 | 23 | 24 | org.apache.maven.plugin-tools 25 | maven-plugin-tools 26 | 4.0.0-beta-2-SNAPSHOT 27 | 28 | 29 | maven-plugin-annotations 30 | 31 | Maven Plugin Tools Java Annotations 32 | Java annotations to use in Mojos 33 | 34 | 35 | -------------------------------------------------------------------------------- /maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/InstantiationStrategy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.plugins.annotations; 20 | 21 | /** 22 | * Component instantiation strategy. 23 | * 24 | * @author Hervé Boutemy 25 | * @since 3.0 26 | */ 27 | public enum InstantiationStrategy { 28 | PER_LOOKUP("per-lookup"), 29 | SINGLETON("singleton"), 30 | KEEP_ALIVE("keep-alive"), 31 | POOLABLE("poolable"); 32 | 33 | private final String id; 34 | 35 | InstantiationStrategy(String id) { 36 | this.id = id; 37 | } 38 | 39 | public String id() { 40 | return this.id; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /maven-plugin-annotations/src/site/apt/index.apt.vm: -------------------------------------------------------------------------------- 1 | ------ 2 | About ${project.name} 3 | ------ 4 | Hervé Boutemy 5 | ------ 6 | 2012-06-03 7 | ------ 8 | 9 | ~~ Licensed to the Apache Software Foundation (ASF) under one 10 | ~~ or more contributor license agreements. See the NOTICE file 11 | ~~ distributed with this work for additional information 12 | ~~ regarding copyright ownership. The ASF licenses this file 13 | ~~ to you under the Apache License, Version 2.0 (the 14 | ~~ "License"); you may not use this file except in compliance 15 | ~~ with the License. You may obtain a copy of the License at 16 | ~~ 17 | ~~ http://www.apache.org/licenses/LICENSE-2.0 18 | ~~ 19 | ~~ Unless required by applicable law or agreed to in writing, 20 | ~~ software distributed under the License is distributed on an 21 | ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 22 | ~~ KIND, either express or implied. See the License for the 23 | ~~ specific language governing permissions and limitations 24 | ~~ under the License. 25 | 26 | ~~ NOTE: For help with the syntax of this file, see: 27 | ~~ http://maven.apache.org/doxia/references/apt-format.html 28 | 29 | About ${project.name} 30 | 31 | ${project.description} 32 | 33 | * Usage 34 | 35 | To be able to {{{../maven-plugin-tools-annotations/index.html}use Maven Plugin Tools Java Annotations}}, 36 | some configuration has to be done in <<>>: see 37 | {{{../maven-plugin-plugin/examples/using-annotations.html#POM_configuration} Using Plugin Tools Java5 Annotations}} 38 | example in {{{../maven-plugin-plugin} <<>>}} documentation. 39 | -------------------------------------------------------------------------------- /maven-plugin-annotations/src/site/site.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/annotation-with-inheritance-from-deps/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals.1 = install 19 | invoker.goals.2 = org.apache.maven.its.annotation-with-inheritance-from-deps:annotation-with-inheritance-from-deps:1.0-SNAPSHOT:first 20 | invoker.goals.3 = org.apache.maven.its.annotation-with-inheritance-from-deps:annotation-with-inheritance-from-deps:1.0-SNAPSHOT:help 21 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/annotation-with-inheritance-from-deps/src/main/resources/META-INF/maven/lifecycle.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | my-lifecycle 24 | 25 | 26 | process-classes 27 | 28 | 29 | test 30 | 31 | ${project.build.directory}/generated-classes/cobertura 32 | true 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/annotation-with-inheritance-reactor/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals.1 = clean install 19 | invoker.goals.2 = org.apache.maven.its.annotation-with-inheritance-reactor:module-mojo:1.0-SNAPSHOT:it0014 20 | invoker.goals.3 = org.apache.maven.its.annotation-with-inheritance-reactor:module-mojo:1.0-SNAPSHOT:first 21 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/annotation-with-inheritance-reactor/module-abstract-mojo/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 23 | 4.0.0 24 | 25 | 26 | org.apache.maven.its.annotation-with-inheritance-reactor 27 | annotation-with-inheritance-reactor 28 | 1.0-SNAPSHOT 29 | 30 | 31 | module-abstract-mojo 32 | 33 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/annotation-with-inheritance-reactor/module-mojo/src/main/java/org/apache/maven/plugin/coreit/SecondMojo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.plugin.coreit; 20 | 21 | import org.apache.maven.plugin.AbstractMojo; 22 | import org.apache.maven.plugins.annotations.Mojo; 23 | import org.apache.maven.plugins.annotations.ResolutionScope; 24 | 25 | /** 26 | * Does nothing special. 27 | * 28 | */ 29 | @Mojo(name = "second", requiresDependencyCollection = ResolutionScope.COMPILE, threadSafe = true) 30 | public class SecondMojo extends AbstractMojo { 31 | 32 | public void execute() {} 33 | } 34 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/annotation-with-inheritance-reactor/module-mojo/src/main/resources/META-INF/maven/lifecycle.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | cobertura 24 | 25 | 26 | process-classes 27 | 28 | 29 | test 30 | 31 | ${project.build.directory}/generated-classes/cobertura 32 | true 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/annotation-with-inheritance/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals.1 = clean install 19 | invoker.goals.2 = org.apache.maven.its.annotation-with-inheritance:annotation-with-inheritance:1.0-SNAPSHOT:it0014 20 | invoker.goals.3 = org.apache.maven.its.annotation-with-inheritance:annotation-with-inheritance:1.0-SNAPSHOT:first 21 | invoker.goals.4 = org.apache.maven.its.annotation-with-inheritance:annotation-with-inheritance:1.0-SNAPSHOT:help 22 | invoker.goals.5 = org.apache.maven.its.annotation-with-inheritance:annotation-with-inheritance:1.0-SNAPSHOT:third 23 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/annotation-with-inheritance/src/main/java/org/apache/maven/plugin/coreit/AbstractFooMojo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.plugin.coreit; 20 | 21 | /** 22 | * 23 | */ 24 | public abstract class AbstractFooMojo extends AbstractFirstMojo { 25 | 26 | // MPLUGIN-206 27 | 28 | } 29 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/annotation-with-inheritance/src/main/java/org/apache/maven/plugin/coreit/SecondMojo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.plugin.coreit; 20 | 21 | import org.apache.maven.plugin.AbstractMojo; 22 | import org.apache.maven.plugins.annotations.Mojo; 23 | import org.apache.maven.plugins.annotations.ResolutionScope; 24 | 25 | /** 26 | * Does nothing special. 27 | * 28 | */ 29 | @Mojo(name = "second", requiresDependencyCollection = ResolutionScope.COMPILE, threadSafe = true) 30 | public class SecondMojo extends AbstractMojo { 31 | 32 | public void execute() {} 33 | } 34 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/annotation-with-inheritance/src/main/resources/META-INF/maven/lifecycle.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | cobertura 24 | 25 | 26 | process-classes 27 | 28 | 29 | test 30 | 31 | ${project.build.directory}/generated-classes/cobertura 32 | true 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/asm-failure/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.debug = false 19 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/asm-failure/src/main/java/org/apache/maven/plugin/coreit/FirstMojo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.plugin.coreit; 20 | 21 | import org.apache.maven.plugin.AbstractMojo; 22 | import org.apache.maven.plugin.MojoExecutionException; 23 | import org.apache.maven.plugins.annotations.Mojo; 24 | import org.apache.maven.plugins.annotations.Parameter; 25 | 26 | /** 27 | * Touches a test file. 28 | * 29 | * @since 1.2 30 | */ 31 | @Mojo(name = "first") 32 | public class FirstMojo extends AbstractMojo { 33 | 34 | /** 35 | * @since 0.1 36 | * @deprecated As of 0.2 37 | */ 38 | @Parameter(alias = "alias") 39 | private String aliasedParam; 40 | 41 | public void execute() throws MojoExecutionException { 42 | getLog().info("touch"); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/asm-failure/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | build = new File( basedir, "build.log" ).text 21 | assert build.contains( "[WARNING] Error analyzing class com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class in " ) 22 | assert build =~ /com[\\\/]ibm[\\\/]icu[\\\/]icu4j[\\\/]2.6.1[\\\/]icu4j-2.6.1.jar: ignoring class/ 23 | 24 | return true; 25 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/help-basic-deprecated-annotation-only/expected-help.txt: -------------------------------------------------------------------------------- 1 | [INFO] help-deprecated-annotation-only 1.0-SNAPSHOT 2 | Tests generation and compilation of the help mojo. 3 | 4 | help-deprecated-annotation-only:test 5 | Deprecated. No reason given 6 | 7 | MOJO-DESCRIPTION. Some "quotation" marks and backslashes '\\', some important 8 | javadoc 9 | and an inline link to test.AnotherMojo. 10 | 11 | Available parameters: 12 | 13 | defaultParam (Default: escape\backslash) 14 | This parameter uses "quotation" marks and backslashes '\\' in its 15 | description. Those characters must be escaped in Java string literals. 16 | 17 | deprecatedParam 18 | Deprecated. No reason given 19 | 20 | Parameter description in javadoc. 21 | 22 | undocumentedParam 23 | Required: Yes 24 | User property: test.undocumented 25 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/help-basic-deprecated-annotation-only/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals.1 = clean install 19 | invoker.goals.2 = --log-file help.log org.apache.maven.its.plugin:help-deprecated-annotation-only:1.0-SNAPSHOT:help 20 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/help-basic-deprecated-annotation-only/test.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | detail = true 19 | goal = test 20 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/help-basic-deprecated-annotation-only/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | expected = new File( basedir, "expected-help.txt" ).text.trim().replace( "\r", "" ) 21 | 22 | log = new File( basedir, "help.log" ).text.replace( "\r", "" ) 23 | log = log.substring( log.indexOf( "[INFO] help-deprecated-annotation-only 1.0-SNAPSHOT" ) ) 24 | log = log.substring( 0, log.indexOf( "[INFO]", 5 ) ).trim() 25 | 26 | assert log == expected 27 | 28 | return true 29 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/help-basic-jdk11/expected-help.txt: -------------------------------------------------------------------------------- 1 | [INFO] help-jdk11 1.0-SNAPSHOT 2 | Tests generation and compilation of the help mojo. 3 | 4 | help-jdk11:test 5 | Deprecated. As of 1.0, use the "quoted" goal instead. 6 | 7 | MOJO-DESCRIPTION. Some "quotation" marks and backslashes '\\', some important 8 | javadoc 9 | and an inline link to test.AnotherMojo. 10 | 11 | Available parameters: 12 | 13 | defaultParam (Default: escape\backslash) 14 | This parameter uses "quotation" marks and backslashes '\\' in its 15 | description. Those characters must be escaped in Java string literals. 16 | 17 | deprecatedParam 18 | Deprecated. As of version 1.0, use the defaultParam instead. 19 | 20 | This parameter is deprecated. 21 | 22 | undocumentedParam 23 | Required: Yes 24 | User property: test.undocumented 25 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/help-basic-jdk11/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.java.version = 11+ 19 | invoker.goals.1 = clean install 20 | invoker.goals.2 = --log-file help.log org.apache.maven.its.plugin:help-jdk11:1.0-SNAPSHOT:help 21 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/help-basic-jdk11/test.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | detail = true 19 | goal = test 20 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/help-basic-jdk11/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | expected = new File( basedir, "expected-help.txt" ).text.trim().replace( "\r", "" ); 21 | 22 | log = new File( basedir, "help.log" ).text.replace( "\r", "" ); 23 | log = log.substring( log.indexOf( "[INFO] help-jdk11 1.0-SNAPSHOT" ) ); 24 | log = log.substring( 0, log.indexOf( "[INFO]", 5 ) ).trim(); 25 | 26 | assert log == expected; 27 | 28 | return true; -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/help-basic/expected-help.txt: -------------------------------------------------------------------------------- 1 | [INFO] help 1.0-SNAPSHOT 2 | Tests generation and compilation of the help mojo. 3 | 4 | help:test 5 | Deprecated. As of 1.0, use the "quoted" goal instead. 6 | 7 | MOJO-DESCRIPTION. Some "quotation" marks and backslashes '\\', some important 8 | javadoc 9 | and an inline link to test.AnotherMojo. 10 | 11 | Available parameters: 12 | 13 | defaultParam (Default: escape\backslash) 14 | This parameter uses "quotation" marks and backslashes '\\' in its 15 | description. Those characters must be escaped in Java string literals. 16 | 17 | deprecatedParam 18 | Deprecated. As of version 1.0, use the defaultParam instead. 19 | 20 | This parameter is deprecated. 21 | 22 | undocumentedParam 23 | Required: Yes 24 | User property: test.undocumented 25 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/help-basic/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals.1 = clean install 19 | invoker.goals.2 = --log-file help.log org.apache.maven.its.plugin:help:1.0-SNAPSHOT:help 20 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/help-basic/test.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | detail = true 19 | goal = test 20 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/help-basic/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | expected = new File( basedir, "expected-help.txt" ).text.trim().replace( "\r", "" ); 21 | 22 | log = new File( basedir, "help.log" ).text.replace( "\r", "" ); 23 | log = log.substring( log.indexOf( "[INFO] help 1.0-SNAPSHOT" ) ); 24 | log = log.substring( 0, log.indexOf( "[INFO]", 5 ) ).trim(); 25 | 26 | assert log == expected; 27 | 28 | return true; -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/java-basic-annotations-jdk8/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals.1 = clean install 19 | invoker.goals.2 = org.apache.maven.its.basic-java-annotations:123-maven-it-basic-java-annotations:1.0-SNAPSHOT:it0014 20 | invoker.goals.3 = org.apache.maven.its.basic-java-annotations:123-maven-it-basic-java-annotations:1.0-SNAPSHOT:help 21 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/java-basic-annotations-jdk8/src/main/java/org/apache/maven/plugin/coreit/MPlugin220Mojo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.plugin.coreit; 20 | 21 | import org.apache.maven.plugin.AbstractMojo; 22 | import org.apache.maven.plugin.MojoExecutionException; 23 | import org.apache.maven.plugins.annotations.Mojo; 24 | import org.apache.maven.plugins.annotations.Parameter; 25 | 26 | /** 27 | * Could not use regex in @Parameter(defaultValue) 28 | */ 29 | @Mojo(name = "mplugin-220") 30 | public class MPlugin220Mojo extends AbstractMojo { 31 | 32 | @Parameter(defaultValue = "[a-zA-Z]{2,}-\\\\d+") 33 | private String regex; 34 | 35 | public void execute() throws MojoExecutionException { 36 | getLog().info("regex = " + regex); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/java-basic-annotations-jdk8/src/main/java/org/apache/maven/plugin/coreit/Minimal.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.plugin.coreit; 20 | 21 | import org.apache.maven.plugin.AbstractMojo; 22 | import org.apache.maven.plugins.annotations.Component; 23 | import org.apache.maven.plugins.annotations.Mojo; 24 | import org.apache.maven.plugins.annotations.Parameter; 25 | import org.apache.maven.project.MavenProjectHelper; 26 | 27 | // minimum annotations => default values 28 | @Mojo(name = "minimal") 29 | public class Minimal extends AbstractMojo { 30 | @Parameter 31 | private String param; 32 | 33 | @Component 34 | private MavenProjectHelper projectHelper; 35 | 36 | public void execute() {} 37 | } 38 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/java-basic-annotations-jdk8/src/main/java/org/apache/maven/plugin/coreit/TestInterface.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package fr.ca; 20 | 21 | public interface TestInterface { 22 | 23 | /** 24 | * Java 8 required to support such default method implementation 25 | */ 26 | public default void foo() {} 27 | } 28 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/java-basic-annotations-jdkcurrent/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.java.version = 9+ 19 | invoker.goals.1 = clean install 20 | invoker.goals.2 = org.apache.maven.its.basic-java-annotations:maven-it-basic-java-annotations:1.0-SNAPSHOT:it0014 21 | invoker.goals.3 = org.apache.maven.its.basic-java-annotations:maven-it-basic-java-annotations:1.0-SNAPSHOT:help 22 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/java-basic-annotations-jdkcurrent/src/main/java/org/apache/maven/plugin/coreit/MPlugin220Mojo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.plugin.coreit; 20 | 21 | import org.apache.maven.plugin.AbstractMojo; 22 | import org.apache.maven.plugin.MojoExecutionException; 23 | import org.apache.maven.plugins.annotations.Mojo; 24 | import org.apache.maven.plugins.annotations.Parameter; 25 | 26 | /** 27 | * Could not use regex in @Parameter(defaultValue) 28 | */ 29 | @Mojo(name = "mplugin-220") 30 | public class MPlugin220Mojo extends AbstractMojo { 31 | 32 | @Parameter(defaultValue = "[a-zA-Z]{2,}-\\\\d+") 33 | private String regex; 34 | 35 | public void execute() throws MojoExecutionException { 36 | getLog().info("regex = " + regex); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/java-basic-annotations-jdkcurrent/src/main/java/org/apache/maven/plugin/coreit/Minimal.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.plugin.coreit; 20 | 21 | import org.apache.maven.plugin.AbstractMojo; 22 | import org.apache.maven.plugins.annotations.Component; 23 | import org.apache.maven.plugins.annotations.Mojo; 24 | import org.apache.maven.plugins.annotations.Parameter; 25 | import org.apache.maven.project.MavenProjectHelper; 26 | 27 | // minimum annotations => default values 28 | @Mojo(name = "minimal") 29 | public class Minimal extends AbstractMojo { 30 | @Parameter 31 | private String param; 32 | 33 | @Component 34 | private MavenProjectHelper projectHelper; 35 | 36 | public void execute() {} 37 | } 38 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/java-basic-annotations-jdkcurrent/src/main/java/org/apache/maven/plugin/coreit/TestInterface.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package fr.ca; 20 | 21 | public interface TestInterface { 22 | 23 | /** 24 | * Java 8 required to support such default method implementation 25 | */ 26 | public default void foo() {} 27 | } 28 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/java-basic-annotations/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals.1 = clean install 19 | invoker.goals.2 = org.apache.maven.its.basic-java-annotations:maven-it-basic-java-annotations:1.0-SNAPSHOT:it0014 20 | invoker.goals.3 = org.apache.maven.its.basic-java-annotations:maven-it-basic-java-annotations:1.0-SNAPSHOT:help 21 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/java-basic-annotations/src/main/java/org/apache/maven/plugin/coreit/MPlugin220Mojo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.plugin.coreit; 20 | 21 | import org.apache.maven.plugin.AbstractMojo; 22 | import org.apache.maven.plugin.MojoExecutionException; 23 | import org.apache.maven.plugins.annotations.Mojo; 24 | import org.apache.maven.plugins.annotations.Parameter; 25 | 26 | /** 27 | * Could not use regex in @Parameter(defaultValue) 28 | */ 29 | @Mojo(name = "mplugin-220") 30 | public class MPlugin220Mojo extends AbstractMojo { 31 | 32 | @Parameter(defaultValue = "[a-zA-Z]{2,}-\\\\d+") 33 | private String regex; 34 | 35 | public void execute() throws MojoExecutionException { 36 | getLog().info("regex = " + regex); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/java-basic-annotations/src/main/java/org/apache/maven/plugin/coreit/MPlugin396Mojo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.plugin.coreit; 20 | 21 | import org.apache.maven.plugin.AbstractMojo; 22 | import org.apache.maven.plugins.annotations.Component; 23 | import org.apache.maven.plugins.annotations.Mojo; 24 | import org.apache.maven.plugins.annotations.Parameter; 25 | import org.apache.maven.project.MavenProjectHelper; 26 | 27 | @Deprecated 28 | @Mojo(name = "mplugin-396") 29 | public class MPlugin396Mojo extends AbstractMojo { 30 | @Deprecated 31 | @Parameter 32 | private String param; 33 | 34 | @Component 35 | private MavenProjectHelper projectHelper; 36 | 37 | public void execute() {} 38 | } 39 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/java-basic-annotations/src/main/java/org/apache/maven/plugin/coreit/Minimal.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.plugin.coreit; 20 | 21 | import org.apache.maven.plugin.AbstractMojo; 22 | import org.apache.maven.plugins.annotations.Component; 23 | import org.apache.maven.plugins.annotations.Mojo; 24 | import org.apache.maven.plugins.annotations.Parameter; 25 | import org.apache.maven.project.MavenProjectHelper; 26 | 27 | // minimum annotations => default values 28 | @Mojo(name = "minimal") 29 | public class Minimal extends AbstractMojo { 30 | @Parameter 31 | private String param; 32 | 33 | @Component 34 | private MavenProjectHelper projectHelper; 35 | 36 | public void execute() {} 37 | } 38 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-223/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | invoker.goals.1 = clean verify 16 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-223/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import groovy.xml.XmlParser 19 | 20 | File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" ); 21 | assert descriptorFile.isFile() 22 | 23 | def pluginDescriptor = new XmlParser().parse( descriptorFile ); 24 | 25 | def mojo = pluginDescriptor.mojos.mojo.findAll{ it.goal.text() == "help" }[0] 26 | 27 | // check help mojo plugin descriptor 28 | assert mojo != null 29 | 30 | return true; 31 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-272_java8/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.java.version = 1.8+ 19 | invoker.goals.1 = clean verify -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-272_java8/src/main/java/fr/ca/MyMojo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package fr.ca; 20 | 21 | import org.apache.maven.plugin.AbstractMojo; 22 | import org.apache.maven.plugin.MojoExecutionException; 23 | import org.apache.maven.plugins.annotations.LifecyclePhase; 24 | import org.apache.maven.plugins.annotations.Mojo; 25 | 26 | /** 27 | * Created by clement.agarini on 04/08/14. 28 | */ 29 | @Mojo(name = "test-plugin", defaultPhase = LifecyclePhase.GENERATE_SOURCES) 30 | public class MyMojo extends AbstractMojo { 31 | @Override 32 | public void execute() throws MojoExecutionException {} 33 | } 34 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-272_java8/src/main/java/fr/ca/TestInterface.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package fr.ca; 20 | 21 | public interface TestInterface { 22 | 23 | /** 24 | * Java 8 required to support such default method implementation 25 | */ 26 | public default void foo() {} 27 | } 28 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-299_no-configuration/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals.1 = clean install 19 | invoker.goals.2 = --log-file help.log org.apache.maven.its.plugin:help:1.0-SNAPSHOT:help 20 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-299_no-configuration/src/main/java/test/MyMojo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package test; 20 | 21 | import org.apache.maven.plugin.AbstractMojo; 22 | import org.apache.maven.plugins.annotations.Mojo; 23 | import org.apache.maven.plugins.annotations.Parameter; 24 | 25 | @Mojo(name = "test") 26 | public class MyMojo extends AbstractMojo { 27 | @Parameter 28 | private String empyAnnotatedParameter; 29 | 30 | public void execute() {} 31 | } 32 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-299_no-configuration/test.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | detail = true 19 | goal = test 20 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-305_defaultMojoDependencies/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals.1 = clean process-classes -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-305_defaultMojoDependencies/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import groovy.xml.XmlParser 19 | 20 | File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" ); 21 | assert descriptorFile.isFile() 22 | 23 | def pluginDescriptor = new XmlParser().parse( descriptorFile ); 24 | 25 | assert pluginDescriptor.mojos.mojo.size() == 1 26 | assert pluginDescriptor.mojos.mojo.parameters.parameter.size() == 48 27 | 28 | return true; 29 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-305_emptyMojoDependencies/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals.1 = clean process-classes -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-305_emptyMojoDependencies/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import groovy.xml.XmlParser 19 | 20 | File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" ); 21 | assert descriptorFile.isFile() 22 | 23 | def pluginDescriptor = new XmlParser().parse( descriptorFile ); 24 | 25 | assert pluginDescriptor.mojos.mojo.size() == 1 26 | assert pluginDescriptor.mojos.mojo.parameters.parameter.size() == 0 27 | 28 | return true; 29 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-305_singleMojoDependencies/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals.1 = clean process-classes -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-305_singleMojoDependencies/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import groovy.xml.XmlParser 19 | 20 | File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" ); 21 | assert descriptorFile.isFile() 22 | 23 | def pluginDescriptor = new XmlParser().parse( descriptorFile ); 24 | 25 | assert pluginDescriptor.mojos.mojo.size() == 1 26 | assert pluginDescriptor.mojos.mojo.parameters.parameter.size() == 51 27 | 28 | return true; 29 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-324_javadoc/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals = process-classes javadoc:javadoc 19 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-363_help-reproducible/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals.1 = clean package 19 | invoker.goals.2 = process-classes 20 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-363_help-reproducible/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | firstRun = new File( basedir, "target/generated-sources-run1/plugin/org/apache/maven/its/plugin/help/HelpMojo.java" ).text; 21 | secondRun = new File( basedir, "target/generated-sources/plugin/org/apache/maven/its/plugin/help/HelpMojo.java" ).text; 22 | 23 | assert firstRun == secondRun; 24 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-370-maven-deps-scope-bad/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals = process-classes 19 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-370-maven-deps-scope-bad/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | File buildLog = new File( basedir, "build.log" ); 21 | assert buildLog.isFile() 22 | assert buildLog.text.contains( "Some dependencies of Maven Plugins are expected to be in provided scope." ) -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-370-maven-deps-scope-good/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals = process-classes 19 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-370-maven-deps-scope-good/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | File buildLog = new File( basedir, "build.log" ); 21 | assert buildLog.isFile() 22 | assert !buildLog.text.contains( "Some dependencies of Maven Plugins are expected to be in provided scope." ) -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-372-annotation-with-inheritance-from-provided-deps/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals = process-classes 19 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-372-annotation-with-inheritance-from-provided-deps/src/main/resources/META-INF/maven/lifecycle.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | my-lifecycle 24 | 25 | 26 | process-classes 27 | 28 | 29 | test 30 | 31 | ${project.build.directory}/generated-classes/cobertura 32 | true 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-372-annotation-with-inheritance-from-provided-deps/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" ); 21 | assert descriptorFile.isFile() 22 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-382-exclude-provided-dependency/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals = process-classes 19 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-390/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals.1 = process-classes 19 | invoker.goals.2 = process-classes 20 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/mplugin-390/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" ); 21 | assert descriptorFile.isFile() 22 | 23 | File touchFile = new File( basedir, "target/touch.txt" ); 24 | assert touchFile.isFile() 25 | 26 | // the touch file should be newer than the descriptor 27 | assert touchFile.lastModified() > descriptorFile.lastModified() 28 | 29 | return true; 30 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/packaging-jar/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals.1 = clean install 19 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/packaging-jar/src/main/java/org/apache/maven/plugin/coreit/FirstMojo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.plugin.coreit; 20 | 21 | import org.apache.maven.plugin.AbstractMojo; 22 | import org.apache.maven.plugin.MojoExecutionException; 23 | import org.apache.maven.plugins.annotations.Mojo; 24 | 25 | /** 26 | * @deprecated Don't use! 27 | */ 28 | @Mojo(name = "first") 29 | public class FirstMojo extends AbstractMojo { 30 | 31 | public void execute() throws MojoExecutionException {} 32 | } 33 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/packaging-jar/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | import groovy.xml.XmlParser 21 | 22 | File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" ); 23 | assert descriptorFile.isFile() 24 | 25 | def pluginDescriptor = new XmlParser().parse( descriptorFile ); 26 | 27 | def mojo = pluginDescriptor.mojos.mojo.findAll{ it.goal.text() == "first" }[0] 28 | 29 | assert mojo.goal.text() == 'first' 30 | assert mojo.implementation.text() == 'org.apache.maven.plugin.coreit.FirstMojo' 31 | assert mojo.language.text() == 'java' 32 | 33 | return true; 34 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/skip/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals = install 19 | invoker.mavenOpts = -Dmaven.plugin.skip=true 20 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/skip/src/main/java/org/apache/maven/plugin/coreit/FirstMojo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.plugin.coreit; 20 | 21 | import org.apache.maven.plugin.AbstractMojo; 22 | import org.apache.maven.plugin.MojoExecutionException; 23 | import org.apache.maven.plugins.annotations.Mojo; 24 | 25 | /** 26 | * Touches a test file. 27 | */ 28 | @Mojo(name = "test") 29 | public class FirstMojo extends AbstractMojo { 30 | 31 | public void execute() throws MojoExecutionException {} 32 | } 33 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/skip/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" ); 21 | assert !descriptorFile.isFile() 22 | 23 | return true; 24 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/source-encoding/latin-1/src/main/java/test/MyMojo.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-plugin/src/it/source-encoding/latin-1/src/main/java/test/MyMojo.java -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/source-encoding/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 23 | 4.0.0 24 | 25 | org.apache.maven.its.plugin 26 | aggregator 27 | 1.0-SNAPSHOT 28 | pom 29 | 30 | Aggregator 31 | 32 | Test that the character encoding of source files is respected by the metadata extractor. 33 | 34 | 35 | 36 | utf-8 37 | latin-1 38 | 39 | 40 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/source-encoding/utf-8/src/main/java/test/MyMojo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package test; 20 | 21 | // NOTE: This source file is by design encoded using UTF-8! 22 | 23 | import org.apache.maven.plugin.AbstractMojo; 24 | import org.apache.maven.plugins.annotations.Mojo; 25 | 26 | /** 27 | * TEST-CHARS: ßıΣЯא€ 28 | */ 29 | @Mojo(name = "test") 30 | public class MyMojo extends AbstractMojo { 31 | 32 | public void execute() {} 33 | } 34 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/source-encoding/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | import groovy.xml.XmlParser 21 | 22 | def latin1File = new File(basedir, 'latin-1/target/classes/META-INF/maven/plugin.xml') 23 | assert latin1File.exists() 24 | def latin1Chars = new XmlParser().parse(latin1File).mojos.mojo.description.text() 25 | println latin1Chars 26 | assert "TEST-CHARS: \u00C4\u00D6\u00DC\u00E4\u00F6\u00FC\u00DF".equals( latin1Chars ) 27 | 28 | def utf8File = new File(basedir, 'utf-8/target/classes/META-INF/maven/plugin.xml') 29 | assert utf8File.exists() 30 | def utf8Chars = new XmlParser().parse(utf8File).mojos.mojo.description.text() 31 | println utf8Chars 32 | assert "TEST-CHARS: \u00DF\u0131\u03A3\u042F\u05D0\u20AC".equals( utf8Chars ) 33 | 34 | return true; 35 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/v4api-3x/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.java.version = 17+ 19 | invoker.goals.1 = clean install 20 | invoker.maven.version = 3 21 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/it/v4api-4x/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.java.version = 17+ 19 | invoker.goals.1 = clean install 20 | invoker.goals.2 = org.apache.maven.its:v4api:1.0-SNAPSHOT:first 21 | invoker.maven.version = 4+ 22 | -------------------------------------------------------------------------------- /maven-plugin-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | descriptor 23 | helpmojo 24 | 25 | 26 | 27 | 28 | false 29 | false 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/it/fix-maven-since-3.x/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals = clean site 19 | -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/it/fix-maven-since-3.x/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | File touchFile = new File( basedir, "javasample-maven-plugin/target/site/touch-mojo.html" ) 21 | assert touchFile.exists() 22 | assert touchFile.isFile() 23 | content = touchFile.text 24 | assert content.contains('Since'); 25 | 26 | 27 | return true; 28 | -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/it/mplugin-187/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals = clean plugin-report:report 19 | -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/it/mplugin-191/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals = clean site 19 | -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/it/mplugin-191/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | File pluginInfo = new File( basedir, "target/site/plugin-info.html" ); 19 | assert pluginInfo.isFile() 20 | 21 | File touchMojo = new File( basedir, "target/site/touch-mojo.html" ); 22 | assert touchMojo.isFile() 23 | 24 | return true; 25 | -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/it/mplugin-319_report-since/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals = clean site 19 | invoker.mavenOpts = -Duser.language=en -Duser.country=US -Duser.variant=US 20 | -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/it/mplugin-319_report-since/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | assert new File( basedir, 'target/site/noop-mojo.html' ).exists() 20 | 21 | content = new File( basedir, 'target/site/noop-mojo.html' ).text 22 | 23 | assert content.contains( '
  • Since version: 1.0.
  • ' ) 24 | assert content.contains( '-' ) 25 | assert content.contains( '1.1' ) 26 | assert content.contains( '
  • Since: 1.1
  • ' ) 27 | 28 | return true 29 | -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/it/mplugin-394_report-encoding/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals = clean site 19 | invoker.mavenOpts = -Dfile.encoding=CP1252 20 | -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/it/mplugin-394_report-encoding/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | generated = new File( basedir, "target/site/test-mojo.html").getText("UTF-8") 21 | 22 | assert generated.contains("Mojo-Description with some non-ASCII characters: €àáâãäåæòóôõöø") 23 | assert generated.contains("Parameter-Description with some non-ASCII characters: ÈÉÊË€") 24 | 25 | return true; 26 | -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/it/plugin-info-jdk/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals = clean site 19 | -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/it/plugin-info-jdk/test.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | maven.compiler.source=1.3 18 | maven.compiler.target=1.3 -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/it/plugin-info-jdk/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | assert new File( basedir, 'property/target/site/plugin-info.html' ).text.contains( '1.3' ) 21 | assert new File( basedir, 'propertyRelease/target/site/plugin-info.html' ).text.contains( '8' ) 22 | assert new File( basedir, 'pluginManagement/target/site/plugin-info.html' ).text.contains( '1.4' ) 23 | assert new File( basedir, 'plugin/target/site/plugin-info.html' ).text.contains( '5' ) 24 | 25 | return true; 26 | -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/it/plugin-no-fork-report/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals = clean verify site 19 | -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/it/plugin-report-detect-requirements-history/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals = clean site 19 | -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/it/plugin-report-detect-requirements-history/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | assert new File( basedir, 'target/site/noop-mojo.html' ).isFile() 21 | 22 | def pluginInfo = new File( basedir, 'target/site/plugin-info.html' ) 23 | assert pluginInfo.isFile() 24 | 25 | assert pluginInfo.text.contains('from 3.4.0 to 3.6.0') 26 | assert pluginInfo.text.contains('>3.2.5<') 27 | assert pluginInfo.text.contains('>8<') 28 | -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/it/plugin-report-requirements-history/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals = clean site 19 | -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/it/plugin-report-requirements-history/verify.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | assert new File( basedir, 'target/site/noop-mojo.html' ).isFile() 21 | 22 | def pluginInfo = new File( basedir, 'target/site/plugin-info.html' ) 23 | assert pluginInfo.isFile() 24 | 25 | assert pluginInfo.text.contains('1.1.99') 26 | assert pluginInfo.text.contains('2.0.99') 27 | assert pluginInfo.text.contains('3.2.5') 28 | assert pluginInfo.text.contains('3.8.6') 29 | assert pluginInfo.text.contains('1.7') 30 | assert pluginInfo.text.contains('1.8') 31 | -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/it/plugin-report-with-javadoc-links/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals = clean site -Dmaven.plugin.report.disableInternalJavadocLinkValidation=true -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/it/plugin-report-with-javadoc-links/src/main/java/org/SimpleBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org; 20 | 21 | /** 22 | * Some simple bean used in parameters of {@link MyMojo}. 23 | */ 24 | public class SimpleBean { 25 | public Integer field1; 26 | } 27 | -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/it/plugin-report-with-javadoc-links/src/main/java/org/internal/PrivateBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.internal; 20 | 21 | /** 22 | * Bean which does not have javadoc 23 | */ 24 | public class PrivateBean { 25 | public Integer field1; 26 | } 27 | -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/it/plugin-report/invoker.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | invoker.goals = clean site 19 | -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/main/java/org/apache/maven/plugin/plugin/report/PluginNoForkReport.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.plugin.plugin.report; 20 | 21 | import org.apache.maven.plugins.annotations.Execute; 22 | import org.apache.maven.plugins.annotations.LifecyclePhase; 23 | import org.apache.maven.plugins.annotations.Mojo; 24 | 25 | /** 26 | * Generates the plugin's report: the plugin details page at plugin-info.html, 27 | * and one goal-mojo.html per goal. 28 | * Relies on one output file from plugin:descriptor. 29 | * 30 | * @since 3.14.0 31 | */ 32 | @Mojo(name = "report-no-fork", threadSafe = true) 33 | @Execute(phase = LifecyclePhase.NONE) 34 | public class PluginNoForkReport extends PluginReport {} 35 | -------------------------------------------------------------------------------- /maven-plugin-report-plugin/src/main/resources/plugin-report_en.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | # NOTE: 19 | # This bundle is intentionally empty because English strings are provided by the base bundle via the parent chain. It 20 | # must be provided nevertheless such that a request for locale "en" will not errorneously pick up the bundle for the 21 | # JVM's default locale (which need not be "en"). See the method javadoc about 22 | # ResourceBundle.getBundle(String, Locale, ClassLoader) 23 | # for a full description of the lookup strategy. 24 | -------------------------------------------------------------------------------- /maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/converter/tag/block/JavadocBlockTagToHtmlConverter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.tools.plugin.extractor.annotations.converter.tag.block; 20 | 21 | import org.apache.maven.tools.plugin.extractor.annotations.converter.tag.JavadocTagToHtmlConverter; 22 | 23 | /** 24 | * Converts a 25 | * 26 | * Javadoc block tag to HTML format. 27 | * The resolved HTML format may still contain other javadoc inline tags. 28 | */ 29 | public abstract class JavadocBlockTagToHtmlConverter extends JavadocTagToHtmlConverter {} 30 | -------------------------------------------------------------------------------- /maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/converter/tag/inline/JavadocInlineTagToHtmlConverter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.tools.plugin.extractor.annotations.converter.tag.inline; 20 | 21 | import org.apache.maven.tools.plugin.extractor.annotations.converter.tag.JavadocTagToHtmlConverter; 22 | 23 | /** 24 | * Converts a 25 | * 26 | * Javadoc inline tag to HTML format. 27 | */ 28 | public abstract class JavadocInlineTagToHtmlConverter extends JavadocTagToHtmlConverter {} 29 | -------------------------------------------------------------------------------- /maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/scanner/visitors/MojoParameterVisitor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.tools.plugin.extractor.annotations.scanner.visitors; 20 | 21 | import java.util.List; 22 | import java.util.Map; 23 | 24 | /** 25 | * Common interface for field and method visitors. 26 | * 27 | * @author Slawomir Jaranowski 28 | */ 29 | public interface MojoParameterVisitor { 30 | String getFieldName(); 31 | 32 | String getClassName(); 33 | 34 | List getTypeParameters(); 35 | 36 | Map getAnnotationVisitorMap(); 37 | 38 | boolean isAnnotationOnMethod(); 39 | } 40 | -------------------------------------------------------------------------------- /maven-plugin-tools-annotations/src/site/site.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /maven-plugin-tools-annotations/src/test/java/org/apache/maven/tools/plugin/extractor/annotations/AbstractFooMojo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.tools.plugin.extractor.annotations; 20 | 21 | import org.apache.maven.plugin.AbstractMojo; 22 | import org.apache.maven.plugins.annotations.Mojo; 23 | import org.apache.maven.plugins.annotations.ResolutionScope; 24 | 25 | @Mojo( 26 | name = "abstract", 27 | requiresDependencyResolution = ResolutionScope.COMPILE, 28 | requiresDependencyCollection = ResolutionScope.COMPILE) 29 | public abstract class AbstractFooMojo extends AbstractMojo {} 30 | -------------------------------------------------------------------------------- /maven-plugin-tools-annotations/src/test/java/org/apache/maven/tools/plugin/extractor/annotations/ExecuteMojo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.tools.plugin.extractor.annotations; 20 | 21 | import org.apache.maven.plugin.AbstractMojo; 22 | import org.apache.maven.plugin.MojoExecutionException; 23 | import org.apache.maven.plugin.MojoFailureException; 24 | import org.apache.maven.plugins.annotations.Execute; 25 | import org.apache.maven.plugins.annotations.Mojo; 26 | 27 | @Mojo(name = "execute") 28 | @Execute(goal = "compiler", lifecycle = "my-lifecycle", customPhase = "my-phase-id") 29 | public class ExecuteMojo extends AbstractMojo { 30 | 31 | @Override 32 | public void execute() throws MojoExecutionException, MojoFailureException {} 33 | } 34 | -------------------------------------------------------------------------------- /maven-plugin-tools-annotations/src/test/java/org/apache/maven/tools/plugin/extractor/annotations/converter/test/OtherClass.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.tools.plugin.extractor.annotations.converter.test; 20 | 21 | @SuppressWarnings({"checkstyle:StaticVariableName", "checkstyle:VisibilityModifier"}) 22 | public class OtherClass { 23 | String field1; 24 | public static String STATIC_1 = "STATIC 1"; 25 | /** 26 | * Test {@value} 27 | */ 28 | public static final String STATIC_2 = "STATIC 2"; 29 | 30 | protected static Long STATIC_3 = 3L; 31 | 32 | enum EmbeddedEnum {} 33 | } 34 | -------------------------------------------------------------------------------- /maven-plugin-tools-annotations/src/test/java/org/apache/maven/tools/plugin/extractor/annotations/converter/test/SuperClass.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.tools.plugin.extractor.annotations.converter.test; 20 | 21 | public class SuperClass { 22 | 23 | protected Integer superField1; 24 | } 25 | -------------------------------------------------------------------------------- /maven-plugin-tools-annotations/src/test/java/org/apache/maven/tools/plugin/extractor/annotations/converter/test/other/OtherClassOtherPackage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.tools.plugin.extractor.annotations.converter.test.other; 20 | 21 | public class OtherClassOtherPackage { 22 | 23 | String field1; 24 | 25 | public enum EmbeddedEnum {} 26 | } 27 | -------------------------------------------------------------------------------- /maven-plugin-tools-annotations/src/test/resources/java8-annotations.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-annotations/src/test/resources/java8-annotations.jar -------------------------------------------------------------------------------- /maven-plugin-tools-annotations/src/test/resources/java9-module.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-annotations/src/test/resources/java9-module.jar -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/extractor/MojoDescriptorExtractorComparator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.tools.plugin.extractor; 20 | 21 | import java.util.Comparator; 22 | 23 | /** 24 | * Comparator of {@link MojoDescriptorExtractor} by {@link MojoDescriptorExtractor#getGroupKey()}. 25 | * 26 | * @since TBD 27 | */ 28 | public class MojoDescriptorExtractorComparator implements Comparator { 29 | public static final MojoDescriptorExtractorComparator INSTANCE = new MojoDescriptorExtractorComparator(); 30 | 31 | @Override 32 | public int compare(MojoDescriptorExtractor o1, MojoDescriptorExtractor o2) { 33 | return o1.getGroupKey().compareTo(o2.getGroupKey()); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/site/apt/index.apt: -------------------------------------------------------------------------------- 1 | ------ 2 | Introduction 3 | ------ 4 | Vincent Siveton 5 | ------ 6 | 2012-05-14 7 | ------ 8 | 9 | ~~ Licensed to the Apache Software Foundation (ASF) under one 10 | ~~ or more contributor license agreements. See the NOTICE file 11 | ~~ distributed with this work for additional information 12 | ~~ regarding copyright ownership. The ASF licenses this file 13 | ~~ to you under the Apache License, Version 2.0 (the 14 | ~~ "License"); you may not use this file except in compliance 15 | ~~ with the License. You may obtain a copy of the License at 16 | ~~ 17 | ~~ http://www.apache.org/licenses/LICENSE-2.0 18 | ~~ 19 | ~~ Unless required by applicable law or agreed to in writing, 20 | ~~ software distributed under the License is distributed on an 21 | ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 22 | ~~ KIND, either express or implied. See the License for the 23 | ~~ specific language governing permissions and limitations 24 | ~~ under the License. 25 | 26 | ~~ NOTE: For help with the syntax of this file, see: 27 | ~~ http://maven.apache.org/doxia/references/apt-format.html 28 | 29 | Maven Plugin Tool API 30 | 31 | The Maven Plugin Tool API is the API to extract descriptors for all supported Maven plugins. 32 | 33 | Main component is {{{./apidocs/org/apache/maven/tools/plugin/scanner/MojoScanner.html}MojoScanner}}. 34 | 35 | Each descriptor extractor needs to implement 36 | {{{./apidocs/org/apache/maven/tools/plugin/extractor/MojoDescriptorExtractor.html}MojoDescriptorExtractor}}. 37 | -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/site/site.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/java/org/apache/maven/tools/plugin/util/stubs/MojoStub.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.tools.plugin.util.stubs; 20 | 21 | import java.util.Map; 22 | 23 | import org.apache.maven.plugin.AbstractMojo; 24 | import org.apache.maven.plugin.MojoExecutionException; 25 | 26 | /** 27 | * Dummy Mojo. 28 | */ 29 | public class MojoStub extends AbstractMojo { 30 | /** {@inheritDoc} */ 31 | @Override 32 | public Map getPluginContext() { 33 | return super.getPluginContext(); 34 | } 35 | 36 | /** {@inheritDoc} */ 37 | @Override 38 | public void setPluginContext(Map pluginContext) { 39 | super.setPluginContext(pluginContext); 40 | } 41 | 42 | /** {@inheritDoc} */ 43 | @Override 44 | public void execute() throws MojoExecutionException {} 45 | } 46 | -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk11/element-list: -------------------------------------------------------------------------------- 1 | org.apache.maven.tools.plugin.extractor.annotations.converter.test 2 | org.apache.maven.tools.plugin.extractor.annotations.converter.test.other 3 | -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk11/jquery/images/ui-bg_glass_55_fbf9ee_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk11/jquery/images/ui-bg_glass_55_fbf9ee_1x400.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk11/jquery/images/ui-bg_glass_65_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk11/jquery/images/ui-bg_glass_65_dadada_1x400.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk11/jquery/images/ui-bg_glass_75_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk11/jquery/images/ui-bg_glass_75_dadada_1x400.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk11/jquery/images/ui-bg_glass_75_e6e6e6_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk11/jquery/images/ui-bg_glass_75_e6e6e6_1x400.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk11/jquery/images/ui-bg_glass_95_fef1ec_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk11/jquery/images/ui-bg_glass_95_fef1ec_1x400.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk11/jquery/images/ui-bg_highlight-soft_75_cccccc_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk11/jquery/images/ui-bg_highlight-soft_75_cccccc_1x100.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk11/jquery/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk11/jquery/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk11/jquery/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk11/jquery/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk11/jquery/images/ui-icons_454545_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk11/jquery/images/ui-icons_454545_256x240.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk11/jquery/images/ui-icons_888888_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk11/jquery/images/ui-icons_888888_256x240.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk11/jquery/images/ui-icons_cd0a0a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk11/jquery/images/ui-icons_cd0a0a_256x240.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk11/member-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk11/member-search-index.zip -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk11/overview-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Generated Documentation (Untitled) 7 | 8 | 9 | 12 | 13 | 14 | 15 | 16 |
    17 | 20 |

    index.html

    21 |
    22 | 23 | 24 | -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk11/package-search-index.js: -------------------------------------------------------------------------------- 1 | packageSearchIndex = [{"l":"All Packages","url":"allpackages-index.html"},{"l":"org.apache.maven.tools.plugin.extractor.annotations.converter.test"},{"l":"org.apache.maven.tools.plugin.extractor.annotations.converter.test.other"}] -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk11/package-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk11/package-search-index.zip -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk11/resources/glass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk11/resources/glass.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk11/resources/x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk11/resources/x.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk11/type-search-index.js: -------------------------------------------------------------------------------- 1 | typeSearchIndex = [{"l":"All Classes","url":"allclasses-index.html"},{"p":"org.apache.maven.tools.plugin.extractor.annotations.converter.test","l":"CurrentClass"},{"p":"org.apache.maven.tools.plugin.extractor.annotations.converter.test.other","l":"OtherClassOtherPackage.EmbeddedEnum"},{"p":"org.apache.maven.tools.plugin.extractor.annotations.converter.test","l":"OtherClass"},{"p":"org.apache.maven.tools.plugin.extractor.annotations.converter.test.other","l":"OtherClassOtherPackage"},{"p":"org.apache.maven.tools.plugin.extractor.annotations.converter.test","l":"SuperClass"}] -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk11/type-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk11/type-search-index.zip -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/element-list: -------------------------------------------------------------------------------- 1 | org.apache.maven.tools.plugin.extractor.annotations.converter.test 2 | org.apache.maven.tools.plugin.extractor.annotations.converter.test.other 3 | -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery-ui.overrides.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | .ui-state-active, 27 | .ui-widget-content .ui-state-active, 28 | .ui-widget-header .ui-state-active, 29 | a.ui-button:active, 30 | .ui-button:active, 31 | .ui-button.ui-state-active:hover { 32 | /* Overrides the color of selection used in jQuery UI */ 33 | background: #F8981D; 34 | } 35 | -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery/images/ui-bg_glass_55_fbf9ee_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery/images/ui-bg_glass_55_fbf9ee_1x400.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery/images/ui-bg_glass_65_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery/images/ui-bg_glass_65_dadada_1x400.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery/images/ui-bg_glass_75_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery/images/ui-bg_glass_75_dadada_1x400.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery/images/ui-bg_glass_75_e6e6e6_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery/images/ui-bg_glass_75_e6e6e6_1x400.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery/images/ui-bg_glass_95_fef1ec_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery/images/ui-bg_glass_95_fef1ec_1x400.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery/images/ui-bg_highlight-soft_75_cccccc_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery/images/ui-bg_highlight-soft_75_cccccc_1x100.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery/images/ui-icons_454545_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery/images/ui-icons_454545_256x240.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery/images/ui-icons_888888_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery/images/ui-icons_888888_256x240.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery/images/ui-icons_cd0a0a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/jquery/images/ui-icons_cd0a0a_256x240.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/member-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/member-search-index.zip -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/module-search-index.js: -------------------------------------------------------------------------------- 1 | moduleSearchIndex = [];updateSearchResults(); -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/overview-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Generated Documentation (Untitled) 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 |
    20 | 23 |

    index.html

    24 |
    25 | 26 | 27 | -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/package-search-index.js: -------------------------------------------------------------------------------- 1 | packageSearchIndex = [{"l":"All Packages","u":"allpackages-index.html"},{"l":"org.apache.maven.tools.plugin.extractor.annotations.converter.test"},{"l":"org.apache.maven.tools.plugin.extractor.annotations.converter.test.other"}];updateSearchResults(); -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/package-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/package-search-index.zip -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/resources/glass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/resources/glass.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/resources/x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/resources/x.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/script-dir/images/ui-bg_glass_55_fbf9ee_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/script-dir/images/ui-bg_glass_55_fbf9ee_1x400.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/script-dir/images/ui-bg_glass_65_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/script-dir/images/ui-bg_glass_65_dadada_1x400.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/script-dir/images/ui-bg_glass_75_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/script-dir/images/ui-bg_glass_75_dadada_1x400.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/script-dir/images/ui-bg_glass_75_e6e6e6_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/script-dir/images/ui-bg_glass_75_e6e6e6_1x400.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/script-dir/images/ui-bg_glass_95_fef1ec_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/script-dir/images/ui-bg_glass_95_fef1ec_1x400.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/script-dir/images/ui-bg_highlight-soft_75_cccccc_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/script-dir/images/ui-bg_highlight-soft_75_cccccc_1x100.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/script-dir/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/script-dir/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/script-dir/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/script-dir/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/script-dir/images/ui-icons_454545_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/script-dir/images/ui-icons_454545_256x240.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/script-dir/images/ui-icons_888888_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/script-dir/images/ui-icons_888888_256x240.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/script-dir/images/ui-icons_cd0a0a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/script-dir/images/ui-icons_cd0a0a_256x240.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/tag-search-index.js: -------------------------------------------------------------------------------- 1 | tagSearchIndex = [];updateSearchResults(); -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/type-search-index.js: -------------------------------------------------------------------------------- 1 | typeSearchIndex = [{"l":"All Classes and Interfaces","u":"allclasses-index.html"},{"p":"org.apache.maven.tools.plugin.extractor.annotations.converter.test","l":"CurrentClass"},{"p":"org.apache.maven.tools.plugin.extractor.annotations.converter.test.other","l":"OtherClassOtherPackage.EmbeddedEnum"},{"p":"org.apache.maven.tools.plugin.extractor.annotations.converter.test","l":"OtherClass"},{"p":"org.apache.maven.tools.plugin.extractor.annotations.converter.test.other","l":"OtherClassOtherPackage"},{"p":"org.apache.maven.tools.plugin.extractor.annotations.converter.test","l":"SuperClass"}];updateSearchResults(); -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk17/type-search-index.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk17/type-search-index.zip -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk21/element-list: -------------------------------------------------------------------------------- 1 | org.apache.maven.tools.plugin.extractor.annotations.converter.test 2 | org.apache.maven.tools.plugin.extractor.annotations.converter.test.other 3 | -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk21/legal/ASSEMBLY_EXCEPTION: -------------------------------------------------------------------------------- 1 | 2 | OPENJDK ASSEMBLY EXCEPTION 3 | 4 | The OpenJDK source code made available by Oracle America, Inc. (Oracle) at 5 | openjdk.org ("OpenJDK Code") is distributed under the terms of the GNU 6 | General Public License version 2 7 | only ("GPL2"), with the following clarification and special exception. 8 | 9 | Linking this OpenJDK Code statically or dynamically with other code 10 | is making a combined work based on this library. Thus, the terms 11 | and conditions of GPL2 cover the whole combination. 12 | 13 | As a special exception, Oracle gives you permission to link this 14 | OpenJDK Code with certain code licensed by Oracle as indicated at 15 | https://openjdk.org/legal/exception-modules-2007-05-08.html 16 | ("Designated Exception Modules") to produce an executable, 17 | regardless of the license terms of the Designated Exception Modules, 18 | and to copy and distribute the resulting executable under GPL2, 19 | provided that the Designated Exception Modules continue to be 20 | governed by the licenses under which they were offered by Oracle. 21 | 22 | As such, it allows licensees and sublicensees of Oracle's GPL2 OpenJDK Code 23 | to build an executable that includes those portions of necessary code that 24 | Oracle could not provide under GPL2 (or that Oracle has provided under GPL2 25 | with the Classpath exception). If you modify or add to the OpenJDK code, 26 | that new GPL2 code may still be combined with Designated Exception Modules 27 | if the new code is made subject to this exception by its copyright holder. 28 | -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk21/module-search-index.js: -------------------------------------------------------------------------------- 1 | moduleSearchIndex = [];updateSearchResults(); -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk21/overview-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Generated Documentation (Untitled) 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 |
    20 | 23 |

    index.html

    24 |
    25 | 26 | 27 | -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk21/package-search-index.js: -------------------------------------------------------------------------------- 1 | packageSearchIndex = [{"l":"All Packages","u":"allpackages-index.html"},{"l":"org.apache.maven.tools.plugin.extractor.annotations.converter.test"},{"l":"org.apache.maven.tools.plugin.extractor.annotations.converter.test.other"}];updateSearchResults(); -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk21/resources/glass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk21/resources/glass.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk21/resources/x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/maven-plugin-tools-api/src/test/resources/javadoc/jdk21/resources/x.png -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk21/tag-search-index.js: -------------------------------------------------------------------------------- 1 | tagSearchIndex = [{"l":"Constant Field Values","h":"","u":"constant-values.html"}];updateSearchResults(); -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk21/type-search-index.js: -------------------------------------------------------------------------------- 1 | typeSearchIndex = [{"l":"All Classes and Interfaces","u":"allclasses-index.html"},{"p":"org.apache.maven.tools.plugin.extractor.annotations.converter.test","l":"CurrentClass"},{"p":"org.apache.maven.tools.plugin.extractor.annotations.converter.test.other","l":"OtherClassOtherPackage.EmbeddedEnum"},{"p":"org.apache.maven.tools.plugin.extractor.annotations.converter.test","l":"OtherClass"},{"p":"org.apache.maven.tools.plugin.extractor.annotations.converter.test.other","l":"OtherClassOtherPackage"},{"p":"org.apache.maven.tools.plugin.extractor.annotations.converter.test","l":"SuperClass"}];updateSearchResults(); -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk8/org/apache/maven/tools/plugin/extractor/annotations/converter/test/other/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.apache.maven.tools.plugin.extractor.annotations.converter.test.other 7 | 8 | 9 | 10 | 11 | 12 |

    org.apache.maven.tools.plugin.extractor.annotations.converter.test.other

    13 |
    14 |

    Classes

    15 | 18 |

    Enums

    19 | 22 |
    23 | 24 | 25 | -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk8/org/apache/maven/tools/plugin/extractor/annotations/converter/test/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.apache.maven.tools.plugin.extractor.annotations.converter.test 7 | 8 | 9 | 10 | 11 | 12 |

    org.apache.maven.tools.plugin.extractor.annotations.converter.test

    13 |
    14 |

    Classes

    15 | 20 |
    21 | 22 | 23 | -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk8/overview-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Overview List 7 | 8 | 9 | 10 | 11 | 12 | 13 | 20 |

     

    21 | 22 | 23 | -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk8/package-list: -------------------------------------------------------------------------------- 1 | org.apache.maven.tools.plugin.extractor.annotations.converter.test 2 | org.apache.maven.tools.plugin.extractor.annotations.converter.test.other 3 | -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/jdk8/script.js: -------------------------------------------------------------------------------- 1 | function show(type) 2 | { 3 | count = 0; 4 | for (var key in methods) { 5 | var row = document.getElementById(key); 6 | if ((methods[key] & type) != 0) { 7 | row.style.display = ''; 8 | row.className = (count++ % 2) ? rowColor : altColor; 9 | } 10 | else 11 | row.style.display = 'none'; 12 | } 13 | updateTabs(type); 14 | } 15 | 16 | function updateTabs(type) 17 | { 18 | for (var value in tabs) { 19 | var sNode = document.getElementById(tabs[value][0]); 20 | var spanNode = sNode.firstChild; 21 | if (value == type) { 22 | sNode.className = activeTableTab; 23 | spanNode.innerHTML = tabs[value][1]; 24 | } 25 | else { 26 | sNode.className = tableTab; 27 | spanNode.innerHTML = "" + tabs[value][1] + ""; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/javadoc/readme.md: -------------------------------------------------------------------------------- 1 | This folder contains the generated javadoc for the package in `src/test/java/org/apache/maven/tools/plugin/extractor/annotations/converter/test` (including subpackages) 2 | generated with the last LTS versions of the [javadoc tool](https://docs.oracle.com/en/java/javase/17/docs/specs/man/javadoc.html). 3 | 4 | The output was generated with command 5 | 6 | ``` 7 | javadoc -sourcepath ../../../../../../maven-plugin-tools-annotations/src/test/java -subpackages org.apache.maven.tools.plugin.extractor.annotations.converter.test 8 | ``` 9 | 10 | with the according JDK inside each of the folders `jdk21`, `jdk17`, `jdk11` and `jdk8`. -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/test.txt: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | This is a test. -------------------------------------------------------------------------------- /maven-plugin-tools-api/src/test/resources/testExcludes.txt: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | This is a test. -------------------------------------------------------------------------------- /maven-plugin-tools-generators/src/main/java/org/apache/maven/tools/plugin/generator/Converter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.tools.plugin.generator; 20 | 21 | /** 22 | * Interface for processing plugin descriptor values (prior to serialization) 23 | * 24 | */ 25 | public interface Converter { 26 | 27 | String convert(String text); 28 | } 29 | -------------------------------------------------------------------------------- /maven-plugin-tools-generators/src/main/java/org/apache/maven/tools/plugin/generator/GeneratorException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package org.apache.maven.tools.plugin.generator; 20 | 21 | /** 22 | * @author Olivier Lamy 23 | * @since 3.0 24 | */ 25 | public class GeneratorException extends Exception { 26 | public GeneratorException(String s, Throwable throwable) { 27 | super(s, throwable); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /maven-plugin-tools-generators/src/site/site.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /prepare-svg.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | 20 | #libreoffice --headless --convert-to svg src/xdoc/plugin-tools-deps.odg 21 | # CLI export keeps full A3 page 22 | # I prefer doing it by hand, limiting export to "selection" = avoids extra space 23 | 24 | # svgo https://github.com/svg/svgo 25 | svgo --config svgo.config.mjs plugin-tools-deps.svg -o plugin-tools-deps-optimized.svg 26 | 27 | cat plugin-tools-deps-optimized.svg \ 28 | | sed 's/a xlink:href/a target="_parent" xlink:href/' \ 29 | | sed 's_file://_.._' \ 30 | > src/site/resources/images/plugin-tools-deps.svg 31 | -------------------------------------------------------------------------------- /src/config/checkstyle-suppressions.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /src/site/resources/download.cgi: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # 20 | # Just call the standard mirrors.cgi script. It will use download.html 21 | # as the input template. 22 | exec /www/www.apache.org/dyn/mirrors/mirrors.cgi $* -------------------------------------------------------------------------------- /src/site/xdoc/plugin-descriptors.mmd: -------------------------------------------------------------------------------- 1 | %% mermaid (https://mermaid-js.github.io/mermaid/#/) diagram 2 | flowchart LR 3 | subgraph producer["goal plugin:descriptor"] 4 | P2["MojoScanner"]--> |calls| P3["MojoDescriptorExtractors"] 5 | end 6 | producer --> |calls|G2 7 | P4(["PluginDescriptor"]) 8 | P3 --> |populates| P4 9 | subgraph output["Plugin Descriptors Serializations"] 10 | O1(["plugin.xml (plain text)"]) 11 | O2(["plugin-help.xml (plain text with extended elements)"]) 12 | O3(["plugin-enhanced.xml (html, transient, not part of final JAR)"]) 13 | end 14 | subgraph generators["maven-plugin-tools-generators"] 15 | G1["PluginXdocGenerator"] --> |generates| R2([XDoc]) 16 | G1 --> |resolves links to javadoc| G1 17 | G1 --> |uses| O3 18 | G2["PluginDescriptorFilesGenerator"] --> |consumes| P4 19 | G2 --> |transforms javadoc to XHTML| G2 20 | end 21 | G2 --> |writes| output 22 | subgraph consumers["Consumers"] 23 | C1["goal plugin:report"] --> |calls| G1 24 | C2[Maven Plugin Execution] --> |uses| O1 25 | C3[Maven Plugin Help Mojo] --> |uses| O2 26 | end -------------------------------------------------------------------------------- /src/site/xdoc/plugin-tools-deps.odg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/maven-plugin-tools/5364f90ecedc53193e3b2fe24705025a18af6dce/src/site/xdoc/plugin-tools-deps.odg -------------------------------------------------------------------------------- /svgo.config.mjs: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | 20 | export default { 21 | js2svg: { 22 | indent: 1, 23 | pretty: true, 24 | }, 25 | plugins: [ 26 | 'preset-default', 27 | { 28 | name: "removeAttrs", 29 | params: { 30 | attrs: [ 31 | "g:class", 32 | "path:class", 33 | ] 34 | } 35 | }, 36 | ], 37 | }; 38 | --------------------------------------------------------------------------------