[weld-dev] why is there a "maven" directory in the numberguess war?

Dan Allen dan.j.allen at gmail.com
Tue Nov 17 03:28:43 EST 2009


On Tue, Nov 17, 2009 at 6:19 AM, Gavin King <gavin.king at gmail.com> wrote:

> We also have one in the wicket war.


The standard behavior for Maven is to add its own properties file into the
artifact containing buildtime information.

Max will be happy when I say that there is a stackoverflow.com answer to
this question:

http://stackoverflow.com/questions/1477587/how-to-exclude-pom-xml-from-maven-generated-war

One suggestion is this config, but in a quick test it didn't work for me.

<project>
  ...
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.0</version>
        <configuration>
          <archive>
            <addMavenDescriptor>false</addMavenDescriptor>
          </archive>
        </configuration>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

-Dan

-- 
Dan Allen
Senior Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597

http://mojavelinux.com
http://mojavelinux.com/seaminaction
http://www.google.com/profiles/dan.j.allen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20091117/af699b8e/attachment.html 


More information about the weld-dev mailing list