KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm sorry to sound ignorant here, but I'm new to Maven, and have been banging my head against something that I'm sure is quite simple. The docs say: [...] a project could produce a ZIP assembly which contains a project's JAR artifact in the root directory, the runtime dependencies in a lib/ directory, and a shell script to launch a stand-alone application. which is exactly what I want to do! But I can't seem to make it happen. My POM is as follows: <project> <modelVersion>4.0.0</modelVersion> <groupId>com.anearalone</groupId> <artifactId>myapp</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> [...] <build> <finalName>myapp</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>2.2.1</version> <executions> <execution> <id>make-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <descriptors> <descriptor>src/main/assemble/dist.xml</descriptor> </descriptors> <archive> <manifest> <mainClass>com.anearalone.myapp.CLI</mainClass> <addClasspath>true</addClasspath> <classpathPrefix>lib/</classpathPrefix>
Tags (comma-separated)
Save Edits
Cancel