Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.5.1Release
-
Fix Version/s: 2.5.2.Release
-
Component/s: Maven integration
-
Labels:None
-
Number of attachments :
Description
when building a project that contains package-info.java files doing following command will fail compilation:
mvn install //this will succeed
mvn install //this will fail
the workaround is always to do a mvn clean install
the error you receive relates to the compiler thinking an existing package-info.java already exists.
222. ERROR in C:\projects\kuali\KULRICE-5640\core\api\src\main\java\org\kuali\ri
ce\core\api\util\package-info.java (at line 1)
/*
^
The type package-info is already defined
Presumably, you have a package-info.java file in the same package in both your src/main/java and src/main/groovy source folders. I tried this on a groovy project and I do see the same error on the command line. It is not there when I stop using the groovy-eclipse-compiler.
However, importing this project into Eclipse, I get "The type package-info is already defined" for all these instances, even when on the command line, this error is not shown.
I'll explore a bit more...