If I put this in my pom,

  <pluginRepositories>
    <pluginRepository>
      <url>http://www.neonics.com/maven2/</url>
    </pluginRepository>
  </pluginRepositories>

m2 gets seriously cranky with this output:

constituent[0]: file:/home/java/maven/lib/maven-plugin-descriptor-2.0-alpha-3.jar
constituent[1]: file:/home/java/maven/lib/maven-project-2.0-alpha-3.jar
constituent[2]: file:/home/java/maven/lib/jsch-0.1.17.jar
constituent[3]: file:/home/java/maven/lib/jline-0.9.1.jar
constituent[4]: file:/home/java/maven/lib/maven-monitor-2.0-alpha-3.jar
constituent[5]: file:/home/java/maven/lib/plexus-input-handler-1.0-alpha-2.jar
constituent[6]: file:/home/java/maven/lib/commons-cli-1.0-beta-2.jar
constituent[7]: file:/home/java/maven/lib/oro-2.0.7.jar
constituent[8]: file:/home/java/maven/lib/maven-core-2.0-alpha-3.jar
constituent[9]: file:/home/java/maven/lib/commons-validator-1.1.4.jar
constituent[10]: file:/home/java/maven/lib/maven-profile-2.0-alpha-3.jar
constituent[11]: file:/home/java/maven/lib/wagon-file-1.0-alpha-4.jar
constituent[12]: file:/home/java/maven/lib/wagon-ssh-1.0-alpha-4.jar
constituent[13]: file:/home/java/maven/lib/doxia-core-1.0-alpha-3.jar
constituent[14]: file:/home/java/maven/lib/wagon-provider-api-1.0-alpha-4.jar constituent[15]: file:/home/java/maven/lib/maven-plugin-registry-2.0-alpha-3.jar constituent[16]: file:/home/java/maven/lib/wagon-http-lightweight-1.0-alpha-4.jar
constituent[17]: file:/home/java/maven/lib/maven-settings-2.0-alpha-3.jar
constituent[18]: file:/home/java/maven/lib/maven-artifact-2.0-alpha-3.jar
constituent[19]: file:/home/java/maven/lib/maven-model-2.0-alpha-3.jar
constituent[20]: file:/home/java/maven/lib/maven-plugin-api-2.0-alpha-3.jar
constituent[21]: file:/home/java/maven/lib/maven-reporting-api-2.0-alpha-3.jar constituent[22]: file:/home/java/maven/lib/maven-artifact-manager-2.0-alpha-3.jar
---------------------------------------------------
java.lang.NullPointerException
at org.apache.maven.wagon.repository.Repository.equals(Repository.java:235)
        at java.util.ArrayList.indexOf(ArrayList.java:221)
        at java.util.ArrayList.contains(ArrayList.java:202)
at org.apache.maven.project.ProjectUtils.buildArtifactRepositories(ProjectUtils.java:51) at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:410) at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:317) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFile(DefaultMavenProjectBuilder.java:198) at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:186)
        at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:324)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:216)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:122)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:269)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:363)


I'm pretty sure the syntax is OK because I don't get any errors from xmlbuddy.

Since I'm on the subject of xml errors, I get the following from the <plugin><executions> node:

Error - cvc-complex-type.2.4.a: Invalid content was found starting with element 'executions'. One of '{"http://maven.apache.org/POM/4.0.0":groupId, "http://maven.apache.org/POM/4.0.0":inherited, "http://maven.apache.org/POM/4.0.0":configuration, "http://maven.apache.org/POM/4.0.0":goals}' is expected.

Is maven-v4_0_0.xsd out of date now?


Brett Porter on 30/07/05 15:13, wrote:
What you probably need is to add a <pluginRepository> in your own POM
so that it can locate the xdoclet plugin.

However, on the webpage I believe Kenney asked that you not point at
his repo and instead install it locally (instructions are given).

We should really get it up on the ibiblio, though.

- Brett

On 7/31/05, Adam Hardy <[EMAIL PROTECTED]> wrote:

Hi,

I am setting up an ear project and I'm struggling with a series of
problems to do with snapshot versions of plugins and m2 which tries to
download them from repo1.maven.org.

I can't see how to resolve this problem with maven-xdoclet-plugin. It
has the repository identified in its pom at http://www.neonics.com/maven2/

This is what m2 says:

Caused by:
org.apache.maven.artifact.resolver.ArtifactResolutionException: Unable
to download the artifact from any repository
  org.apache.maven.plugins:maven-xdoclet-plugin:1.0-20050615.091250-3:pom

from the specified remote repositories:
  http://repo1.maven.org/maven2/plugins


Any tips and advice greatly appreciated,

Adam

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to