Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-2108

Maven Plugin - package mvn goal fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 4.1.0.Final
    • MTA Maven Plugin
    • None
    • None

      Plugin POM config

      <plugin>
      <groupId>org.jboss.windup.plugin</groupId>
      <artifactId>windup-maven-plugin</artifactId>
      <version>4.1.0.Final</version>
      <executions>
      <execution>
      <id>run-windup</id>
      <phase>package</phase>
      <goals>
      <goal>windup</goal>
      </goals>
      </execution>
      </executions>
      <configuration>
      <offlineMode>true</offlineMode>
      <windupVersion>4.1.0.Final</windupVersion>
      </configuration>
      </plugin>
      Summary
      ************
      Error loading beans.xml jar:file:/home/pcattana/Workspace1/app/target/addons/org-jboss-windup-rules-apps-windup-rules-java-4-1-0-Final/windup-rules-java-api-4.1.0.Final.jar!/META-INF/beans.xml

      When I navigate to that jar and try to manually edit the beans.xml file using a text editor it fails to open.

      Console Output
      ********************

      SEVERE: Failed to start addon [org.jboss.windup.rules.apps:windup-rules-java,4.1.0.Final] with classloader [ModuleClassLoader for Module "org.jboss.windup.rules.apps.windup-rules-java:4.1.0.Final_0a250d03-75a9-44bf-8410-01dba10981d0" from AddonModuleLoader]
      org.jboss.weld.exceptions.IllegalStateException: WELD-001201: Error loading beans.xml jar:file:/home/pcattana/Workspace1/app/target/addons/org-jboss-windup-rules-apps-windup-rules-java-4-1-0-Final/windup-rules-java-api-4.1.0.Final.jar!/META-INF/beans.xml
      at org.jboss.weld.xml.BeansXmlParser.parse(BeansXmlParser.java:110)
      at org.jboss.weld.bootstrap.WeldBootstrap.parse(WeldBootstrap.java:130)
      at org.jboss.weld.environment.deployment.discovery.AbstractBeanArchiveScanner.parseBeansXml(AbstractBeanArchiveScanner.java:46)
      at org.jboss.weld.environment.deployment.discovery.DefaultBeanArchiveScanner.scan(DefaultBeanArchiveScanner.java:76)
      at org.jboss.weld.environment.deployment.discovery.AbstractDiscoveryStrategy.performDiscovery(AbstractDiscoveryStrategy.java:86)
      at org.jboss.weld.environment.se.Weld.createDeployment(Weld.java:861)
      at org.jboss.weld.environment.se.Weld.initialize(Weld.java:746)
      at org.jboss.forge.furnace.container.cdi.lifecycle.WeldAddonLifecycleProvider.start(WeldAddonLifecycleProvider.java:80)
      at org.jboss.forge.furnace.impl.addons.AddonRunnable$2.call(AddonRunnable.java:92)
      at org.jboss.forge.furnace.impl.addons.AddonRunnable$2.call(AddonRunnable.java:86)
      at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
      at org.jboss.forge.furnace.impl.addons.AddonRunnable.run(AddonRunnable.java:85)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)
      at java.util.zip.ZipFile.read(Native Method)
      at java.util.zip.ZipFile.access$1400(ZipFile.java:60)
      at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:734)
      at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:434)
      at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
      at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:122)
      at java.io.FilterInputStream.read(FilterInputStream.java:83)
      at com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.read(XMLEntityManager.java:2890)
      at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:674)
      at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:148)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:805)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327)
      at org.jboss.weld.xml.BeansXmlParser.parse(BeansXmlParser.java:106)
      ... 16 more

              Unassigned Unassigned
              pcattana Philip Cattanach
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: