users@jaxb.java.net

Re: Help with maven 2 plugin for jaxb 1.x

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Mon, 13 Nov 2006 18:32:32 +0100

Todd Nine wrote:
> Hi all,
> I'm trying to get the plug in for maven 2 and JAXB 1 to work. However
> I'm having a difficult time getting it from the repository. I've
> followed the directions here
>
> https://maven-jaxb1-plugin.dev.java.net/nonav/plugin-docs/usage.html
>
> However, I'm unable to download the plug in. I have a couple of questions.
>
> 1. Shouldn't there be a <pluginRespository> ... directive so maven 2
> knows where to download the plug in from?
>
> 2. I removed the version from the plug-in in case it has been
> updated. I still can't get it to work. I can't browse the repository
> listed in the help, I get a 404 from sun's server.
>
> https://maven2-repository.dev.java.net/nonav/repository
>
> Is this the correct URL to the repository? We can't go to the jaxb 2.x
> since we're limited to java 1.4 Otherwise I have no issue with using
> jaxb 2.0

Here's the pluginRepositories config:

        <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>
                        <url>https://maven-repository.dev.java.net/nonav/repository</url>
                        <layout>legacy</layout>
                </pluginRepository>
        </pluginRepositories>


Here's the plugin config example:

<plugin>
        <groupId>org.jvnet.jaxb1.maven2</groupId>
        <artifactId>maven-jaxb1-plugin</artifactId>
        <version>1.0-rc6</version>
        <executions>
                <execution>
                        <goals>
                                <goal>generate</goal>
                        </goals>
                </execution>
        </executions>
</plugin>

Bye.
/lexi