users@jaxb.java.net

Re: Maven2 plugins from the repo

From: William Simons <William.Simons_at_childrens.harvard.edu>
Date: Wed, 30 Aug 2006 11:31:34 -0400

Ooops. Mis-clicked and sent too soon.


That's the issue. I want to use the 1.0 version and I don't specify the
SNAPSHOT version anywhere in my pom. I followed the docs on the plugin
configuration and have:

      <plugin>
        <groupId>com.sun.tools.xjc.maven2</groupId>
        <artifactId>maven-jaxb-plugin</artifactId>
        <executions>
          <execution>
            <phase>generate-sources</phase>
            <goals>
              <goal>generate</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <catalog>src/main/resources/catalog.cat</catalog>
          <extension>true</extension>
        </configuration>
      </plugin>


I'll try to mess with that to see if I need to specifically refer to 1.0.
Maybe Maven assumes I mean the "latest" version which would be the SNAPSHOT
I guess.

On 8/29/06 6:47 PM, "Kohsuke Kawaguchi" <Kohsuke.Kawaguchi_at_Sun.COM> wrote:

>
> When I look at
> https://maven-repository.dev.java.net/nonav/repository/com.sun.tools.xjc.maven
> 2/maven-plugins/
>
> I see the 1.0 jar but not 1.0-SNAPSHOT. Perhaps you might just want to
> use the 1.0 version, not the snapshot?
>
> William Simons wrote:
>> This still doesn't work for me either. I get the following error:
>>
>>
>> Downloading:
>> https://maven-repository.dev.java.net/nonav/repository/com.sun.tools.xjc.mav
>> en2/poms/maven-jaxb-plugin-1.0-SNAPSHOT.pom
>> Downloading:
>> https://maven-repository.dev.java.net/nonav/repository/com.sun.tools.xjc.mav
>> en2/maven-plugins/maven-jaxb-plugin-1.0-SNAPSHOT.jar
>