I have a Maven project that is packaged as a war, and I would like to use the Java classes from that package as a library dependency from a different project.
I tried just adding that dependency, but of course it is looking for a jar. I also tried adding the maven-war-plugin, but that didn't seem to help:
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<attachClasses>true</attachClasses>
<classesClassifier>classes</classesClassifier>
</configuration>
</plugin>