Home > Maven Assembly > Maven Assembly Cannot Include Project Artifact

Maven Assembly Cannot Include Project Artifact

Contents

Which goal should I use to build my assembly? I am getting crazy with this problem. > > Thank you very much, > Kind regards, > > QL. --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] Also, the Javadoc Plugin can package them! Join them; it only takes a minute: Sign up maven assembly include the current project jar in the final zip/tar up vote 21 down vote favorite 3 I am using maven http://usableflash.com/maven-assembly/maven-assembly-plugin-cannot-include-project-artifact.php

In your assembly descriptor, use: / true runtime 2) Setting the main Using an Alternative Assembly Base Directory In many cases, assemblies should have all files arranged under one assembly base directory. Thank you very much, Kind regards, QL. Apache > Maven > Plugins > Apache Maven Assembly Plugin > Including and Excluding Artifacts Last Published: 2015-10-06 | Version: 2.6 Reference Features Descriptor Format Component Format Predefined Descriptors Overview Introduction http://stackoverflow.com/questions/14276453/maven-assembly-include-the-current-project-jar-in-the-final-zip-tar

Useprojectartifact

In the following strings, type is 'jar' by default, and classifier is omitted if null. However when I ran the jar it told me Error: Could not find or load main class com.project.ServerStart Then I unzipped the .jar file and found that the assembly does not I am getting crazy with this >> problem. >> >> > >> >> > Thank you very much, >> >> > Kind regards, >> >> > >> >> > QL. >> How to delete the lines from a file that do not contain dot?

When I get a free moment I will generate tickets for each. HTH, Curtis On Tue, Apr 17, 2012 at 5:23 PM, QL 983 <[hidden email]> wrote: > Hi, Anders; thank you for your answer! Obviously, any fileSet or file references you may have in this descriptor may need to be adjusted or have the files they reference moved into the new child module alongside the Maven-assembly-plugin Jar-with-dependencies If we create a project assembly, including Subversion metadata directories, developers should be able to download the assembly artifact and expand it, then simply type svn up. http://stackoverflow.com/questions/5711281/trouble-getting-started-with-maven-assembly-plugin For example: > > > http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/> (this one does not talk about useProjectArtifact=false, so I guess it > is not necessary) > > If someone has a real example with a

People Assignee: Kevin Van de Velde (@mire) Reporter: Kevin Van de Velde (@mire) Reviewer: Hardy Pottinger (Inactive) Votes: 1 Vote for this issue Watchers: 2 Start watching this issue Dates Created: Maven Assembly Descriptor It is really useful for pom.xml that are defined as the parent of others projects, or to aggregate multiples modules. Non-Repetitive Quine Boss sends a birthday message. If you really want to be careful about catching all of the war artifacts in your project, you might want to use the following pattern: *:war:* Example: Exclude all source-jar dependencies.

Maven Assembly Dependencyset

Does Intel sell CPUs in ribbons? https://maven.apache.org/plugins/maven-assembly-plugin/advanced-descriptor-topics.html This way, instead of expanding the distribution to find a new maven-2.0.4 directory, you'd find a maven directory. Useprojectartifact Show Anthony Whyte added a comment - 28-Jul-2011 08:27 I've cloned this issue for SAK indie projects and assigned myself to it. Maven Assembly Include Dependencies Non-Repetitive Quine What happens when a wizard tries to cast a cone of cold through a wall of fire?

Yes. In case you missed it above, artifact-identification fields are separated by colons (':') in the matching strings. Here's an example: maven-war-plugin true ${basedir}/target/jwsc-generated/jws Related 21maven assembly include the current project jar in the final zip/tar1Maven: Build runnable jar and then add to zip with maven-assembly-plugin10Creating Two Executable Jars Using maven-assembly-plugin2Java - Maven - OpenImaj The Following Patterns Were Never Triggered In This Artifact Inclusion Filter

Alternatively, add maven-assembly-plugin in your pom and bind it to the 'package' phase so it will trigger automatically on mvn package: maven-assembly-plugin tar-assembly package single other already assembled zips or tars) where in your pom you are depenedent upon those distributions. Yes, the assembly plugin is they way to do this. In your POM, use: maven-assembly-plugin

I am getting crazy with this > problem. > >> > > >> > Thank you very much, > >> > Kind regards, > >> > > >> > QL. > Maven Assembly Plugin Example The Javadoc Plugin can generate the javadoc files of your projects. Not the answer you're looking for?

https://jira.sakaiproject.org/browse/SAK-20938 We need to clone the ticket for other indies, e.g., samigo, profile2, msgcntr, lessonbuilder, basiclti, etc.

What does "there lived here then" mean? Go to Advanced Module-Set Topics. © 2002-2015 The Apache Software Foundation - Privacy Policy. Polyglot Anagrams Robbers' Thread How do I deal with my current employer not respecting my decision to leave? Maven Jar Plugin maven-2 maven-assembly-plugin share|improve this question edited Jan 11 '12 at 21:18 cdeszaq 19.7k1788147 asked Apr 19 '11 at 3:25 JStroop 1701317 add a comment| 1 Answer 1 active oldest votes up

The only way I know how to do this with my limited knowledge is to make the pom.xml a war and allow the war to pull all the dependency jars into I am writing a little tutorial in my company about the use of the Maven Assembly Plugin to build a executable jar, with all dependencies inside it. config in pom.xml org.apache.maven.plugins maven-jar-plugin 2.4 com.my.newpkg.project1.MainClass true lib/ snippet of assembly.xml dir tar false lib junit:junit Example: Bundle project sources for a developer-quickstart pack In this example, let's examine what happens if you have a large project in source control.

I don't. > > /Anders > > On Wed, Apr 18, 2012 at 00:23, QL 983 <[hidden email]> wrote: > > Hi, Anders; thank you for your answer! I think this example works with older plugin's versions, because it is very like the one I used with Maven 2.2.1.