3 Replies Latest reply on Jun 23, 2009 3:29 AM by Andy Taylor

    maven2 dependency integration

    Andy Taylor Master

      Ive completed the maven2 integration. You'll see a pom.xml file in the root directory, this is where the dependencies are now mapped. In this you will also see a maven plugin defined, this is the jboss build thirdparty plugin. basicall what happens is maven downloads the dependencies to its local repository (you'll find this under home/user/.m2) and the plugin then created the thirdparty directory and ibraries.ent and copies the jars over.

      Any problems let me know

        • 1. Re: maven2 dependency integration
          Tim Fox Master

          Clearly I am a Maven newbie, but when trying to build I get:

          Buildfile: build.xml
          
          check.inhibit.downloads:
          
          createthirdparty:
          
          maven-init:
           [echo] Maven Home set to /home/tim/workspace/trunk/tools/maven
          
          maven-install:
          
          BUILD FAILED
          /home/tim/workspace/trunk/build.xml:51: The following error occurred while executing this line:
          /home/tim/workspace/trunk/build-thirdparty.xml:115: The following error occurred while executing this line:
          /home/tim/workspace/trunk/build-thirdparty.xml:73: /home/tim/workspace/trunk/tools/maven/boot not found.
          
          


          I assume this is because I don't have maven installed or on the path.

          Some instructions on what we have to install and where we have to put it would be quite helpful (for clueless ones like me)

          • 2. Re: maven2 dependency integration
            Clebert Suconic Master

            All the Examples are broken because of this:



            From queue for instance:


            
             [java] Jun 22, 2009 12:05:16 PM org.jboss.common.example.JBMExample run
             [java] INFO: jbm.example.runServer is true
             [java] Jun 22, 2009 12:05:16 PM org.jboss.common.example.JBMExample startServer
             [java] INFO: starting server with config 'server0' logServerOutput true
             [java] JBMServer_0 err:12:05:16,962 SEVERE [org.jboss.messaging.integration.bootstrap.JBMBootstrapServer] Failed to start server
             [java] JBMServer_0 err:java.lang.RuntimeException: Exception during Bootstrap
             [java] JBMServer_0 err: at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:93)
             [java] JBMServer_0 err: at org.jboss.messaging.integration.bootstrap.JBMBootstrapServer.run(JBMBootstrapServer.java:126)
             [java] JBMServer_0 err: at org.jboss.common.example.SpawnedJBMServer.main(SpawnedJBMServer.java:44)
             [java] JBMServer_0 err:Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: file:/work/projects/trunk/examples/jms/queue/server0/jbm-jboss-beans.xml@3,49
             [java] JBMServer_0 err: at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:177)
             [java] JBMServer_0 err: at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:147)
             [java] JBMServer_0 err: at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:86)
             [java] JBMServer_0 err: at org.jboss.messaging.integration.bootstrap.JBMBootstrapServer.deploy(JBMBootstrapServer.java:246)
             [java] JBMServer_0 err: at org.jboss.messaging.integration.bootstrap.JBMBootstrapServer.deploy(JBMBootstrapServer.java:215)
             [java] JBMServer_0 err: at org.jboss.messaging.integration.bootstrap.JBMBootstrapServer.bootstrap(JBMBootstrapServer.java:164)
             [java] JBMServer_0 err: at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:83)
             [java] JBMServer_0 err: ... 2 more
             [java] JBMServer_0 err:Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlNsForm
             [java] JBMServer_0 err: at org.jboss.xb.builder.JBossXBNoSchemaBuilder.<init>(JBossXBNoSchemaBuilder.java:164)
             [java] JBMServer_0 err: at org.jboss.xb.builder.JBossXBBuilder.build(JBossXBBuilder.java:288)
             [java] JBMServer_0 err: at org.jboss.xb.builder.JBossXBBuilder.build(JBossXBBuilder.java:181)
             [java] JBMServer_0 err: at org.jboss.xb.builder.JBossXBBuilder.build(JBossXBBuilder.java:160)
             [java] JBMServer_0 err: at org.jboss.xb.binding.resolver.AbstractMutableSchemaResolver.resolve(AbstractMutableSchemaResolver.java:261)
             [java] JBMServer_0 err: at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:274)
             [java] JBMServer_0 err: at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
             [java] JBMServer_0 err: at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533)
             [java] JBMServer_0 err: at com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.startElement(XIncludeHandler.java:715)
             [java] JBMServer_0 err: at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:330)
             [java] JBMServer_0 err: at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:779)
             [java] JBMServer_0 err: at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1794)
             [java] JBMServer_0 err: at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
             [java] JBMServer_0 err: at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
             [java] JBMServer_0 err: at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
             [java] JBMServer_0 err: at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
             [java] JBMServer_0 err: at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1168)
             [java] JBMServer_0 err: at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:173)
             [java] JBMServer_0 err: ... 8 more
             [java] java.lang.RuntimeException: server failed to start
             [java] at org.jboss.common.example.SpawnedVMSupport.spawnVM(SpawnedVMSupport.java:155)
             [java] at org.jboss.common.example.JBMExample.startServer(JBMExample.java:165)
             [java] JBMServer_0 out:FAILED::Exception during Bootstrap
             [java] at org.jboss.common.example.JBMExample.startServers(JBMExample.java:182)
             [java] at org.jboss.common.example.JBMExample.run(JBMExample.java:78)
             [java] at org.jboss.jms.example.QueueExample.main(QueueExample.java:44)
             [java] java.lang.NullPointerException
             [java] at org.jboss.common.example.JBMExample.stopServer(JBMExample.java:199)
             [java] at org.jboss.common.example.JBMExample.stopServers(JBMExample.java:190)
             [java] at org.jboss.common.example.JBMExample.run(JBMExample.java:109)
             [java] at org.jboss.jms.example.QueueExample.main(QueueExample.java:44)
             [java]
             [java] #####################
             [java] ### FAILURE! ###
             [java] #####################
             [java] Java Result: 1
            
            


            • 3. Re: maven2 dependency integration
              Andy Taylor Master

              o have fixed this, it was because i wasn't including the jaxb api jar in the mc jar. this wasn't failing for me since i was using java 6.