commit 4416ebd5235d9255f8a9a23c60daa50091b0d546 Author: Adrian Schröter Date: Fri Jul 28 17:55:31 2023 +0200 Sync from SUSE:ALP:Source:Standard:1.0 maven-surefire revision 29436f2366311762cc1cbc482ea55c83 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/0001-Maven-3.patch b/0001-Maven-3.patch new file mode 100644 index 0000000..226a4ab --- /dev/null +++ b/0001-Maven-3.patch @@ -0,0 +1,34 @@ +From 3bb1ab3a99b7db611b5d265701e1ba293413b027 Mon Sep 17 00:00:00 2001 +From: Michael Simacek +Date: Thu, 5 May 2016 11:20:48 +0200 +Subject: [PATCH 1/4] Maven 3 + +--- + .../apache/maven/plugin/surefire/SurefireHelper.java | 11 +---------- + 1 file changed, 1 insertion(+), 10 deletions(-) + +diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java +index dd29cb4..dc7915c 100644 +--- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java ++++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java +@@ -204,16 +204,7 @@ public final class SurefireHelper + private static String getFailureBehavior( MavenExecutionRequest request ) + throws NoSuchMethodException, InvocationTargetException, IllegalAccessException + { +- try +- { +- return request.getFailureBehavior(); +- } +- catch ( NoSuchMethodError e ) +- { +- return (String) request.getClass() +- .getMethod( "getReactorFailureBehavior" ) +- .invoke( request ); +- } ++ return request.getReactorFailureBehavior(); + } + + private static boolean failIfNoTests( SurefireReportParameters reportParameters ) +-- +2.17.1 + diff --git a/0002-Port-to-current-doxia.patch b/0002-Port-to-current-doxia.patch new file mode 100644 index 0000000..5567555 --- /dev/null +++ b/0002-Port-to-current-doxia.patch @@ -0,0 +1,25 @@ +From 16e1a53ff612f4a9a777e09cdc45988e9abbe2e2 Mon Sep 17 00:00:00 2001 +From: Michael Simacek +Date: Fri, 29 Jun 2018 12:44:37 +0200 +Subject: [PATCH 2/4] Port to current doxia + +--- + .../maven/plugins/surefire/report/SurefireReportGenerator.java | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportGenerator.java b/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportGenerator.java +index f9b9480..f142c8d 100644 +--- a/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportGenerator.java ++++ b/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/SurefireReportGenerator.java +@@ -26,7 +26,7 @@ import java.util.Locale; + import java.util.Map; + import org.apache.maven.doxia.markup.HtmlMarkup; + import org.apache.maven.doxia.sink.Sink; +-import org.apache.maven.doxia.sink.SinkEventAttributeSet; ++import org.apache.maven.doxia.sink.impl.SinkEventAttributeSet; + import org.apache.maven.doxia.util.DoxiaUtils; + import org.apache.maven.plugin.surefire.log.api.ConsoleLogger; + import org.apache.maven.reporting.MavenReportException; +-- +2.17.1 + diff --git a/0003-Port-to-TestNG-7.4.0.patch b/0003-Port-to-TestNG-7.4.0.patch new file mode 100644 index 0000000..7de2af9 --- /dev/null +++ b/0003-Port-to-TestNG-7.4.0.patch @@ -0,0 +1,34 @@ +--- a/surefire-providers/surefire-testng/pom.xml ++++ b/surefire-providers/surefire-testng/pom.xml +@@ -51,8 +51,7 @@ + + org.testng + testng +- 5.10 +- jdk15 ++ 7.4.0 + provided + + +--- a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/AbstractDirectConfigurator.java ++++ b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/AbstractDirectConfigurator.java +@@ -63,7 +63,7 @@ public void configure( TestNG testng, Map options ) + testng.setUseDefaultListeners( false ); + configureInstance( testng, options ); + // TODO: we should have the Profile so that we can decide if this is needed or not +- testng.setListenerClasses( loadListenerClasses( listeners ) ); ++ testng.setListenerClasses( ( List ) loadListenerClasses( listeners ) ); + } + + @Override +--- a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/TestNGMapConfigurator.java ++++ b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/conf/TestNGMapConfigurator.java +@@ -68,7 +68,7 @@ public void configure( XmlSuite suite, Map options ) + String parallel = options.get( PARALLEL_PROP ); + if ( parallel != null ) + { +- suite.setParallel( parallel ); ++ suite.setParallel( XmlSuite.ParallelMode.getValidParallel( parallel ) ); + } + } + diff --git a/0004-Port-to-current-maven-shared-utils.patch b/0004-Port-to-current-maven-shared-utils.patch new file mode 100644 index 0000000..c326f34 --- /dev/null +++ b/0004-Port-to-current-maven-shared-utils.patch @@ -0,0 +1,109 @@ +--- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/DefaultForkConfiguration.java 2022-04-26 11:44:38.061316377 +0200 ++++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/DefaultForkConfiguration.java 2022-04-26 11:50:27.427430853 +0200 +@@ -130,14 +130,24 @@ + String jvmArgLine = newJvmArgLine( forkNumber ); + if ( !jvmArgLine.isEmpty() ) + { +- cli.createArg() +- .setLine( jvmArgLine ); ++ try ++ { ++ cli.createArg().setLine( jvmArgLine ); ++ } ++ catch (Exception e) ++ { ++ } + } + + if ( getDebugLine() != null && !getDebugLine().isEmpty() ) + { +- cli.createArg() +- .setLine( getDebugLine() ); ++ try ++ { ++ cli.createArg().setLine( getDebugLine() ); ++ } ++ catch (Exception e) ++ { ++ } + } + + resolveClasspath( cli, findStartClass( config ), config ); +--- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java ++++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java +@@ -237,6 +237,10 @@ public class StatelessXmlReporter + } + ppw.endElement(); // TestSuite + } ++ catch (IOException e) ++ { ++ throw new RuntimeException(e); ++ } + finally + { + closeQuietly( fw ); +@@ -323,7 +327,7 @@ public class StatelessXmlReporter + } + + private static void startTestElement( XMLWriter ppw, WrappedReportEntry report, String reportNameSuffix, +- String timeAsString ) ++ String timeAsString ) throws IOException + { + ppw.startElement( "testcase" ); + ppw.addAttribute( "name", report.getReportName() ); +@@ -346,7 +350,7 @@ public class StatelessXmlReporter + } + + private void createTestSuiteElement( XMLWriter ppw, WrappedReportEntry report, TestSetStats testSetStats, +- String timeAsString ) ++ String timeAsString ) throws IOException + { + ppw.startElement( "testsuite" ); + +@@ -373,7 +377,7 @@ public class StatelessXmlReporter + + private static void getTestProblems( OutputStreamWriter outputStreamWriter, XMLWriter ppw, + WrappedReportEntry report, boolean trimStackTrace, OutputStream fw, +- String testErrorType, boolean createOutErrElementsInside ) ++ String testErrorType, boolean createOutErrElementsInside ) throws IOException + { + ppw.startElement( testErrorType ); + +@@ -418,7 +422,7 @@ public class StatelessXmlReporter + + // Create system-out and system-err elements + private static void createOutErrElements( OutputStreamWriter outputStreamWriter, XMLWriter ppw, +- WrappedReportEntry report, OutputStream fw ) ++ WrappedReportEntry report, OutputStream fw ) throws IOException + { + EncodingOutputStream eos = new EncodingOutputStream( fw ); + addOutputStreamElement( outputStreamWriter, eos, ppw, report.getStdout(), "system-out" ); +@@ -428,7 +432,7 @@ public class StatelessXmlReporter + private static void addOutputStreamElement( OutputStreamWriter outputStreamWriter, + EncodingOutputStream eos, XMLWriter xmlWriter, + Utf8RecodingDeferredFileOutputStream utf8RecodingDeferredFileOutputStream, +- String name ) ++ String name ) throws IOException + { + if ( utf8RecodingDeferredFileOutputStream != null && utf8RecodingDeferredFileOutputStream.getByteCount() > 0 ) + { +@@ -458,7 +462,7 @@ public class StatelessXmlReporter + * + * @param xmlWriter The test suite to report to + */ +- private static void showProperties( XMLWriter xmlWriter, Map systemProperties ) ++ private static void showProperties( XMLWriter xmlWriter, Map systemProperties ) throws IOException + { + xmlWriter.startElement( "properties" ); + for ( final Entry entry : systemProperties.entrySet() ) +--- a/pom.xml ++++ b/pom.xml +@@ -91,7 +91,7 @@ + 3.5 + 3.5 + 2.5 +- 0.9 ++ 3.3.3 + 2.0.0-beta.5 + scm:git:https://gitbox.apache.org/repos/asf/maven-surefire.git + surefire-archives/surefire-LATEST diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..7d3e7af --- /dev/null +++ b/_multibuild @@ -0,0 +1,4 @@ + + maven-surefire-plugins + maven-surefire-provider-junit5 + diff --git a/cpl-v10.html b/cpl-v10.html new file mode 100644 index 0000000..36aa208 --- /dev/null +++ b/cpl-v10.html @@ -0,0 +1,125 @@ + + + +Common Public License - v 1.0 + + + + + + +

Common Public License - v 1.0 +

+

THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS COMMON PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. +

+

1. DEFINITIONS +

"Contribution" means: + +

    a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
    +b) in the case of each subsequent Contributor:
+ + +
    i) changes to the Program, and
+ + +
    ii) additions to the Program;
+ + +
    where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
+ +

+

"Contributor" means any person or entity that distributes the Program. +

+

"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program. +

+

"Program" means the Contributions distributed in accordance with this Agreement. +

+

"Recipient" means anyone who receives the Program under this Agreement, including all Contributors. +

+

2. GRANT OF RIGHTS + +

    a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.
+ + +
+ + +
    b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.
+ + +
+ + +
    c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.
+ + +
+ + +
    d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
+ + +
+ +

3. REQUIREMENTS +

A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that: + +

    a) it complies with the terms and conditions of this Agreement; and
+ + +
    b) its license agreement:
+ + +
    i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
+ + +
    ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
+ + +
    iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
+ + +
    iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
+ + +
+ +

When the Program is made available in source code form: + +

    a) it must be made available under this Agreement; and
+ + +
    b) a copy of this Agreement must be included with each copy of the Program.
+ +

+

Contributors may not remove or alter any copyright notices contained within the Program. +

+

Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution. +

+

4. COMMERCIAL DISTRIBUTION +

Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense. +

+

For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages. +

+

5. NO WARRANTY +

EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations. +

+

6. DISCLAIMER OF LIABILITY +

EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. +

+

7. GENERAL +

If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. +

+

If Recipient institutes patent litigation against a Contributor with respect to a patent applicable to software (including a cross-claim or counterclaim in a lawsuit), then any patent licenses granted by that Contributor to such Recipient under this Agreement shall terminate as of the date such litigation is filed. In addition, if Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. +

+

All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive. +

+

Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. IBM is the initial Agreement Steward. IBM may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. +

+

This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation. +

+

+ + + + \ No newline at end of file diff --git a/generate-tarball.sh b/generate-tarball.sh new file mode 100644 index 0000000..8040278 --- /dev/null +++ b/generate-tarball.sh @@ -0,0 +1,21 @@ +#!/bin/bash +set -e + +name=maven-surefire +version="$(sed -n 's/Version:\s*//p' ${name}.spec)" + +# RETRIEVE +wget "https://archive.apache.org/dist/maven/surefire/surefire-${version}-source-release.zip" -O "${name}-${version}.orig.zip" + +rm -rf tarball-tmp +mkdir tarball-tmp +cd tarball-tmp +unzip "../${name}-${version}.orig.zip" + +# CLEAN TARBALL +find -name '*.jar' -delete +find -name '*.class' -delete + +tar czf "../${name}-${version}.tar.gz" * +cd .. +rm -r tarball-tmp "${name}-${version}.orig.zip" diff --git a/maven-surefire-2.22.0.tar.gz b/maven-surefire-2.22.0.tar.gz new file mode 100644 index 0000000..e609402 --- /dev/null +++ b/maven-surefire-2.22.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b64c028912a6a5825fa75ed138ba24e83986eb1623ec81d58ca9739ecd1ea32 +size 1099470 diff --git a/maven-surefire-bootstrap-resources.patch b/maven-surefire-bootstrap-resources.patch new file mode 100644 index 0000000..e74ba50 --- /dev/null +++ b/maven-surefire-bootstrap-resources.patch @@ -0,0 +1,6659 @@ +--- surefire-2.22.0/maven-failsafe-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-failsafe-plugin/plugin-help.xml 1970-01-01 01:00:00.000000000 +0100 ++++ surefire-2.22.0/maven-failsafe-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-failsafe-plugin/plugin-help.xml 2019-04-01 16:35:39.493479592 +0200 +@@ -0,0 +1,816 @@ ++ ++ ++ ${project.name} ++ ${project.description} ++ ${project.groupId} ++ ${project.artifactId} ++ ${project.version} ++ failsafe ++ ++ ++ help ++ Display help information on maven-failsafe-plugin. ++Call mvn failsafe:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. ++ false ++ false ++ false ++ false ++ false ++ true ++ org.apache.maven.plugin.failsafe.HelpMojo ++ java ++ per-lookup ++ once-per-session ++ true ++ ++ ++ detail ++ boolean ++ false ++ true ++ Display help information on maven-failsafe-plugin. ++Call mvn failsafe:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. ++ ++ ++ goal ++ java.lang.String ++ false ++ true ++ Display help information on maven-failsafe-plugin. ++Call mvn failsafe:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. ++ ++ ++ indentSize ++ int ++ false ++ true ++ Display help information on maven-failsafe-plugin. ++Call mvn failsafe:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. ++ ++ ++ lineLength ++ int ++ false ++ true ++ Display help information on maven-failsafe-plugin. ++Call mvn failsafe:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. ++ ++ ++ ++ ${detail} ++ ${goal} ++ ${indentSize} ++ ${lineLength} ++ ++ ++ ++ integration-test ++ Run integration tests using Surefire. ++ test ++ false ++ true ++ false ++ false ++ false ++ true ++ integration-test ++ org.apache.maven.plugin.failsafe.IntegrationTestMojo ++ java ++ per-lookup ++ once-per-session ++ true ++ ++ ++ additionalClasspathElements ++ java.lang.String[] ++ 2.4 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ argLine ++ java.lang.String ++ 2.1 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ basedir ++ java.io.File ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ childDelegation ++ boolean ++ 2.1 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ classesDirectory ++ java.io.File ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ classpathDependencyExcludes ++ java.lang.String[] ++ 2.6 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ classpathDependencyScopeExclude ++ java.lang.String ++ 2.6 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ debugForkedProcess ++ java.lang.String ++ 2.4 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ dependenciesToScan ++ java.lang.String[] ++ 2.15 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ disableXmlReport ++ boolean ++ 2.2 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ enableAssertions ++ boolean ++ 2.3.1 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ encoding ++ java.lang.String ++ 3.0.0-M1 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ environmentVariables ++ java.util.Map ++ 2.1.3 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ excludedGroups ++ java.lang.String ++ 2.2 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ excludes ++ java.util.List ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ excludesFile ++ java.io.File ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ failIfNoSpecifiedTests ++ java.lang.Boolean ++ 2.12 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ failIfNoTests ++ java.lang.Boolean ++ 2.4 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ forkCount ++ java.lang.String ++ 2.14 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ forkedProcessExitTimeoutInSeconds ++ int ++ 2.20 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ forkedProcessTimeoutInSeconds ++ int ++ 2.4 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ forkMode ++ java.lang.String ++ 2.1 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ groups ++ java.lang.String ++ 2.2 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ includes ++ java.util.List ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ includesFile ++ java.io.File ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ junitArtifactName ++ java.lang.String ++ 2.3.1 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ junitPlatformArtifactName ++ java.lang.String ++ 2.22.0 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ jvm ++ java.lang.String ++ 2.1 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ objectFactory ++ java.lang.String ++ 2.5 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ parallel ++ java.lang.String ++ 2.2 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ parallelOptimized ++ boolean ++ 2.17 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ parallelTestsTimeoutForcedInSeconds ++ double ++ 2.16 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ parallelTestsTimeoutInSeconds ++ double ++ 2.16 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ perCoreThreadCount ++ boolean ++ 2.5 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ printSummary ++ boolean ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ properties ++ java.util.Properties ++ 2.4 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ redirectTestOutputToFile ++ boolean ++ 2.3 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ remoteRepositories ++ java.util.List ++ 2.2 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ reportFormat ++ java.lang.String ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ reportNameSuffix ++ java.lang.String ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ reportsDirectory ++ java.io.File ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ rerunFailingTestsCount ++ int ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ reuseForks ++ boolean ++ 2.13 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ runOrder ++ java.lang.String ++ 2.7 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ shutdown ++ java.lang.String ++ 2.19 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ skip ++ boolean ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ skipAfterFailureCount ++ int ++ 2.19 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ skipExec ++ boolean ++ 2.3 ++ Use skipTests instead. ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ skipITs ++ boolean ++ 2.4.3-alpha-2 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ skipTests ++ boolean ++ 2.4 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ suiteXmlFiles ++ java.io.File[] ++ 2.2 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ summaryFile ++ java.io.File ++ true ++ true ++ Run integration tests using Surefire. ++ ++ ++ systemProperties ++ java.util.Properties ++ Use systemPropertyVariables instead. ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ systemPropertiesFile ++ java.io.File ++ 2.8.2 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ systemPropertyVariables ++ java.util.Map ++ 2.5 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ tempDir ++ java.lang.String ++ 2.20 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ test ++ java.lang.String ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ testClassesDirectory ++ java.io.File ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ testNGArtifactName ++ java.lang.String ++ 2.3.1 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ testSourceDirectory ++ java.io.File ++ 2.2 ++ true ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ threadCount ++ int ++ 2.2 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ threadCountClasses ++ int ++ 2.16 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ threadCountMethods ++ int ++ 2.16 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ threadCountSuites ++ int ++ 2.16 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ trimStackTrace ++ boolean ++ 2.2 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ useFile ++ boolean ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ useManifestOnlyJar ++ boolean ++ 2.4.3 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ useSystemClassLoader ++ boolean ++ 2.3 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ useUnlimitedThreads ++ boolean ++ 2.5 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ workingDirectory ++ java.io.File ++ 2.1.3 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ ++ ${maven.test.additionalClasspath} ++ ${argLine} ++ ++ ${childDelegation} ++ ${maven.test.dependency.excludes} ++ ${maven.failsafe.debug} ++ ${dependenciesToScan} ++ ${disableXmlReport} ++ ${enableAssertions} ++ ${encoding} ++ ${excludedGroups} ++ ${failsafe.excludesFile} ++ ${it.failIfNoSpecifiedTests} ++ ${failIfNoTests} ++ ${forkCount} ++ ${failsafe.exitTimeout} ++ ${failsafe.timeout} ++ ${forkMode} ++ ${groups} ++ ${failsafe.includesFile} ++ ${junitArtifactName} ++ ${junitPlatformArtifactName} ++ ${jvm} ++ ${objectFactory} ++ ${parallel} ++ ${parallelOptimized} ++ ${failsafe.parallel.forcedTimeout} ++ ${failsafe.parallel.timeout} ++ ${perCoreThreadCount} ++ ${failsafe.printSummary} ++ ${maven.test.redirectTestOutputToFile} ++ ++ ${failsafe.reportFormat} ++ ${surefire.reportNameSuffix} ++ ++ ${failsafe.rerunFailingTestsCount} ++ ${reuseForks} ++ ${failsafe.runOrder} ++ ${failsafe.shutdown} ++ ${maven.test.skip} ++ ${failsafe.skipAfterFailureCount} ++ ${maven.test.skip.exec} ++ ${skipITs} ++ ${skipTests} ++ ${failsafe.suiteXmlFiles} ++ ++ ${tempDir} ++ ${it.test} ++ ++ ${testNGArtifactName} ++ ++ ${threadCount} ++ ${threadCountClasses} ++ ${threadCountMethods} ++ ${threadCountSuites} ++ ${trimStackTrace} ++ ${failsafe.useFile} ++ ${failsafe.useManifestOnlyJar} ++ ${failsafe.useSystemClassLoader} ++ ${useUnlimitedThreads} ++ ${basedir} ++ ++ ++ ++ verify ++ Verify integration tests ran using Surefire. ++ false ++ true ++ false ++ false ++ false ++ true ++ verify ++ org.apache.maven.plugin.failsafe.VerifyMojo ++ java ++ per-lookup ++ once-per-session ++ true ++ ++ ++ basedir ++ java.io.File ++ false ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ encoding ++ java.lang.String ++ since of 2.20.1 ++ false ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ failIfNoTests ++ java.lang.Boolean ++ 2.4 ++ false ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ reportsDirectory ++ java.io.File ++ false ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ skip ++ boolean ++ false ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ skipExec ++ boolean ++ 2.3 ++ Use -DskipTests instead. ++ false ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ skipITs ++ boolean ++ 2.4.3-alpha-2 ++ false ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ skipTests ++ boolean ++ 2.4 ++ false ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ summaryFile ++ java.io.File ++ true ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ summaryFiles ++ java.io.File[] ++ 2.6 ++ false ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ testClassesDirectory ++ java.io.File ++ false ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ testFailureIgnore ++ boolean ++ false ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ ++ ++ ${encoding} ++ ${failIfNoTests} ++ ++ ${maven.test.skip} ++ ${maven.test.skip.exec} ++ ${skipITs} ++ ${skipTests} ++ ++ ++ ${maven.test.failure.ignore} ++ ++ ++ ++ +--- surefire-2.22.0/maven-failsafe-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml 1970-01-01 01:00:00.000000000 +0100 ++++ surefire-2.22.0/maven-failsafe-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml 2019-04-01 16:35:39.493479592 +0200 +@@ -0,0 +1,1212 @@ ++ ++ ++ ${project.name} ++ ${project.description} ++ ${project.groupId} ++ ${project.artifactId} ++ ${project.version} ++ failsafe ++ false ++ true ++ ++ ++ help ++ Display help information on maven-failsafe-plugin.<br> ++Call <code>mvn failsafe:help -Ddetail=true -Dgoal=&lt;goal-name&gt;</code> to display parameter details. ++ false ++ false ++ false ++ false ++ false ++ true ++ org.apache.maven.plugin.failsafe.HelpMojo ++ java ++ per-lookup ++ once-per-session ++ true ++ ++ ++ detail ++ boolean ++ false ++ true ++ Display help information on maven-failsafe-plugin.<br> ++Call <code>mvn failsafe:help -Ddetail=true -Dgoal=&lt;goal-name&gt;</code> to display parameter details. ++ ++ ++ goal ++ java.lang.String ++ false ++ true ++ Display help information on maven-failsafe-plugin.<br> ++Call <code>mvn failsafe:help -Ddetail=true -Dgoal=&lt;goal-name&gt;</code> to display parameter details. ++ ++ ++ indentSize ++ int ++ false ++ true ++ Display help information on maven-failsafe-plugin.<br> ++Call <code>mvn failsafe:help -Ddetail=true -Dgoal=&lt;goal-name&gt;</code> to display parameter details. ++ ++ ++ lineLength ++ int ++ false ++ true ++ Display help information on maven-failsafe-plugin.<br> ++Call <code>mvn failsafe:help -Ddetail=true -Dgoal=&lt;goal-name&gt;</code> to display parameter details. ++ ++ ++ ++ ${detail} ++ ${goal} ++ ${indentSize} ++ ${lineLength} ++ ++ ++ ++ integration-test ++ Run integration tests using Surefire. ++ test ++ false ++ true ++ false ++ false ++ false ++ true ++ integration-test ++ org.apache.maven.plugin.failsafe.IntegrationTestMojo ++ java ++ per-lookup ++ once-per-session ++ true ++ ++ ++ additionalClasspathElements ++ java.lang.String[] ++ 2.4 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ argLine ++ java.lang.String ++ 2.1 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ basedir ++ java.io.File ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ childDelegation ++ boolean ++ 2.1 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ classesDirectory ++ java.io.File ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ classpathDependencyExcludes ++ java.lang.String[] ++ 2.6 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ classpathDependencyScopeExclude ++ java.lang.String ++ 2.6 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ debugForkedProcess ++ java.lang.String ++ 2.4 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ defaultClassesDirectory ++ java.io.File ++ false ++ false ++ Run integration tests using Surefire. ++ ++ ++ dependenciesToScan ++ java.lang.String[] ++ 2.15 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ disableXmlReport ++ boolean ++ 2.2 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ enableAssertions ++ boolean ++ 2.3.1 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ encoding ++ java.lang.String ++ 3.0.0-M1 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ environmentVariables ++ java.util.Map ++ 2.1.3 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ excludedGroups ++ java.lang.String ++ 2.2 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ excludes ++ java.util.List ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ excludesFile ++ java.io.File ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ failIfNoSpecifiedTests ++ java.lang.Boolean ++ 2.12 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ failIfNoTests ++ java.lang.Boolean ++ 2.4 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ forkCount ++ java.lang.String ++ 2.14 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ forkMode ++ java.lang.String ++ 2.1 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ forkedProcessExitTimeoutInSeconds ++ int ++ 2.20 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ forkedProcessTimeoutInSeconds ++ int ++ 2.4 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ groups ++ java.lang.String ++ 2.2 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ includes ++ java.util.List ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ includesFile ++ java.io.File ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ junitArtifactName ++ java.lang.String ++ 2.3.1 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ junitPlatformArtifactName ++ java.lang.String ++ 2.22.0 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ jvm ++ java.lang.String ++ 2.1 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ localRepository ++ org.apache.maven.artifact.repository.ArtifactRepository ++ true ++ false ++ Abstract base class for running tests using Surefire. ++ ++ ++ objectFactory ++ java.lang.String ++ 2.5 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ parallel ++ java.lang.String ++ 2.2 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ parallelMavenExecution ++ java.lang.Boolean ++ false ++ false ++ Abstract base class for running tests using Surefire. ++ ++ ++ parallelOptimized ++ boolean ++ 2.17 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ parallelTestsTimeoutForcedInSeconds ++ double ++ 2.16 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ parallelTestsTimeoutInSeconds ++ double ++ 2.16 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ perCoreThreadCount ++ boolean ++ 2.5 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ pluginArtifactMap ++ java.util.Map ++ true ++ false ++ Abstract base class for running tests using Surefire. ++ ++ ++ pluginDescriptor ++ org.apache.maven.plugin.descriptor.PluginDescriptor ++ 2.12 ++ false ++ false ++ Abstract base class for running tests using Surefire. ++ ++ ++ printSummary ++ boolean ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ projectArtifactMap ++ java.util.Map ++ true ++ false ++ Abstract base class for running tests using Surefire. ++ ++ ++ projectBuildDirectory ++ java.io.File ++ 2.20 ++ false ++ false ++ Abstract base class for running tests using Surefire. ++ ++ ++ properties ++ java.util.Properties ++ 2.4 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ redirectTestOutputToFile ++ boolean ++ 2.3 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ remoteRepositories ++ java.util.List ++ 2.2 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ reportFormat ++ java.lang.String ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ reportNameSuffix ++ java.lang.String ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ reportsDirectory ++ java.io.File ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ rerunFailingTestsCount ++ int ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ reuseForks ++ boolean ++ 2.13 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ runOrder ++ java.lang.String ++ 2.7 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ shutdown ++ java.lang.String ++ 2.19 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ skip ++ boolean ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ skipAfterFailureCount ++ int ++ 2.19 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ skipExec ++ boolean ++ 2.3 ++ Use skipTests instead. ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ skipITs ++ boolean ++ 2.4.3-alpha-2 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ skipTests ++ boolean ++ 2.4 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ suiteXmlFiles ++ java.io.File[] ++ 2.2 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ summaryFile ++ java.io.File ++ true ++ true ++ Run integration tests using Surefire. ++ ++ ++ systemProperties ++ java.util.Properties ++ Use systemPropertyVariables instead. ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ systemPropertiesFile ++ java.io.File ++ 2.8.2 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ systemPropertyVariables ++ java.util.Map ++ 2.5 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ tempDir ++ java.lang.String ++ 2.20 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ test ++ java.lang.String ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ testClassesDirectory ++ java.io.File ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ testNGArtifactName ++ java.lang.String ++ 2.3.1 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ testSourceDirectory ++ java.io.File ++ 2.2 ++ true ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ threadCount ++ int ++ 2.2 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ threadCountClasses ++ int ++ 2.16 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ threadCountMethods ++ int ++ 2.16 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ threadCountSuites ++ int ++ 2.16 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ trimStackTrace ++ boolean ++ 2.2 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ useFile ++ boolean ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ useManifestOnlyJar ++ boolean ++ 2.4.3 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ useSystemClassLoader ++ boolean ++ 2.3 ++ false ++ true ++ Run integration tests using Surefire. ++ ++ ++ useUnlimitedThreads ++ boolean ++ 2.5 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ workingDirectory ++ java.io.File ++ 2.1.3 ++ false ++ true ++ Abstract base class for running tests using Surefire. ++ ++ ++ project ++ org.apache.maven.project.MavenProject ++ true ++ false ++ ++ ++ ++ session ++ org.apache.maven.execution.MavenSession ++ true ++ false ++ ++ ++ ++ ++ ${maven.test.additionalClasspath} ++ ${argLine} ++ ++ ${childDelegation} ++ ${maven.test.dependency.excludes} ++ ${maven.failsafe.debug} ++ ++ ${dependenciesToScan} ++ ${disableXmlReport} ++ ${enableAssertions} ++ ${encoding} ++ ${excludedGroups} ++ ${failsafe.excludesFile} ++ ${it.failIfNoSpecifiedTests} ++ ${failIfNoTests} ++ ${forkCount} ++ ${forkMode} ++ ${failsafe.exitTimeout} ++ ${failsafe.timeout} ++ ${groups} ++ ${failsafe.includesFile} ++ ${junitArtifactName} ++ ${junitPlatformArtifactName} ++ ${jvm} ++ ++ ${objectFactory} ++ ${parallel} ++ ++ ${parallelOptimized} ++ ${failsafe.parallel.forcedTimeout} ++ ${failsafe.parallel.timeout} ++ ${perCoreThreadCount} ++ ${plugin.artifactMap} ++ ++ ${failsafe.printSummary} ++ ${project.artifactMap} ++ ++ ${maven.test.redirectTestOutputToFile} ++ ++ ${failsafe.reportFormat} ++ ${surefire.reportNameSuffix} ++ ++ ${failsafe.rerunFailingTestsCount} ++ ${reuseForks} ++ ${failsafe.runOrder} ++ ${failsafe.shutdown} ++ ${maven.test.skip} ++ ${failsafe.skipAfterFailureCount} ++ ${maven.test.skip.exec} ++ ${skipITs} ++ ${skipTests} ++ ${failsafe.suiteXmlFiles} ++ ++ ${tempDir} ++ ${it.test} ++ ++ ${testNGArtifactName} ++ ++ ${threadCount} ++ ${threadCountClasses} ++ ${threadCountMethods} ++ ${threadCountSuites} ++ ${trimStackTrace} ++ ${failsafe.useFile} ++ ${failsafe.useManifestOnlyJar} ++ ${failsafe.useSystemClassLoader} ++ ${useUnlimitedThreads} ++ ${basedir} ++ ++ ++ ++ ++ ++ org.apache.maven.artifact.factory.ArtifactFactory ++ artifactFactory ++ ++ ++ org.apache.maven.artifact.resolver.ArtifactResolver ++ artifactResolver ++ ++ ++ org.codehaus.plexus.logging.Logger ++ logger ++ ++ ++ org.apache.maven.artifact.metadata.ArtifactMetadataSource ++ metadataSource ++ ++ ++ org.apache.maven.toolchain.ToolchainManager ++ toolchainManager ++ ++ ++ ++ ++ verify ++ Verify integration tests ran using Surefire. ++ false ++ true ++ false ++ false ++ false ++ true ++ verify ++ org.apache.maven.plugin.failsafe.VerifyMojo ++ java ++ per-lookup ++ once-per-session ++ true ++ ++ ++ basedir ++ java.io.File ++ false ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ encoding ++ java.lang.String ++ since of 2.20.1 ++ false ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ failIfNoTests ++ java.lang.Boolean ++ 2.4 ++ false ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ reportsDirectory ++ java.io.File ++ false ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ skip ++ boolean ++ false ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ skipExec ++ boolean ++ 2.3 ++ Use -DskipTests instead. ++ false ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ skipITs ++ boolean ++ 2.4.3-alpha-2 ++ false ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ skipTests ++ boolean ++ 2.4 ++ false ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ summaryFile ++ java.io.File ++ true ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ summaryFiles ++ java.io.File[] ++ 2.6 ++ false ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ testClassesDirectory ++ java.io.File ++ false ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ testFailureIgnore ++ boolean ++ false ++ true ++ Verify integration tests ran using Surefire. ++ ++ ++ session ++ org.apache.maven.execution.MavenSession ++ true ++ false ++ ++ ++ ++ ++ ++ ${encoding} ++ ${failIfNoTests} ++ ++ ${maven.test.skip} ++ ${maven.test.skip.exec} ++ ${skipITs} ++ ${skipTests} ++ ++ ++ ${maven.test.failure.ignore} ++ ++ ++ ++ ++ org.codehaus.plexus.logging.Logger ++ logger ++ ++ ++ ++ ++ ++ ++ org.apache.maven.surefire ++ maven-surefire-common ++ jar ++ 2.22.0 ++ ++ ++ org.apache.maven ++ maven-plugin-api ++ jar ++ 3.3.3 ++ ++ ++ org.codehaus.plexus ++ plexus-classworlds ++ jar ++ 2.5.2 ++ ++ ++ org.codehaus.plexus ++ plexus-utils ++ jar ++ 3.1.0 ++ ++ ++ org.eclipse.sisu ++ org.eclipse.sisu.plexus ++ jar ++ 0.3.3 ++ ++ ++ org.apache.maven.plugin-tools ++ maven-plugin-annotations ++ jar ++ 3.5 ++ ++ ++ org.apache.maven ++ maven-compat ++ jar ++ any ++ ++ ++ org.codehaus.plexus ++ plexus-interpolation ++ jar ++ 1.24 ++ ++ ++ org.apache.maven.wagon ++ wagon-provider-api ++ jar ++ 3.1.0 ++ ++ ++ org.apache.maven.surefire ++ surefire-api ++ jar ++ 2.22.0 ++ ++ ++ org.apache.maven.surefire ++ surefire-logger-api ++ jar ++ 2.22.0 ++ ++ ++ org.apache.maven.surefire ++ surefire-booter ++ jar ++ 2.22.0 ++ ++ ++ org.apache.maven ++ maven-artifact ++ jar ++ 3.3.3 ++ ++ ++ org.apache.maven ++ maven-model ++ jar ++ 3.3.3 ++ ++ ++ org.apache.maven ++ maven-core ++ jar ++ 3.3.3 ++ ++ ++ org.apache.maven ++ maven-settings ++ jar ++ 3.3.3 ++ ++ ++ org.apache.maven.resolver ++ maven-resolver-util ++ jar ++ 1.1.1 ++ ++ ++ org.eclipse.sisu ++ org.eclipse.sisu.inject ++ jar ++ 0.3.3 ++ ++ ++ javax.enterprise ++ cdi-api ++ jar ++ 1.1 ++ ++ ++ javax.el ++ javax.el-api ++ jar ++ 3.0.0 ++ ++ ++ org.jboss.spec.javax.interceptor ++ jboss-interceptors-api_1.2_spec ++ jar ++ any ++ ++ ++ com.google.guava ++ guava ++ jar ++ 20.0 ++ ++ ++ com.google.inject ++ guice ++ jar ++ 4.2.0 ++ ++ ++ aopalliance ++ aopalliance ++ jar ++ 1.0 ++ ++ ++ cglib ++ cglib ++ jar ++ 3.2.0 ++ ++ ++ org.apache.maven ++ maven-resolver-provider ++ jar ++ 3.5.4 ++ ++ ++ org.apache.maven.resolver ++ maven-resolver-api ++ jar ++ 1.1.1 ++ ++ ++ javax.inject ++ javax.inject ++ jar ++ 1 ++ ++ ++ org.apache.maven.resolver ++ maven-resolver-impl ++ jar ++ 1.1.1 ++ ++ ++ org.slf4j ++ slf4j-api ++ jar ++ 1.7.25 ++ ++ ++ org.apache.maven ++ maven-repository-metadata ++ jar ++ 3.5.4 ++ ++ ++ org.apache.maven.resolver ++ maven-resolver-spi ++ jar ++ 1.1.1 ++ ++ ++ org.codehaus.plexus ++ plexus-component-annotations ++ jar ++ 1.5.5 ++ ++ ++ org.apache.maven ++ maven-model-builder ++ jar ++ 3.5.4 ++ ++ ++ org.apache.maven ++ maven-builder-support ++ jar ++ 3.5.4 ++ ++ ++ org.apache.maven ++ maven-settings-builder ++ jar ++ 3.5.4 ++ ++ ++ org.sonatype.plexus ++ plexus-sec-dispatcher ++ jar ++ 1.4 ++ ++ ++ org.sonatype.plexus ++ plexus-cipher ++ jar ++ 1.4 ++ ++ ++ junit ++ junit ++ jar ++ 4.12 ++ ++ ++ org.hamcrest ++ hamcrest-core ++ jar ++ 1.3 ++ ++ ++ org.apache.maven.shared ++ maven-common-artifact-filters ++ jar ++ 1.3 ++ ++ ++ org.codehaus.plexus ++ plexus-java ++ jar ++ 0.9.8 ++ ++ ++ org.ow2.asm ++ asm ++ jar ++ 6.2 ++ ++ ++ com.thoughtworks.qdox ++ qdox ++ jar ++ 2.0-M8 ++ ++ ++ org.apache.maven.shared ++ maven-shared-utils ++ jar ++ 3.2.1 ++ ++ ++ org.apache.commons ++ commons-lang3 ++ jar ++ 3.5 ++ ++ ++ commons-io ++ commons-io ++ jar ++ 2.5 ++ ++ ++ +--- surefire-2.22.0/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/HelpMojo.java 1970-01-01 01:00:00.000000000 +0100 ++++ surefire-2.22.0/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/HelpMojo.java 2019-04-01 16:37:16.245968848 +0200 +@@ -0,0 +1,458 @@ ++ ++package org.apache.maven.plugin.failsafe; ++ ++import org.apache.maven.plugin.AbstractMojo; ++import org.apache.maven.plugin.MojoExecutionException; ++import org.apache.maven.plugins.annotations.Mojo; ++import org.apache.maven.plugins.annotations.Parameter; ++ ++import org.w3c.dom.Document; ++import org.w3c.dom.Element; ++import org.w3c.dom.Node; ++import org.w3c.dom.NodeList; ++import org.xml.sax.SAXException; ++ ++import javax.xml.parsers.DocumentBuilder; ++import javax.xml.parsers.DocumentBuilderFactory; ++import javax.xml.parsers.ParserConfigurationException; ++import java.io.IOException; ++import java.io.InputStream; ++import java.util.ArrayList; ++import java.util.List; ++ ++/** ++ * Display help information on maven-failsafe-plugin.
++ * Call mvn failsafe:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. ++ * @author maven-plugin-tools ++ */ ++@Mojo( name = "help", requiresProject = false, threadSafe = true ) ++public class HelpMojo ++ extends AbstractMojo ++{ ++ /** ++ * If true, display all settable properties for each goal. ++ * ++ */ ++ @Parameter( property = "detail", defaultValue = "false" ) ++ private boolean detail; ++ ++ /** ++ * The name of the goal for which to show help. If unspecified, all goals will be displayed. ++ * ++ */ ++ @Parameter( property = "goal" ) ++ private java.lang.String goal; ++ ++ /** ++ * The maximum length of a display line, should be positive. ++ * ++ */ ++ @Parameter( property = "lineLength", defaultValue = "80" ) ++ private int lineLength; ++ ++ /** ++ * The number of spaces per indentation level, should be positive. ++ * ++ */ ++ @Parameter( property = "indentSize", defaultValue = "2" ) ++ private int indentSize; ++ ++ // groupId/artifactId/plugin-help.xml ++ private static final String PLUGIN_HELP_PATH = ++ "/META-INF/maven/org.apache.maven.plugins/maven-failsafe-plugin/plugin-help.xml"; ++ ++ private static final int DEFAULT_LINE_LENGTH = 80; ++ ++ private Document build() ++ throws MojoExecutionException ++ { ++ getLog().debug( "load plugin-help.xml: " + PLUGIN_HELP_PATH ); ++ InputStream is = null; ++ try ++ { ++ is = getClass().getResourceAsStream( PLUGIN_HELP_PATH ); ++ DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); ++ DocumentBuilder dBuilder = dbFactory.newDocumentBuilder(); ++ return dBuilder.parse( is ); ++ } ++ catch ( IOException e ) ++ { ++ throw new MojoExecutionException( e.getMessage(), e ); ++ } ++ catch ( ParserConfigurationException e ) ++ { ++ throw new MojoExecutionException( e.getMessage(), e ); ++ } ++ catch ( SAXException e ) ++ { ++ throw new MojoExecutionException( e.getMessage(), e ); ++ } ++ finally ++ { ++ if ( is != null ) ++ { ++ try ++ { ++ is.close(); ++ } ++ catch ( IOException e ) ++ { ++ throw new MojoExecutionException( e.getMessage(), e ); ++ } ++ } ++ } ++ } ++ ++ /** ++ * {@inheritDoc} ++ */ ++ public void execute() ++ throws MojoExecutionException ++ { ++ if ( lineLength <= 0 ) ++ { ++ getLog().warn( "The parameter 'lineLength' should be positive, using '80' as default." ); ++ lineLength = DEFAULT_LINE_LENGTH; ++ } ++ if ( indentSize <= 0 ) ++ { ++ getLog().warn( "The parameter 'indentSize' should be positive, using '2' as default." ); ++ indentSize = 2; ++ } ++ ++ Document doc = build(); ++ ++ StringBuilder sb = new StringBuilder(); ++ Node plugin = getSingleChild( doc, "plugin" ); ++ ++ ++ String name = getValue( plugin, "name" ); ++ String version = getValue( plugin, "version" ); ++ String id = getValue( plugin, "groupId" ) + ":" + getValue( plugin, "artifactId" ) + ":" + version; ++ if ( isNotEmpty( name ) && !name.contains( id ) ) ++ { ++ append( sb, name + " " + version, 0 ); ++ } ++ else ++ { ++ if ( isNotEmpty( name ) ) ++ { ++ append( sb, name, 0 ); ++ } ++ else ++ { ++ append( sb, id, 0 ); ++ } ++ } ++ append( sb, getValue( plugin, "description" ), 1 ); ++ append( sb, "", 0 ); ++ ++ //plugin ++ String goalPrefix = getValue( plugin, "goalPrefix" ); ++ ++ Node mojos1 = getSingleChild( plugin, "mojos" ); ++ ++ List mojos = findNamedChild( mojos1, "mojo" ); ++ ++ if ( goal == null || goal.length() <= 0 ) ++ { ++ append( sb, "This plugin has " + mojos.size() + ( mojos.size() > 1 ? " goals:" : " goal:" ), 0 ); ++ append( sb, "", 0 ); ++ } ++ ++ for ( Node mojo : mojos ) ++ { ++ writeGoal( sb, goalPrefix, (Element) mojo ); ++ } ++ ++ if ( getLog().isInfoEnabled() ) ++ { ++ getLog().info( sb.toString() ); ++ } ++ } ++ ++ ++ private static boolean isNotEmpty( String string ) ++ { ++ return string != null && string.length() > 0; ++ } ++ ++ private String getValue( Node node, String elementName ) ++ throws MojoExecutionException ++ { ++ return getSingleChild( node, elementName ).getTextContent(); ++ } ++ ++ private Node getSingleChild( Node node, String elementName ) ++ throws MojoExecutionException ++ { ++ List namedChild = findNamedChild( node, elementName ); ++ if ( namedChild.isEmpty() ) ++ { ++ throw new MojoExecutionException( "Could not find " + elementName + " in plugin-help.xml" ); ++ } ++ if ( namedChild.size() > 1 ) ++ { ++ throw new MojoExecutionException( "Multiple " + elementName + " in plugin-help.xml" ); ++ } ++ return namedChild.get( 0 ); ++ } ++ ++ private List findNamedChild( Node node, String elementName ) ++ { ++ List result = new ArrayList(); ++ NodeList childNodes = node.getChildNodes(); ++ for ( int i = 0; i < childNodes.getLength(); i++ ) ++ { ++ Node item = childNodes.item( i ); ++ if ( elementName.equals( item.getNodeName() ) ) ++ { ++ result.add( item ); ++ } ++ } ++ return result; ++ } ++ ++ private Node findSingleChild( Node node, String elementName ) ++ throws MojoExecutionException ++ { ++ List elementsByTagName = findNamedChild( node, elementName ); ++ if ( elementsByTagName.isEmpty() ) ++ { ++ return null; ++ } ++ if ( elementsByTagName.size() > 1 ) ++ { ++ throw new MojoExecutionException( "Multiple " + elementName + "in plugin-help.xml" ); ++ } ++ return elementsByTagName.get( 0 ); ++ } ++ ++ private void writeGoal( StringBuilder sb, String goalPrefix, Element mojo ) ++ throws MojoExecutionException ++ { ++ String mojoGoal = getValue( mojo, "goal" ); ++ Node configurationElement = findSingleChild( mojo, "configuration" ); ++ Node description = findSingleChild( mojo, "description" ); ++ if ( goal == null || goal.length() <= 0 || mojoGoal.equals( goal ) ) ++ { ++ append( sb, goalPrefix + ":" + mojoGoal, 0 ); ++ Node deprecated = findSingleChild( mojo, "deprecated" ); ++ if ( ( deprecated != null ) && isNotEmpty( deprecated.getTextContent() ) ) ++ { ++ append( sb, "Deprecated. " + deprecated.getTextContent(), 1 ); ++ if ( detail && description != null ) ++ { ++ append( sb, "", 0 ); ++ append( sb, description.getTextContent(), 1 ); ++ } ++ } ++ else if ( description != null ) ++ { ++ append( sb, description.getTextContent(), 1 ); ++ } ++ append( sb, "", 0 ); ++ ++ if ( detail ) ++ { ++ Node parametersNode = getSingleChild( mojo, "parameters" ); ++ List parameters = findNamedChild( parametersNode, "parameter" ); ++ append( sb, "Available parameters:", 1 ); ++ append( sb, "", 0 ); ++ ++ for ( Node parameter : parameters ) ++ { ++ writeParameter( sb, parameter, configurationElement ); ++ } ++ } ++ } ++ } ++ ++ private void writeParameter( StringBuilder sb, Node parameter, Node configurationElement ) ++ throws MojoExecutionException ++ { ++ String parameterName = getValue( parameter, "name" ); ++ String parameterDescription = getValue( parameter, "description" ); ++ ++ Element fieldConfigurationElement = null; ++ if ( configurationElement != null ) ++ { ++ fieldConfigurationElement = (Element) findSingleChild( configurationElement, parameterName ); ++ } ++ ++ String parameterDefaultValue = ""; ++ if ( fieldConfigurationElement != null && fieldConfigurationElement.hasAttribute( "default-value" ) ) ++ { ++ parameterDefaultValue = " (Default: " + fieldConfigurationElement.getAttribute( "default-value" ) + ")"; ++ } ++ append( sb, parameterName + parameterDefaultValue, 2 ); ++ Node deprecated = findSingleChild( parameter, "deprecated" ); ++ if ( ( deprecated != null ) && isNotEmpty( deprecated.getTextContent() ) ) ++ { ++ append( sb, "Deprecated. " + deprecated.getTextContent(), 3 ); ++ append( sb, "", 0 ); ++ } ++ append( sb, parameterDescription, 3 ); ++ if ( "true".equals( getValue( parameter, "required" ) ) ) ++ { ++ append( sb, "Required: Yes", 3 ); ++ } ++ if ( ( fieldConfigurationElement != null ) && isNotEmpty( fieldConfigurationElement.getTextContent() ) ) ++ { ++ String property = getPropertyFromExpression( fieldConfigurationElement.getTextContent() ); ++ append( sb, "User property: " + property, 3 ); ++ } ++ ++ append( sb, "", 0 ); ++ } ++ ++ /** ++ *

Repeat a String n times to form a new string.

++ * ++ * @param str String to repeat ++ * @param repeat number of times to repeat str ++ * @return String with repeated String ++ * @throws NegativeArraySizeException if repeat < 0 ++ * @throws NullPointerException if str is null ++ */ ++ private static String repeat( String str, int repeat ) ++ { ++ StringBuilder buffer = new StringBuilder( repeat * str.length() ); ++ ++ for ( int i = 0; i < repeat; i++ ) ++ { ++ buffer.append( str ); ++ } ++ ++ return buffer.toString(); ++ } ++ ++ /** ++ * Append a description to the buffer by respecting the indentSize and lineLength parameters. ++ * Note: The last character is always a new line. ++ * ++ * @param sb The buffer to append the description, not null. ++ * @param description The description, not null. ++ * @param indent The base indentation level of each line, must not be negative. ++ */ ++ private void append( StringBuilder sb, String description, int indent ) ++ { ++ for ( String line : toLines( description, indent, indentSize, lineLength ) ) ++ { ++ sb.append( line ).append( '\n' ); ++ } ++ } ++ ++ /** ++ * Splits the specified text into lines of convenient display length. ++ * ++ * @param text The text to split into lines, must not be null. ++ * @param indent The base indentation level of each line, must not be negative. ++ * @param indentSize The size of each indentation, must not be negative. ++ * @param lineLength The length of the line, must not be negative. ++ * @return The sequence of display lines, never null. ++ * @throws NegativeArraySizeException if indent < 0 ++ */ ++ private static List toLines( String text, int indent, int indentSize, int lineLength ) ++ { ++ List lines = new ArrayList(); ++ ++ String ind = repeat( "\t", indent ); ++ ++ String[] plainLines = text.split( "(\r\n)|(\r)|(\n)" ); ++ ++ for ( String plainLine : plainLines ) ++ { ++ toLines( lines, ind + plainLine, indentSize, lineLength ); ++ } ++ ++ return lines; ++ } ++ ++ /** ++ * Adds the specified line to the output sequence, performing line wrapping if necessary. ++ * ++ * @param lines The sequence of display lines, must not be null. ++ * @param line The line to add, must not be null. ++ * @param indentSize The size of each indentation, must not be negative. ++ * @param lineLength The length of the line, must not be negative. ++ */ ++ private static void toLines( List lines, String line, int indentSize, int lineLength ) ++ { ++ int lineIndent = getIndentLevel( line ); ++ StringBuilder buf = new StringBuilder( 256 ); ++ ++ String[] tokens = line.split( " +" ); ++ ++ for ( String token : tokens ) ++ { ++ if ( buf.length() > 0 ) ++ { ++ if ( buf.length() + token.length() >= lineLength ) ++ { ++ lines.add( buf.toString() ); ++ buf.setLength( 0 ); ++ buf.append( repeat( " ", lineIndent * indentSize ) ); ++ } ++ else ++ { ++ buf.append( ' ' ); ++ } ++ } ++ ++ for ( int j = 0; j < token.length(); j++ ) ++ { ++ char c = token.charAt( j ); ++ if ( c == '\t' ) ++ { ++ buf.append( repeat( " ", indentSize - buf.length() % indentSize ) ); ++ } ++ else if ( c == '\u00A0' ) ++ { ++ buf.append( ' ' ); ++ } ++ else ++ { ++ buf.append( c ); ++ } ++ } ++ } ++ lines.add( buf.toString() ); ++ } ++ ++ /** ++ * Gets the indentation level of the specified line. ++ * ++ * @param line The line whose indentation level should be retrieved, must not be null. ++ * @return The indentation level of the line. ++ */ ++ private static int getIndentLevel( String line ) ++ { ++ int level = 0; ++ for ( int i = 0; i < line.length() && line.charAt( i ) == '\t'; i++ ) ++ { ++ level++; ++ } ++ for ( int i = level + 1; i <= level + 4 && i < line.length(); i++ ) ++ { ++ if ( line.charAt( i ) == '\t' ) ++ { ++ level++; ++ break; ++ } ++ } ++ return level; ++ } ++ ++ private String getPropertyFromExpression( String expression ) ++ { ++ if ( expression != null && expression.startsWith( "${" ) && expression.endsWith( "}" ) ++ && !expression.substring( 2 ).contains( "${" ) ) ++ { ++ // expression="${xxx}" -> property="xxx" ++ return expression.substring( 2, expression.length() - 1 ); ++ } ++ // no property can be extracted ++ return null; ++ } ++} +--- surefire-2.22.0/maven-surefire-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-surefire-plugin/plugin-help.xml 1970-01-01 01:00:00.000000000 +0100 ++++ surefire-2.22.0/maven-surefire-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-surefire-plugin/plugin-help.xml 2019-04-01 16:35:39.493479592 +0200 +@@ -0,0 +1,686 @@ ++ ++ ++ ${project.name} ++ ${project.description} ++ ${project.groupId} ++ ${project.artifactId} ++ ${project.version} ++ surefire ++ ++ ++ help ++ Display help information on maven-surefire-plugin. ++Call mvn surefire:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. ++ false ++ false ++ false ++ false ++ false ++ true ++ org.apache.maven.plugin.surefire.HelpMojo ++ java ++ per-lookup ++ once-per-session ++ true ++ ++ ++ detail ++ boolean ++ false ++ true ++ Display help information on maven-surefire-plugin. ++Call mvn surefire:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. ++ ++ ++ goal ++ java.lang.String ++ false ++ true ++ Display help information on maven-surefire-plugin. ++Call mvn surefire:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. ++ ++ ++ indentSize ++ int ++ false ++ true ++ Display help information on maven-surefire-plugin. ++Call mvn surefire:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. ++ ++ ++ lineLength ++ int ++ false ++ true ++ Display help information on maven-surefire-plugin. ++Call mvn surefire:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. ++ ++ ++ ++ ${detail} ++ ${goal} ++ ${indentSize} ++ ${lineLength} ++ ++ ++ ++ test ++ Run tests using Surefire. ++ test ++ false ++ true ++ false ++ false ++ false ++ true ++ test ++ org.apache.maven.plugin.surefire.SurefirePlugin ++ java ++ per-lookup ++ once-per-session ++ true ++ ++ ++ additionalClasspathElements ++ java.lang.String[] ++ 2.4 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ argLine ++ java.lang.String ++ 2.1 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ basedir ++ java.io.File ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ childDelegation ++ boolean ++ 2.1 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ classesDirectory ++ java.io.File ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ classpathDependencyExcludes ++ java.lang.String[] ++ 2.6 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ classpathDependencyScopeExclude ++ java.lang.String ++ 2.6 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ debugForkedProcess ++ java.lang.String ++ 2.4 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ dependenciesToScan ++ java.lang.String[] ++ 2.15 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ disableXmlReport ++ boolean ++ 2.2 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ enableAssertions ++ boolean ++ 2.3.1 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ encoding ++ java.lang.String ++ 3.0.0-M1 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ environmentVariables ++ java.util.Map ++ 2.1.3 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ excludedGroups ++ java.lang.String ++ 2.2 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ excludes ++ java.util.List ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ excludesFile ++ java.io.File ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ failIfNoSpecifiedTests ++ java.lang.Boolean ++ 2.12 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ failIfNoTests ++ java.lang.Boolean ++ 2.4 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ forkCount ++ java.lang.String ++ 2.14 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ forkedProcessExitTimeoutInSeconds ++ int ++ 2.20 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ forkedProcessTimeoutInSeconds ++ int ++ 2.4 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ forkMode ++ java.lang.String ++ 2.1 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ groups ++ java.lang.String ++ 2.2 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ includes ++ java.util.List ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ includesFile ++ java.io.File ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ junitArtifactName ++ java.lang.String ++ 2.3.1 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ junitPlatformArtifactName ++ java.lang.String ++ 2.22.0 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ jvm ++ java.lang.String ++ 2.1 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ objectFactory ++ java.lang.String ++ 2.5 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ parallel ++ java.lang.String ++ 2.2 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ parallelOptimized ++ boolean ++ 2.17 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ parallelTestsTimeoutForcedInSeconds ++ double ++ 2.16 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ parallelTestsTimeoutInSeconds ++ double ++ 2.16 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ perCoreThreadCount ++ boolean ++ 2.5 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ printSummary ++ boolean ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ properties ++ java.util.Properties ++ 2.4 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ redirectTestOutputToFile ++ boolean ++ 2.3 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ remoteRepositories ++ java.util.List ++ 2.2 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ reportFormat ++ java.lang.String ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ reportNameSuffix ++ java.lang.String ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ reportsDirectory ++ java.io.File ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ rerunFailingTestsCount ++ int ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ reuseForks ++ boolean ++ 2.13 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ runOrder ++ java.lang.String ++ 2.7 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ shutdown ++ java.lang.String ++ 2.19 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ skip ++ boolean ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ skipAfterFailureCount ++ int ++ 2.19 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ skipExec ++ boolean ++ 2.3 ++ Use skipTests instead. ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ skipTests ++ boolean ++ 2.4 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ suiteXmlFiles ++ java.io.File[] ++ 2.2 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ systemProperties ++ java.util.Properties ++ Use systemPropertyVariables instead. ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ systemPropertiesFile ++ java.io.File ++ 2.8.2 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ systemPropertyVariables ++ java.util.Map ++ 2.5 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ tempDir ++ java.lang.String ++ 2.20 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ test ++ java.lang.String ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ testClassesDirectory ++ java.io.File ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ testFailureIgnore ++ boolean ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ testNGArtifactName ++ java.lang.String ++ 2.3.1 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ testSourceDirectory ++ java.io.File ++ 2.2 ++ true ++ true ++ Run tests using Surefire. ++ ++ ++ threadCount ++ int ++ 2.2 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ threadCountClasses ++ int ++ 2.16 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ threadCountMethods ++ int ++ 2.16 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ threadCountSuites ++ int ++ 2.16 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ trimStackTrace ++ boolean ++ 2.2 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ useFile ++ boolean ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ useManifestOnlyJar ++ boolean ++ 2.4.3 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ useSystemClassLoader ++ boolean ++ 2.3 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ useUnlimitedThreads ++ boolean ++ 2.5 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ workingDirectory ++ java.io.File ++ 2.1.3 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ ++ ${maven.test.additionalClasspath} ++ ${argLine} ++ ++ ${childDelegation} ++ ++ ${maven.test.dependency.excludes} ++ ${maven.surefire.debug} ++ ${dependenciesToScan} ++ ${disableXmlReport} ++ ${enableAssertions} ++ ${surefire.encoding} ++ ${excludedGroups} ++ ${surefire.excludesFile} ++ ${surefire.failIfNoSpecifiedTests} ++ ${failIfNoTests} ++ ${forkCount} ++ ${surefire.exitTimeout} ++ ${surefire.timeout} ++ ${forkMode} ++ ${groups} ++ ${surefire.includesFile} ++ ${junitArtifactName} ++ ${junitPlatformArtifactName} ++ ${jvm} ++ ${objectFactory} ++ ${parallel} ++ ${parallelOptimized} ++ ${surefire.parallel.forcedTimeout} ++ ${surefire.parallel.timeout} ++ ${perCoreThreadCount} ++ ${surefire.printSummary} ++ ${maven.test.redirectTestOutputToFile} ++ ++ ${surefire.reportFormat} ++ ${surefire.reportNameSuffix} ++ ++ ${surefire.rerunFailingTestsCount} ++ ${reuseForks} ++ ${surefire.runOrder} ++ ${surefire.shutdown} ++ ${maven.test.skip} ++ ${surefire.skipAfterFailureCount} ++ ${maven.test.skip.exec} ++ ${skipTests} ++ ${surefire.suiteXmlFiles} ++ ${tempDir} ++ ${test} ++ ++ ${maven.test.failure.ignore} ++ ${testNGArtifactName} ++ ++ ${threadCount} ++ ${threadCountClasses} ++ ${threadCountMethods} ++ ${threadCountSuites} ++ ${trimStackTrace} ++ ${surefire.useFile} ++ ${surefire.useManifestOnlyJar} ++ ${surefire.useSystemClassLoader} ++ ${useUnlimitedThreads} ++ ${basedir} ++ ++ ++ ++ +--- surefire-2.22.0/maven-surefire-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml 1970-01-01 01:00:00.000000000 +0100 ++++ surefire-2.22.0/maven-surefire-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml 2019-04-01 16:35:39.493479592 +0200 +@@ -0,0 +1,1060 @@ ++ ++ ++ ${project.name} ++ ${project.description} ++ ${project.groupId} ++ ${project.artifactId} ++ ${project.version} ++ surefire ++ false ++ true ++ ++ ++ help ++ Display help information on maven-surefire-plugin.<br> ++Call <code>mvn surefire:help -Ddetail=true -Dgoal=&lt;goal-name&gt;</code> to display parameter details. ++ false ++ false ++ false ++ false ++ false ++ true ++ org.apache.maven.plugin.surefire.HelpMojo ++ java ++ per-lookup ++ once-per-session ++ true ++ ++ ++ detail ++ boolean ++ false ++ true ++ Display help information on maven-surefire-plugin.<br> ++Call <code>mvn surefire:help -Ddetail=true -Dgoal=&lt;goal-name&gt;</code> to display parameter details. ++ ++ ++ goal ++ java.lang.String ++ false ++ true ++ Display help information on maven-surefire-plugin.<br> ++Call <code>mvn surefire:help -Ddetail=true -Dgoal=&lt;goal-name&gt;</code> to display parameter details. ++ ++ ++ indentSize ++ int ++ false ++ true ++ Display help information on maven-surefire-plugin.<br> ++Call <code>mvn surefire:help -Ddetail=true -Dgoal=&lt;goal-name&gt;</code> to display parameter details. ++ ++ ++ lineLength ++ int ++ false ++ true ++ Display help information on maven-surefire-plugin.<br> ++Call <code>mvn surefire:help -Ddetail=true -Dgoal=&lt;goal-name&gt;</code> to display parameter details. ++ ++ ++ ++ ${detail} ++ ${goal} ++ ${indentSize} ++ ${lineLength} ++ ++ ++ ++ test ++ Run tests using Surefire. ++ test ++ false ++ true ++ false ++ false ++ false ++ true ++ test ++ org.apache.maven.plugin.surefire.SurefirePlugin ++ java ++ per-lookup ++ once-per-session ++ true ++ ++ ++ additionalClasspathElements ++ java.lang.String[] ++ 2.4 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ argLine ++ java.lang.String ++ 2.1 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ basedir ++ java.io.File ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ childDelegation ++ boolean ++ 2.1 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ classesDirectory ++ java.io.File ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ classpathDependencyExcludes ++ java.lang.String[] ++ 2.6 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ classpathDependencyScopeExclude ++ java.lang.String ++ 2.6 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ debugForkedProcess ++ java.lang.String ++ 2.4 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ dependenciesToScan ++ java.lang.String[] ++ 2.15 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ disableXmlReport ++ boolean ++ 2.2 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ enableAssertions ++ boolean ++ 2.3.1 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ encoding ++ java.lang.String ++ 3.0.0-M1 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ environmentVariables ++ java.util.Map ++ 2.1.3 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ excludedGroups ++ java.lang.String ++ 2.2 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ excludes ++ java.util.List ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ excludesFile ++ java.io.File ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ failIfNoSpecifiedTests ++ java.lang.Boolean ++ 2.12 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ failIfNoTests ++ java.lang.Boolean ++ 2.4 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ forkCount ++ java.lang.String ++ 2.14 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ forkMode ++ java.lang.String ++ 2.1 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ forkedProcessExitTimeoutInSeconds ++ int ++ 2.20 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ forkedProcessTimeoutInSeconds ++ int ++ 2.4 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ groups ++ java.lang.String ++ 2.2 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ includes ++ java.util.List ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ includesFile ++ java.io.File ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ junitArtifactName ++ java.lang.String ++ 2.3.1 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ junitPlatformArtifactName ++ java.lang.String ++ 2.22.0 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ jvm ++ java.lang.String ++ 2.1 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ localRepository ++ org.apache.maven.artifact.repository.ArtifactRepository ++ true ++ false ++ Run tests using Surefire. ++ ++ ++ objectFactory ++ java.lang.String ++ 2.5 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ parallel ++ java.lang.String ++ 2.2 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ parallelMavenExecution ++ java.lang.Boolean ++ false ++ false ++ Run tests using Surefire. ++ ++ ++ parallelOptimized ++ boolean ++ 2.17 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ parallelTestsTimeoutForcedInSeconds ++ double ++ 2.16 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ parallelTestsTimeoutInSeconds ++ double ++ 2.16 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ perCoreThreadCount ++ boolean ++ 2.5 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ pluginArtifactMap ++ java.util.Map ++ true ++ false ++ Run tests using Surefire. ++ ++ ++ pluginDescriptor ++ org.apache.maven.plugin.descriptor.PluginDescriptor ++ 2.12 ++ false ++ false ++ Run tests using Surefire. ++ ++ ++ printSummary ++ boolean ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ projectArtifactMap ++ java.util.Map ++ true ++ false ++ Run tests using Surefire. ++ ++ ++ projectBuildDirectory ++ java.io.File ++ 2.20 ++ false ++ false ++ Run tests using Surefire. ++ ++ ++ properties ++ java.util.Properties ++ 2.4 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ redirectTestOutputToFile ++ boolean ++ 2.3 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ remoteRepositories ++ java.util.List ++ 2.2 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ reportFormat ++ java.lang.String ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ reportNameSuffix ++ java.lang.String ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ reportsDirectory ++ java.io.File ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ rerunFailingTestsCount ++ int ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ reuseForks ++ boolean ++ 2.13 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ runOrder ++ java.lang.String ++ 2.7 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ shutdown ++ java.lang.String ++ 2.19 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ skip ++ boolean ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ skipAfterFailureCount ++ int ++ 2.19 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ skipExec ++ boolean ++ 2.3 ++ Use skipTests instead. ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ skipTests ++ boolean ++ 2.4 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ suiteXmlFiles ++ java.io.File[] ++ 2.2 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ systemProperties ++ java.util.Properties ++ Use systemPropertyVariables instead. ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ systemPropertiesFile ++ java.io.File ++ 2.8.2 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ systemPropertyVariables ++ java.util.Map ++ 2.5 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ tempDir ++ java.lang.String ++ 2.20 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ test ++ java.lang.String ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ testClassesDirectory ++ java.io.File ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ testFailureIgnore ++ boolean ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ testNGArtifactName ++ java.lang.String ++ 2.3.1 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ testSourceDirectory ++ java.io.File ++ 2.2 ++ true ++ true ++ Run tests using Surefire. ++ ++ ++ threadCount ++ int ++ 2.2 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ threadCountClasses ++ int ++ 2.16 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ threadCountMethods ++ int ++ 2.16 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ threadCountSuites ++ int ++ 2.16 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ trimStackTrace ++ boolean ++ 2.2 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ useFile ++ boolean ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ useManifestOnlyJar ++ boolean ++ 2.4.3 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ useSystemClassLoader ++ boolean ++ 2.3 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ useUnlimitedThreads ++ boolean ++ 2.5 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ workingDirectory ++ java.io.File ++ 2.1.3 ++ false ++ true ++ Run tests using Surefire. ++ ++ ++ project ++ org.apache.maven.project.MavenProject ++ true ++ false ++ ++ ++ ++ session ++ org.apache.maven.execution.MavenSession ++ true ++ false ++ ++ ++ ++ ++ ${maven.test.additionalClasspath} ++ ${argLine} ++ ++ ${childDelegation} ++ ++ ${maven.test.dependency.excludes} ++ ${maven.surefire.debug} ++ ${dependenciesToScan} ++ ${disableXmlReport} ++ ${enableAssertions} ++ ${surefire.encoding} ++ ${excludedGroups} ++ ${surefire.excludesFile} ++ ${surefire.failIfNoSpecifiedTests} ++ ${failIfNoTests} ++ ${forkCount} ++ ${forkMode} ++ ${surefire.exitTimeout} ++ ${surefire.timeout} ++ ${groups} ++ ${surefire.includesFile} ++ ${junitArtifactName} ++ ${junitPlatformArtifactName} ++ ${jvm} ++ ++ ${objectFactory} ++ ${parallel} ++ ++ ${parallelOptimized} ++ ${surefire.parallel.forcedTimeout} ++ ${surefire.parallel.timeout} ++ ${perCoreThreadCount} ++ ${plugin.artifactMap} ++ ++ ${surefire.printSummary} ++ ${project.artifactMap} ++ ++ ${maven.test.redirectTestOutputToFile} ++ ++ ${surefire.reportFormat} ++ ${surefire.reportNameSuffix} ++ ++ ${surefire.rerunFailingTestsCount} ++ ${reuseForks} ++ ${surefire.runOrder} ++ ${surefire.shutdown} ++ ${maven.test.skip} ++ ${surefire.skipAfterFailureCount} ++ ${maven.test.skip.exec} ++ ${skipTests} ++ ${surefire.suiteXmlFiles} ++ ${tempDir} ++ ${test} ++ ++ ${maven.test.failure.ignore} ++ ${testNGArtifactName} ++ ++ ${threadCount} ++ ${threadCountClasses} ++ ${threadCountMethods} ++ ${threadCountSuites} ++ ${trimStackTrace} ++ ${surefire.useFile} ++ ${surefire.useManifestOnlyJar} ++ ${surefire.useSystemClassLoader} ++ ${useUnlimitedThreads} ++ ${basedir} ++ ++ ++ ++ ++ ++ org.apache.maven.artifact.factory.ArtifactFactory ++ artifactFactory ++ ++ ++ org.apache.maven.artifact.resolver.ArtifactResolver ++ artifactResolver ++ ++ ++ org.codehaus.plexus.logging.Logger ++ logger ++ ++ ++ org.apache.maven.artifact.metadata.ArtifactMetadataSource ++ metadataSource ++ ++ ++ org.apache.maven.toolchain.ToolchainManager ++ toolchainManager ++ ++ ++ ++ ++ ++ ++ org.apache.maven.surefire ++ maven-surefire-common ++ jar ++ 2.22.0 ++ ++ ++ org.apache.maven ++ maven-plugin-api ++ jar ++ 3.3.3 ++ ++ ++ org.codehaus.plexus ++ plexus-classworlds ++ jar ++ 2.5.2 ++ ++ ++ org.codehaus.plexus ++ plexus-utils ++ jar ++ 3.1.0 ++ ++ ++ org.eclipse.sisu ++ org.eclipse.sisu.plexus ++ jar ++ 0.3.3 ++ ++ ++ org.apache.maven.plugin-tools ++ maven-plugin-annotations ++ jar ++ 3.5 ++ ++ ++ org.apache.maven ++ maven-compat ++ jar ++ any ++ ++ ++ org.codehaus.plexus ++ plexus-interpolation ++ jar ++ 1.24 ++ ++ ++ org.apache.maven.wagon ++ wagon-provider-api ++ jar ++ 3.1.0 ++ ++ ++ org.apache.maven.surefire ++ surefire-api ++ jar ++ 2.22.0 ++ ++ ++ org.apache.maven.surefire ++ surefire-logger-api ++ jar ++ 2.22.0 ++ ++ ++ org.apache.maven.surefire ++ surefire-booter ++ jar ++ 2.22.0 ++ ++ ++ org.apache.maven.shared ++ maven-shared-utils ++ jar ++ 3.2.1 ++ ++ ++ org.apache.maven ++ maven-artifact ++ jar ++ 3.3.3 ++ ++ ++ commons-io ++ commons-io ++ jar ++ 2.5 ++ ++ ++ org.apache.maven ++ maven-model ++ jar ++ 3.3.3 ++ ++ ++ org.apache.maven ++ maven-core ++ jar ++ 3.3.3 ++ ++ ++ org.apache.maven ++ maven-settings ++ jar ++ 3.3.3 ++ ++ ++ org.apache.maven.resolver ++ maven-resolver-util ++ jar ++ 1.1.1 ++ ++ ++ org.eclipse.sisu ++ org.eclipse.sisu.inject ++ jar ++ 0.3.3 ++ ++ ++ javax.enterprise ++ cdi-api ++ jar ++ 1.1 ++ ++ ++ javax.el ++ javax.el-api ++ jar ++ 3.0.0 ++ ++ ++ org.jboss.spec.javax.interceptor ++ jboss-interceptors-api_1.2_spec ++ jar ++ any ++ ++ ++ com.google.guava ++ guava ++ jar ++ 20.0 ++ ++ ++ com.google.inject ++ guice ++ jar ++ 4.2.0 ++ ++ ++ aopalliance ++ aopalliance ++ jar ++ 1.0 ++ ++ ++ cglib ++ cglib ++ jar ++ 3.2.0 ++ ++ ++ org.apache.maven ++ maven-resolver-provider ++ jar ++ 3.5.4 ++ ++ ++ org.apache.maven.resolver ++ maven-resolver-api ++ jar ++ 1.1.1 ++ ++ ++ javax.inject ++ javax.inject ++ jar ++ 1 ++ ++ ++ org.apache.maven.resolver ++ maven-resolver-impl ++ jar ++ 1.1.1 ++ ++ ++ org.slf4j ++ slf4j-api ++ jar ++ 1.7.25 ++ ++ ++ org.apache.maven ++ maven-repository-metadata ++ jar ++ 3.5.4 ++ ++ ++ org.apache.maven.resolver ++ maven-resolver-spi ++ jar ++ 1.1.1 ++ ++ ++ org.codehaus.plexus ++ plexus-component-annotations ++ jar ++ 1.5.5 ++ ++ ++ org.apache.maven ++ maven-model-builder ++ jar ++ 3.5.4 ++ ++ ++ org.apache.maven ++ maven-builder-support ++ jar ++ 3.5.4 ++ ++ ++ org.apache.maven ++ maven-settings-builder ++ jar ++ 3.5.4 ++ ++ ++ org.sonatype.plexus ++ plexus-sec-dispatcher ++ jar ++ 1.4 ++ ++ ++ org.sonatype.plexus ++ plexus-cipher ++ jar ++ 1.4 ++ ++ ++ junit ++ junit ++ jar ++ 4.12 ++ ++ ++ org.hamcrest ++ hamcrest-core ++ jar ++ 1.3 ++ ++ ++ org.apache.commons ++ commons-lang3 ++ jar ++ 3.5 ++ ++ ++ org.apache.maven.shared ++ maven-common-artifact-filters ++ jar ++ 1.3 ++ ++ ++ org.codehaus.plexus ++ plexus-java ++ jar ++ 0.9.8 ++ ++ ++ org.ow2.asm ++ asm ++ jar ++ 6.2 ++ ++ ++ com.thoughtworks.qdox ++ qdox ++ jar ++ 2.0-M8 ++ ++ ++ +--- surefire-2.22.0/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/HelpMojo.java 1970-01-01 01:00:00.000000000 +0100 ++++ surefire-2.22.0/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/HelpMojo.java 2019-04-01 16:37:53.006154740 +0200 +@@ -0,0 +1,458 @@ ++ ++package org.apache.maven.plugin.surefire; ++ ++import org.apache.maven.plugin.AbstractMojo; ++import org.apache.maven.plugin.MojoExecutionException; ++import org.apache.maven.plugins.annotations.Mojo; ++import org.apache.maven.plugins.annotations.Parameter; ++ ++import org.w3c.dom.Document; ++import org.w3c.dom.Element; ++import org.w3c.dom.Node; ++import org.w3c.dom.NodeList; ++import org.xml.sax.SAXException; ++ ++import javax.xml.parsers.DocumentBuilder; ++import javax.xml.parsers.DocumentBuilderFactory; ++import javax.xml.parsers.ParserConfigurationException; ++import java.io.IOException; ++import java.io.InputStream; ++import java.util.ArrayList; ++import java.util.List; ++ ++/** ++ * Display help information on maven-surefire-plugin.
++ * Call mvn surefire:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. ++ * @author maven-plugin-tools ++ */ ++@Mojo( name = "help", requiresProject = false, threadSafe = true ) ++public class HelpMojo ++ extends AbstractMojo ++{ ++ /** ++ * If true, display all settable properties for each goal. ++ * ++ */ ++ @Parameter( property = "detail", defaultValue = "false" ) ++ private boolean detail; ++ ++ /** ++ * The name of the goal for which to show help. If unspecified, all goals will be displayed. ++ * ++ */ ++ @Parameter( property = "goal" ) ++ private java.lang.String goal; ++ ++ /** ++ * The maximum length of a display line, should be positive. ++ * ++ */ ++ @Parameter( property = "lineLength", defaultValue = "80" ) ++ private int lineLength; ++ ++ /** ++ * The number of spaces per indentation level, should be positive. ++ * ++ */ ++ @Parameter( property = "indentSize", defaultValue = "2" ) ++ private int indentSize; ++ ++ // groupId/artifactId/plugin-help.xml ++ private static final String PLUGIN_HELP_PATH = ++ "/META-INF/maven/org.apache.maven.plugins/maven-surefire-plugin/plugin-help.xml"; ++ ++ private static final int DEFAULT_LINE_LENGTH = 80; ++ ++ private Document build() ++ throws MojoExecutionException ++ { ++ getLog().debug( "load plugin-help.xml: " + PLUGIN_HELP_PATH ); ++ InputStream is = null; ++ try ++ { ++ is = getClass().getResourceAsStream( PLUGIN_HELP_PATH ); ++ DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); ++ DocumentBuilder dBuilder = dbFactory.newDocumentBuilder(); ++ return dBuilder.parse( is ); ++ } ++ catch ( IOException e ) ++ { ++ throw new MojoExecutionException( e.getMessage(), e ); ++ } ++ catch ( ParserConfigurationException e ) ++ { ++ throw new MojoExecutionException( e.getMessage(), e ); ++ } ++ catch ( SAXException e ) ++ { ++ throw new MojoExecutionException( e.getMessage(), e ); ++ } ++ finally ++ { ++ if ( is != null ) ++ { ++ try ++ { ++ is.close(); ++ } ++ catch ( IOException e ) ++ { ++ throw new MojoExecutionException( e.getMessage(), e ); ++ } ++ } ++ } ++ } ++ ++ /** ++ * {@inheritDoc} ++ */ ++ public void execute() ++ throws MojoExecutionException ++ { ++ if ( lineLength <= 0 ) ++ { ++ getLog().warn( "The parameter 'lineLength' should be positive, using '80' as default." ); ++ lineLength = DEFAULT_LINE_LENGTH; ++ } ++ if ( indentSize <= 0 ) ++ { ++ getLog().warn( "The parameter 'indentSize' should be positive, using '2' as default." ); ++ indentSize = 2; ++ } ++ ++ Document doc = build(); ++ ++ StringBuilder sb = new StringBuilder(); ++ Node plugin = getSingleChild( doc, "plugin" ); ++ ++ ++ String name = getValue( plugin, "name" ); ++ String version = getValue( plugin, "version" ); ++ String id = getValue( plugin, "groupId" ) + ":" + getValue( plugin, "artifactId" ) + ":" + version; ++ if ( isNotEmpty( name ) && !name.contains( id ) ) ++ { ++ append( sb, name + " " + version, 0 ); ++ } ++ else ++ { ++ if ( isNotEmpty( name ) ) ++ { ++ append( sb, name, 0 ); ++ } ++ else ++ { ++ append( sb, id, 0 ); ++ } ++ } ++ append( sb, getValue( plugin, "description" ), 1 ); ++ append( sb, "", 0 ); ++ ++ //plugin ++ String goalPrefix = getValue( plugin, "goalPrefix" ); ++ ++ Node mojos1 = getSingleChild( plugin, "mojos" ); ++ ++ List mojos = findNamedChild( mojos1, "mojo" ); ++ ++ if ( goal == null || goal.length() <= 0 ) ++ { ++ append( sb, "This plugin has " + mojos.size() + ( mojos.size() > 1 ? " goals:" : " goal:" ), 0 ); ++ append( sb, "", 0 ); ++ } ++ ++ for ( Node mojo : mojos ) ++ { ++ writeGoal( sb, goalPrefix, (Element) mojo ); ++ } ++ ++ if ( getLog().isInfoEnabled() ) ++ { ++ getLog().info( sb.toString() ); ++ } ++ } ++ ++ ++ private static boolean isNotEmpty( String string ) ++ { ++ return string != null && string.length() > 0; ++ } ++ ++ private String getValue( Node node, String elementName ) ++ throws MojoExecutionException ++ { ++ return getSingleChild( node, elementName ).getTextContent(); ++ } ++ ++ private Node getSingleChild( Node node, String elementName ) ++ throws MojoExecutionException ++ { ++ List namedChild = findNamedChild( node, elementName ); ++ if ( namedChild.isEmpty() ) ++ { ++ throw new MojoExecutionException( "Could not find " + elementName + " in plugin-help.xml" ); ++ } ++ if ( namedChild.size() > 1 ) ++ { ++ throw new MojoExecutionException( "Multiple " + elementName + " in plugin-help.xml" ); ++ } ++ return namedChild.get( 0 ); ++ } ++ ++ private List findNamedChild( Node node, String elementName ) ++ { ++ List result = new ArrayList(); ++ NodeList childNodes = node.getChildNodes(); ++ for ( int i = 0; i < childNodes.getLength(); i++ ) ++ { ++ Node item = childNodes.item( i ); ++ if ( elementName.equals( item.getNodeName() ) ) ++ { ++ result.add( item ); ++ } ++ } ++ return result; ++ } ++ ++ private Node findSingleChild( Node node, String elementName ) ++ throws MojoExecutionException ++ { ++ List elementsByTagName = findNamedChild( node, elementName ); ++ if ( elementsByTagName.isEmpty() ) ++ { ++ return null; ++ } ++ if ( elementsByTagName.size() > 1 ) ++ { ++ throw new MojoExecutionException( "Multiple " + elementName + "in plugin-help.xml" ); ++ } ++ return elementsByTagName.get( 0 ); ++ } ++ ++ private void writeGoal( StringBuilder sb, String goalPrefix, Element mojo ) ++ throws MojoExecutionException ++ { ++ String mojoGoal = getValue( mojo, "goal" ); ++ Node configurationElement = findSingleChild( mojo, "configuration" ); ++ Node description = findSingleChild( mojo, "description" ); ++ if ( goal == null || goal.length() <= 0 || mojoGoal.equals( goal ) ) ++ { ++ append( sb, goalPrefix + ":" + mojoGoal, 0 ); ++ Node deprecated = findSingleChild( mojo, "deprecated" ); ++ if ( ( deprecated != null ) && isNotEmpty( deprecated.getTextContent() ) ) ++ { ++ append( sb, "Deprecated. " + deprecated.getTextContent(), 1 ); ++ if ( detail && description != null ) ++ { ++ append( sb, "", 0 ); ++ append( sb, description.getTextContent(), 1 ); ++ } ++ } ++ else if ( description != null ) ++ { ++ append( sb, description.getTextContent(), 1 ); ++ } ++ append( sb, "", 0 ); ++ ++ if ( detail ) ++ { ++ Node parametersNode = getSingleChild( mojo, "parameters" ); ++ List parameters = findNamedChild( parametersNode, "parameter" ); ++ append( sb, "Available parameters:", 1 ); ++ append( sb, "", 0 ); ++ ++ for ( Node parameter : parameters ) ++ { ++ writeParameter( sb, parameter, configurationElement ); ++ } ++ } ++ } ++ } ++ ++ private void writeParameter( StringBuilder sb, Node parameter, Node configurationElement ) ++ throws MojoExecutionException ++ { ++ String parameterName = getValue( parameter, "name" ); ++ String parameterDescription = getValue( parameter, "description" ); ++ ++ Element fieldConfigurationElement = null; ++ if ( configurationElement != null ) ++ { ++ fieldConfigurationElement = (Element) findSingleChild( configurationElement, parameterName ); ++ } ++ ++ String parameterDefaultValue = ""; ++ if ( fieldConfigurationElement != null && fieldConfigurationElement.hasAttribute( "default-value" ) ) ++ { ++ parameterDefaultValue = " (Default: " + fieldConfigurationElement.getAttribute( "default-value" ) + ")"; ++ } ++ append( sb, parameterName + parameterDefaultValue, 2 ); ++ Node deprecated = findSingleChild( parameter, "deprecated" ); ++ if ( ( deprecated != null ) && isNotEmpty( deprecated.getTextContent() ) ) ++ { ++ append( sb, "Deprecated. " + deprecated.getTextContent(), 3 ); ++ append( sb, "", 0 ); ++ } ++ append( sb, parameterDescription, 3 ); ++ if ( "true".equals( getValue( parameter, "required" ) ) ) ++ { ++ append( sb, "Required: Yes", 3 ); ++ } ++ if ( ( fieldConfigurationElement != null ) && isNotEmpty( fieldConfigurationElement.getTextContent() ) ) ++ { ++ String property = getPropertyFromExpression( fieldConfigurationElement.getTextContent() ); ++ append( sb, "User property: " + property, 3 ); ++ } ++ ++ append( sb, "", 0 ); ++ } ++ ++ /** ++ *

Repeat a String n times to form a new string.

++ * ++ * @param str String to repeat ++ * @param repeat number of times to repeat str ++ * @return String with repeated String ++ * @throws NegativeArraySizeException if repeat < 0 ++ * @throws NullPointerException if str is null ++ */ ++ private static String repeat( String str, int repeat ) ++ { ++ StringBuilder buffer = new StringBuilder( repeat * str.length() ); ++ ++ for ( int i = 0; i < repeat; i++ ) ++ { ++ buffer.append( str ); ++ } ++ ++ return buffer.toString(); ++ } ++ ++ /** ++ * Append a description to the buffer by respecting the indentSize and lineLength parameters. ++ * Note: The last character is always a new line. ++ * ++ * @param sb The buffer to append the description, not null. ++ * @param description The description, not null. ++ * @param indent The base indentation level of each line, must not be negative. ++ */ ++ private void append( StringBuilder sb, String description, int indent ) ++ { ++ for ( String line : toLines( description, indent, indentSize, lineLength ) ) ++ { ++ sb.append( line ).append( '\n' ); ++ } ++ } ++ ++ /** ++ * Splits the specified text into lines of convenient display length. ++ * ++ * @param text The text to split into lines, must not be null. ++ * @param indent The base indentation level of each line, must not be negative. ++ * @param indentSize The size of each indentation, must not be negative. ++ * @param lineLength The length of the line, must not be negative. ++ * @return The sequence of display lines, never null. ++ * @throws NegativeArraySizeException if indent < 0 ++ */ ++ private static List toLines( String text, int indent, int indentSize, int lineLength ) ++ { ++ List lines = new ArrayList(); ++ ++ String ind = repeat( "\t", indent ); ++ ++ String[] plainLines = text.split( "(\r\n)|(\r)|(\n)" ); ++ ++ for ( String plainLine : plainLines ) ++ { ++ toLines( lines, ind + plainLine, indentSize, lineLength ); ++ } ++ ++ return lines; ++ } ++ ++ /** ++ * Adds the specified line to the output sequence, performing line wrapping if necessary. ++ * ++ * @param lines The sequence of display lines, must not be null. ++ * @param line The line to add, must not be null. ++ * @param indentSize The size of each indentation, must not be negative. ++ * @param lineLength The length of the line, must not be negative. ++ */ ++ private static void toLines( List lines, String line, int indentSize, int lineLength ) ++ { ++ int lineIndent = getIndentLevel( line ); ++ StringBuilder buf = new StringBuilder( 256 ); ++ ++ String[] tokens = line.split( " +" ); ++ ++ for ( String token : tokens ) ++ { ++ if ( buf.length() > 0 ) ++ { ++ if ( buf.length() + token.length() >= lineLength ) ++ { ++ lines.add( buf.toString() ); ++ buf.setLength( 0 ); ++ buf.append( repeat( " ", lineIndent * indentSize ) ); ++ } ++ else ++ { ++ buf.append( ' ' ); ++ } ++ } ++ ++ for ( int j = 0; j < token.length(); j++ ) ++ { ++ char c = token.charAt( j ); ++ if ( c == '\t' ) ++ { ++ buf.append( repeat( " ", indentSize - buf.length() % indentSize ) ); ++ } ++ else if ( c == '\u00A0' ) ++ { ++ buf.append( ' ' ); ++ } ++ else ++ { ++ buf.append( c ); ++ } ++ } ++ } ++ lines.add( buf.toString() ); ++ } ++ ++ /** ++ * Gets the indentation level of the specified line. ++ * ++ * @param line The line whose indentation level should be retrieved, must not be null. ++ * @return The indentation level of the line. ++ */ ++ private static int getIndentLevel( String line ) ++ { ++ int level = 0; ++ for ( int i = 0; i < line.length() && line.charAt( i ) == '\t'; i++ ) ++ { ++ level++; ++ } ++ for ( int i = level + 1; i <= level + 4 && i < line.length(); i++ ) ++ { ++ if ( line.charAt( i ) == '\t' ) ++ { ++ level++; ++ break; ++ } ++ } ++ return level; ++ } ++ ++ private String getPropertyFromExpression( String expression ) ++ { ++ if ( expression != null && expression.startsWith( "${" ) && expression.endsWith( "}" ) ++ && !expression.substring( 2 ).contains( "${" ) ) ++ { ++ // expression="${xxx}" -> property="xxx" ++ return expression.substring( 2, expression.length() - 1 ); ++ } ++ // no property can be extracted ++ return null; ++ } ++} +--- surefire-2.22.0/maven-surefire-report-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-surefire-report-plugin/plugin-help.xml 1970-01-01 01:00:00.000000000 +0100 ++++ surefire-2.22.0/maven-surefire-report-plugin/src/main/filtered-resources/META-INF/maven/org.apache.maven.plugins/maven-surefire-report-plugin/plugin-help.xml 2019-04-01 16:35:39.497479614 +0200 +@@ -0,0 +1,398 @@ ++ ++ ++ ${project.name} ++ ${project.description} ++ ${project.groupId} ++ ${project.artifactId} ++ ${project.version} ++ surefire-report ++ ++ ++ failsafe-report-only ++ Creates a nicely formatted Failsafe Test Report in html format. This goal does not run the tests, it only builds the reports. See https://issues.apache.org/jira/browse/SUREFIRE-257 ++ false ++ true ++ false ++ false ++ false ++ true ++ org.apache.maven.plugins.surefire.report.FailsafeReportMojo ++ java ++ per-lookup ++ once-per-session ++ 2.10 ++ false ++ ++ ++ aggregate ++ boolean ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ alwaysGenerateFailsafeReport ++ boolean ++ 2.11 ++ false ++ true ++ Creates a nicely formatted Failsafe Test Report in html format. This goal does not run the tests, it only builds the reports. See https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ description ++ java.lang.String ++ 2.21.0 ++ false ++ true ++ Creates a nicely formatted Failsafe Test Report in html format. This goal does not run the tests, it only builds the reports. See https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ linkXRef ++ boolean ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ outputName ++ java.lang.String ++ true ++ true ++ Creates a nicely formatted Failsafe Test Report in html format. This goal does not run the tests, it only builds the reports. See https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ reportsDirectories ++ java.io.File[] ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ reportsDirectory ++ java.io.File ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ showSuccess ++ boolean ++ true ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ skipFailsafeReport ++ boolean ++ 2.11 ++ false ++ true ++ Creates a nicely formatted Failsafe Test Report in html format. This goal does not run the tests, it only builds the reports. See https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ title ++ java.lang.String ++ 2.21.0 ++ false ++ true ++ Creates a nicely formatted Failsafe Test Report in html format. This goal does not run the tests, it only builds the reports. See https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ xrefLocation ++ java.io.File ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ ++ ${aggregate} ++ ${alwaysGenerateFailsafeReport} ++ ${failsafe.report.description} ++ ${linkXRef} ++ ${outputName} ++ ${showSuccess} ++ ${skipFailsafeReport} ++ ${failsafe.report.title} ++ ++ ++ ++ ++ help ++ Display help information on maven-surefire-report-plugin. ++Call mvn surefire-report:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. ++ false ++ false ++ false ++ false ++ false ++ true ++ org.apache.maven.plugins.surefire.report.HelpMojo ++ java ++ per-lookup ++ once-per-session ++ true ++ ++ ++ detail ++ boolean ++ false ++ true ++ Display help information on maven-surefire-report-plugin. ++Call mvn surefire-report:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. ++ ++ ++ goal ++ java.lang.String ++ false ++ true ++ Display help information on maven-surefire-report-plugin. ++Call mvn surefire-report:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. ++ ++ ++ indentSize ++ int ++ false ++ true ++ Display help information on maven-surefire-report-plugin. ++Call mvn surefire-report:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. ++ ++ ++ lineLength ++ int ++ false ++ true ++ Display help information on maven-surefire-report-plugin. ++Call mvn surefire-report:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. ++ ++ ++ ++ ${detail} ++ ${goal} ++ ${indentSize} ++ ${lineLength} ++ ++ ++ ++ report ++ Creates a nicely formatted Surefire Test Report in html format. ++ false ++ true ++ false ++ false ++ false ++ false ++ test ++ surefire ++ org.apache.maven.plugins.surefire.report.SurefireReportMojo ++ java ++ per-lookup ++ once-per-session ++ false ++ ++ ++ aggregate ++ boolean ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ alwaysGenerateSurefireReport ++ boolean ++ 2.11 ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ description ++ java.lang.String ++ 2.21.0 ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ linkXRef ++ boolean ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ outputName ++ java.lang.String ++ true ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ reportsDirectories ++ java.io.File[] ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ reportsDirectory ++ java.io.File ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ showSuccess ++ boolean ++ true ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ skipSurefireReport ++ boolean ++ 2.11 ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ title ++ java.lang.String ++ 2.21.0 ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ xrefLocation ++ java.io.File ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ ++ ${aggregate} ++ ${alwaysGenerateSurefireReport} ++ ${surefire.report.description} ++ ${linkXRef} ++ ${outputName} ++ ${showSuccess} ++ ${skipSurefireReport} ++ ${surefire.report.title} ++ ++ ++ ++ ++ report-only ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ false ++ true ++ false ++ false ++ false ++ true ++ org.apache.maven.plugins.surefire.report.SurefireReportOnlyMojo ++ java ++ per-lookup ++ once-per-session ++ 2.3 ++ false ++ ++ ++ aggregate ++ boolean ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ alwaysGenerateSurefireReport ++ boolean ++ 2.11 ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ description ++ java.lang.String ++ 2.21.0 ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ linkXRef ++ boolean ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ outputName ++ java.lang.String ++ true ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ reportsDirectories ++ java.io.File[] ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ reportsDirectory ++ java.io.File ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ showSuccess ++ boolean ++ true ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ skipSurefireReport ++ boolean ++ 2.11 ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ title ++ java.lang.String ++ 2.21.0 ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ xrefLocation ++ java.io.File ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. This goal does not run the tests, it only builds the reports. This is a workaround for https://issues.apache.org/jira/browse/SUREFIRE-257 ++ ++ ++ ++ ${aggregate} ++ ${alwaysGenerateSurefireReport} ++ ${surefire.report.description} ++ ${linkXRef} ++ ${outputName} ++ ${showSuccess} ++ ${skipSurefireReport} ++ ${surefire.report.title} ++ ++ ++ ++ ++ +--- surefire-2.22.0/maven-surefire-report-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml 1970-01-01 01:00:00.000000000 +0100 ++++ surefire-2.22.0/maven-surefire-report-plugin/src/main/filtered-resources/META-INF/maven/plugin.xml 2019-04-01 16:35:39.497479614 +0200 +@@ -0,0 +1,1086 @@ ++ ++ ++ ${project.name} ++ ${project.description} ++ ${project.groupId} ++ ${project.artifactId} ++ ${project.version} ++ surefire-report ++ false ++ true ++ ++ ++ failsafe-report-only ++ Creates a nicely formatted Failsafe Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++See <a href="https://issues.apache.org/jira/browse/SUREFIRE-257"> ++ https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ false ++ true ++ false ++ false ++ false ++ true ++ org.apache.maven.plugins.surefire.report.FailsafeReportMojo ++ java ++ per-lookup ++ once-per-session ++ 2.10 ++ false ++ ++ ++ aggregate ++ boolean ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ alwaysGenerateFailsafeReport ++ boolean ++ 2.11 ++ false ++ true ++ Creates a nicely formatted Failsafe Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++See <a href="https://issues.apache.org/jira/browse/SUREFIRE-257"> ++ https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ description ++ java.lang.String ++ 2.21.0 ++ false ++ true ++ Creates a nicely formatted Failsafe Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++See <a href="https://issues.apache.org/jira/browse/SUREFIRE-257"> ++ https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ inputEncoding ++ java.lang.String ++ false ++ false ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ linkXRef ++ boolean ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ outputDirectory ++ java.io.File ++ true ++ false ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ outputEncoding ++ java.lang.String ++ false ++ false ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ outputName ++ java.lang.String ++ true ++ true ++ Creates a nicely formatted Failsafe Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++See <a href="https://issues.apache.org/jira/browse/SUREFIRE-257"> ++ https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ project ++ org.apache.maven.project.MavenProject ++ true ++ false ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ reactorProjects ++ java.util.List ++ false ++ false ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ reportsDirectories ++ java.io.File[] ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ reportsDirectory ++ java.io.File ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ showSuccess ++ boolean ++ true ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ skipFailsafeReport ++ boolean ++ 2.11 ++ false ++ true ++ Creates a nicely formatted Failsafe Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++See <a href="https://issues.apache.org/jira/browse/SUREFIRE-257"> ++ https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ title ++ java.lang.String ++ 2.21.0 ++ false ++ true ++ Creates a nicely formatted Failsafe Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++See <a href="https://issues.apache.org/jira/browse/SUREFIRE-257"> ++ https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ xrefLocation ++ java.io.File ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ ++ ${aggregate} ++ ${alwaysGenerateFailsafeReport} ++ ${failsafe.report.description} ++ ${encoding} ++ ${linkXRef} ++ ++ ${outputEncoding} ++ ${outputName} ++ ++ ++ ${showSuccess} ++ ${skipFailsafeReport} ++ ${failsafe.report.title} ++ ++ ++ ++ ++ org.apache.maven.doxia.siterenderer.Renderer ++ siteRenderer ++ ++ ++ ++ ++ help ++ Display help information on maven-surefire-report-plugin.<br> ++Call <code>mvn surefire-report:help -Ddetail=true -Dgoal=&lt;goal-name&gt;</code> to display parameter details. ++ false ++ false ++ false ++ false ++ false ++ true ++ org.apache.maven.plugins.surefire.report.HelpMojo ++ java ++ per-lookup ++ once-per-session ++ true ++ ++ ++ detail ++ boolean ++ false ++ true ++ Display help information on maven-surefire-report-plugin.<br> ++Call <code>mvn surefire-report:help -Ddetail=true -Dgoal=&lt;goal-name&gt;</code> to display parameter details. ++ ++ ++ goal ++ java.lang.String ++ false ++ true ++ Display help information on maven-surefire-report-plugin.<br> ++Call <code>mvn surefire-report:help -Ddetail=true -Dgoal=&lt;goal-name&gt;</code> to display parameter details. ++ ++ ++ indentSize ++ int ++ false ++ true ++ Display help information on maven-surefire-report-plugin.<br> ++Call <code>mvn surefire-report:help -Ddetail=true -Dgoal=&lt;goal-name&gt;</code> to display parameter details. ++ ++ ++ lineLength ++ int ++ false ++ true ++ Display help information on maven-surefire-report-plugin.<br> ++Call <code>mvn surefire-report:help -Ddetail=true -Dgoal=&lt;goal-name&gt;</code> to display parameter details. ++ ++ ++ ++ ${detail} ++ ${goal} ++ ${indentSize} ++ ${lineLength} ++ ++ ++ ++ report ++ Creates a nicely formatted Surefire Test Report in html format. ++ false ++ true ++ false ++ false ++ false ++ false ++ test ++ surefire ++ org.apache.maven.plugins.surefire.report.SurefireReportMojo ++ java ++ per-lookup ++ once-per-session ++ false ++ ++ ++ aggregate ++ boolean ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ alwaysGenerateSurefireReport ++ boolean ++ 2.11 ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ description ++ java.lang.String ++ 2.21.0 ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ inputEncoding ++ java.lang.String ++ false ++ false ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ linkXRef ++ boolean ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ outputDirectory ++ java.io.File ++ true ++ false ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ outputEncoding ++ java.lang.String ++ false ++ false ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ outputName ++ java.lang.String ++ true ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ project ++ org.apache.maven.project.MavenProject ++ true ++ false ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ reactorProjects ++ java.util.List ++ false ++ false ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ reportsDirectories ++ java.io.File[] ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ reportsDirectory ++ java.io.File ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ showSuccess ++ boolean ++ true ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ skipSurefireReport ++ boolean ++ 2.11 ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ title ++ java.lang.String ++ 2.21.0 ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ xrefLocation ++ java.io.File ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ ++ ${aggregate} ++ ${alwaysGenerateSurefireReport} ++ ${surefire.report.description} ++ ${encoding} ++ ${linkXRef} ++ ++ ${outputEncoding} ++ ${outputName} ++ ++ ++ ${showSuccess} ++ ${skipSurefireReport} ++ ${surefire.report.title} ++ ++ ++ ++ ++ org.apache.maven.doxia.siterenderer.Renderer ++ siteRenderer ++ ++ ++ ++ ++ report-only ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ false ++ true ++ false ++ false ++ false ++ true ++ org.apache.maven.plugins.surefire.report.SurefireReportOnlyMojo ++ java ++ per-lookup ++ once-per-session ++ 2.3 ++ false ++ ++ ++ aggregate ++ boolean ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ alwaysGenerateSurefireReport ++ boolean ++ 2.11 ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ description ++ java.lang.String ++ 2.21.0 ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ inputEncoding ++ java.lang.String ++ false ++ false ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ linkXRef ++ boolean ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ outputDirectory ++ java.io.File ++ true ++ false ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ outputEncoding ++ java.lang.String ++ false ++ false ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ outputName ++ java.lang.String ++ true ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ project ++ org.apache.maven.project.MavenProject ++ true ++ false ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ reactorProjects ++ java.util.List ++ false ++ false ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ reportsDirectories ++ java.io.File[] ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ reportsDirectory ++ java.io.File ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ showSuccess ++ boolean ++ true ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ skipSurefireReport ++ boolean ++ 2.11 ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ title ++ java.lang.String ++ 2.21.0 ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ xrefLocation ++ java.io.File ++ false ++ true ++ Creates a nicely formatted Surefire Test Report in html format. ++This goal does not run the tests, it only builds the reports. ++This is a workaround for ++<a href="https://issues.apache.org/jira/browse/SUREFIRE-257">https://issues.apache.org/jira/browse/SUREFIRE-257</a> ++ ++ ++ ++ ${aggregate} ++ ${alwaysGenerateSurefireReport} ++ ${surefire.report.description} ++ ${encoding} ++ ${linkXRef} ++ ++ ${outputEncoding} ++ ${outputName} ++ ++ ++ ${showSuccess} ++ ${skipSurefireReport} ++ ${surefire.report.title} ++ ++ ++ ++ ++ org.apache.maven.doxia.siterenderer.Renderer ++ siteRenderer ++ ++ ++ ++ ++ ++ ++ org.apache.maven ++ maven-model ++ jar ++ 3.3.3 ++ ++ ++ org.apache.commons ++ commons-lang3 ++ jar ++ 3.5 ++ ++ ++ org.apache.maven ++ maven-plugin-api ++ jar ++ 3.3.3 ++ ++ ++ org.codehaus.plexus ++ plexus-classworlds ++ jar ++ 2.5.2 ++ ++ ++ org.apache.maven ++ maven-artifact ++ jar ++ 3.3.3 ++ ++ ++ org.eclipse.sisu ++ org.eclipse.sisu.plexus ++ jar ++ 0.3.3 ++ ++ ++ org.eclipse.sisu ++ org.eclipse.sisu.inject ++ jar ++ 0.3.3 ++ ++ ++ javax.enterprise ++ cdi-api ++ jar ++ 1.1 ++ ++ ++ javax.el ++ javax.el-api ++ jar ++ 3.0.0 ++ ++ ++ org.jboss.spec.javax.interceptor ++ jboss-interceptors-api_1.2_spec ++ jar ++ any ++ ++ ++ org.apache.maven.plugin-tools ++ maven-plugin-annotations ++ jar ++ 3.5 ++ ++ ++ org.apache.maven ++ maven-compat ++ jar ++ any ++ ++ ++ org.apache.maven ++ maven-settings ++ jar ++ 3.3.3 ++ ++ ++ org.apache.maven ++ maven-model-builder ++ jar ++ 3.5.4 ++ ++ ++ org.apache.maven ++ maven-repository-metadata ++ jar ++ 3.5.4 ++ ++ ++ org.codehaus.plexus ++ plexus-interpolation ++ jar ++ 1.24 ++ ++ ++ org.apache.maven.wagon ++ wagon-provider-api ++ jar ++ 3.1.0 ++ ++ ++ org.apache.maven ++ maven-resolver-provider ++ jar ++ 3.5.4 ++ ++ ++ org.apache.maven.resolver ++ maven-resolver-api ++ jar ++ 1.1.1 ++ ++ ++ org.apache.maven.resolver ++ maven-resolver-util ++ jar ++ 1.1.1 ++ ++ ++ org.apache.maven.resolver ++ maven-resolver-impl ++ jar ++ 1.1.1 ++ ++ ++ org.slf4j ++ slf4j-api ++ jar ++ 1.7.25 ++ ++ ++ org.apache.maven ++ maven-settings-builder ++ jar ++ 3.5.4 ++ ++ ++ org.sonatype.plexus ++ plexus-sec-dispatcher ++ jar ++ 1.4 ++ ++ ++ org.sonatype.plexus ++ plexus-cipher ++ jar ++ 1.4 ++ ++ ++ junit ++ junit ++ jar ++ 4.12 ++ ++ ++ org.hamcrest ++ hamcrest-core ++ jar ++ 1.3 ++ ++ ++ org.apache.maven.surefire ++ surefire-report-parser ++ jar ++ 2.22.0 ++ ++ ++ org.apache.maven.surefire ++ surefire-logger-api ++ jar ++ 2.22.0 ++ ++ ++ org.apache.maven.reporting ++ maven-reporting-api ++ jar ++ 3.0 ++ ++ ++ org.apache.maven.reporting ++ maven-reporting-impl ++ jar ++ 2.4 ++ ++ ++ org.apache.maven.doxia ++ doxia-decoration-model ++ jar ++ 1.7.4 ++ ++ ++ org.apache.maven ++ maven-core ++ jar ++ 3.3.3 ++ ++ ++ com.google.guava ++ guava ++ jar ++ 20.0 ++ ++ ++ com.google.inject ++ guice ++ jar ++ 4.2.0 ++ ++ ++ aopalliance ++ aopalliance ++ jar ++ 1.0 ++ ++ ++ cglib ++ cglib ++ jar ++ 3.2.0 ++ ++ ++ javax.inject ++ javax.inject ++ jar ++ 1 ++ ++ ++ org.apache.maven.resolver ++ maven-resolver-spi ++ jar ++ 1.1.1 ++ ++ ++ org.apache.maven ++ maven-builder-support ++ jar ++ 3.5.4 ++ ++ ++ org.apache.maven.doxia ++ doxia-core ++ jar ++ 1.7 ++ ++ ++ xmlunit ++ xmlunit ++ jar ++ 1.5 ++ ++ ++ commons-lang ++ commons-lang ++ jar ++ 2.4 ++ ++ ++ org.apache.httpcomponents ++ httpclient ++ jar ++ 4.0.2 ++ ++ ++ commons-logging ++ commons-logging ++ jar ++ SYSTEM ++ ++ ++ commons-codec ++ commons-codec ++ jar ++ SYSTEM ++ ++ ++ org.apache.httpcomponents ++ httpcore ++ jar ++ 4.0.1 ++ ++ ++ org.apache.maven.shared ++ maven-shared-utils ++ jar ++ 3.2.1 ++ ++ ++ commons-io ++ commons-io ++ jar ++ 2.5 ++ ++ ++ org.apache.maven.doxia ++ doxia-sink-api ++ jar ++ 1.7 ++ ++ ++ org.apache.maven.doxia ++ doxia-site-renderer ++ jar ++ 1.6 ++ ++ ++ org.apache.maven.doxia ++ doxia-logging-api ++ jar ++ 1.7 ++ ++ ++ commons-collections ++ commons-collections ++ jar ++ 3.2.1 ++ ++ ++ org.codehaus.plexus ++ plexus-velocity ++ jar ++ 1.2 ++ ++ ++ org.codehaus.plexus ++ plexus-i18n ++ jar ++ 1.0-beta-7 ++ ++ ++ org.apache.maven.doxia ++ doxia-module-xhtml ++ jar ++ 1.7 ++ ++ ++ org.codehaus.plexus ++ plexus-container-default ++ jar ++ 1.0-alpha-30 ++ ++ ++ org.ow2.asm ++ asm-commons ++ jar ++ 5.0.3 ++ ++ ++ org.ow2.asm ++ asm-tree ++ jar ++ 6.2.1 ++ ++ ++ org.ow2.asm ++ asm-analysis ++ jar ++ 6.2.1 ++ ++ ++ org.ow2.asm ++ asm ++ jar ++ 5.0.3 ++ ++ ++ org.apache.xbean ++ xbean-reflect ++ jar ++ 3.7 ++ ++ ++ org.apache.velocity ++ velocity ++ jar ++ 1.7 ++ ++ ++ org.codehaus.plexus ++ plexus-component-annotations ++ jar ++ 1.5.5 ++ ++ ++ org.apache.maven.doxia ++ doxia-skin-model ++ jar ++ 1.7.5 ++ ++ ++ org.codehaus.plexus ++ plexus-utils ++ jar ++ 3.0.15 ++ ++ ++ +--- surefire-2.22.0/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/HelpMojo.java 1970-01-01 01:00:00.000000000 +0100 ++++ surefire-2.22.0/maven-surefire-report-plugin/src/main/java/org/apache/maven/plugins/surefire/report/HelpMojo.java 2019-04-01 16:38:38.246383508 +0200 +@@ -0,0 +1,458 @@ ++ ++package org.apache.maven.plugins.surefire.report; ++ ++import org.apache.maven.plugin.AbstractMojo; ++import org.apache.maven.plugin.MojoExecutionException; ++import org.apache.maven.plugins.annotations.Mojo; ++import org.apache.maven.plugins.annotations.Parameter; ++ ++import org.w3c.dom.Document; ++import org.w3c.dom.Element; ++import org.w3c.dom.Node; ++import org.w3c.dom.NodeList; ++import org.xml.sax.SAXException; ++ ++import javax.xml.parsers.DocumentBuilder; ++import javax.xml.parsers.DocumentBuilderFactory; ++import javax.xml.parsers.ParserConfigurationException; ++import java.io.IOException; ++import java.io.InputStream; ++import java.util.ArrayList; ++import java.util.List; ++ ++/** ++ * Display help information on maven-surefire-report-plugin.
++ * Call mvn surefire-report:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. ++ * @author maven-plugin-tools ++ */ ++@Mojo( name = "help", requiresProject = false, threadSafe = true ) ++public class HelpMojo ++ extends AbstractMojo ++{ ++ /** ++ * If true, display all settable properties for each goal. ++ * ++ */ ++ @Parameter( property = "detail", defaultValue = "false" ) ++ private boolean detail; ++ ++ /** ++ * The name of the goal for which to show help. If unspecified, all goals will be displayed. ++ * ++ */ ++ @Parameter( property = "goal" ) ++ private java.lang.String goal; ++ ++ /** ++ * The maximum length of a display line, should be positive. ++ * ++ */ ++ @Parameter( property = "lineLength", defaultValue = "80" ) ++ private int lineLength; ++ ++ /** ++ * The number of spaces per indentation level, should be positive. ++ * ++ */ ++ @Parameter( property = "indentSize", defaultValue = "2" ) ++ private int indentSize; ++ ++ // groupId/artifactId/plugin-help.xml ++ private static final String PLUGIN_HELP_PATH = ++ "/META-INF/maven/org.apache.maven.plugins/maven-surefire-report-plugin/plugin-help.xml"; ++ ++ private static final int DEFAULT_LINE_LENGTH = 80; ++ ++ private Document build() ++ throws MojoExecutionException ++ { ++ getLog().debug( "load plugin-help.xml: " + PLUGIN_HELP_PATH ); ++ InputStream is = null; ++ try ++ { ++ is = getClass().getResourceAsStream( PLUGIN_HELP_PATH ); ++ DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); ++ DocumentBuilder dBuilder = dbFactory.newDocumentBuilder(); ++ return dBuilder.parse( is ); ++ } ++ catch ( IOException e ) ++ { ++ throw new MojoExecutionException( e.getMessage(), e ); ++ } ++ catch ( ParserConfigurationException e ) ++ { ++ throw new MojoExecutionException( e.getMessage(), e ); ++ } ++ catch ( SAXException e ) ++ { ++ throw new MojoExecutionException( e.getMessage(), e ); ++ } ++ finally ++ { ++ if ( is != null ) ++ { ++ try ++ { ++ is.close(); ++ } ++ catch ( IOException e ) ++ { ++ throw new MojoExecutionException( e.getMessage(), e ); ++ } ++ } ++ } ++ } ++ ++ /** ++ * {@inheritDoc} ++ */ ++ public void execute() ++ throws MojoExecutionException ++ { ++ if ( lineLength <= 0 ) ++ { ++ getLog().warn( "The parameter 'lineLength' should be positive, using '80' as default." ); ++ lineLength = DEFAULT_LINE_LENGTH; ++ } ++ if ( indentSize <= 0 ) ++ { ++ getLog().warn( "The parameter 'indentSize' should be positive, using '2' as default." ); ++ indentSize = 2; ++ } ++ ++ Document doc = build(); ++ ++ StringBuilder sb = new StringBuilder(); ++ Node plugin = getSingleChild( doc, "plugin" ); ++ ++ ++ String name = getValue( plugin, "name" ); ++ String version = getValue( plugin, "version" ); ++ String id = getValue( plugin, "groupId" ) + ":" + getValue( plugin, "artifactId" ) + ":" + version; ++ if ( isNotEmpty( name ) && !name.contains( id ) ) ++ { ++ append( sb, name + " " + version, 0 ); ++ } ++ else ++ { ++ if ( isNotEmpty( name ) ) ++ { ++ append( sb, name, 0 ); ++ } ++ else ++ { ++ append( sb, id, 0 ); ++ } ++ } ++ append( sb, getValue( plugin, "description" ), 1 ); ++ append( sb, "", 0 ); ++ ++ //plugin ++ String goalPrefix = getValue( plugin, "goalPrefix" ); ++ ++ Node mojos1 = getSingleChild( plugin, "mojos" ); ++ ++ List mojos = findNamedChild( mojos1, "mojo" ); ++ ++ if ( goal == null || goal.length() <= 0 ) ++ { ++ append( sb, "This plugin has " + mojos.size() + ( mojos.size() > 1 ? " goals:" : " goal:" ), 0 ); ++ append( sb, "", 0 ); ++ } ++ ++ for ( Node mojo : mojos ) ++ { ++ writeGoal( sb, goalPrefix, (Element) mojo ); ++ } ++ ++ if ( getLog().isInfoEnabled() ) ++ { ++ getLog().info( sb.toString() ); ++ } ++ } ++ ++ ++ private static boolean isNotEmpty( String string ) ++ { ++ return string != null && string.length() > 0; ++ } ++ ++ private String getValue( Node node, String elementName ) ++ throws MojoExecutionException ++ { ++ return getSingleChild( node, elementName ).getTextContent(); ++ } ++ ++ private Node getSingleChild( Node node, String elementName ) ++ throws MojoExecutionException ++ { ++ List namedChild = findNamedChild( node, elementName ); ++ if ( namedChild.isEmpty() ) ++ { ++ throw new MojoExecutionException( "Could not find " + elementName + " in plugin-help.xml" ); ++ } ++ if ( namedChild.size() > 1 ) ++ { ++ throw new MojoExecutionException( "Multiple " + elementName + " in plugin-help.xml" ); ++ } ++ return namedChild.get( 0 ); ++ } ++ ++ private List findNamedChild( Node node, String elementName ) ++ { ++ List result = new ArrayList(); ++ NodeList childNodes = node.getChildNodes(); ++ for ( int i = 0; i < childNodes.getLength(); i++ ) ++ { ++ Node item = childNodes.item( i ); ++ if ( elementName.equals( item.getNodeName() ) ) ++ { ++ result.add( item ); ++ } ++ } ++ return result; ++ } ++ ++ private Node findSingleChild( Node node, String elementName ) ++ throws MojoExecutionException ++ { ++ List elementsByTagName = findNamedChild( node, elementName ); ++ if ( elementsByTagName.isEmpty() ) ++ { ++ return null; ++ } ++ if ( elementsByTagName.size() > 1 ) ++ { ++ throw new MojoExecutionException( "Multiple " + elementName + "in plugin-help.xml" ); ++ } ++ return elementsByTagName.get( 0 ); ++ } ++ ++ private void writeGoal( StringBuilder sb, String goalPrefix, Element mojo ) ++ throws MojoExecutionException ++ { ++ String mojoGoal = getValue( mojo, "goal" ); ++ Node configurationElement = findSingleChild( mojo, "configuration" ); ++ Node description = findSingleChild( mojo, "description" ); ++ if ( goal == null || goal.length() <= 0 || mojoGoal.equals( goal ) ) ++ { ++ append( sb, goalPrefix + ":" + mojoGoal, 0 ); ++ Node deprecated = findSingleChild( mojo, "deprecated" ); ++ if ( ( deprecated != null ) && isNotEmpty( deprecated.getTextContent() ) ) ++ { ++ append( sb, "Deprecated. " + deprecated.getTextContent(), 1 ); ++ if ( detail && description != null ) ++ { ++ append( sb, "", 0 ); ++ append( sb, description.getTextContent(), 1 ); ++ } ++ } ++ else if ( description != null ) ++ { ++ append( sb, description.getTextContent(), 1 ); ++ } ++ append( sb, "", 0 ); ++ ++ if ( detail ) ++ { ++ Node parametersNode = getSingleChild( mojo, "parameters" ); ++ List parameters = findNamedChild( parametersNode, "parameter" ); ++ append( sb, "Available parameters:", 1 ); ++ append( sb, "", 0 ); ++ ++ for ( Node parameter : parameters ) ++ { ++ writeParameter( sb, parameter, configurationElement ); ++ } ++ } ++ } ++ } ++ ++ private void writeParameter( StringBuilder sb, Node parameter, Node configurationElement ) ++ throws MojoExecutionException ++ { ++ String parameterName = getValue( parameter, "name" ); ++ String parameterDescription = getValue( parameter, "description" ); ++ ++ Element fieldConfigurationElement = null; ++ if ( configurationElement != null ) ++ { ++ fieldConfigurationElement = (Element) findSingleChild( configurationElement, parameterName ); ++ } ++ ++ String parameterDefaultValue = ""; ++ if ( fieldConfigurationElement != null && fieldConfigurationElement.hasAttribute( "default-value" ) ) ++ { ++ parameterDefaultValue = " (Default: " + fieldConfigurationElement.getAttribute( "default-value" ) + ")"; ++ } ++ append( sb, parameterName + parameterDefaultValue, 2 ); ++ Node deprecated = findSingleChild( parameter, "deprecated" ); ++ if ( ( deprecated != null ) && isNotEmpty( deprecated.getTextContent() ) ) ++ { ++ append( sb, "Deprecated. " + deprecated.getTextContent(), 3 ); ++ append( sb, "", 0 ); ++ } ++ append( sb, parameterDescription, 3 ); ++ if ( "true".equals( getValue( parameter, "required" ) ) ) ++ { ++ append( sb, "Required: Yes", 3 ); ++ } ++ if ( ( fieldConfigurationElement != null ) && isNotEmpty( fieldConfigurationElement.getTextContent() ) ) ++ { ++ String property = getPropertyFromExpression( fieldConfigurationElement.getTextContent() ); ++ append( sb, "User property: " + property, 3 ); ++ } ++ ++ append( sb, "", 0 ); ++ } ++ ++ /** ++ *

Repeat a String n times to form a new string.

++ * ++ * @param str String to repeat ++ * @param repeat number of times to repeat str ++ * @return String with repeated String ++ * @throws NegativeArraySizeException if repeat < 0 ++ * @throws NullPointerException if str is null ++ */ ++ private static String repeat( String str, int repeat ) ++ { ++ StringBuilder buffer = new StringBuilder( repeat * str.length() ); ++ ++ for ( int i = 0; i < repeat; i++ ) ++ { ++ buffer.append( str ); ++ } ++ ++ return buffer.toString(); ++ } ++ ++ /** ++ * Append a description to the buffer by respecting the indentSize and lineLength parameters. ++ * Note: The last character is always a new line. ++ * ++ * @param sb The buffer to append the description, not null. ++ * @param description The description, not null. ++ * @param indent The base indentation level of each line, must not be negative. ++ */ ++ private void append( StringBuilder sb, String description, int indent ) ++ { ++ for ( String line : toLines( description, indent, indentSize, lineLength ) ) ++ { ++ sb.append( line ).append( '\n' ); ++ } ++ } ++ ++ /** ++ * Splits the specified text into lines of convenient display length. ++ * ++ * @param text The text to split into lines, must not be null. ++ * @param indent The base indentation level of each line, must not be negative. ++ * @param indentSize The size of each indentation, must not be negative. ++ * @param lineLength The length of the line, must not be negative. ++ * @return The sequence of display lines, never null. ++ * @throws NegativeArraySizeException if indent < 0 ++ */ ++ private static List toLines( String text, int indent, int indentSize, int lineLength ) ++ { ++ List lines = new ArrayList(); ++ ++ String ind = repeat( "\t", indent ); ++ ++ String[] plainLines = text.split( "(\r\n)|(\r)|(\n)" ); ++ ++ for ( String plainLine : plainLines ) ++ { ++ toLines( lines, ind + plainLine, indentSize, lineLength ); ++ } ++ ++ return lines; ++ } ++ ++ /** ++ * Adds the specified line to the output sequence, performing line wrapping if necessary. ++ * ++ * @param lines The sequence of display lines, must not be null. ++ * @param line The line to add, must not be null. ++ * @param indentSize The size of each indentation, must not be negative. ++ * @param lineLength The length of the line, must not be negative. ++ */ ++ private static void toLines( List lines, String line, int indentSize, int lineLength ) ++ { ++ int lineIndent = getIndentLevel( line ); ++ StringBuilder buf = new StringBuilder( 256 ); ++ ++ String[] tokens = line.split( " +" ); ++ ++ for ( String token : tokens ) ++ { ++ if ( buf.length() > 0 ) ++ { ++ if ( buf.length() + token.length() >= lineLength ) ++ { ++ lines.add( buf.toString() ); ++ buf.setLength( 0 ); ++ buf.append( repeat( " ", lineIndent * indentSize ) ); ++ } ++ else ++ { ++ buf.append( ' ' ); ++ } ++ } ++ ++ for ( int j = 0; j < token.length(); j++ ) ++ { ++ char c = token.charAt( j ); ++ if ( c == '\t' ) ++ { ++ buf.append( repeat( " ", indentSize - buf.length() % indentSize ) ); ++ } ++ else if ( c == '\u00A0' ) ++ { ++ buf.append( ' ' ); ++ } ++ else ++ { ++ buf.append( c ); ++ } ++ } ++ } ++ lines.add( buf.toString() ); ++ } ++ ++ /** ++ * Gets the indentation level of the specified line. ++ * ++ * @param line The line whose indentation level should be retrieved, must not be null. ++ * @return The indentation level of the line. ++ */ ++ private static int getIndentLevel( String line ) ++ { ++ int level = 0; ++ for ( int i = 0; i < line.length() && line.charAt( i ) == '\t'; i++ ) ++ { ++ level++; ++ } ++ for ( int i = level + 1; i <= level + 4 && i < line.length(); i++ ) ++ { ++ if ( line.charAt( i ) == '\t' ) ++ { ++ level++; ++ break; ++ } ++ } ++ return level; ++ } ++ ++ private String getPropertyFromExpression( String expression ) ++ { ++ if ( expression != null && expression.startsWith( "${" ) && expression.endsWith( "}" ) ++ && !expression.substring( 2 ).contains( "${" ) ) ++ { ++ // expression="${xxx}" -> property="xxx" ++ return expression.substring( 2, expression.length() - 1 ); ++ } ++ // no property can be extracted ++ return null; ++ } ++} diff --git a/maven-surefire-build.tar.xz b/maven-surefire-build.tar.xz new file mode 100644 index 0000000..f7d8c69 --- /dev/null +++ b/maven-surefire-build.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3b72fc5689f053e54a6f1a61af232329730439e7b2bc394438d3febc2ad03eb0 +size 5604 diff --git a/maven-surefire-plugins.changes b/maven-surefire-plugins.changes new file mode 100644 index 0000000..b61a2a3 --- /dev/null +++ b/maven-surefire-plugins.changes @@ -0,0 +1,37 @@ +------------------------------------------------------------------- +Thu May 5 10:46:11 UTC 2022 - Fridrich Strba + +- Clean and simplify the spec file in order to be able to generate + the javadoc with either maven-javadoc-plugin or xmvn javadoc mojo + +------------------------------------------------------------------- +Wed Apr 27 13:52:13 UTC 2022 - Fridrich Strba + +- Modified patches: + * 0004-Port-to-current-maven-shared-utils.patch + + Add some try/catch blocks so that we catch new exceptions + potentially thrown by maven-shared-utils-3.3.x + * 0003-Port-to-TestNG-6.11.patch -> 0003-Port-to-TestNG-7.4.0.patch + + Allow building with the new testng 7.4.0 + +------------------------------------------------------------------- +Tue Mar 22 13:53:34 UTC 2022 - Fridrich Strba + +- Build with source and target level 8 + +------------------------------------------------------------------- +Mon Apr 19 16:59:36 UTC 2021 - Pedro Monreal + +- Update generate-tarball.sh to use https URL [bsc#1182708] + +------------------------------------------------------------------- +Sun Nov 24 17:49:18 UTC 2019 - Fridrich Strba + +- Specify maven.compiler.release to fix build with jdk9+ and newer + maven-javadoc-plugin + +------------------------------------------------------------------- +Wed Apr 3 09:30:18 UTC 2019 - Fridrich Strba + +- Initial packaging of the non-bootstrap versions of maven plugins + distributed with surefire 2.22.0 diff --git a/maven-surefire-plugins.spec b/maven-surefire-plugins.spec new file mode 100644 index 0000000..2cd52f6 --- /dev/null +++ b/maven-surefire-plugins.spec @@ -0,0 +1,195 @@ +# +# spec file +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global base_name maven-surefire +Name: %{base_name}-plugins +Version: 2.22.0 +Release: 0 +Summary: Test framework project +License: Apache-2.0 AND CPL-1.0 +Group: Development/Libraries/Java +URL: https://maven.apache.org/surefire/ +# ./generate-tarball.sh +Source0: %{base_name}-%{version}.tar.gz +# Remove bundled binaries which cannot be easily verified for licensing +Source1: generate-tarball.sh +Source2: http://junit.sourceforge.net/cpl-v10.html +Patch0: 0001-Maven-3.patch +Patch1: 0002-Port-to-current-doxia.patch +Patch2: 0003-Port-to-TestNG-7.4.0.patch +Patch3: 0004-Port-to-current-maven-shared-utils.patch +BuildRequires: fdupes +BuildRequires: java-devel >= 1.8 +BuildRequires: maven-local +BuildRequires: mvn(commons-io:commons-io) +BuildRequires: mvn(org.apache.commons:commons-lang3) +BuildRequires: mvn(org.apache.maven.doxia:doxia-site-renderer) +BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations) +BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin) +BuildRequires: mvn(org.apache.maven.reporting:maven-reporting-impl) +BuildRequires: mvn(org.apache.maven.shared:maven-shared-utils) +BuildRequires: mvn(org.apache.maven.surefire:maven-surefire-common) +BuildRequires: mvn(org.apache.maven.surefire:surefire-logger-api) +BuildRequires: mvn(org.apache.maven.surefire:surefire-report-parser) +BuildRequires: mvn(org.apache.maven:maven-model) +BuildRequires: mvn(org.apache.maven:maven-parent:pom:) +BuildRequires: mvn(org.apache.maven:maven-plugin-api) +BuildRequires: mvn(org.codehaus.plexus:plexus-utils) +BuildRequires: mvn(org.fusesource.jansi:jansi) +#!BuildRequires: maven-compiler-plugin-bootstrap +#!BuildRequires: maven-jar-plugin-bootstrap +#!BuildRequires: maven-javadoc-plugin-bootstrap +#!BuildRequires: maven-plugin-plugin-bootstrap +#!BuildRequires: maven-resources-plugin-bootstrap +#!BuildRequires: maven-surefire-plugin-bootstrap +BuildArch: noarch + +%description +Surefire is a test framework project. + +%package -n maven-surefire-plugin +Summary: Surefire plugin for maven +Group: Development/Libraries/Java + +%description -n maven-surefire-plugin +Maven surefire plugin for running tests via the surefire framework. + +%package -n maven-surefire-report-plugin +Summary: Surefire reports plugin for maven +Group: Development/Libraries/Java + +%description -n maven-surefire-report-plugin +Plugin for generating reports from surefire test runs. + +%package -n maven-failsafe-plugin +Summary: Maven plugin for running integration tests +Group: Development/Libraries/Java + +%description -n maven-failsafe-plugin +The Failsafe Plugin is designed to run integration tests while the +Surefire Plugins is designed to run unit. The name (failsafe) was +chosen both because it is a synonym of surefire and because it implies +that when it fails, it does so in a safe way. + +If you use the Surefire Plugin for running tests, then when you have a +test failure, the build will stop at the integration-test phase and +your integration test environment will not have been torn down +correctly. + +The Failsafe Plugin is used during the integration-test and verify +phases of the build lifecycle to execute the integration tests of an +application. The Failsafe Plugin will not fail the build during the +integration-test phase thus enabling the post-integration-test phase +to execute. + +%package javadoc +Summary: Javadoc for %{name} +Group: Development/Libraries/Java + +%description javadoc +Javadoc for %{name}. + +%prep +%setup -q -n surefire-%{version} +cp -p %{SOURCE2} . + +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 + +# Disable strict doclint +sed -i /-Xdoclint:all/d pom.xml + +%pom_remove_dep -r org.apache.maven.surefire:surefire-shadefire + +# Help plugin is needed only to evaluate effective Maven settings. +# For building RPM package default settings will suffice. +%pom_remove_plugin :maven-help-plugin surefire-setup-integration-tests + +# QA plugin useful only for upstream +%pom_remove_plugin -r :jacoco-maven-plugin + +# Not in Fedora +%pom_remove_plugin -r :animal-sniffer-maven-plugin +# Complains +%pom_remove_plugin -r :apache-rat-plugin +%pom_remove_plugin -r :maven-enforcer-plugin +# We don't need site-source +%pom_remove_plugin :maven-assembly-plugin maven-surefire-plugin +%pom_remove_dep -r ::::site-source + +%pom_xpath_set pom:mavenVersion 3.3.3 +%pom_remove_dep :maven-project maven-surefire-report-plugin +%pom_remove_dep :maven-project maven-surefire-common +%pom_remove_dep :maven-plugin-descriptor maven-surefire-common +%pom_remove_dep :maven-toolchain maven-surefire-common + +%pom_xpath_remove -r "pom:execution[pom:id='shared-logging-generated-sources']" + +%pom_add_dep com.google.code.findbugs:jsr305 surefire-api + +%pom_remove_plugin -r :maven-shade-plugin +%pom_remove_plugin -r :build-helper-maven-plugin +find . -name dependency-reduced-pom.xml -delete + +%pom_add_dep org.apache.commons:commons-lang3::runtime maven-surefire-plugin +%pom_add_dep commons-io:commons-io::runtime maven-surefire-plugin + +# Disable all modules besides the 3 plugins +for module in \ + surefire-logger-api \ + surefire-api \ + surefire-shadefire \ + surefire-booter \ + surefire-grouper \ + surefire-providers \ + maven-surefire-common \ + surefire-report-parser \ + surefire-setup-integration-tests \ + surefire-its; do + %pom_disable_module ${module} +done + +%build +%{mvn_package} ":*tests*" __noinstall +%{mvn_package} ":{surefire,surefire-providers}" __noinstall +%{mvn_package} ":*{surefire-plugin,report-plugin}*" @1 +%{mvn_package} ":*junit-platform*" junit5 +%{mvn_package} ":*{junit,testng,failsafe-plugin,report-parser}*" @1 + +%{mvn_build} -f -- \ +%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0} + -Dmaven.compiler.release=8 \ +%endif + -Dsource=8 + +%install +%mvn_install +%fdupes -s %{buildroot}%{_javadocdir} + +%files -n maven-surefire-plugin -f .mfiles-surefire-plugin + +%files -n maven-surefire-report-plugin -f .mfiles-report-plugin + +%files -n maven-failsafe-plugin -f .mfiles-failsafe-plugin + +%files javadoc -f .mfiles-javadoc +%license LICENSE NOTICE cpl-v10.html + +%changelog diff --git a/maven-surefire-provider-junit5.changes b/maven-surefire-provider-junit5.changes new file mode 100644 index 0000000..7c6da5f --- /dev/null +++ b/maven-surefire-provider-junit5.changes @@ -0,0 +1,30 @@ +------------------------------------------------------------------- +Wed Apr 27 13:52:13 UTC 2022 - Fridrich Strba + +- Modified patches: + * 0004-Port-to-current-maven-shared-utils.patch + + Add some try/catch blocks so that we catch new exceptions + potentially thrown by maven-shared-utils-3.3.x + * 0003-Port-to-TestNG-6.11.patch -> 0003-Port-to-TestNG-7.4.0.patch + + Allow building with the new testng 7.4.0 + +------------------------------------------------------------------- +Tue Mar 22 13:53:55 UTC 2022 - Fridrich Strba + +- Build with source and target levels 8 + +------------------------------------------------------------------- +Mon Apr 19 16:59:36 UTC 2021 - Pedro Monreal + +- Update generate-tarball.sh to use https URL [bsc#1182708] + +------------------------------------------------------------------- +Sun Nov 24 17:49:33 UTC 2019 - Fridrich Strba + +- Specify maven.compiler.release to fix build with jdk9+ and newer + maven-javadoc-plugin + +------------------------------------------------------------------- +Mon Jul 1 13:28:26 UTC 2019 - Fridrich Strba + +- Intial packaging of junit 5 provider for maven surefire diff --git a/maven-surefire-provider-junit5.spec b/maven-surefire-provider-junit5.spec new file mode 100644 index 0000000..103ffaa --- /dev/null +++ b/maven-surefire-provider-junit5.spec @@ -0,0 +1,130 @@ +# +# spec file +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global base_name maven-surefire +Name: %{base_name}-provider-junit5 +Version: 2.22.0 +Release: 0 +Summary: JUnit 5 provider for Maven Surefire +License: Apache-2.0 AND CPL-1.0 +Group: Development/Libraries/Java +URL: https://maven.apache.org/surefire/ +# ./generate-tarball.sh +Source0: %{base_name}-%{version}.tar.gz +# Remove bundled binaries which cannot be easily verified for licensing +Source1: generate-tarball.sh +Source2: http://junit.sourceforge.net/cpl-v10.html +Patch0: 0001-Maven-3.patch +Patch1: 0002-Port-to-current-doxia.patch +Patch2: 0003-Port-to-TestNG-7.4.0.patch +Patch3: 0004-Port-to-current-maven-shared-utils.patch +BuildRequires: fdupes +BuildRequires: java-devel >= 1.8 +BuildRequires: maven-local +BuildRequires: mvn(org.apache.maven.surefire:common-java5) +BuildRequires: mvn(org.apache.maven:maven-parent:pom:) +BuildRequires: mvn(org.apiguardian:apiguardian-api) +BuildRequires: mvn(org.junit.platform:junit-platform-launcher) +# PpidChecker relies on /usr/bin/ps to check process uptime +Requires: procps +BuildArch: noarch + +%description +JUnit 5 provider for Maven Surefire. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +Javadoc for %{name}. + +%prep +%setup -q -n surefire-%{version} +cp -p %{SOURCE2} . + +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 + +# Disable strict doclint +sed -i /-Xdoclint:all/d pom.xml + +%pom_disable_module surefire-shadefire + +%pom_add_dep org.apiguardian:apiguardian-api::provided surefire-providers/surefire-junit-platform + +%pom_remove_dep -r org.apache.maven.surefire:surefire-shadefire + +# Help plugin is needed only to evaluate effective Maven settings. +# For building RPM package default settings will suffice. +%pom_remove_plugin :maven-help-plugin surefire-setup-integration-tests + +# QA plugin useful only for upstream +%pom_remove_plugin -r :jacoco-maven-plugin + +# Not in Fedora +%pom_remove_plugin -r :animal-sniffer-maven-plugin +# Complains +%pom_remove_plugin -r :apache-rat-plugin +%pom_remove_plugin -r :maven-enforcer-plugin +# We don't need site-source +%pom_remove_plugin :maven-assembly-plugin maven-surefire-plugin +%pom_remove_dep -r ::::site-source + +%pom_xpath_set pom:mavenVersion 3.3.3 +%pom_remove_dep :maven-project maven-surefire-report-plugin +%pom_remove_dep :maven-project maven-surefire-common +%pom_remove_dep :maven-plugin-descriptor maven-surefire-common +%pom_remove_dep :maven-toolchain maven-surefire-common + +%pom_xpath_remove -r "pom:execution[pom:id='shared-logging-generated-sources']" + +%pom_add_dep com.google.code.findbugs:jsr305 surefire-api + +%pom_remove_plugin -r :maven-shade-plugin +%pom_remove_plugin -r :build-helper-maven-plugin + +%pom_add_dep org.apache.commons:commons-lang3::runtime maven-surefire-plugin +%pom_add_dep commons-io:commons-io::runtime maven-surefire-plugin + +%build +pushd surefire-providers/surefire-junit-platform +%{mvn_build} -f -- \ +%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0} + -Dmaven.compiler.release=8 \ +%endif + -Dsource=8 + +popd + +%install +pushd surefire-providers/surefire-junit-platform +%mvn_install +%fdupes -s %{buildroot}%{_javadocdir} +popd + +%files -f surefire-providers/surefire-junit-platform/.mfiles +%doc README.md +%license LICENSE NOTICE cpl-v10.html + +%files javadoc -f surefire-providers/surefire-junit-platform/.mfiles-javadoc +%license LICENSE NOTICE cpl-v10.html + +%changelog diff --git a/maven-surefire.changes b/maven-surefire.changes new file mode 100644 index 0000000..085d4bc --- /dev/null +++ b/maven-surefire.changes @@ -0,0 +1,36 @@ +------------------------------------------------------------------- +Fri May 5 08:30:46 UTC 2023 - Fridrich Strba + +- Add _multibuild to define 2nd spec file as additional flavor. + Eliminates the need for source package links in OBS. + +------------------------------------------------------------------- +Wed Apr 27 13:52:13 UTC 2022 - Fridrich Strba + +- Modified patches: + * 0004-Port-to-current-maven-shared-utils.patch + + Add some try/catch blocks so that we catch new exceptions + potentially thrown by maven-shared-utils-3.3.x + * 0003-Port-to-TestNG-6.11.patch -> 0003-Port-to-TestNG-7.4.0.patch + + Allow building with the new testng 7.4.0 + +------------------------------------------------------------------- +Tue Mar 22 13:52:58 UTC 2022 - Fridrich Strba + +- Build with java source and target levels 8 + +------------------------------------------------------------------- +Mon Apr 19 16:59:36 UTC 2021 - Pedro Monreal + +- Update generate-tarball.sh to use https URL [bsc#1182708] + +------------------------------------------------------------------- +Tue Apr 2 09:06:05 UTC 2019 - Fridrich Strba + +- Initial packaging of maven-surefire 2.22.0 +- Generate and customize ant build files +- Build the maven plugins as bootstrap packages +- Added patch: + * maven-surefire-bootstrap-resources.patch + + Add to the build of the plugins generated files that + we cannot generate when building outside maven diff --git a/maven-surefire.spec b/maven-surefire.spec new file mode 100644 index 0000000..e1cf69e --- /dev/null +++ b/maven-surefire.spec @@ -0,0 +1,281 @@ +# +# spec file for package maven-surefire +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: maven-surefire +Version: 2.22.0 +Release: 0 +Summary: Test framework project +License: Apache-2.0 AND CPL-1.0 +Group: Development/Libraries/Java +URL: https://maven.apache.org/surefire/ +# ./generate-tarball.sh +Source0: %{name}-%{version}.tar.gz +# Remove bundled binaries which cannot be easily verified for licensing +Source1: generate-tarball.sh +Source2: http://junit.sourceforge.net/cpl-v10.html +Source10: %{name}-build.tar.xz +Patch0: 0001-Maven-3.patch +Patch1: 0002-Port-to-current-doxia.patch +Patch2: 0003-Port-to-TestNG-7.4.0.patch +Patch3: 0004-Port-to-current-maven-shared-utils.patch +Patch10: %{name}-bootstrap-resources.patch +BuildRequires: ant +BuildRequires: apache-commons-io +BuildRequires: apache-commons-lang3 +BuildRequires: fdupes +BuildRequires: java-devel >= 1.8 +BuildRequires: javacc +BuildRequires: javapackages-local +BuildRequires: jsr-305 +BuildRequires: junit +BuildRequires: maven-common-artifact-filters +BuildRequires: maven-doxia-core +BuildRequires: maven-doxia-logging-api +BuildRequires: maven-doxia-sink-api +BuildRequires: maven-doxia-sitetools +BuildRequires: maven-lib +BuildRequires: maven-plugin-annotations +BuildRequires: maven-reporting-api +BuildRequires: maven-reporting-impl +BuildRequires: maven-shared-utils +BuildRequires: objectweb-asm +BuildRequires: plexus-languages +BuildRequires: sisu-plexus +BuildRequires: testng +BuildRequires: xmvn-install +BuildRequires: xmvn-resolve +BuildRequires: mvn(org.apache.maven:maven-parent:pom:) +# PpidChecker relies on /usr/bin/ps to check process uptime +Requires: procps +BuildArch: noarch + +%description +Surefire is a test framework project. + +%package plugin-bootstrap +Summary: Surefire plugin for maven +Group: Development/Libraries/Java + +%description plugin-bootstrap +Maven surefire plugin for running tests via the surefire framework. + +%package report-plugin-bootstrap +Summary: Surefire reports plugin for maven +Group: Development/Libraries/Java + +%description report-plugin-bootstrap +Plugin for generating reports from surefire test runs. + +%package provider-junit +Summary: JUnit provider for Maven Surefire +Group: Development/Libraries/Java + +%description provider-junit +JUnit provider for Maven Surefire. + +%package provider-testng +Summary: TestNG provider for Maven Surefire +Group: Development/Libraries/Java + +%description provider-testng +TestNG provider for Maven Surefire. + +%package report-parser +Summary: Parses report output files from surefire +Group: Development/Libraries/Java + +%description report-parser +Plugin for parsing report output files from surefire. + +%package -n maven-failsafe-plugin-bootstrap +Summary: Maven plugin for running integration tests +Group: Development/Libraries/Java + +%description -n maven-failsafe-plugin-bootstrap +The Failsafe Plugin is designed to run integration tests while the +Surefire Plugins is designed to run unit. The name (failsafe) was +chosen both because it is a synonym of surefire and because it implies +that when it fails, it does so in a safe way. + +If you use the Surefire Plugin for running tests, then when you have a +test failure, the build will stop at the integration-test phase and +your integration test environment will not have been torn down +correctly. + +The Failsafe Plugin is used during the integration-test and verify +phases of the build lifecycle to execute the integration tests of an +application. The Failsafe Plugin will not fail the build during the +integration-test phase thus enabling the post-integration-test phase +to execute. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +Javadoc for %{name}. + +%prep +%setup -q -n surefire-%{version} -a10 +cp -p %{SOURCE2} . + +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch10 -p1 + +# Disable strict doclint +sed -i /-Xdoclint:all/d pom.xml + +%pom_disable_module surefire-shadefire + +%pom_disable_module surefire-junit-platform surefire-providers + +%pom_remove_dep -r org.apache.maven.surefire:surefire-shadefire + +# Help plugin is needed only to evaluate effective Maven settings. +# For building RPM package default settings will suffice. +%pom_remove_plugin :maven-help-plugin surefire-setup-integration-tests + +# QA plugin useful only for upstream +%pom_remove_plugin -r :jacoco-maven-plugin + +# Not in Fedora +%pom_remove_plugin -r :animal-sniffer-maven-plugin +# Complains +%pom_remove_plugin -r :apache-rat-plugin +%pom_remove_plugin -r :maven-enforcer-plugin +# We don't need site-source +%pom_remove_plugin :maven-assembly-plugin maven-surefire-plugin +%pom_remove_dep -r ::::site-source + +%pom_xpath_set pom:mavenVersion 3.3.3 +%pom_remove_dep :maven-project maven-surefire-report-plugin +%pom_remove_dep :maven-project maven-surefire-common +%pom_remove_dep :maven-plugin-descriptor maven-surefire-common +%pom_remove_dep :maven-toolchain maven-surefire-common + +%pom_xpath_remove -r "pom:execution[pom:id='shared-logging-generated-sources']" + +%pom_add_dep com.google.code.findbugs:jsr305 surefire-api + +%pom_remove_plugin -r :maven-shade-plugin +%pom_remove_plugin -r :build-helper-maven-plugin + +%pom_add_dep org.apache.commons:commons-lang3::runtime maven-surefire-plugin +%pom_add_dep commons-io:commons-io::runtime maven-surefire-plugin + +%build +%{mvn_package} ":*tests*" __noinstall +%{mvn_package} ":{surefire,surefire-providers}" __noinstall +%{mvn_package} ":*{surefire-plugin,report-plugin}*" @1 +%{mvn_package} ":*junit-platform*" junit5 +%{mvn_package} ":*{junit,testng,failsafe-plugin,report-parser}*" @1 + +mkdir -p lib +build-jar-repository -s -p lib \ + apache-commons-lang3 \ + commons-io \ + javacc \ + jsr-305 \ + junit \ + maven-common-artifact-filters/maven-common-artifact-filters \ + maven-doxia/doxia-core \ + maven-doxia/doxia-logging-api \ + maven-doxia/doxia-sink-api \ + maven-doxia-sitetools/doxia-site-renderer \ + maven/maven-artifact \ + maven/maven-compat \ + maven/maven-core \ + maven/maven-model \ + maven/maven-plugin-api \ + maven-plugin-tools/maven-plugin-annotations \ + maven-reporting-api/maven-reporting-api \ + maven-reporting-impl/maven-reporting-impl \ + maven-shared-utils/maven-shared-utils \ + objectweb-asm/asm \ + org.eclipse.sisu.plexus \ + plexus-languages/plexus-java \ + testng + +%{ant} \ + -Dtest.skip=true \ + package javadoc + +%{mvn_artifact} pom.xml +%{mvn_artifact} surefire-providers/pom.xml + +mkdir -p target/site/apidocs + +for module in \ + surefire-logger-api \ + surefire-api \ + surefire-booter \ + surefire-grouper \ + maven-surefire-common \ + surefire-report-parser \ + maven-surefire-plugin \ + maven-failsafe-plugin \ + maven-surefire-report-plugin; do + %{mvn_artifact} ${module}/pom.xml ${module}/target/${module}-%{version}.jar + if [ -d ${module}/target/site/apidocs ]; then + cp -r ${module}/target/site/apidocs target/site/apidocs/${module} + fi +done +for module in \ + common-junit3 \ + common-java5 \ + common-junit4 \ + common-junit48 \ + surefire-junit3 \ + surefire-junit4 \ + surefire-junit47 \ + surefire-testng-utils \ + surefire-testng; do + %{mvn_artifact} surefire-providers/${module}/pom.xml \ + surefire-providers/${module}/target/${module}-%{version}.jar + if [ -d surefire-providers/${module}/target/site/apidocs ]; then + cp -r surefire-providers/${module}/target/site/apidocs target/site/apidocs/${module} + fi +done + +%install +%mvn_install +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%doc README.md +%license LICENSE NOTICE cpl-v10.html + +%files plugin-bootstrap -f .mfiles-surefire-plugin + +%files report-plugin-bootstrap -f .mfiles-report-plugin + +%files report-parser -f .mfiles-report-parser + +%files provider-junit -f .mfiles-junit + +%files provider-testng -f .mfiles-testng + +%files -n maven-failsafe-plugin-bootstrap -f .mfiles-failsafe-plugin + +%files javadoc -f .mfiles-javadoc +%license LICENSE NOTICE cpl-v10.html + +%changelog