Uups,
my fault, due to some other plugin testing I had a snv version of the jar plugin
installed. In the current released version this parameter isn't available. So as Mang said
, if you really have to remove the maven specific files you have to use a recent snapshot
version of the plugin or build it from svn.
However if I try to build with the released jar-plugin it just bumps out with the error
below and not with the exception you got.
-Tim
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-jar-plugin:2.0
Cause: Cannot find setter nor field in org.apache.maven.archiver.MavenArchiveConfiguration
for 'addMavenDescriptor'
[INFO]
----------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Thu Apr 13 19:08:11 CEST 2006
[INFO] Final Memory: 3M/6M
[INFO]
----------------------------------------------------------------------------
RobJac schrieb:
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]