I think you've simply interpreted the documentation incorrectly. ;-)

The workDirectory (according to my reading of the docs) is only used when you 
are using WAR overlaying. It will unpack the dependent WARs into work directory 
and then merge your webapp with those files.
http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html

Wayne

On 11/4/06, jiangshachina <[EMAIL PROTECTED]> wrote:

Hi guys,
I'm trying to use customized directory structure.
The following is my pom scripts(part),
<build>
        <finalName>webapp</finalName>
        <directory>target</directory>
        <sourceDirectory>src/java</sourceDirectory>
        <outputDirectory>target/classes</outputDirectory>

        <plugins>
                <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-war-plugin</artifactId>
                        <configuration>
                                <webappDirectory>src/webapp</webappDirectory>
                                <workDirectory>target/work</workDirectory>
                        </configuration>
                </plugin>
        </plugins>
</build>

I read docs at link
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html
In my mind, Maven should unpack the war file into directory indicated by
"<workDirectory>".
But it doesn't work.

a cup of Java, cheers!
Sha Jiang
--
View this message in context:
http://www.nabble.com/how-to-use-%22%3CworkDirectory%3E%22--tf2573253s177.html#a7173471
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
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