1.0
.-
1.1
1.1
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 | List21 | 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 |