users@jaxb.java.net

RE: Maven2 versus JAXB

From: Jonathan Johnson <jonjohnson_at_mail.com>
Date: Mon, 12 Jun 2006 23:40:54 -0400

Kohsuke,

1. Thank you for discovering the 2.0.1 correction. The plugin pom has been
updated.

2. For the plugin usage instructions on
https://jaxb.dev.java.net/jaxb-maven2-plugin/ I have discovered that only
this dependency is needed

        <dependency>
            <groupId>javax.xml.bind</groupId>
            <artifactId>jaxb-api</artifactId>
            <version>2.0</version>
        </dependency>

        Does that make sense?

3. I wanted to update the usages instructions to get the plugin from the
java.net repository but maven is reporting "A required plugin was not found"
even though I have done the following. I'm concerned maven2 cannot find the
plugin even though the groupId, artifactId and version all match.

    <repositories>
        <repository>
            <id>java.net</id>
            <name>java.net Maven Repository</name>
            <url>https://maven-repository.dev.java.net/nonav/repository</url
>
            <layout>legacy</layout>
        </repository>
    </repositories>

    <build>
        <plugins>

            <plugin>
                <groupId>com.sun.tools.xjc.maven2</groupId>
                <artifactId>maven-jaxb-plugin</artifactId>
                <version>1.0</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <schemaDirectory>src/main</schemaDirectory>
                    <extension>true</extension>
                    <verbose>true</verbose>
                    <includeSchemas>
                        <includeSchema>**/*.xsd</includeSchema>
                    </includeSchemas>
                </configuration>
            </plugin>


- Jonathan

|-----Original Message-----
|From: Jonathan Johnson [mailto:jonjohnson_at_mail.com]
|Sent: Monday, June 12, 2006 9:33 PM
|To: users_at_jaxb.dev.java.net
|Subject: RE: Maven2 versus JAXB
|
|
|I'm discovering that only this is needed
|
| <dependency>
| <groupId>javax.xml.bind</groupId>
| <artifactId>jaxb-api</artifactId>
| <version>2.0</version>
| </dependency>
|
|Does that make sense.
|
||-----Original Message-----
||From: Kohsuke Kawaguchi [mailto:Kohsuke.Kawaguchi_at_Sun.COM]
||Sent: Monday, June 12, 2006 8:52 PM
||To: users_at_jaxb.dev.java.net
||Subject: Re: Maven2 versus JAXB
||
||
||Jonathan Johnson wrote:
||> I updated the maven jaxb plugin for this too.
||>
||> I also updated the document at
||https://jaxb.dev.java.net/jaxb-maven2-plugin/
||> to include the dependency change and Lexi's new xjc args parameter.
||>
||> I'll update the instructions again once you get the plugin into
||the java.net
||> repository so people no longer have to download the zip.
||
||I saw that POM had dependency to JAXB 2.0.2, which doesn't exist. I
||corrected them to 2.0.1 and pushed to the repository [1].
||
||
||[1]
||https://maven-repository.dev.java.net/nonav/repository/com.sun.tool
||s.xjc.maven2/
||--
||Kohsuke Kawaguchi
||Sun Microsystems kohsuke.kawaguchi_at_sun.com
||
|
|---------------------------------------------------------------------
|To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
|For additional commands, e-mail: users-help_at_jaxb.dev.java.net
|