compiler errors - Maven - type javax.persistence.InheritanceType cannot be resolved. It is indirectly referenced from required .class files -


i'm facing this

these maven config:

apache maven 2.2.1 (r801777; 2009-08-06 16:16:01-0300) java version: 1.6.0_45 java home: c:\program files\java\jdk1.6.0_45\jre default locale: pt_br, platform encoding: cp1252 os name: "windows 7" version: "6.1" arch: "amd64" family: "windows" 

i've added dependency

<dependency>     <groupid>com.da.fra</groupid>     <artifactid>da-fra-menu-java</artifactid>     <version>${pom.version}</version>     <scope>provided</scope>   </dependency> 

and error came up: type javax.persistence.inheritancetype cannot resolved. indirectly referenced required .class files

i've run mvn:dependency-tree @ project "da-fra-menu-java" , surprise, project needs persistence-api.jar. 1st question: why didn't appear when run mvn dependency:tree in project?

in order find solution i've included @ pom

<dependency>     <groupid>javax.persistence</groupid>     <artifactid>persistence-api</artifactid>     <version>1.0</version> </dependency> 

compile error has gone, @ execution same error has came again.

2nd question: wrong pom?


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -