Hi Can you add camel-spring to your dependency. The event component is from that module. On Tue, Dec 6, 2011 at 4:46 PM, farhad wrote: > Hi, > Has Anybody successfully tried to use amon tool/framework with the maven > activemq plugin? My specific problem is to make sure that the following > artifacts are in the classpath of the plugin. Adding the "" > clauses to the plugin def. is apparently not enough. > - I have no problem using amon with standalone activemq, using the depicted > activemq.xml below > - The amon license file is put in the src/main/resource dir. I'm not sure if > it is enough. > > When running "mvn clean install", I get the following error: > ---- > Embedded error: Unexpected exception parsing XML document from URL > [file:/home/fade/projects/misc/activemq/amon/src/main/resources/META-INF/activemq.xml]; > nested exception is java.lang.NoClassDefFoundError: > org/apache/camel/component/event/EventEndpoint > .... > .... > --- > Below is my plugin definition together with the activemq.xml file: > I'd appreciate any help. > -Farhad D. > > =========== Plugin def. ================== > > org.apache.activemq.tooling > maven-activemq-plugin > > > xbean:file://${project.basedir}/src/main/resources/META-INF/activemq.xml >        ${activemq.plugin.fork} >         >                 >                        javax.net.ssl.keyStorePassword >                        activemq >                 >                 >                        org.apache.activemq.default.directory.prefix >                        ./target/ >                 >                 >                        log4j.configuration > > file://${project.basedir}/src/main/resources/log4j.properties >                 >         > > >         >                org.apache.camel >                camel-core >                ${camel.version} >         >         >                com.ttm.activemq >                amon >                ${amon.version} >         >         >                de.odysseus.juel >                juel >                2.1.0 >         >         >                jdmk >                jdmkrt >                5.1.3 >         >         >                org.slf4j >                slf4j-api >                ${slf4j.version} >         >         >                org.slf4j >                slf4j-log4j12 >                ${slf4j.version} >         > >         >                org.apache.commons >                commons-daemon >                1.0.3 >         >         >                org.apache.activemq >                activemq-console >                5.5.0 >                 >                         > commons-daemon > commons-daemon >                         >                 >         > > >         >                start-activemq >                process-test-classes >                 >                        run >                 >         > > > ======================================= > =========== activemq.xml ================== > >  xmlns:amq="http://activemq.apache.org/schema/core" >  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >  xmlns:camel="http://camel.apache.org/schema/spring" >  xsi:schemaLocation="http://www.springframework.org/schema/beans >  http://www.springframework.org/schema/beans/spring-beans-2.0.xsd >  http://activemq.apache.org/schema/core >  http://activemq.apache.org/schema/core/activemq-core.xsd >  http://camel.apache.org/schema/spring > http://camel.apache.org/schema/spring/camel-spring.xsd >  "> >   brokerName="localhost" useJmx="true" useShutdownHook="false" > dataDirectory="./target/activemq-data" persistent="false" > schedulerSupport="true"> >         >                 >                         > >         > > >                                        queuePrefix="DLQ." >                        useQueueForQueueMessages="true" >                        processExpired="false" >                        processNonPersistent="false"/> >         > >                         >                 >         > >     >       >     > >     >         xmlns="http://www.springframework.org/schema/beans"/> >     > >     >       >     > >   > >   xmlns="http://camel.apache.org/schema/spring"> >        myown.activemq.monlets >   > > > ========================================== > > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/Using-Amon-with-maven-activemq-plugin-tp4165185p4165185.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/