Uploaded image for project: 'Maven Ant Plugin (RETIRED)'
  1. Maven Ant Plugin (RETIRED)
  2. MANT-71

Plugin not work with offline repository

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Auto Closed
    • 2.3
    • None
    • None

    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.

      Attachments

        1. patchJar.txt
          1 kB
          luca preziati

        Activity

          People

            Unassigned Unassigned
            luca.preziati luca preziati
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: