You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Heritier Arnaud <ah...@axway.com> on 2004/07/20 18:02:49 UTC
RE : [.war plugin] maven.war.final.name changed in 1.0 (from 1.0-rc2)?
I think that you must use maven:set :
<maven:set plugin="maven-war-plugin" property="maven.war.final.name" value="${prj.war.name}-${pom.currentVersion}-${timestamp}.war"/>
Arnaud
> -----Message d'origine-----
> De : Konrad [mailto:khgustaf@yahoo.com]
> Envoyé : mardi 20 juillet 2004 17:32
> À : maven
> Objet : [.war plugin] maven.war.final.name changed in 1.0
> (from 1.0-rc2)?
>
>
> Hello.
>
> Just wondering if anything changed with the .war
> plugin since 1.0-rc2? In my maven.xml file, I define
> the following:
>
> <preGoal name="java:prepare-filesystem">
> <tstamp>
> <format property="timestamp"
> pattern="yyyyMMdd-HHmm"/>
> </tstamp>
> <property name="maven.war.final.name"
> value="${prj.war.name}-${pom.currentVersion}-${timestamp}.war"/>
> ...
> </preGoal>
>
>
> In Maven 1.0-RC2, I would get the following as the
> .war name:
>
> project-1.0-20040720-1029.war
>
> However, after upgrading to Maven 1.0, the .war name
> goes back to the default:
>
> project.war
>
>
> Any ideas?
>
> Thanks...
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: RE : [.war plugin] maven.war.final.name changed in 1.0 (from 1.0-rc2)?
Posted by Konrad <kh...@yahoo.com>.
Merci beaucoup Arnaud!
The "maven:set" tag worked, but it appears to only
temporarily set the property in the currently running
goal. When I referenced "maven.war.final.name" in
another task, it didn't use the property value that I
had set using maven:set in a previous goal, but rather
used the default .war name. Here are the two goals
that I have:
<preGoal name="java:prepare-filesystem">
<tstamp>
<format property="timestamp"
pattern="yyyyMMdd-HHmm"/>
</tstamp>
<property name="maven.war.final.name"
value="${prj.war.name}-${pom.currentVersion}-${timestamp}.war"/>
...
</preGoal>
<goal name="deploy-war">
<copy file="./target/${maven.war.final.name}"
tofile="${appserver.deploy.dir}/${prj.war}"/>
</goal>
In the "deploy-war" goal, it does not use the
"maven.war.final.name" that I set in the
"java:prepare-filesystem" preGoal...
Thanks again.
--- Heritier Arnaud <ah...@axway.com> wrote:
> I think that you must use maven:set :
>
> <maven:set plugin="maven-war-plugin"
> property="maven.war.final.name"
>
value="${prj.war.name}-${pom.currentVersion}-${timestamp}.war"/>
>
> Arnaud
>
>
> > -----Message d'origine-----
> > De : Konrad [mailto:khgustaf@yahoo.com]
> > Envoy� : mardi 20 juillet 2004 17:32
> > � : maven
> > Objet : [.war plugin] maven.war.final.name changed
> in 1.0
> > (from 1.0-rc2)?
> >
> >
> > Hello.
> >
> > Just wondering if anything changed with the .war
> > plugin since 1.0-rc2? In my maven.xml file, I
> define
> > the following:
> >
> > <preGoal name="java:prepare-filesystem">
> > <tstamp>
> > <format property="timestamp"
> > pattern="yyyyMMdd-HHmm"/>
> > </tstamp>
> > <property name="maven.war.final.name"
> >
>
value="${prj.war.name}-${pom.currentVersion}-${timestamp}.war"/>
> > ...
> > </preGoal>
> >
> >
> > In Maven 1.0-RC2, I would get the following as the
> > .war name:
> >
> > project-1.0-20040720-1029.war
> >
> > However, after upgrading to Maven 1.0, the .war
> name
> > goes back to the default:
> >
> > project.war
> >
> >
> > Any ideas?
> >
> > Thanks...
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> > For additional commands, e-mail:
> users-help@maven.apache.org
> >
> >
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> For additional commands, e-mail:
> users-help@maven.apache.org
>
>
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org