luca preziati created MANT-71:
---------------------------------
Summary: Plugin not work with offline repository
Key: MANT-71
URL: https://jira.codehaus.org/browse/MANT-71
Project: Maven 2.x Ant Plugin
Issue Type: Bug
Affects Versions: 2.3
Environment: 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"
Reporter: luca preziati
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira