3 Replies Latest reply on May 1, 2007 11:29 AM by Paul Gier

    Generated component-info.xml for aggregate project is wrong

    Carlo de Wolf Master

      I just noticed that the generated component-info.xml for the javaee aggregate project is wrong.

      1. The second artifact should be 'jboss-javaee.jar';
      2. The export should include an 'include jboss-javaee.jar';

      <?xml version="1.0" encoding="UTF-8"?>
      <project xmlns="http://www.jboss.org/component-info/1.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.jboss.org/component-info/1.0 http://repository.jboss.org/component-info-v1_0.xsd"
       name="jboss/jboss-javaee-component-info">
       <component id="jboss/jboss-javaee"
       licenseType="lgpl"
       version="5.0.0-SNAPSHOT"
       description="The JBoss JavaEE API classes"
      
       >
      
       <artifact id="jboss-javaee-sources.jar"/>
       <artifact id="jboss-javaee-null.jar"/>
      
      
       <export>
      
       </export>
       </component>
      </project>


        • 1. Re: Generated component-info.xml for aggregate project is wr
          Paul Gier Master

          I believe I fixed the issue in the plugin. I created a 1.3-SNAPSHOT version of the plugin, and updated the javaee pom.

          • 2. Re: Generated component-info.xml for aggregate project is wr
            Carlo de Wolf Master

            The generated component-info.xml can't be used in the legacy build, because legacy parses it as an ant project file while component-info.xml lives in a different name space.

            /home/carlo/work/jboss-head/thirdparty/jboss/jboss-javaee/component-info.xml:5: Unexpected element "{http://www.jboss.org/component-info/1.0}project" {antlib:org.apache.tools.ant}project
             at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:233)
             at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:130)
             at org.jboss.ant.util.ImportUtil.importFile(ImportUtil.java:39)
             at org.jboss.ant.tasks.build.SynchronizeComponentsTask.importComponents(SynchronizeComponentsTask.java:147)
             at org.jboss.ant.tasks.build.SynchronizeComponentsTask.resolveDependencies(SynchronizeComponentsTask.java:110)
             at org.jboss.ant.tasks.build.SynchronizeComponentsTask.execute(SynchronizeComponentsTask.java:69)
             at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
             at org.apache.tools.ant.Task.perform(Task.java:364)
             at org.apache.tools.ant.Target.execute(Target.java:341)
             at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:142)
             at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:91)
             at org.apache.tools.ant.Main.runBuild(Main.java:653)
             at org.apache.tools.ant.Main.startAnt(Main.java:187)
             at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
             at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
            Caused by: org.xml.sax.SAXParseException: Unexpected element "{http://www.jboss.org/component-info/1.0}project" {antlib:org.apache.tools.ant}project
             at org.apache.tools.ant.helper.ProjectHelper2$MainHandler.onStartChild(ProjectHelper2.java:566)
             at org.apache.tools.ant.helper.ProjectHelper2$RootHandler.startElement(ProjectHelper2.java:461)
             at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
             at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
             at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
             at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
             at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
             at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
             at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
             at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
             at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
             at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
             at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:217)
             ... 14 more
            --- Nested Exception ---
            org.xml.sax.SAXParseException: Unexpected element "{http://www.jboss.org/component-info/1.0}project" {antlib:org.apache.tools.ant}project
             at org.apache.tools.ant.helper.ProjectHelper2$MainHandler.onStartChild(ProjectHelper2.java:566)
             at org.apache.tools.ant.helper.ProjectHelper2$RootHandler.startElement(ProjectHelper2.java:461)
             at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
             at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
             at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
             at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
             at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
             at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
             at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
             at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
             at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
             at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
             at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:217)
             at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:130)
             at org.jboss.ant.util.ImportUtil.importFile(ImportUtil.java:39)
             at org.jboss.ant.tasks.build.SynchronizeComponentsTask.importComponents(SynchronizeComponentsTask.java:147)
             at org.jboss.ant.tasks.build.SynchronizeComponentsTask.resolveDependencies(SynchronizeComponentsTask.java:110)
             at org.jboss.ant.tasks.build.SynchronizeComponentsTask.execute(SynchronizeComponentsTask.java:69)
             at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
             at org.apache.tools.ant.Task.perform(Task.java:364)
             at org.apache.tools.ant.Target.execute(Target.java:341)
             at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:142)
             at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:91)
             at org.apache.tools.ant.Main.runBuild(Main.java:653)
             at org.apache.tools.ant.Main.startAnt(Main.java:187)
             at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
             at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
            


            • 3. Re: Generated component-info.xml for aggregate project is wr
              Paul Gier Master

              I removed the namespace information from the 1.3-SNAPSHOT version of the plugin. If you update the version number in the project you are deploying, then that should fix this issue.

              I also added the 1.3-SNAPSHOT of the deploy plugin to the version 3-SNAPSHOT of the parent, so the other option is to point to the 3-SNAPSHOT version of the parent.