Laura Tyler wrote:
> Hello,
>
> I wanted to post this somewhere so that other people can benefit from my
> problem today.
>
> I have been using the maven-jaxb2 plugin in my application to generate
> sources for a webservice client that I'm putting together with Spring. This
> morning I repeatedly got the build error:
> The plugin 'org.jvnet.jaxb2.maven2:maven-jaxb2-plugin' does not exist or no
> valid version could be found
>
> And in truth I could not find it at all when I looked for it in the central
> maven repository. I eventually found it here:
>
> http://download.java.net/maven/2/org/jvnet/jaxb2/maven2/maven-jaxb2-plugin/ >
> but not here:
> http://repo2.maven.org/maven2/org/jvnet/ > or here:
> http://repo1.maven.org/maven2/org/jvnet/ >
> What is a trifle worrying is that it worked last week (before I added the
> plugin repository), so has someone removed it from the central repository or
> what?
>
>
> old pom:
> <pluginRepositories>
> <pluginRepository>
> <id>maven2-repository.dev.java.net</id>
> <url>
> https://maven2-repository.dev.java.net/nonav/repository > </url>
> </pluginRepository>
> <pluginRepository>
> <id>maven-repository.dev.java.net</id>
> <name>Java.net Maven 1 Repository (legacy)</name>
> <url>
> https://maven-repository.dev.java.net/nonav/repository > </url>
> <layout>legacy</layout>
> </pluginRepository>
> </pluginRepositories>
>
> new addition:
> <pluginRepository>
> <id>maven2-repository.download.java.net</id>
> <url>
> http://download.java.net/maven/2 > </url>
> </pluginRepository>
>
> ...or I guess you could use the plugin repositories posted here:
> https://maven-jaxb2-plugin.dev.java.net/ >
>
> Cheers,
> Laura
>
>
>