peakit
peakit

Reputation: 29379

Problem using Maven assembly and dependency plugins

I want to assemble a web module which looks like the following:

and then I want to use this assembled module as a dependency in another web application which also looks like a typical maven 2 web application.

Basically I want that on building (mvn clean install)the main web application, the common web module is assembled first and then is merged with the main web application and then the final set up (after assembly and merging) should be built and .war should come out of it.

I tried using maven assembly and dependency plugin but could not successfully merge the modules though I was able to assemble the module. Anyone has an idea on how to do this?

Upvotes: 2

Views: 692

Answers (1)

cetnar
cetnar

Reputation: 9415

Try to use maven-war-plugin overlays feature.

Upvotes: 2

Related Questions