java - Maven copy dependent jars into the war lib -
i have maven project 3 modules inside. 2 projects produces jar on build, , project builds war file. produced war file has dependency jars copied web-inf/lib
directory. whereas libraries other projects uses not included. how configure maven project copy other jar files war?
the parent pom.xml
<project> <....> <modelversion>4.0.0</modelversion> <groupid>company.project</groupid> <artifactid>project</artifactid> <version>1.0.0-snapshot</version> <packaging>pom</packaging> <modules> <module>project-service</module> <module>project-api</module> <module>project-platform</module> </modules> <properties> <java.version>1.8</java.version> <slf4j.version>1.7.2</slf4j.version> <junit.version>4.11</junit.version> <spring.version>4.1.6.release</spring.version> <project.build.sourceencoding>utf-8</project.build.sourceencoding> </properties> </project>
the web project pom.xml
<dependency> <groupid>company.project</groupid> <artifactid>project-service</artifactid> <version>1.0.0-snapshot</version> </dependency> <dependency> <groupid>company.project</groupid> <artifactid>project-api</artifactid> <version>1.0.0-snapshot</version> </dependency>
Comments
Post a Comment