In order to work with a legacy app framework I need to split a webapp project into 2. 1 jar needs to have the java class files, the other will have all the web stuff like jsps, css, et. al.. How can I do this with on maven-3 pom?
相关问题
- Maven Repositories for Spring Roo
- What is the best way to externalize properties in
- Export Maven dependencies and maintain repository
- Cannot execute Groovy Maven Plugin as a goal
- How to configure the Maven dependency for Guice 3.
相关文章
- Find Java options used by Maven
- Send Maven output to console and log file using po
- dependencyManagement in parent ignored
- Why can't I find my settings.xml under ~/.m2?
- Maven execute a goal on build fail / FindBugs
- Run Eclipse with M2 Maven build ignores “Store met
- maven assembly plugin dependencySet with transitiv
- Creating Maven Archetype: is there a way to specif
For this purpose you can use the configuration of the maven-war-plugin. This will create a separate jar file which contains the .class files...
like xyz-1.0.0-SNAPSHOT-classes.jar which can be used as a separated dependency (you have to use the supplemental classifier).
If the war artifact should not contain any classes, you can achieve this by adding the packagingExcludes configuration.