maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <cheet...@gmail.com>
Subject Re: org.apache.maven.plugins:maven-compiler-plugin. Reason: Cannot resolve plugin dependencies
Date Fri, 21 Oct 2005 19:46:59 GMT
No, I was able to fix it. It was the JDK type. I was using IBM JDK 1.4 and
maven 2(beta as well) doesn't seem to work with IBM JDK. After pointing to
the sun jdk, everything went fine. Just curious, Is this a known issue or I
need to do anything additional if I had to use IBM?

-Kris

Brett Porter wrote:

do you still get this with 2.0?

- Brett

On 10/18/05, cheethus@gmail.com <cheethus@gmail.com> wrote:

Nope. I use m2 beta 3. This is the error that i get when i run m2 -X
install. Also, as i said, it used to work for me without changing any proxy
settings.

[DEBUG] org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.0(selected
for runtime)
[DEBUG] commons-io:commons-io:jar:1.0 (selected for runtime)
[DEBUG] junit:junit:jar:3.8.1 (selected for runtime)
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[DEBUG] com.mycompany.app:my-app:jar:1.0-SNAPSHOT (selected for null)
[DEBUG] org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0(selected
for runtime)
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Diagnosis: Error configuring:
org.apache.maven.plugins:maven-compiler-plugin. Reason: Cannot resolve
plugin dependencies
[INFO]
----------------------------------------------------------------------------
[DEBUG] Trace:

org.apache.maven.plugin.MojoExecutionException: Error configuring plugin for
execution of 'compiler:compile'.
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:390)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:554)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:508)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:494)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:307)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:149)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:217)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:247)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginConfigurationException: Error
configuring: org.apache.maven.plugins:maven-compiler-plugin. Reason: Cannot
resolve plugin dependencies
at
org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComplete
(DefaultPluginManager.java:641)
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(
DefaultPluginManager.java:532)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:385)
... 16 more
Caused by:
org.apache.maven.artifact.resolver.TransitiveArtifactResolutionException:
Unable to read the metadata file
org.codehaus.plexus:plexus-compiler-api:1.5.1:jar

from the specified remote repositories:
snapshots (http://snapshots.maven.codehaus.org/maven2),
central (http://repo1.maven.org/maven2)
Path to dependency:
1) org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0


at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(
DefaultArtifactCollector.java:270)
at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(
DefaultArtifactCollector.java:69)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively
(DefaultArtifactResolver.java:225)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively
(DefaultArtifactResolver.java:213)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively
(DefaultArtifactResolver.java:184)
at
org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComplete
(DefaultPluginManager.java:606)
... 18 more
Caused by:
org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException:
Unable to read the metadata file
at org.apache.maven.project.artifact.MavenMetadataSource.retrieve(
MavenMetadataSource.java:121)
at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(
DefaultArtifactCollector.java:255)
... 23 more
Caused by: org.apache.maven.project.ProjectBuildingException: Failed to
build model from file '/opt/java/maven-2.0-beta-3
/repo/org/codehaus/plexus/plexus-compiler-api/1.5.1/plexus-
compiler-api-1.5.1.pom'.
Error: 'null'
at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(
DefaultMavenProjectBuilder.java:944)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(
DefaultMavenProjectBuilder.java:351)
at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(
DefaultMavenProjectBuilder.java:315)
at org.apache.maven.project.artifact.MavenMetadataSource.retrieve(
MavenMetadataSource.java:109)
... 24 more
Caused by: sun.io.MalformedInputException
at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java(Compiled Code))
at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java(Inlined
Compiled Code))
at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java(Compiled
Code))
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java(Compiled Code))
at java.io.InputStreamReader.read(InputStreamReader.java:208)
at java.io.Reader.read(Reader.java:113)
at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:212)
at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:200)
at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(
DefaultMavenProjectBuilder.java:963)
at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(
DefaultMavenProjectBuilder.java:936)
... 27 more



Brett Porter wrote:

Are you using Maven 2.0 RC? The error should provide more information.
At a guess, I'd say proxy settings.

- Brett

On 10/18/05, cheethus@gmail.com <cheethus@gmail.com> wrote:

Getting the below error when I run m2 install on the example project (my-app
in the maven site). Used to work for me but has anything changed yet. I used


m2 archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

to create this app.

[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Diagnosis: Error configuring:
org.apache.maven.plugins:maven-compiler-plugin. Reason: Cannot resolve
plugin dependencies
[INFO]
----------------------------------------------------------------------------
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR

-Kris



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



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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message