dependencies - How to build a client-server dist with separated directories using maven-assembly? -
i want build single dist separates server , client dir. every dir contains lib folder , bin folder:
dist +----client | +-----bin | \-----lib \----server +-----bin \-----lib
the pom.xml contains dependencies section:
<dependencies> <dependency> <groupid>dummy</groupid> <artifactid>client</artifactid> <version>1.7.0-snapshot</version> </dependency> <dependency> <groupid>dummy</groupid> <artifactid>server</artifactid> <version>1.7.0-snapshot</version> </dependency> </dependencies>
client , server libs using dumy.base artificat dependendy tree displays server dependency.
dummy:dist:pom:1.7.0-snapshot +- dummy:server:jar:1.7.0-snapshot:compile | \- dummy:base:jar:1.7.0-snapshot:compile +- dummy:client:jar:1.7.0-snapshot:compile
when use maven-assembly plugin assembly using dependency filters client lib , server lib base lib stored server lib dir.
assembyl.xml <assembly ...> ... <dependencysets> <dependencyset> <outputdirectory>client/lib</outputdirectory> <unpack>false</unpack> <useprojectartifact>false</useprojectartifact> <includes> <include>dummy:client:jar:*</include> </includes> <usetransitivefiltering>true</usetransitivefiltering> <usetransitivedependencies>true</usetransitivedependencies> </dependencyset> <dependencyset> <outputdirectory>server/lib</outputdirectory> <unpack>false</unpack> <useprojectartifact>false</useprojectartifact> <includes> <include>dummy:server:jar:*</include> </includes> <usetransitivefiltering>true</usetransitivefiltering> <usetransitivedependencies>true</usetransitivedependencies> </dependencyset> </dependencysets> </assembly>
is there way or assembly plugin achieve directory structure @ top without making separated dist modules client , server?
Comments
Post a Comment