Hi all,
I have yet a question about correct using of WAR plugin, I'll try to
describe my scenario:

Here it is a part of my project structure:

| configuration
|- dev
|-- WEB-INF
|--- repository.xml 
| src
|- main
|-- webapp
|--- WEB-INF
|---- repository.xml

As you can see, I have two respository.xml, one to be used during
development releases and the other one to be used as default release.

I would like to control though profiles, dev releases and default releases,
and so my pom (a part of it)is:

...
<profile>
  <id>dev</id>
    <build>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-war-plugin</artifactId>
          <version>2.1-alpha-2</version>
          <configuration>                      
          <webResources>
            <resource>
              <directory>configuration/release</directory>  
            </resource>
         </webResources>
         </configuration>
      </plugin>
   </plugins>
  </build>
</profile>
...

After executing of mvn clean package -P dev I would like to see inside 
|target
|- my-webapp
|-- WEB-INF
|--- repository.xml (the profile dev version)

But I'm continueing see default repository.xml?

Probably it's happening that first it is written dev repository.xml and then
it is overwritten with default repository.xml....in your opinion that's
possible?

Anyway, is there a way to decide ordering of resources that are packaged
inside war? Or can you give another solution or best practice?

Thanks in advance, best regards
Raffaele

-- 
View this message in context: 
http://www.nabble.com/WAR-plugin-misunderstanding-tp20268175p20268175.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to