Just tried, it works just fine !

I guess I can do the same with any other plugin goal
parameter, which I didn't get from the docs.

Thanks Edwin !

Yann

---------- Mail d'origine -----------

 De     : "Edwin Punzalan" [EMAIL PROTECTED]
 A      : "Maven Users List"
users@maven.apache.org
 Cc     :
 Date   : Thu, 16 Jun 2005 17:50:15 +0800
 Objet  : Re: [m2] Overriding webapp source directory



-Hi,
-
-Have you tried setting the "|warSourceDirectory|"
property of the m2
-maven-war-plugin?
-
-Your pom should look like this:
-
-....
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-war-plugin</artifactId>
-        <configuration>
-
<warSourceDirectory>final-foo/WebContent</warSourceDirectory>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
-.....
-
-Yann LE DU wrote:
-
->Hi there,
->
->I'm 2-week-old to Maven and trying to build a small
->webapp with Maven (for POC). The thing is, my corp. is
->already using Eclipse Web Tools, which forces us into
->this kind of project structure (I hid test directories
->for readability) :
->
->foo
->|-- final-foo
->    |-- JavaSource
->        |-- com
->            |-- ...
->    |-- WebContent
->        |-- WEB-INF
->            |-- ...
->        |--...
->
->Even though I know this isn't the way Maven is supposed
->to work :) , I partly solved the issue by including the
->following in my foo/pom.xml :
->
-><build>
->  <sourceDirectory>final-foo/JavaSource</sourceDirectory>
-></build>
->
->...which is working well, but I'd like to do the same
->for the webapp directory, that is, something like :
->
-><webappSourceDirectory>final-foo/WebContent</webappSourceDirectory>
->
->I haven't found anything in docs, JIRA, user lists. Is
->there any way ?
->
->Yann
->
->
->---------------------------------------------------------------------
->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]
-
-


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

Reply via email to