org.apache.maven.plugins:maven-surefire-plugin:2.12.4 exception

Source: Internet
Author: User
Tags file copy

[INFO]------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project Taotao-common:execution Default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test Failed:a Required class was missing while executing org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test:org/apache/ Commons/lang3/stringutils
[ERROR]-----------------------------------------------------
[ERROR] Realm = plugin>org.apache.maven.plugins:maven-surefire-plugin:2.12.4
[ERROR] strategy = Org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/d:/softwaremaven/mavenfactory/org/apache/maven/plugins/maven-surefire-plugin/2.12.4/ Maven-surefire-plugin-2.12.4.jar
[ERROR] urls[1] = file:/d:/softwaremaven/mavenfactory/org/apache/maven/surefire/surefire-booter/2.12.4/ Surefire-booter-2.12.4.jar
[ERROR] urls[2] = file:/d:/softwaremaven/mavenfactory/org/apache/maven/surefire/surefire-api/2.12.4/ Surefire-api-2.12.4.jar
[ERROR] urls[3] = file:/d:/softwaremaven/mavenfactory/org/apache/maven/surefire/maven-surefire-common/2.12.4/ Maven-surefire-common-2.12.4.jar
[ERROR] urls[4] = File:/d:/softwaremaven/mavenfactory/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar
[ERROR] urls[5] = file:/d:/softwaremaven/mavenfactory/org/apache/maven/shared/maven-common-artifact-filters/1.3/ Maven-common-artifact-filters-1.3.jar
[ERROR] urls[6] = file:/d:/softwaremaven/mavenfactory/org/codehaus/plexus/plexus-utils/3.0.8/ Plexus-utils-3.0.8.jar
[ERROR] urls[7] = file:/d:/softwaremaven/mavenfactory/org/apache/maven/reporting/maven-reporting-api/2.0.9/ Maven-reporting-api-2.0.9.jar
[ERROR] urls[8] = FILE:/D:/SOFTWAREMAVEN/MAVENFACTORY/ORG/APACHE/MAVEN/PLUGIN-TOOLS/MAVEN-PLUGIN-ANNOTATIONS/3.1/ Maven-plugin-annotations-3.1.jar
[ERROR] Number of foreign imports:1
[ERROR] Import:entry[import from Realm Classrealm[maven.api, Parent:null]]
[ERROR]
[ERROR]-----------------------------------------------------: org.apache.commons.lang3.StringUtils
[ERROR], [Help 1]
[ERROR]
[ERROR] The full stack trace of the errors, re-run Maven with THE-E switch.
[ERROR] Re-run Maven using The-x switch to enable full debug logging.
[ERROR]
[ERROR] For more information on the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException

Workaround: Configure in the total xxx-parent pom.xml:

    <Build>        <Finalname>${project.artifactid}</Finalname>        <Plugins>            <!--resource file Copy plugin -            <plugin>                <groupId>Org.apache.maven.plugins</groupId>                <Artifactid>Maven-resources-plugin</Artifactid>                <version>2.7</version>                <Configuration>                    <encoding>UTF-8</encoding>                </Configuration>            </plugin>            <!--Java compilation plug-in -            <plugin>                <groupId>Org.apache.maven.plugins</groupId>                <Artifactid>Maven-compiler-plugin</Artifactid>                <version>3.2</version>                <Configuration>                    <Source>1.7</Source>                    <Target>1.7</Target>                    <encoding>UTF-8</encoding>                </Configuration>            </plugin><plugin> <groupId>org.apache.maven.plugins</groupId> <a Rtifactid>maven-surefire-plugin</artifactid> <version>2.7</version> </PL Ugin>        </Plugins>        <pluginmanagement>            <Plugins>                <!--Configuring the Tomcat plugin -                <plugin>                    <groupId>Org.apache.tomcat.maven</groupId>                    <Artifactid>Tomcat7-maven-plugin</Artifactid>                    <version>2.2</version>                </plugin>            </Plugins>        </pluginmanagement>    </Build>

org.apache.maven.plugins:maven-surefire-plugin:2.12.4 exception

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.