Hi JB on the console I have: [INFO] Running mypackage.serializer.unit.TestJavaSerializer [ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 184.204 s <<< FAILURE! - in mypackage.serializer.unit.TestJavaSerializer [ERROR] mypackage.serializer.unit.TestJavaSerializer Time elapsed: 184.202 s <<< ERROR! java.lang.RuntimeException: Cannot get the remote bundle context Caused by: java.rmi.NotBoundException: 6a684c8e-bbea-4b4b-9f57-7776020e6d13
[ERROR] mypackage.serializer.unit.TestJavaSerializer Time elapsed: 184.204 s <<< ERROR! java.lang.RuntimeException: Container never came up at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:369) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:275) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:239) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:160) In the karaf log I have: Oct 04, 2017 9:59:33 AM org.apache.karaf.main.Main launch INFO: Installing and starting initial bundles Oct 04, 2017 9:59:33 AM org.apache.karaf.main.Main launch INFO: All initial bundles installed and set to start Oct 04, 2017 9:59:33 AM org.apache.karaf.main.lock.SimpleFileLock lock INFO: Trying to lock /var/lib/jenkins/workspace/itms-server-master-test/itms-integration-tests/itms-eventbus-itest/target/exam/0b7ac007-5aa6-4a7c-8c7a-328145f223c0/lock Oct 04, 2017 9:59:33 AM org.apache.karaf.main.lock.SimpleFileLock lock INFO: Lock acquired Oct 04, 2017 9:59:33 AM org.apache.karaf.main.Main$KarafLockCallback lockAquired INFO: Lock acquired. Setting startlevel to 100 2017-10-04 09:59:35,462 | WARN | FelixStartLevel | JaxbUtil | 8 - org.apache.karaf.features.core - 4.0.9 | Old style feature file without namespace found (URI: mvn:org.apache.activemq/activemq-karaf/5.15.0/xml/features). This format is deprecated and support for it will soon be removed in attach an extract of effective pom and the abstract class from wich I derived all my tests. regards Giuseppe 2017-10-04 7:09 GMT+02:00 Jean-Baptiste Onofré <j...@nanthrax.net>: > Surefire >= 2.19 ? > > I also depends what you do in the itest. What's your failing tests ? > > Regards > JB > > > On 10/03/2017 04:55 PM, Giuseppe Gerla wrote: > >> I don't understand.... >> I try to build activemq project on my jenkins machine and integration >> tests >> work fine... >> I use same version of pax-exam, same version of surefire plugin, same >> version of karaf... why my tests don't work? >> >> >> >> >> 2017-10-02 14:32 GMT+02:00 Giuseppe Gerla <giuseppe.ge...@gmail.com>: >> >> Hi JB >>> I have a big doubt... >>> If the problem is the surefire plugin vesion, what is the version used by >>> pax-exam? >>> 2.19.... >>> So although I specify in my pom that version is 2.20.1, what is the >>> version really used by pax-exam? >>> >>> >>> >>> Regards >>> Giuseppe >>> >>> >>> >>> >>> >>> 2017-10-02 12:28 GMT+02:00 Giuseppe Gerla <giuseppe.ge...@gmail.com>: >>> >>> Hi JB >>>> Unfortunately I tryed on jenkins machine and I have always the same >>>> problem. >>>> In the surfire dumpstream file I have this error >>>> >>>> # Created on 2017-10-02T10:03:04.024 >>>> [SUREFIRE] std/in stream corrupted >>>> java.io.IOException: Command NOOP unexpectedly read Void data with >>>> length >>>> 4. >>>> at org.apache.maven.surefire.booter.MasterProcessCommand.decode >>>> (MasterProcessCommand.java:130) >>>> at org.apache.maven.surefire.booter.CommandReader$CommandRunnab >>>> le.run(CommandReader.java:391) >>>> at java.lang.Thread.run(Thread.java:745) >>>> >>>> The problem is always randomic and occurs if I run with jenkins but also >>>> if I run command by bash. >>>> >>>> >>>> >>>> >>>> Regards >>>> Giuseppe >>>> >>>> >>>> >>>> 2017-10-01 21:41 GMT+02:00 Jean-Baptiste Onofré <j...@nanthrax.net>: >>>> >>>> Hi Giuseppe, >>>>> >>>>> just tried to upgrade to surefire 2.20.1 on Karaf, and the itests seem >>>>> overall OK (just an issue with BundleTest that I'm checking now). >>>>> >>>>> Regards >>>>> JB >>>>> >>>>> >>>>> On 10/01/2017 08:12 PM, Giuseppe Gerla wrote: >>>>> >>>>> Hi JB >>>>>> thanks for your support. Today I do some progress... >>>>>> In cxf pom (https://github.com/apache/cxf/blob/master/pom.xml) I >>>>>> found >>>>>> a >>>>>> comment about an issue of surefire plugin (SUREFIRE-1302). Because >>>>>> this >>>>>> issue was solved in 2.20.1 I configure correctly this version (before >>>>>> I >>>>>> have a wrong configuration) and in this way I have success with itests >>>>>> on >>>>>> my pc. >>>>>> Tomorrow I will try in office and I will inform you about results. >>>>>> >>>>>> >>>>>> >>>>>> Thanks >>>>>> Regards >>>>>> Giuseppe >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> 2017-10-01 18:27 GMT+02:00 Jean-Baptiste Onofré <j...@nanthrax.net>: >>>>>> >>>>>> Hi Giuseppe, >>>>>> >>>>>>> >>>>>>> I remember that I got Pax Exam failure with maven-surefire-plugin >>>>>>> updated >>>>>>> to 2.19.1. That's why we still use surefire 2.18.1 in Karaf itself >>>>>>> (for >>>>>>> itests using Pax Exam). >>>>>>> >>>>>>> It seems to be caused to a change in surefire. I didn't investigate >>>>>>> that >>>>>>> much as it's not heavily blocker for us. >>>>>>> >>>>>>> I would advice you to stay with surefire 2.18.1, it should work (it's >>>>>>> what >>>>>>> we have in Karaf). >>>>>>> >>>>>>> If it's important to you, I can investigate a bit. >>>>>>> >>>>>>> Regards >>>>>>> JB >>>>>>> >>>>>>> >>>>>>> On 10/01/2017 11:00 AM, Giuseppe Gerla wrote: >>>>>>> >>>>>>> Hi JB, >>>>>>> >>>>>>>> I have done several tests and combination to try to understand >>>>>>>> better >>>>>>>> the >>>>>>>> problem. >>>>>>>> It seems related to version and configuration of >>>>>>>> maven-surefire-plugin. >>>>>>>> If I don't specify anithing in my pom about surefire plugin, tests >>>>>>>> are ok >>>>>>>> on my pc but I have randomic problem on jenkins build. >>>>>>>> If I use the same configuration of activemq-karaf-itest with 2.18.1 >>>>>>>> or >>>>>>>> 2.20.1 version I have sistematic failure also on my PC. >>>>>>>> >>>>>>>> Please can you share your pom configuration about surefire plugin? >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Thanks >>>>>>>> Giuseppe >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> 2017-09-08 9:25 GMT+02:00 Giuseppe Gerla <giuseppe.ge...@gmail.com >>>>>>>> >: >>>>>>>> >>>>>>>> Hi JB >>>>>>>> >>>>>>>> yes I mean my Jenkins. >>>>>>>>> My itest is created with following code >>>>>>>>> >>>>>>>>> >>>>>>>>> MavenArtifactUrlReference karafUrl = >>>>>>>>> maven().groupId("org.apache. >>>>>>>>> karaf").artifactId("apache-karaf") >>>>>>>>> .versionAsInProject().type("tar.gz"); >>>>>>>>> >>>>>>>>> customOptions.add(karafDistributionConfiguration >>>>>>>>> ().frameworkUrl(karafUrl) >>>>>>>>> .karafVersion(getKarafVersion()). >>>>>>>>> unpackDirectory(new >>>>>>>>> File("target/exam")).useDeployFolder(false)); >>>>>>>>> >>>>>>>>> customOptions.add(keepRuntimeFolder()); >>>>>>>>> customOptions.add(junitBundles()); >>>>>>>>> customOptions.add(KarafDistributionOption >>>>>>>>> .editConfigurationFilePut("etc/ >>>>>>>>> org.apache.karaf.features.cf >>>>>>>>> g", >>>>>>>>> "featuresBoot", >>>>>>>>> "(aries-blueprint, bundle, >>>>>>>>> config, >>>>>>>>> deployer, diagnostic, feature, instance, jaas, kar, log, >>>>>>>>> management, >>>>>>>>> package, service, shell, shell-compat, ssh, system, wrap)")); >>>>>>>>> MavenUrlReference karafStandardRepo = >>>>>>>>> maven().groupId("org.apache. >>>>>>>>> karaf.features") >>>>>>>>> .artifactId("standard").class >>>>>>>>> ifier("features").type(" >>>>>>>>> xml").versionAsInProject(); >>>>>>>>> MavenUrlReference activemqStandardRepo = >>>>>>>>> maven().groupId("org.apache.activemq") >>>>>>>>> .artifactId("activemq-karaf"). >>>>>>>>> classifier("features").type(" >>>>>>>>> xml").versionAsInProject(); >>>>>>>>> >>>>>>>>> customOptions.add(KarafDistributionOption.features( >>>>>>>>> karafStandardRepo, >>>>>>>>> "scr")); >>>>>>>>> customOptions.add(KarafDistributionOption.features( >>>>>>>>> activemqStandardRepo, >>>>>>>>> "activemq-broker-noweb")); >>>>>>>>> >>>>>>>>> In the /data/log/karaf.log file there are no errors. But on the >>>>>>>>> console i >>>>>>>>> receive following exception >>>>>>>>> >>>>>>>>> >>>>>>>>> java.rmi.NotBoundException: 459dd019-b343-45a2-825c-4cc630909d16 >>>>>>>>> at sun.rmi.registry.RegistryImpl. >>>>>>>>> lookup(RegistryImpl.java:166) >>>>>>>>> at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown >>>>>>>>> Source) >>>>>>>>> at sun.rmi.server.UnicastServerRe >>>>>>>>> f.oldDispatch(UnicastServerRef >>>>>>>>> .java:411) >>>>>>>>> at sun.rmi.server.UnicastServerRe >>>>>>>>> f.dispatch(UnicastServerRef. >>>>>>>>> java:272) >>>>>>>>> at sun.rmi.transport.Transport$1.run(Transport.java:200) >>>>>>>>> at sun.rmi.transport.Transport$1.run(Transport.java:197) >>>>>>>>> at java.security.AccessController.doPrivileged(Native >>>>>>>>> Method) >>>>>>>>> at sun.rmi.transport.Transport.se >>>>>>>>> rviceCall(Transport.java:196) >>>>>>>>> at sun.rmi.transport.tcp.TCPTrans >>>>>>>>> port.handleMessages(TCPTranspo >>>>>>>>> rt.java:568) >>>>>>>>> at sun.rmi.transport.tcp.TCPTrans >>>>>>>>> port$ConnectionHandler.run0(TC >>>>>>>>> PTransport.java:826) >>>>>>>>> at sun.rmi.transport.tcp.TCPTrans >>>>>>>>> port$ConnectionHandler.lambda$ >>>>>>>>> run$0(TCPTransport.java:683) >>>>>>>>> at java.security.AccessController.doPrivileged(Native >>>>>>>>> Method) >>>>>>>>> at sun.rmi.transport.tcp.TCPTrans >>>>>>>>> port$ConnectionHandler.run(TCP >>>>>>>>> Transport.java:682) >>>>>>>>> at java.util.concurrent.ThreadPoo >>>>>>>>> lExecutor.runWorker(ThreadPool >>>>>>>>> Executor.java:1142) >>>>>>>>> at java.util.concurrent.ThreadPoo >>>>>>>>> lExecutor$Worker.run(ThreadPoo >>>>>>>>> lExecutor.java:617) >>>>>>>>> at java.lang.Thread.run(Thread.java:745) >>>>>>>>> at sun.rmi.transport.StreamRemote >>>>>>>>> Call.exceptionReceivedFromServ >>>>>>>>> er(StreamRemoteCall.java:276) >>>>>>>>> at sun.rmi.transport.StreamRemote >>>>>>>>> Call.executeCall(StreamRemoteC >>>>>>>>> all.java:253) >>>>>>>>> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:379) >>>>>>>>> at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown >>>>>>>>> Source) >>>>>>>>> at org.ops4j.pax.exam.rbc.client. >>>>>>>>> intern.RemoteBundleContextClie >>>>>>>>> ntImpl.getRemoteBundleContext(RemoteBundleContextClientImpl. >>>>>>>>> java:242) >>>>>>>>> at org.ops4j.pax.exam.rbc.client. >>>>>>>>> intern.RemoteBundleContextClie >>>>>>>>> ntImpl.waitForState(RemoteBundleContextClientImpl.java:211) >>>>>>>>> at org.ops4j.pax.exam.karaf.conta >>>>>>>>> iner.internal.KarafTestContain >>>>>>>>> er.waitForState(KarafTestContainer.java:580) >>>>>>>>> at org.ops4j.pax.exam.karaf.conta >>>>>>>>> iner.internal.KarafTestContain >>>>>>>>> er.startKaraf(KarafTestContainer.java:230) >>>>>>>>> at org.ops4j.pax.exam.karaf.conta >>>>>>>>> iner.internal.KarafTestContain >>>>>>>>> er.start(KarafTestContainer.java:180) >>>>>>>>> at org.ops4j.pax.exam.spi.reactor >>>>>>>>> s.AllConfinedStagedReactor.inv >>>>>>>>> oke(AllConfinedStagedReactor.java:79) >>>>>>>>> at org.ops4j.pax.exam.junit.impl. >>>>>>>>> ProbeRunner$2.evaluate(ProbeRu >>>>>>>>> nner.java:267) >>>>>>>>> at org.junit.runners.ParentRunner >>>>>>>>> .runLeaf(ParentRunner.java:325) >>>>>>>>> at org.junit.runners.BlockJUnit4C >>>>>>>>> lassRunner.runChild(BlockJUnit >>>>>>>>> 4ClassRunner.java:78) >>>>>>>>> at org.junit.runners.BlockJUnit4C >>>>>>>>> lassRunner.runChild(BlockJUnit >>>>>>>>> 4ClassRunner.java:57) >>>>>>>>> at org.junit.runners.ParentRunner >>>>>>>>> $3.run(ParentRunner.java:290) >>>>>>>>> at org.junit.runners.ParentRunner >>>>>>>>> $1.schedule(ParentRunner.java: >>>>>>>>> 71) >>>>>>>>> at org.junit.runners.ParentRunner >>>>>>>>> .runChildren(ParentRunner. >>>>>>>>> java:288) >>>>>>>>> at org.junit.runners.ParentRunner >>>>>>>>> .access$000(ParentRunner.java: >>>>>>>>> 58) >>>>>>>>> at org.junit.runners.ParentRunner >>>>>>>>> $2.evaluate(ParentRunner.java: >>>>>>>>> 268) >>>>>>>>> at org.junit.runners.ParentRunner >>>>>>>>> .run(ParentRunner.java:363) >>>>>>>>> at org.ops4j.pax.exam.junit.impl. >>>>>>>>> ProbeRunner.run(ProbeRunner.ja >>>>>>>>> va:98) >>>>>>>>> at org.ops4j.pax.exam.junit.PaxExam.run(PaxExam.java:93) >>>>>>>>> at org.apache.maven.surefire.juni >>>>>>>>> t4.JUnit4Provider.execute(JUni >>>>>>>>> t4Provider.java:283) >>>>>>>>> at org.apache.maven.surefire.juni >>>>>>>>> t4.JUnit4Provider.executeWithR >>>>>>>>> erun(JUnit4Provider.java:173) >>>>>>>>> at org.apache.maven.surefire.juni >>>>>>>>> t4.JUnit4Provider.executeTestS >>>>>>>>> et(JUnit4Provider.java:153) >>>>>>>>> at org.apache.maven.surefire.juni >>>>>>>>> t4.JUnit4Provider.invoke(JUnit >>>>>>>>> 4Provider.java:128) >>>>>>>>> at org.apache.maven.surefire.boot >>>>>>>>> er.ForkedBooter.invokeProvider >>>>>>>>> InSameClassLoader(ForkedBooter.java:203) >>>>>>>>> at org.apache.maven.surefire.boot >>>>>>>>> er.ForkedBooter.runSuitesInPro >>>>>>>>> cess(ForkedBooter.java:155) >>>>>>>>> at org.apache.maven.surefire.boot >>>>>>>>> er.ForkedBooter.main(ForkedBoo >>>>>>>>> ter.java:103) >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> if you share your jenkins configuration, it will be great >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> Regards >>>>>>>>> >>>>>>>>> Giuseppe >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> 2017-09-08 7:27 GMT+02:00 Jean-Baptiste Onofré <j...@nanthrax.net>: >>>>>>>>> >>>>>>>>> Hi Giuseppe, >>>>>>>>> >>>>>>>>> >>>>>>>>>> I guess you mean your own Jenkins ? >>>>>>>>>> >>>>>>>>>> The NoBoundException is cause by itests using RMI right ? >>>>>>>>>> >>>>>>>>>> For Jenkins, I can share with you the configuration I did on our >>>>>>>>>> job in >>>>>>>>>> the Apache Jenkins. >>>>>>>>>> >>>>>>>>>> Regards >>>>>>>>>> JB >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On 09/07/2017 10:51 PM, Giuseppe Gerla wrote: >>>>>>>>>> >>>>>>>>>> Hi all >>>>>>>>>> >>>>>>>>>> I'm experimenting 2 strange behaviours with integration tests >>>>>>>>>>> under >>>>>>>>>>> jenkins. >>>>>>>>>>> The first problem is that often integration tests fail with a >>>>>>>>>>> java.rmi.NoBoundException. This is a randomic behaviour. The same >>>>>>>>>>> tests >>>>>>>>>>> works fine on my pc. >>>>>>>>>>> The second problem is that when a test fails jenkins doesn't kill >>>>>>>>>>> the >>>>>>>>>>> test >>>>>>>>>>> process and in this way I have several ghost process. >>>>>>>>>>> >>>>>>>>>>> Do you have some idea? >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Following some additional information: >>>>>>>>>>> O.S. ubuntu 64bit >>>>>>>>>>> Jenkins -> 2.60.3 >>>>>>>>>>> Karaf -> 4.0.9 >>>>>>>>>>> pax-exam -> 4.9.1 >>>>>>>>>>> maven 3.5.0 >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Regards >>>>>>>>>>> Giuseppe >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> >>>>>>>>>>> Jean-Baptiste Onofré >>>>>>>>>> jbono...@apache.org >>>>>>>>>> http://blog.nanthrax.net >>>>>>>>>> Talend - http://www.talend.com >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>> >>>>>>> Jean-Baptiste Onofré >>>>>>> jbono...@apache.org >>>>>>> http://blog.nanthrax.net >>>>>>> Talend - http://www.talend.com >>>>>>> >>>>>>> >>>>>>> >>>>>> -- >>>>> Jean-Baptiste Onofré >>>>> jbono...@apache.org >>>>> http://blog.nanthrax.net >>>>> Talend - http://www.talend.com >>>>> >>>>> >>>> >>>> >>> >> > -- > Jean-Baptiste Onofré > jbono...@apache.org > http://blog.nanthrax.net > Talend - http://www.talend.com >
<properties> <mysql.connector.version>5.1.40</mysql.connector.version> <openjpa.version>2.3.0</openjpa.version> <itext.version>2.1.7</itext.version> <velocity.version>1.7_6</velocity.version> <junit.version>4.12</junit.version> <cxf.version>3.1.7</cxf.version> <bundle.plugin.version>3.3.0</bundle.plugin.version> <servicemix.version>5.1.3</servicemix.version> <karaf.version>4.0.9</karaf.version> <jcifs.version>1.3.17_1</jcifs.version> <commons.pool.version>1.5.4_4</commons.pool.version> <jpa.api.version>2.1.0</jpa.api.version> <pax-url-aether.version>2.5.2</pax-url-aether.version> <commons.beanutils.version>1.8.0</commons.beanutils.version> <jodatime.version>1.6.2</jodatime.version> <source.plugin.version>3.0.1</source.plugin.version> <checkstyle.plugin.version>2.17</checkstyle.plugin.version> <jasperreports.version>6.4.0</jasperreports.version> <commons.collections.version>3.2.1</commons.collections.version> <jfreechart.version>1.0.19</jfreechart.version> <objenesis.version>2.1</objenesis.version> <findbugs.plugin.version>3.0.4</findbugs.plugin.version> <geronimo.jpa.specs.version>1.1</geronimo.jpa.specs.version> <javadoc.plugin.version>2.10.4</javadoc.plugin.version> <compiler.plugin.version>3.7.0</compiler.plugin.version> <transaction.version>1.2</transaction.version> <jmock-junit4.version>2.8.2</jmock-junit4.version> <olap4j.version>1.2.0</olap4j.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <ecj.version>4.3.1</ecj.version> <jamod.version>1.2_1</jamod.version> <kryo.version>4.0.0</kryo.version> <reflectasm.version>1.10.1</reflectasm.version> <tvp.version>2.2.12.0</tvp.version> <depends-maven-plugin.version>1.4.0</depends-maven-plugin.version> <commons.digester.version>2.1</commons.digester.version> <clean.plugin.version>3.0.0</clean.plugin.version> <surefire.plugin.version>2.20.1</surefire.plugin.version> <ow2asm.version>5.0.4</ow2asm.version> <poxo.version>1.0.6</poxo.version> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <ojdbc.version>11.2.0.4.0001</ojdbc.version> <jcommon.version>1.0.23</jcommon.version> <build-helper.plugin.version>3.0.0</build-helper.plugin.version> <cxf.xjc.plugin.version>3.0.5</cxf.xjc.plugin.version> <osgi.version>6.0.0</osgi.version> <aries.jpa.version>2.6.1</aries.jpa.version> <postgresql.version>9.3-1103-jdbc41</postgresql.version> <cxf.plugin.version>3.2.0</cxf.plugin.version> <osgi.compendium.version>5.0.0</osgi.compendium.version> <remotetea.oncrpc.version>1.1.3</remotetea.oncrpc.version> <quarz.version>2.1.7_1</quarz.version> <slf4j.version>1.7.12</slf4j.version> <pmd.plugin.version>3.7</pmd.plugin.version> <resources.plugin.version>3.0.2</resources.plugin.version> <thalit-checks.version>5</thalit-checks.version> <java.version>1.8</java.version> <java2csharp.plugin.version>1.0.4</java2csharp.plugin.version> <eclipselink.version>2.6.4</eclipselink.version> <h2db.version>1.4.194</h2db.version> <failsafe.plugin.version>2.20.1</failsafe.plugin.version> <pax-exam.version>4.9.1</pax-exam.version> <activemq.version>5.15.0</activemq.version> <minlog.version>1.3.0</minlog.version> </properties> <dependencies> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.12</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.core</artifactId> <version>6.0.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.compendium</artifactId> <version>5.0.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.ops4j.pax.exam</groupId> <artifactId>pax-exam</artifactId> <version>4.9.1</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.ops4j.pax.exam</groupId> <artifactId>pax-exam-container-karaf</artifactId> <version>4.9.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.ops4j.pax.exam</groupId> <artifactId>pax-exam-junit4</artifactId> <version>4.9.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.ops4j.pax.exam</groupId> <artifactId>pax-exam-link-mvn</artifactId> <version>4.9.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.ops4j.pax.url</groupId> <artifactId>pax-url-aether</artifactId> <version>2.5.2</version> <scope>test</scope> </dependency> <dependency> <groupId>javax.inject</groupId> <artifactId>javax.inject</artifactId> <version>1</version> <scope>compile</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.karaf</groupId> <artifactId>apache-karaf</artifactId> <version>4.0.9</version> <type>tar.gz</type> <scope>test</scope> <exclusions> <exclusion> <artifactId>org.apache.karaf.client</artifactId> <groupId>org.apache.karaf</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.karaf.features</groupId> <artifactId>standard</artifactId> <version>4.0.9</version> <type>xml</type> <classifier>features</classifier> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.activemq</groupId> <artifactId>activemq-karaf</artifactId> <version>5.15.0</version> <type>xml</type> <classifier>features</classifier> <scope>test</scope> </dependency> <dependency> <groupId>com.esotericsoftware</groupId> <artifactId>minlog</artifactId> <version>1.3.0</version> <scope>test</scope> </dependency> <dependency> <groupId>com.esotericsoftware</groupId> <artifactId>kryo-shaded</artifactId> <version>4.0.0</version> <scope>test</scope> </dependency> </dependencies> <repositories> <repository> <snapshots> <enabled>false</enabled> </snapshots> <id>central</id> <name>Central Repository</name> <url>https://repo.maven.apache.org/maven2</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <releases> <updatePolicy>never</updatePolicy> </releases> <snapshots> <enabled>false</enabled> </snapshots> <id>central</id> <name>Central Repository</name> <url>https://repo.maven.apache.org/maven2</url> </pluginRepository> </pluginRepositories> <build> ..... <pluginManagement> <plugins> <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.3</version> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.2-beta-5</version> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.7.0</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> <plugin> <artifactId>maven-clean-plugin</artifactId> <version>3.0.0</version> </plugin> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>3.3.0</version> <extensions>true</extensions> <configuration> <manifestLocation>META-INF</manifestLocation> <instructions> <Bundle-SymbolicName>eventbus-itest</Bundle-SymbolicName> <Bundle-Version>3.3.1.1-SNAPSHOT</Bundle-Version> <_include>osgi.bnd</_include> </instructions> </configuration> </plugin> <plugin> <artifactId>maven-dependency-plugin</artifactId> <version>${dependency.plugin.version}</version> </plugin> <plugin> <artifactId>maven-release-plugin</artifactId> <version>2.3.2</version> </plugin> <plugin> <artifactId>maven-source-plugin</artifactId> <version>3.0.1</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-checkstyle-plugin</artifactId> <version>2.17</version> <executions> <execution> <id>checkstyle</id> <phase>validate</phase> <goals> <goal>checkstyle</goal> </goals> <configuration> <consoleOutput>true</consoleOutput> <failsOnError>true</failsOnError> <linkXRef>false</linkXRef> <encoding>UTF-8</encoding> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>com.puppycrawl.tools</groupId> <artifactId>checkstyle</artifactId> <version>7.7</version> <scope>compile</scope> </dependency> </dependencies> <configuration> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <artifactId>maven-pmd-plugin</artifactId> <version>3.7</version> <executions> <execution> <id>pmd</id> <phase>validate</phase> <goals> <goal>check</goal> </goals> <configuration> <failOnViolation>false</failOnViolation> <rulesets> <ruleset>rulesets/java/basic.xml</ruleset> </rulesets> <sourceEncoding>UTF-8</sourceEncoding> <targetJdk>1.8</targetJdk> <verbose>true</verbose> </configuration> </execution> </executions> <configuration> <failOnViolation>false</failOnViolation> <rulesets> <ruleset>rulesets/java/basic.xml</ruleset> </rulesets> <sourceEncoding>UTF-8</sourceEncoding> <targetJdk>1.8</targetJdk> <verbose>true</verbose> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <version>3.0.4</version> <executions> <execution> <id>findbugs</id> <phase>compile</phase> <goals> <goal>findbugs</goal> </goals> <configuration> <effort>Max</effort> <threshold>Low</threshold> <encoding>UTF-8</encoding> </configuration> </execution> </executions> <configuration> <effort>Max</effort> <threshold>Low</threshold> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>${cobertura.plugin.version}</version> <configuration> <instrumentation> <ignoreTrivial>true</ignoreTrivial> </instrumentation> </configuration> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.20.1</version> <configuration> <excludes> <exclude>**/*IntegrationTest.java</exclude> <exclude>**/*AcceptanceTest.java</exclude> </excludes> <forkCount>1</forkCount> <reuseForks>false</reuseForks> <redirectTestOutputToFile>true</redirectTestOutputToFile> <argLine>-Xmx2048m</argLine> </configuration> </plugin> <plugin> <artifactId>maven-failsafe-plugin</artifactId> <version>2.20.1</version> </plugin> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.servicemix.tooling</groupId> <artifactId>depends-maven-plugin</artifactId> <versionRange>[1.2,)</versionRange> <goals> <goal>generate-depends-file</goal> </goals> </pluginExecutionFilter> <action> <ignore></ignore> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <artifactId>maven-source-plugin</artifactId> <version>3.0.1</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-checkstyle-plugin</artifactId> <version>2.17</version> <executions> <execution> <id>checkstyle</id> <phase>validate</phase> <goals> <goal>checkstyle</goal> </goals> <configuration> <consoleOutput>true</consoleOutput> <failsOnError>true</failsOnError> <linkXRef>false</linkXRef> <encoding>UTF-8</encoding> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>com.puppycrawl.tools</groupId> <artifactId>checkstyle</artifactId> <version>7.7</version> <scope>compile</scope> </dependency> </dependencies> <configuration> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <artifactId>maven-pmd-plugin</artifactId> <version>3.7</version> <executions> <execution> <id>pmd</id> <phase>validate</phase> <goals> <goal>check</goal> </goals> <configuration> <failOnViolation>false</failOnViolation> <rulesets> <ruleset>rulesets/java/basic.xml</ruleset> </rulesets> <sourceEncoding>UTF-8</sourceEncoding> <targetJdk>1.8</targetJdk> <verbose>true</verbose> </configuration> </execution> </executions> <configuration> <failOnViolation>false</failOnViolation> <rulesets> <ruleset>rulesets/java/basic.xml</ruleset> </rulesets> <sourceEncoding>UTF-8</sourceEncoding> <targetJdk>1.8</targetJdk> <verbose>true</verbose> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <version>3.0.4</version> <executions> <execution> <id>findbugs</id> <phase>compile</phase> <goals> <goal>findbugs</goal> </goals> <configuration> <effort>Max</effort> <threshold>Low</threshold> <encoding>UTF-8</encoding> </configuration> </execution> </executions> <configuration> <effort>Max</effort> <threshold>Low</threshold> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>3.3.0</version> <extensions>true</extensions> <executions> <execution> <id>default-bundle</id> <phase>package</phase> <goals> <goal>bundle</goal> </goals> <configuration> <manifestLocation>META-INF</manifestLocation> <instructions> <Bundle-SymbolicName>itms-eventbus-itest</Bundle-SymbolicName> <Bundle-Version>3.3.1.1-SNAPSHOT</Bundle-Version> <_include>osgi.bnd</_include> </instructions> </configuration> </execution> <execution> <id>default-install</id> <phase>install</phase> <goals> <goal>install</goal> </goals> <configuration> <manifestLocation>META-INF</manifestLocation> <instructions> <Bundle-SymbolicName>itms-eventbus-itest</Bundle-SymbolicName> <Bundle-Version>3.3.1.1-SNAPSHOT</Bundle-Version> <_include>osgi.bnd</_include> </instructions> </configuration> </execution> <execution> <id>default-deploy</id> <phase>deploy</phase> <goals> <goal>deploy</goal> </goals> <configuration> <manifestLocation>META-INF</manifestLocation> <instructions> <Bundle-SymbolicName>itms-eventbus-itest</Bundle-SymbolicName> <Bundle-Version>3.3.1.1-SNAPSHOT</Bundle-Version> <_include>osgi.bnd</_include> </instructions> </configuration> </execution> </executions> <configuration> <manifestLocation>META-INF</manifestLocation> <instructions> <Bundle-SymbolicName>itms-eventbus-itest</Bundle-SymbolicName> <Bundle-Version>3.3.1.1-SNAPSHOT</Bundle-Version> <_include>osgi.bnd</_include> </instructions> </configuration> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.7.0</version> <executions> <execution> <id>default-compile</id> <phase>compile</phase> <goals> <goal>compile</goal> </goals> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </execution> <execution> <id>default-testCompile</id> <phase>test-compile</phase> <goals> <goal>testCompile</goal> </goals> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </execution> </executions> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> <plugin> <artifactId>maven-clean-plugin</artifactId> <version>3.0.0</version> <executions> <execution> <id>default-clean</id> <phase>clean</phase> <goals> <goal>clean</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.servicemix.tooling</groupId> <artifactId>depends-maven-plugin</artifactId> <version>1.4.0</version> <executions> <execution> <id>generate-depends-file</id> <goals> <goal>generate-depends-file</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.20.1</version> <executions> <execution> <id>default-test</id> <phase>test</phase> <goals> <goal>test</goal> </goals> <configuration> <forkCount>1</forkCount> <reuseForks>false</reuseForks> <redirectTestOutputToFile>true</redirectTestOutputToFile> <argLine>-Xmx256m</argLine> <excludes> <exclude>**/*IntegrationTest.java</exclude> <exclude>**/*AcceptanceTest.java</exclude> </excludes> <systemPropertyVariables> <activemqVersion>5.15.0</activemqVersion> <karafVersion>4.0.9</karafVersion> </systemPropertyVariables> </configuration> </execution> </executions> <configuration> <forkCount>1</forkCount> <reuseForks>false</reuseForks> <redirectTestOutputToFile>true</redirectTestOutputToFile> <argLine>-Xmx256m</argLine> <excludes> <exclude>**/*IntegrationTest.java</exclude> <exclude>**/*AcceptanceTest.java</exclude> </excludes> <systemPropertyVariables> <activemqVersion>5.15.0</activemqVersion> <karafVersion>4.0.9</karafVersion> </systemPropertyVariables> </configuration> </plugin> <plugin> <artifactId>maven-resources-plugin</artifactId> <executions> <execution> <id>default-testResources</id> <phase>process-test-resources</phase> <goals> <goal>testResources</goal> </goals> </execution> <execution> <id>default-resources</id> <phase>process-resources</phase> <goals> <goal>resources</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-install-plugin</artifactId> <executions> <execution> <id>default-install</id> <phase>install</phase> <goals> <goal>install</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-deploy-plugin</artifactId> <executions> <execution> <id>default-deploy</id> <phase>deploy</phase> <goals> <goal>deploy</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-site-plugin</artifactId> <version>3.3</version> <executions> <execution> <id>default-site</id> <phase>site</phase> <goals> <goal>site</goal> </goals> <configuration> <reportPlugins> <reportPlugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-project-info-reports-plugin</artifactId> </reportPlugin> </reportPlugins> </configuration> </execution> <execution> <id>default-deploy</id> <phase>site-deploy</phase> <goals> <goal>deploy</goal> </goals> <configuration> <reportPlugins> <reportPlugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-project-info-reports-plugin</artifactId> </reportPlugin> </reportPlugins> </configuration> </execution> </executions> <configuration> <reportPlugins> <reportPlugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-project-info-reports-plugin</artifactId> </reportPlugin> </reportPlugins> </configuration> </plugin> </plugins> </build> .... </project>