Hello, It is a single project. You are right, the problem is that the plugin is defined in pluginManagent, not in plugins. After changing the plugin configuration to <plugins> all seems to work correctly.
Thank you very much, Karl :) 2014-09-17 18:06 GMT+02:00 Karl Heinz Marbaise <[email protected]>: > Hi, > > Do you have a single project or a multi module build? > > May be you have defined the configuration for maven-assembly-pugin > in pluginManagement ? > > Furthermore you should only configured what is different from the defaults > like appendAssemblyId which is by default true...so you can omit that. > > > Kind regards > Karl-Heinz Marbaise > > > On 9/17/14 3:48 PM, Luis Villa wrote: > >> Hello all, >> >> First of all, I must say I'm new to maven, so I don't have any expertise >> in >> the matter. I've made a web application and I'm capable of package it >> correctly. I have to add a user manual to the packaging, generating a zip >> that contains the war and the doc file. I've added maven-assembly-plugin >> to >> the pom.xml, and a custom packager that allows it. When I do: >> >> maven assembly:single >> >> The file is created correctly and with the desired content. The problem >> comes when I want to bind this step to the package phase. Following the >> examples, I've changed the plugin section in this manner: >> >> <plugin> >> <groupId>org.apache.maven.plugins</groupId> >> <artifactId>maven-assembly-plugin</artifactId> >> <configuration> >> <appendAssemblyId>true</appendAssemblyId> >> <descriptors> >> >> <descriptor>src/main/assembly/packager.xml</descriptor> >> </descriptors> >> </configuration> >> <executions> >> <execution> >> <id>withdocs</id> >> <phase>package</phase> >> <goals> >> <goal>single</goal> >> </goals> >> </execution> >> </executions> >> </plugin> >> >> Nevertheless, when I type "mvn package", the file is not created. Only the >> war is generated. When entering "mvn assembly:single", it keeps working >> correctly. What am I doing wrong? >> >> Thank you all in advance :) >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
