I guess my webmail is quite buggy then :)

I was already given the solution for the <build> tag,
but thanks for the detail about ${basedir} !

Regards,

Yann

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

 De     : &quot;Kenney Westerhof&quot; [EMAIL PROTECTED]
 A      : &quot;Maven Users List&quot;
users@maven.apache.org
 Cc     :
 Date   : Thu, 16 Jun 2005 11:21:43 +0200 (CEST)
 Objet  : Re:[m2] Overriding webapp source directory



-On Thu, 16 Jun 2005, Yann LE DU wrote:
-
-The first post seemed fine :)
-
-I guess you're using the maven-war-plugin (you
specified war
-as the packaging in the pom?). In that case,
-add the following below your <build> tag:
-
-   <plugins>
-     <plugin>
-       <artifactId>maven-war-plugin</artifactId>
-       <configuration>
-    
<warSourceDirectory>final-foo/WebContent</warSourceDirectory>
-       </configuration>
-    </plugin>
-   </plugins>
-
-Btw it's best to prepend ${basedir} to those paths,
because
-if the project is part of a multiproject build the current
-directory is taken as a starting point which may be bad ;)
-
--- Kenney
-
-
-> So much for my project tree, all blanks were gotten rid
-> of :)
->
-> Here is another try :
->
-> - foo
-> - |-- final-foo
-> -     |-- JavaSource
-> -         |-- com
-> -             |-- ...
-> -     |-- WebContent
-> -         |-- WEB-INF
-> -             |-- ...
-> -         |--...
->
->
-> Yann
->
->
->
-> ---------- Mail d'origine -----------
->
->  De     : &quot;Yann LE DU&quot; [EMAIL PROTECTED]
->  A      : users@maven.apache.org
->  Cc     :
->  Date   : Thu, 16 Jun 2005 11:06:11 +0200
->  Objet  : [m2] Overriding webapp source directory
->
->
->
-> -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]
->
->
-
---
-Kenney Westerhof
-http://www.neonics.com
-GPG public key: http://www.gods.nl/~forge/kenneyw.key
-
----------------------------------------------------------------------
-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