Hi,

I don't think that this functionality is in the current release of the 
maven-jar-plugin and the maven-war-plugin.  So far, it only works with the 
maven-ear-plugin.  So if you really need it, you can use the snapshot 
version of those plugins.


_Mang Lau





RobJac <[EMAIL PROTECTED]> 
04/13/2006 12:31 PM
Please respond to
"Maven Users List" <users@maven.apache.org>


To
users@maven.apache.org
cc

Subject
Re: Remove mavern folder in META-INF







Hi,
I tried adding the plugin tag but it was giving me the below error

java.lang.NullPointerException
        at java.util.regex.Matcher.getTextLength(Matcher.java:1127)
        at java.util.regex.Matcher.reset(Matcher.java:284)
        at java.util.regex.Matcher.<init>(Matcher.java:205)
        at java.util.regex.Pattern.matcher(Pattern.java:879)
        at
org.apache.maven.plugin.PluginConfigurationException.addParameterUsag
eInfo(PluginConfigurationException.java:85)
        at
org.apache.maven.plugin.PluginConfigurationException.buildConfigurati
onDiagnosticMessage(PluginConfigurationException.java:272)
        at
org.apache.maven.usability.PluginConfigurationDiagnoser.diagnose(Plug
inConfigurationDiagnoser.java:49)
        at
org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(Erro
rDiagnostics.java:81)
        at
org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:693)
        at org.apache.maven.DefaultMaven.logError(DefaultMaven.java:640)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:119)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

Any idea why i am getting this? My pom.xml looks like this

<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  <modelVersion>4.0.0</modelVersion> 
  <groupId>Component_ADP</groupId>
  <artifactId>Component_ADP</artifactId>
  <packaging>jar</packaging>
  <version>1.0</version>
  <name>Maven Quick Start Archetype</name>
  <parent>
    <groupId>DefinedBenefit_EA</groupId>
    <artifactId>DefinedBenefit_EA</artifactId>
    <version>1.0</version>
  </parent>
  <build>
    <directory>${basedir}</directory>
    <outputDirectory>classes</outputDirectory>
    <finalName>${project.artifactId}</finalName>
    <testOutputDirectory>test-classes</testOutputDirectory>
    <sourceDirectory>src</sourceDirectory>
    <testSourceDirectory>test</testSourceDirectory>
    <resources>
      <resource>
        <directory>${basedir}/resources</directory>
      </resource>
    </resources>
    <testResources>
      <testResource>
        <directory>test</directory>
      </testResource>
    </testResources>
                 <plugins>
                                 <plugin> 
 <groupId>org.apache.maven.plugins</groupId> 
                                 <artifactId>maven-jar-plugin</artifactId> 

                                 <configuration> 
                                  <archive> 
 <addMavenDescriptor>false</addMavenDescriptor> 
                                  </archive> 
                                 </configuration> 
                                 </plugin> 

                                 <plugin> 
 <groupId>org.apache.maven.plugins</groupId> 
 <artifactId>maven-surefire-plugin</artifactId> 
                                                 <configuration> 
 <skip>${unittests.skip}</skip> 
 <testFailureIgnore>true</testFailureIgnore> 
                                                 </configuration> 
                                 </plugin>
                     <plugin>
                       <groupId>org.apache.maven.plugins</groupId>
                       <artifactId>maven-compiler-plugin</artifactId>
                                 <configuration>
                                   <source>1.5</source>
                                   <target>1.5</target>
                                 </configuration>
                        </plugin> 
                 </plugins> 
  </build>

  <reporting>
    <outputDirectory>target/site</outputDirectory>
  </reporting>
</project>
--
View this message in context: 
http://www.nabble.com/Remove-mavern-folder-in-META-INF-t1444885.html#a3903992

Sent from the Maven - Users forum at Nabble.com.


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


Reply via email to