We use jaxb and I must confess that was not easy to set up our environment. Our pom has the dependencies listed below. Let me know if that works for you.

Regards,

Javier

       <dependency>
           <groupId>javax.xml.bind</groupId>
           <artifactId>jaxb-api</artifactId>
           <version>2.1</version>
           <scope>compile</scope>
       </dependency>
       <!-- Core jaxb classes -->
       <dependency>
           <groupId>com.sun.xml.bind</groupId>
           <artifactId>jaxb-impl</artifactId>
           <version>2.0.2</version>
       </dependency>
       <!-- Needed for schemagen -->
       <dependency>
           <groupId>com.sun.xml.bind</groupId>
           <artifactId>jaxb-xjc</artifactId>
           <version>2.0.2</version>
       </dependency>

       <!-- Needed for schemagen -->
       <dependency>
           <groupId>javax.activation</groupId>
           <artifactId>activation</artifactId>
           <version>1.1</version>
       </dependency>

       <!-- Needed for schemagen -->
       <dependency>
           <groupId>javax.xml.bind</groupId>
           <artifactId>jsr173_api</artifactId>
           <version>1.0</version>
       </dependency>


Wayne Fay wrote:
Have you tried adding the jaxb2 jars to the list of dependencies with
scope "compile"? Did this not work? What error message(s) did you
receive?

I don't know much about jaxb2 but if you post more details on what
you've tried and what error(s) you've encountered, perhaps someone can
give you the guidance you are looking for.

Wayne

On Tue, Jun 3, 2008 at 5:50 AM, Trasca Virgil <[EMAIL PROTECTED]> wrote:
Hello,

  I am in the process of migrating from Ant to Maven2. I am stucked when I try 
to mvn compile because in some source files I use jaxb2 annotations and of 
course I need jaxb2 jars for building. I am not generating and xsd or any java 
sources with jaxb2 only compile some annotated src files. In ANT the only thing 
I do is that I am compiling my sources with jaxb2 in the classpath. How can I 
do this in Maven2? Do you have some links with documentation?

 Thank you,
Virgil
DocumentBurster,
http://java-hobby.blogspot.com/


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





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

Reply via email to