I have a plugin which generates sources under the target/generated-sources/wrappers
directory. It's wired into the generate-sources phase like this:
<plugin>
<groupId>mygroupid</groupId>
<artifactId>myartifactid</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>xml2java</goal>
</goals>
</execution>
</executions>
</plugin>
The problem is, when I use mvn deploy
the .class
files won't be placed in the jar. I see all the .java
files there, but no .class
.
I read all the issues around this problem, but couldn't figure out how to solve the problem. I'm using Maven 3.0.x.