You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Keisuke Matsubara <k-...@bx.jp.nec.com> on 2005/12/06 05:54:07 UTC
[m2] How to change maven.war.src in pom.xml
Hi,
I want to configure maven.war.src for fitting my directories.
Would someone tell me method ?
I could work by default ,but I want to fit pom.xml to my directories.
So I configured pom.xml like following ,but it did not work my way.
<project>
:
<build>
<finalName>${pom.artifactId}</finalName>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.0-beta-2</version>
<configuration>
<maven.war.src>${project.dir}/resources</maven.war.src>
</configuration>
</plugin>
</plugins>
</build>
</project>
My directories are following.
~/WEBAPP_NAME/
src/
JAVA_CODES
resources/
webapp/
WEB-INF/
OTHER_FILES(html,jsp ..)
I can create war file when I change directories like following.
~/WEBAPP_NAME/
src/
JAVA_CODES
main/
webapp/
WEB-INF/
OTHER_FILES(html,jsp ..)
resources/
Thanks in advance,
Keisuke
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] How to change maven.war.src in pom.xml
Posted by Keisuke Matsubara <k-...@bx.jp.nec.com>.
Hi Allan,
Thank you for you information. I could configure correctly.
I changed my pom.xml like following.
<project>
:
<build>
:
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.0-beta-2</version>
<configuration>
<warSourceDirectory>webapp</warSourceDirectory>
</configuration>
</plugin>
</plugins>
</build>
</project>
Thanks,
Keisuke
Allan Ramirez wrote:
> Hi Keisuke,
>
> See http://docs.codehaus.org/display/MAVENUSER/FAQs
> and look for the question "How can I configure the equivalent of
> maven.war.src of war plugin in m2?"
>
> Hope this helps
>
> regards,
> -allan
>
> Keisuke Matsubara wrote:
>
>
>>Hi,
>>I want to configure maven.war.src for fitting my directories.
>>Would someone tell me method ?
>>
>>I could work by default ,but I want to fit pom.xml to my directories.
>>So I configured pom.xml like following ,but it did not work my way.
>>
>><project>
>> :
>> <build>
>> <finalName>${pom.artifactId}</finalName>
>> <sourceDirectory>src</sourceDirectory>
>> <resources>
>> <resource>
>> <directory>resources</directory>
>> </resource>
>> </resources>
>> <plugins>
>> <plugin>
>> <groupId>org.apache.maven.plugins</groupId>
>> <artifactId>maven-war-plugin</artifactId>
>> <version>2.0-beta-2</version>
>> <configuration>
>> <maven.war.src>${project.dir}/resources</maven.war.src>
>> </configuration>
>> </plugin>
>> </plugins>
>> </build>
>></project>
>>
>>
>>My directories are following.
>>~/WEBAPP_NAME/
>> src/
>> JAVA_CODES
>> resources/
>> webapp/
>> WEB-INF/
>> OTHER_FILES(html,jsp ..)
>>
>>I can create war file when I change directories like following.
>>~/WEBAPP_NAME/
>> src/
>> JAVA_CODES
>> main/
>> webapp/
>> WEB-INF/
>> OTHER_FILES(html,jsp ..)
>> resources/
>>
>>Thanks in advance,
>>Keisuke
>>
>>
>>
>>---------------------------------------------------------------------
>>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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] How to change maven.war.src in pom.xml
Posted by Allan Ramirez <ar...@exist.com>.
Hi Keisuke,
See http://docs.codehaus.org/display/MAVENUSER/FAQs
and look for the question "How can I configure the equivalent of
maven.war.src of war plugin in m2?"
Hope this helps
regards,
-allan
Keisuke Matsubara wrote:
>Hi,
>I want to configure maven.war.src for fitting my directories.
>Would someone tell me method ?
>
>I could work by default ,but I want to fit pom.xml to my directories.
>So I configured pom.xml like following ,but it did not work my way.
>
><project>
> :
> <build>
> <finalName>${pom.artifactId}</finalName>
> <sourceDirectory>src</sourceDirectory>
> <resources>
> <resource>
> <directory>resources</directory>
> </resource>
> </resources>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.0-beta-2</version>
> <configuration>
> <maven.war.src>${project.dir}/resources</maven.war.src>
> </configuration>
> </plugin>
> </plugins>
> </build>
></project>
>
>
>My directories are following.
>~/WEBAPP_NAME/
> src/
> JAVA_CODES
> resources/
> webapp/
> WEB-INF/
> OTHER_FILES(html,jsp ..)
>
>I can create war file when I change directories like following.
>~/WEBAPP_NAME/
> src/
> JAVA_CODES
> main/
> webapp/
> WEB-INF/
> OTHER_FILES(html,jsp ..)
> resources/
>
>Thanks in advance,
>Keisuke
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>