Reputation: 2280
I have two maven projects.
-- my-common-lib
-- my-web-application
my-common-lib - contains just a pom which all dependencies. my-web-application - is a web application.
Is there a maven plugin which I can define in "my-application" pom that makes that all dependencies defined in "my-common-lib" should not be added to "WEB-INF/lib" when building my-web-application project .
Thanks
Sundar
Upvotes: 1
Views: 77
Reputation: 184
You can use the following to import dependencies from the other artifact.
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.sample<groupId>
<artifactId>myartifact</artifactId>
<version>0.0.1</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
Upvotes: 1