On Wed, 17 May 2006, Franz Fehringer wrote:

Hello,

You perhaps missed this part in the instructions:

'Download

This plugin will be added to the Maven 2 ibiblio repository and also to
the java.net repository but we would like your feedback first.  If you
have praises or problems with this plugin please post your email by
joining the mailing list for [EMAIL PROTECTED] by registering here
https://jaxb.dev.java.net/servlets/ProjectMailingListList.

In the meantime you can download the lastest plugin version from this link
and expand the .zip contents into your local %HOMEPATH%/.m2/repository
directory.'

The repository does indeed not contain the plugin, so you must download it
manually.

By the way, the repository is a Maven 1 repository, so the
<layout>legacy</layout> is needed.

If this doesn't work, you can also try the jaxb2 plugin @
http://mojo.codehaus.org/jaxb2-maven-plugin.

I wonder which one was first.. maybe the two plugins can be merged
somehow?

-- Kenney

> Hello,
>
> I followed the instructions on
> https://jaxb.dev.java.net/jaxb-maven2-plugin/ without success.
> On mvn -U compile i get
> ERROR] BUILD ERROR
> INFO]
> ------------------------------------------------------------------------
> INFO] The plugin 'com.sun.tools.xjc.maven2:maven-jaxb-plugin' does not
> exist or no valid version could be found
> This is with Maven 2.0.4.
> There is neither com.sun.tools.xjc.maven2 nor maven-jaxb-plugin on
> https://maven-repository.dev.java.net/repository,
> but there are javax.xml.bind and maven-javanet-plugin.
> Could i use these in an appropriate way (how?)?
> My pom.xml is
>
> <project xmlns="http://maven.apache.org/POM/4.0.0";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>de.isogmbh.aoo</groupId>
>   <artifactId>iso-app</artifactId>
>   <packaging>jar</packaging>
>   <version>1.0-SNAPSHOT</version>
>   <name>Maven Quick Start Archetype</name>
>   <url>http://maven.apache.org</url>
>   <repositories>
>     <repository>
>       <id>java.net</id>
>       <name>java.net Maven Repository</name>
>       <url>https://maven-repository.dev.java.net/repository</url>
>       <!-- layout>legacy</layout -->
>     </repository>
>   </repositories>
>   <dependencies>
>     <dependency>
>       <groupId>jaxb</groupId>
>       <artifactId>jaxb-api</artifactId>
>       <version>2.0</version>
>     </dependency>
>     <dependency>
>       <groupId>jaxb</groupId>
>       <artifactId>jaxb-impl</artifactId>
>       <version>2.0</version>
>     </dependency>
>     <dependency>
>       <groupId>junit</groupId>
>       <artifactId>junit</artifactId>
>       <version>3.8.1</version>
>       <scope>test</scope>
>     </dependency>
>   </dependencies>
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>com.sun.tools.xjc.maven2</groupId>
>         <artifactId>maven-jaxb-plugin</artifactId>
>         <executions>
>           <execution>
>             <goals>
>               <goal>generate</goal>
>             </goals>
>           </execution>
>         </executions>
>       </plugin>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-compiler-plugin</artifactId>
>         <configuration>
>           <source>1.5</source>
>           <target>1.5</target>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
> </project>
>
>
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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

Reply via email to