I have a WAR project that contains an assembly configuration within a profile. (The purpose of the assembly is to create a ZIP'd version of the webapp that contains an embedded servlet container).

Anyway, my assembly configuration in my POM looks like this:

...
<profile>
        <id>assembly</id>
        <build>
                <plugins>
                        <plugin>
                                <artifactId>maven-assembly-plugin</artifactId>
                                <executions>
                                        <execution>
                                                <phase>package</phase>
                                                <goals>
                                                        <goal>attached</goal>
                                                </goals>
                                                <configuration>
                                                        <descriptor>
                                                                
src/main/assembly/assembly.xml
                                                        </descriptor>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>
                </plugins>
        </build>
</profile>

When I execute mvn -Passembly package, I see the appropriate ZIP file created in my target directory (along with the WAR file).

When I execute mvn -Passembly deploy, I see the ZIP file in the remote repository.

However, when I try to create a release with mvn -Passembly release:prepare, I do *not* see the ZIP file in the remote repository. It is almost as if my profile is being ignored by the release plugin.

Any thoughts?




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to