Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Auto Closed
-
2.3
-
None
-
None
-
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Maven home: C:\sviluppo\apache-maven\bin\..
Java version: 1.6.0_25, vendor: Sun Microsystems Inc.
Java home: C:\sviluppo\Java\jdk1.6.0_25\jre
Default locale: it_IT, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100) Maven home: C:\sviluppo\apache-maven\bin\.. Java version: 1.6.0_25, vendor: Sun Microsystems Inc. Java home: C:\sviluppo\Java\jdk1.6.0_25\jre Default locale: it_IT, platform encoding: Cp1252 OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
Description
When I run the command mvn ant:ant -o on my project where I have a Jar Module, I got this line
<target name="package" depends="compile,test" description="Package the application">
<jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
compress="true"
index="true"
basedir="${maven.build.outputDir}"
excludes="**/package.html">
<manifest>
<attribute name="Main-Class"/>
</manifest>
</jar>
</target>
which give error.
If I remove the manifest tags all works well.
My file not have main class because is a module for a webapp.