I have inherited a huge java maven project and cannot compile it.
mvn compile
Telling me that he cannot find the class, even if he is there, in the local repo.
Failed to execute goal org.codehaus.enunciate:maven-enunciate-plugin:1.25:assemble (default) on project VCWH_Core_QueryService: Execution default of goal org.codehaus.enunciate:maven-enunciate-plugin:1.25:assemble failed: A required class was missing while executing org.codehaus.enunciate:maven-enunciate-plugin:1.25:assemble: com/sun/mirror/apt/AnnotationProcessorFactory
Here is a pom.xml snippet that tells where to look:
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.7</version>
</dependency>
And, of course, tools-1.7.jar and tools-1.7.pom are located in the local repo in
\.m2\repository\com\sun\tools\1.7
And if I look in the jar with
jar tf tools-1.7.jar
I see a class
com/sun/mirror/apt/AnnotationProcessorFactory.class
I also blew out the sun folder in my local repo and did Clean & Build in NetBeans and watched the solar folder return to my local repo, so I know that the connection to the remote repo is good.
Why can't he find him?
source
share