The question could be why ??
The solution is :

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

See : 
http://maven.apache.org/plugins/maven-jar-plugin/examples/manifest-customization.html
http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html#archive
http://maven.apache.org/shared/maven-archiver/index.html


cheers

Arnaud

On Sep 2, 2010, at 11:48 PM, [email protected] wrote:

> Hi,
> New to maven.
> 
> I have a basic project setup which is packaging a jar using the 
> maven-compiler-plugin.
> 
> My resulting JAR is getting a /META-INF/maven directory with a bunch of stuff 
> in 
> it. How do I remove this or ensure that mvn package does not generate it?
> 
> thanks
> 
> 
> ---------------------------------------------------------------------
> 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