|
I’m trying to get Maven 2 to compile with JaxMe. I followed the instructions on page http://ws.apache.org/jaxme/mp/use.html And added this to my POM.XML
<plugin>
<groupId>org.apache.ws.jaxme</groupId>
<artifactId>maven-jaxme-plugin</artifactId>
<configuration>
<packageName>
com.fourfivefour.jaxb.microCtlrIpcDef</packageName>
</configuration>
<executions>
<execution>
<goals>
<goal>jaxme</goal>
</goals>
</execution>
</executions>
</plugin> When executing mvn clean is removes my target as expected. When executing mvn compile the java files are created from
my schema as expected (files are placed into .. target\jaxme\java\com…) But I then get a bunch of compilation messages saying “javax.xml.bind
does not exist.” So I though the instructions on page http://ws.apache.org/jaxme/mp/use.html
were incomplete and I added
<dependency>
<groupId>jaxb</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>jaxb</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.0-SNAPSHOT</version>
</dependency> and ran mvn compile again. Then I got this error… required artifacts missing: jaxb:jaxb-impl:jar:2.0-SNAPSHOT jaxb:jaxb-api:jar:2.0-SNAPSHOT So then I thought I had to add the repository to my POM…
So I added this <repositories>
<repository>
<id>java-net-repo</id>
<name>java.net repo</name>
<url>https://maven-repository.dev.java.net/nonav/repository</url>
</repository> </repositories> and ran mvn compile again and I get this error… Project ID: jaxb:jaxb-impl Reason: Error getting POM for 'jaxb:jaxb-impl' from the
repository: Error transferring file jaxb:jaxb-impl:pom:2.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), java-net-repo (https://maven-repository.dev.java.net/nonav/repository) I think I’m close, but there seems to be some missing
key instructions on how to use Jaxme with Maven 2. Can someone tell me (and
others) what the complete instructions are for using Jaxme with Maven 2? - Jonathan LEGAL NOTICE: |
- Jaxme with Maven 2 Johnson, Jonathan
- Re: Jaxme with Maven 2 Jochen Wiedmann
