У меня есть проект Maven с четырьмя компонентами: Web, Persistence, Common и Other.
Соответствующие данные из моего POM files:
Parent POM:
com.test
test
pom
0.0.1-SNAPSHOT
components/TestWeb
components/TestOther
components/TestPersistence
components/TestCommon
package
maven-compiler-plugin
2.0.2
1.5
maven-war-plugin
2.1
**/hibernate.cfg.xml,**/sql-map-config.xml,**/web.xml,WEB-INF/classes/META-INF/**
common pom:
4.0.0
test-common
jar
0.0.1-SNAPSHOT
com.test
test
../../pom.xml
0.0.1-SNAPSHOT
persistence pom:
4.0.0
com.test
test-persistence
jar
0.0.1-SNAPSHOT
com.test
test
../../pom.xml
0.0.1-SNAPSHOT
com.test
test-common
0.0.1-SNAPSHOT
web pom:
4.0.0
com.test
test-web
war
0.0.1-SNAPSHOT
TestWeb
com.test
test
../../pom.xml
0.0.1-SNAPSHOT
com.test
test-common
0.0.1-SNAPSHOT
com.test
test-persistence
0.0.1-SNAPSHOT
com.test
test-other
0.0.1-SNAPSHOT
Возможно, я что-то сломал при копировании и вставке, но XML действителен.
mvn war: war
, файл WAR генерируется пустым. Как это исправить?