You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Shrivallabh Deshmukh <sh...@gmail.com> on 2015/11/18 13:43:45 UTC

Weird error

Hi,

I am using maven 3.3.9.
The eclipse plugin version is Eclipse plugin version 2,9

I am getting the error mentioned below. It does not happen for all
projects. Once it starts happening, even if I clear pom to absolute
vanilla, it still keeps giving the same error.

Any help will be appreciated

Thanks

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-eclipse-plugin:2.9
:eclipse (default-cli) on project trixie: Execution default-cli of goal
org.apac
he.maven.plugins:maven-eclipse-plugin:2.9:eclipse failed: A required class
was m
issing while executing
org.apache.maven.plugins:maven-eclipse-plugin:2.9:eclipse
: org/codehaus/plexus/util/StringUtils
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.apache.maven.plugins:maven-eclipse-plugin:2.9
[ERROR] strategy =
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] =
file:/C:/Users/shriv_000/.m2/repository/org/apache/maven/plugi
ns/maven-eclipse-plugin/2.9/maven-eclipse-plugin-2.9.jar
[ERROR] urls[1] =
file:/C:/Users/shriv_000/.m2/repository/junit/junit/3.8.1/juni
t-3.8.1.jar
[ERROR] urls[2] =
file:/C:/Users/shriv_000/.m2/repository/org/apache/maven/repor
ting/maven-reporting-api/2.0.8/maven-reporting-api-2.0.8.jar
[ERROR] urls[3] =
file:/C:/Users/shriv_000/.m2/repository/org/apache/maven/doxia
/doxia-sink-api/1.0-alpha-9/doxia-sink-api-1.0-alpha-9.jar
[ERROR] urls[4] =
file:/C:/Users/shriv_000/.m2/repository/commons-cli/commons-cl
i/1.0/commons-cli-1.0.jar
[ERROR] urls[5] =
file:/C:/Users/shriv_000/.m2/repository/org/codehaus/plexus/pl
exus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
[ERROR] urls[6] =
file:/C:/Users/shriv_000/.m2/repository/commons-io/commons-io/
1.4/commons-io-1.4.jar
[ERROR] urls[7] =
file:/C:/Users/shriv_000/.m2/repository/org/codehaus/plexus/pl
exus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
[ERROR] urls[8] =
file:/C:/Users/shriv_000/.m2/repository/org/codehaus/plexus/pl
exus-utils/1.5.6/plexus-utils-1.5.6.jar
[ERROR] urls[9] =
file:/C:/Users/shriv_000/.m2/repository/org/codehaus/plexus/pl
exus-interactivity-jline/1.0-alpha-5/plexus-interactivity-jline-1.0-alpha-5.jar
[ERROR] urls[10] =
file:/C:/Users/shriv_000/.m2/repository/jline/jline/0.9.1/jli
ne-0.9.1.jar
[ERROR] urls[11] =
file:/C:/Users/shriv_000/.m2/repository/org/apache/maven/mave
n-archiver/2.2/maven-archiver-2.2.jar
[ERROR] urls[12] =
file:/C:/Users/shriv_000/.m2/repository/org/codehaus/plexus/p
lexus-resources/1.0-alpha-7/plexus-resources-1.0-alpha-7.jar
[ERROR] urls[13] =
file:/C:/Users/shriv_000/.m2/repository/biz/aQute/bndlib/0.0.
145/bndlib-0.0.145.jar
[ERROR] urls[14] =
file:/C:/Users/shriv_000/.m2/repository/org/apache/maven/shar
ed/maven-osgi/0.2.0/maven-osgi-0.2.0.jar
[ERROR] urls[15] =
file:/C:/Users/shriv_000/.m2/repository/org/eclipse/core/reso
urces/3.3.0-v20070604/resources-3.3.0-v20070604.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent:
null]]
[ERROR]
[ERROR] -----------------------------------------------------:
org.codehaus.plex
us.util.StringUtils
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginContaine
rException

Re: Weird error

Posted by Wayne Fay <wa...@gmail.com>.
This seems to be the issue:

he.maven.plugins:maven-eclipse-plugin:2.9:eclipse failed: A required class
was missing while executing
org.apache.maven.plugins:maven-eclipse-plugin:2.9:eclipse
: org/codehaus/plexus/util/StringUtils

But I'm not sure why StringUtils is not found. Hopefully someone else pipes up.

Wayne

On Wed, Nov 18, 2015 at 6:43 AM, Shrivallabh Deshmukh
<sh...@gmail.com> wrote:
> Hi,
>
> I am using maven 3.3.9.
> The eclipse plugin version is Eclipse plugin version 2,9
>
> I am getting the error mentioned below. It does not happen for all
> projects. Once it starts happening, even if I clear pom to absolute
> vanilla, it still keeps giving the same error.
>
> Any help will be appreciated
>
> Thanks
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-eclipse-plugin:2.9
> :eclipse (default-cli) on project trixie: Execution default-cli of goal
> org.apac
> he.maven.plugins:maven-eclipse-plugin:2.9:eclipse failed: A required class
> was m
> issing while executing
> org.apache.maven.plugins:maven-eclipse-plugin:2.9:eclipse
> : org/codehaus/plexus/util/StringUtils
> [ERROR] -----------------------------------------------------
> [ERROR] realm =    plugin>org.apache.maven.plugins:maven-eclipse-plugin:2.9
> [ERROR] strategy =
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] =
> file:/C:/Users/shriv_000/.m2/repository/org/apache/maven/plugi
> ns/maven-eclipse-plugin/2.9/maven-eclipse-plugin-2.9.jar
> [ERROR] urls[1] =
> file:/C:/Users/shriv_000/.m2/repository/junit/junit/3.8.1/juni
> t-3.8.1.jar
> [ERROR] urls[2] =
> file:/C:/Users/shriv_000/.m2/repository/org/apache/maven/repor
> ting/maven-reporting-api/2.0.8/maven-reporting-api-2.0.8.jar
> [ERROR] urls[3] =
> file:/C:/Users/shriv_000/.m2/repository/org/apache/maven/doxia
> /doxia-sink-api/1.0-alpha-9/doxia-sink-api-1.0-alpha-9.jar
> [ERROR] urls[4] =
> file:/C:/Users/shriv_000/.m2/repository/commons-cli/commons-cl
> i/1.0/commons-cli-1.0.jar
> [ERROR] urls[5] =
> file:/C:/Users/shriv_000/.m2/repository/org/codehaus/plexus/pl
> exus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
> [ERROR] urls[6] =
> file:/C:/Users/shriv_000/.m2/repository/commons-io/commons-io/
> 1.4/commons-io-1.4.jar
> [ERROR] urls[7] =
> file:/C:/Users/shriv_000/.m2/repository/org/codehaus/plexus/pl
> exus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
> [ERROR] urls[8] =
> file:/C:/Users/shriv_000/.m2/repository/org/codehaus/plexus/pl
> exus-utils/1.5.6/plexus-utils-1.5.6.jar
> [ERROR] urls[9] =
> file:/C:/Users/shriv_000/.m2/repository/org/codehaus/plexus/pl
> exus-interactivity-jline/1.0-alpha-5/plexus-interactivity-jline-1.0-alpha-5.jar
> [ERROR] urls[10] =
> file:/C:/Users/shriv_000/.m2/repository/jline/jline/0.9.1/jli
> ne-0.9.1.jar
> [ERROR] urls[11] =
> file:/C:/Users/shriv_000/.m2/repository/org/apache/maven/mave
> n-archiver/2.2/maven-archiver-2.2.jar
> [ERROR] urls[12] =
> file:/C:/Users/shriv_000/.m2/repository/org/codehaus/plexus/p
> lexus-resources/1.0-alpha-7/plexus-resources-1.0-alpha-7.jar
> [ERROR] urls[13] =
> file:/C:/Users/shriv_000/.m2/repository/biz/aQute/bndlib/0.0.
> 145/bndlib-0.0.145.jar
> [ERROR] urls[14] =
> file:/C:/Users/shriv_000/.m2/repository/org/apache/maven/shar
> ed/maven-osgi/0.2.0/maven-osgi-0.2.0.jar
> [ERROR] urls[15] =
> file:/C:/Users/shriv_000/.m2/repository/org/eclipse/core/reso
> urces/3.3.0-v20070604/resources-3.3.0-v20070604.jar
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent:
> null]]
> [ERROR]
> [ERROR] -----------------------------------------------------:
> org.codehaus.plex
> us.util.StringUtils
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> swit
> ch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please rea
> d the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/PluginContaine
> rException

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org