I tried this too, and it doesn't work :
<?xml version="1.0" encoding="ISO-8859-1"?>
<project
xmlns:j="jelly:core">
<extend>project.xml</extend>
<id>pacila-back-office</id>
<name>pacila-back-office</name>
<groupId>pacila</groupId>
<j:set var="maven.war.webxml" value="web-back-office.xml" />
</project>
Nico.
----- Original Message -----
From: "Nicolas De Loof" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 15, 2003 3:19 PM
Subject: same project, different properties
> Hello all,
>
> I'm a newbie maven user.
>
> I use maven for a webapp project, and I need to build a second war file from the
> same java sources (same web
> application, but different web.xml)
>
> I want to use war-plugin "maven.war.webxml" property to set the web.xml that is used
> in the war, and change it
regarding
> wich war must be build.
>
> Is there any way to change the propect.properties that is used when runnign maven or
> to set properties in project.xml
?
>
> I tried to set a second project.xml that extends my project.xml this way :
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <project>
> <extend>project.xml</extend>
> <id>restricted-webapp</id>
> <name>restricted-webapp</name>
> <groupId>webapp</groupId>
>
> <properties>
> <maven.war.webxml>web-restricted.xml</maven.war.webxml>
> </properties>
> </project>
>
> This way I should be able to use maven -p option to run a build on my second webapp.
> But this doesn't work (default
> web.xml is used).
>
> Do you have any suggestion ?
>
> Nico.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]