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 :)

Reply via email to