You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "luca preziati (JIRA)" <ji...@codehaus.org> on 2012/07/17 12:12:21 UTC
[jira] (MANT-71) Plugin not work with offline repository
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
[jira] (MANT-71) Plugin not work with offline repository
Posted by "luca preziati (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MANT-71?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
luca preziati updated MANT-71:
------------------------------
Attachment: patchJar.txt
Patch
> 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
> Attachments: patchJar.txt
>
>
> 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
[jira] (MANT-71) Plugin not work with offline repository
Posted by "luca preziati (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MANT-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=303814#comment-303814 ]
luca preziati commented on MANT-71:
-----------------------------------
I don't have the Manifest file
> 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