Apparently, you have not declared a dependency (probably want "provided" scope) against an artifact that contains javax.persistence classes.
Again, Google is your friend (mvn hibernate jpa): http://rupeal.wordpress.com/2007/02/14/maven-2-and-hibernate-annotations/ Wayne On 8/16/07, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote: > > getting exactly the same error...... I going mad here. Can't even > compile..... > > /Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/User.java:[11,25] > package javax.persistence does not exist > > /Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/User.java:[12,25] > package javax.persistence does not exist > > /Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/User.java:[13,25] > package javax.persistence does not exist > > /Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/UserMapping.java:[3,25] > package javax.persistence does not exist > > /Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/UserMapping.java:[4,25] > package javax.persistence does not exist > > /Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/UserMapping.java:[5,25] > package javax.persistence does not exist > > /Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/UserMapping.java:[6,25] > package javax.persistence does not exist > > /Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/UserMapping.java:[7,25] > package javax.persistence does not exist > > > > AND 1000 more lines. How come. In the eclipse everything looks fine. No > errors but I can't compile it. > -- > View this message in context: > http://www.nabble.com/Can%27t-compile-tf4281613s177.html#a12188034 > Sent from the Maven - Users mailing list archive at Nabble.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]