Build java project jar and then zip files and jar using Maven -
i trying generate jar java project , zip jar file , lib directory using maven-assembly-plugin not include project jar in zip file. whatever try out has issue or other. have similar example?
try this
pom.xml
... <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-assembly-plugin</artifactid> <version>2.4</version> <configuration> <archive> <manifest> <addclasspath>true</addclasspath> <classpathprefix>lib/</classpathprefix> </manifest> </archive> <descriptors> <descriptor>src/assembly/assembly.xml</descriptor> </descriptors> </configuration> </plugin> ...
assembly.xml
<assembly> <id>assembly</id> <formats> <format>zip</format> </formats> <dependencysets> <dependencyset> <useprojectartifact>false</useprojectartifact> <outputdirectory>/lib</outputdirectory> <unpack>false</unpack> </dependencyset> </dependencysets> <filesets> <fileset> <directory>${project.build.directory}</directory> <outputdirectory></outputdirectory> <includes> <include>*.jar</include> </includes> </fileset> </filesets> </assembly>
Comments
Post a Comment