我正在尝试Make project
在 IDEA 中,但我有编译错误。如何解决这个问题?我在项目中没有重复的课程。当我按下Jump to source
它时,它会显示target
项目目录中的类。
duplicate class: com.kmware.ttk.kladr.model.KladrSchemStreet_
与项目中的所有类相同
IDEA 11.1.3 UBUNTU 12.04 JBoss 为 7
附加代码:
Round 1:
input files: {com.kmware.ttk.kladr.model.KladrSchemBaseShortening_, com.kmware.ttk.kladr.model.KladrStreetShortening_, com.kmware.ttk.kladr.model.KladrSchemAltNames_, com.kmware.ttk.kladr.model.KladrSchem_, com.kmware.ttk.kladr.model.RQObject_, com.kmware.ttk.kladr.model.KladrBuilding_, com.kmware.ttk.kladr.model.KladrSettings_, com.kmware.ttk.kladr.model.KladrCity_, com.kmware.ttk.kladr.model.KladrSchemStreet_, com.kmware.ttk.kladr.model.KladrSchemBuilding_, com.kmware.ttk.kladr.model.KladrStreet_, com.kmware.ttk.kladr.dao.KladrUpdateDAO, com.kmware.ttk.kladr.dao.KladrStreetDAO, com.kmware.ttk.kladr.model.RQObject, com.kmware.ttk.kladr.model.KladrSettings, com.kmware.ttk.kladr.model.KladrBuilding, com.kmware.ttk.kladr.model.KladrSchemBaseShortening, com.kmware.ttk.kladr.model.KladrCity, com.kmware.ttk.kladr.model.KladrSchemStreet, com.kmware.ttk.kladr.model.KladrSchemAltNames, com.kmware.ttk.kladr.model.KladrSchem, com.kmware.ttk.kladr.dao.KladrStreetShorteningDAO, com.kmware.ttk.kladr.dao.BasicKladrDAO, com.kmware.ttk.kladr.dao.KladrBuildingDAO, com.kmware.ttk.kladr.dao.helper.LazyModelProperties, com.kmware.ttk.kladr.model.KladrStreet, com.kmware.ttk.kladr.model.KladrSchemBuilding, com.kmware.ttk.kladr.model.KladrStreetShortening}
annotations: [javax.annotation.Generated, javax.persistence.metamodel.StaticMetamodel, javax.ejb.Stateless, javax.persistence.PersistenceContext, javax.ejb.TransactionAttribute, org.jboss.ejb3.annotation.TransactionTimeout, javax.persistence.MappedSuperclass, javax.persistence.Id, javax.persistence.Column, javax.persistence.Version, java.lang.Override, javax.persistence.Entity, javax.persistence.Table, javax.persistence.GeneratedValue, javax.persistence.Inheritance, javax.validation.constraints.NotNull, org.hibernate.validator.constraints.NotEmpty, javax.validation.constraints.Digits, java.lang.SuppressWarnings]
last round: false
Note: Hibernate JPA 2 Static-Metamodel Generator 1.2.0.Final
Processor org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor matches [javax.persistence.Entity, javax.persistence.MappedSuperclass] and returns false.
Processor org.hibernate.validator.ap.ConstraintValidationProcessor matches [javax.persistence.PersistenceContext, javax.ejb.TransactionAttribute, javax.persistence.Column, javax.validation.constraints.NotNull, javax.persistence.Table, org.jboss.ejb3.annotation.TransactionTimeout, java.lang.Override, javax.persistence.Id, javax.persistence.Version, javax.persistence.MappedSuperclass, org.hibernate.validator.constraints.NotEmpty, javax.ejb.Stateless, javax.persistence.metamodel.StaticMetamodel, javax.persistence.Entity, javax.validation.constraints.Digits, javax.annotation.Generated, java.lang.SuppressWarnings, javax.persistence.Inheritance, javax.persistence.GeneratedValue] and returns false.
Round 2:
input files: {com.kmware.ttk.kladr.model.KladrSchemStreet_, com.kmware.ttk.kladr.model.KladrSchemBuilding_, com.kmware.ttk.kladr.model.KladrSchemAltNames_, com.kmware.ttk.kladr.model.KladrStreet_, com.kmware.ttk.kladr.model.KladrSchemBaseShortening_, com.kmware.ttk.kladr.model.KladrBuilding_, com.kmware.ttk.kladr.model.KladrCity_, com.kmware.ttk.kladr.model.KladrSchem_, com.kmware.ttk.kladr.model.RQObject_, com.kmware.ttk.kladr.model.KladrStreetShortening_, com.kmware.ttk.kladr.model.KladrSettings_}
annotations: []
Processor org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor matches [] and returns false.
Processor org.hibernate.validator.ap.ConstraintValidationProcessor matches [] and returns false.
Round 3:
input files: {}
last round: true
Compilation completed with 11 errors and 0 warnings
11 errors
0 warnings
/home/kelevra/java/KLADR/kladr/kladr-ejb/target/classes/com/kmware/ttk/kladr/model/KladrSchemStreet_.java
duplicate class: com.kmware.ttk.kladr.model.KladrSchemStreet_
/home/kelevra/java/KLADR/kladr/kladr-ejb/target/classes/com/kmware/ttk/kladr/model/KladrSchemBuilding_.java
duplicate class: com.kmware.ttk.kladr.model.KladrSchemBuilding_
/home/kelevra/java/KLADR/kladr/kladr-ejb/target/classes/com/kmware/ttk/kladr/model/KladrSchemAltNames_.java
duplicate class: com.kmware.ttk.kladr.model.KladrSchemAltNames_
...
还有 8 节课