You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ryan Breidenbach <ry...@twoqubed.com> on 2007/09/13 18:20:18 UTC
Deploying an assembly from a war project via the release plugin
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Deploying an assembly from a war project via the release plugin
Posted by Lee Meador <le...@leemeador.com>.
Ryan,
According to the docs (
http://maven.apache.org/plugins/maven-release-plugin/introduction.html) the
release:prepare only gets things ready for the release. (Stuff like changing
versions in the poms and running tests.) But only when you do the
release:perform are the "predefined goals" run (which default to deploy and
site-deploy).
Thanks.
-- Lee
On 9/13/07, Ryan Breidenbach <ry...@twoqubed.com> wrote:
>
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com