Thanks for adding the code/pom.
As Andreas already said you have a discrepancy between code and pom on the
version of Karaf,
though I'm not 100% sure it's the cause of your issue :)

Could you try with the following for referencing the Karaf distribution, as
taken from recipe 2 of chapter 10:

karafDistributionConfiguration().frameworkUrl(maven().groupId(
"org.apache.karaf").artifactId("apache-karaf").type("zip"
).versionAsInProject()).unpackDirectory(new File("target/paxexam/unpack/"
)).useDeployFolder(false),

instead of using the mvnUrl object.

same for referencing the feature:

  features(maven().groupId("org.apache.karaf.features").artifactId(
"standard").type("xml").classifier("features"
).versionAsInProject(),"eventadmin")


regards, Achim



2015-03-12 20:57 GMT+01:00 Andreas Kuhtz <andreas.ku...@gmail.com>:

> Hi,
>
> You should change the version of karaf to 3.0.3 here:
>
> MavenArtifactUrlReference karafUrl = maven()
> .groupId("org.apache.karaf").artifactId("apache-karaf")
> .version("3.0.0").type("tar.gz");
>
>
> 2015-03-12 20:51 GMT+01:00 Christian Eugster <c.eugs...@docuteam.ch>:
>
>> So I have one test method annotated with @Test. In pom there is no skip
>> test entry in surefire plugin. May be there is a missing dependency?
>>
>> Thanks a lot!
>>
>> Christian
>>
>> Christian Eugster
>> Docuteam GmbH
>> Langacker 16
>> Postfach
>> CH-5405 Baden-Dättwil
>> +41 (0)56 470 03 37
>> c.eugs...@docuteam.ch
>>
>>
>>
>>
>>
>> Am 12.03.2015 um 20:43 schrieb Achim Nierbeck <bcanh...@googlemail.com>:
>>
>> Hi,
>>
>> it's a bit hard to see the issue without any source. It's like calling
>> the doc on the phone, "I think I got flu" :-)
>> So I'm doing some wild guesses here :-)
>>
>> Your Testclass doesn't contain any testmethods?
>> For example is missing a @Test annotation?
>> You added an @Ignore to the test method?
>>
>> regards, Achim
>>
>>
>> 2015-03-12 20:32 GMT+01:00 Christian Eugster <c.eugs...@docuteam.ch>:
>>
>>> Hi,
>>>
>>> I have built a bundle with test class. When I run mvn test or mvn
>>> install, I got no errors (-> BUILD SUCCESS), but the tests do not run:
>>>
>>> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005
>>> sec - in ch.eugster.ingest.sip.identification.KarafContainerTest
>>>
>>> I have the same dependencies in pom.xml as in another project, where the
>>> tests run through successfully. Does anybody have an idea, what does go
>>> wrong? Thank you!
>>>
>>> The whole log is:
>>>
>>> [INFO] Scanning for projects...
>>> [WARNING]
>>> [WARNING] Some problems were encountered while building the effective
>>> model for
>>> ch.eugster.ingest:sip-identification-processor:bundle:0.0.1-SNAPSHOT
>>> [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)'
>>> must be unique: org.ops4j.pax.exam:pax-exam-junit4:jar -> duplicate
>>> declaration of version ${pax.exam.version} @
>>> ch.eugster.ingest:ingest-engine:0.0.1-SNAPSHOT,
>>> /Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/ingest-engine/pom.xml,
>>> line 56, column 15
>>> [WARNING] 'build.plugins.plugin.version' for
>>> org.apache.felix:maven-bundle-plugin is missing. @ line 29, column 12
>>> [WARNING]
>>> [WARNING] It is highly recommended to fix these problems because they
>>> threaten the stability of your build.
>>> [WARNING]
>>> [WARNING] For this reason, future Maven versions might no longer support
>>> building such malformed projects.
>>> [WARNING]
>>> [INFO]
>>> [INFO] Using the builder
>>> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder
>>> with a thread count of 1
>>> [INFO]
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Building A Camel Blueprint Route 0.0.1-SNAPSHOT
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO]
>>> [INFO] --- depends-maven-plugin:1.2:generate-depends-file
>>> (generate-depends-file) @ sip-identification-processor ---
>>> [INFO] Created:
>>> /Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/ingest-engine/sip-identification-processor/target/classes/META-INF/maven/dependencies.properties
>>> [INFO]
>>> [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @
>>> sip-identification-processor ---
>>> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
>>> resources, i.e. build is platform dependent!
>>> [INFO] Copying 2 resources
>>> [INFO]
>>> [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @
>>> sip-identification-processor ---
>>> [INFO] Nothing to compile - all classes are up to date
>>> [INFO]
>>> [INFO] --- maven-resources-plugin:2.7:testResources
>>> (default-testResources) @ sip-identification-processor ---
>>> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
>>> resources, i.e. build is platform dependent!
>>> [INFO] Copying 7 resources
>>> [INFO]
>>> [INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @
>>> sip-identification-processor ---
>>> [INFO] Nothing to compile - all classes are up to date
>>> [INFO]
>>> [INFO] --- maven-surefire-plugin:2.18:test (default-test) @
>>> sip-identification-processor ---
>>> [INFO] Surefire report directory:
>>> /Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/ingest-engine/sip-identification-processor/target/surefire-reports
>>>
>>> -------------------------------------------------------
>>>  T E S T S
>>> -------------------------------------------------------
>>> SLF4J: Class path contains multiple SLF4J bindings.
>>> SLF4J: Found binding in
>>> [jar:file:/Users/christian/.m2/repository/org/slf4j/slf4j-log4j12/1.7.7/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>>> SLF4J: Found binding in
>>> [jar:file:/Users/christian/.m2/repository/org/apache/karaf/org.apache.karaf.client/3.0.3/org.apache.karaf.client-3.0.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>>> SLF4J: Found binding in
>>> [jar:file:/Users/christian/.m2/repository/org/ops4j/pax/logging/pax-logging-api/1.8.1/pax-logging-api-1.8.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>>> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
>>> explanation.
>>> SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
>>> [                          main] DefaultExamSystem              INFO
>>> Pax Exam System (Version: 4.4.0) created.
>>> [                          main] ProbeRunner                    INFO
>>> creating PaxExam runner for class
>>> ch.eugster.ingest.sip.identification.KarafContainerTest
>>> Running ch.eugster.ingest.sip.identification.KarafContainerTest
>>> [                          main] ProbeRunner                    INFO
>>> creating PaxExam runner for class
>>> ch.eugster.ingest.sip.identification.KarafContainerTest
>>> [                          main] ProbeRunner                    INFO
>>> running test class ch.eugster.ingest.sip.identification.KarafContainerTest
>>> [                          main] ReactorManager                 INFO
>>> suite finished
>>> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005
>>> sec - in ch.eugster.ingest.sip.identification.KarafContainerTest
>>>
>>> Results :
>>>
>>>
>>>
>>>
>>> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] BUILD SUCCESS
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 4.244 s
>>> [INFO] Finished at: 2015-03-12T20:28:10+01:00
>>> [INFO] Final Memory: 17M/225M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>>
>>> Christian Eugster
>>> Docuteam GmbH
>>> Langacker 16
>>> Postfach
>>> CH-5405 Baden-Dättwil
>>> +41 (0)56 470 03 37
>>> c.eugs...@docuteam.ch
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>>
>> Apache Member
>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>> & Project Lead
>> blog <http://notizblog.nierbeck.de/>
>> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>
>> Software Architect / Project Manager / Scrum Master
>>
>>
>>
>


-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Reply via email to