Hi,

I am quite new to maven and I have the following problem:

I have a project with several modules (api and impl) and one of them is an 
integration test module, that contains only a test class. The pom of this 
module references (as I see) all dependencies. When I run the parents pom all 
modules are successfully installed, even the itest module seems to run 
successfully (as the log says). When I run only the itest module using mvn test 
I get dependency errors, saying that the other modules could not be found and 
the run ends with errors (while running the parents pom ends successfully). I 
checked also the local repository for the compiled jars and all are there. I do 
not understand what is going wrong. Can anyone give me a hint?

I am running on yosemite, eclipse juno with m2e (but with mvn form commandline 
it is the same). Following the log for the parent poms run, that for the itest 
run

Thank you in advance for any hints!

Regards Christian

The log for parents pom run:

Christians-Docuteam-MacBook:sip-detection christian$ mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] sip-detection
[INFO] sip-detector-api Bundle
[INFO] sip-detector-matterhorn Blueprint Bundle
[INFO] sip-detection-processor bundle
[INFO] sip-detection-features
[INFO] sip-detector-itest
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building sip-detection 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ sip-detection 
---
[INFO] Installing 
/Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/herakles/ingest/sip-detection/pom.xml
 to 
/Users/christian/.m2/repository/ch/eugster/herakles/sip-detection/0.0.1-SNAPSHOT/sip-detection-0.0.1-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building sip-detector-api Bundle 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ 
sip-detector-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
/Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/herakles/ingest/sip-detection/sip-detector-api/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ 
sip-detector-api ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ 
sip-detector-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
/Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/herakles/ingest/sip-detection/sip-detector-api/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ 
sip-detector-api ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ sip-detector-api 
---
[INFO] 
[INFO] --- maven-bundle-plugin:2.5.3:bundle (default-bundle) @ sip-detector-api 
---
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ 
sip-detector-api ---
[INFO] Installing 
/Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/herakles/ingest/sip-detection/sip-detector-api/target/sip-detector-api-0.0.1-SNAPSHOT.jar
 to 
/Users/christian/.m2/repository/ch/eugster/herakles/sip-detector-api/0.0.1-SNAPSHOT/sip-detector-api-0.0.1-SNAPSHOT.jar
[INFO] Installing 
/Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/herakles/ingest/sip-detection/sip-detector-api/pom.xml
 to 
/Users/christian/.m2/repository/ch/eugster/herakles/sip-detector-api/0.0.1-SNAPSHOT/sip-detector-api-0.0.1-SNAPSHOT.pom
[INFO] 
[INFO] --- maven-bundle-plugin:2.5.3:install (default-install) @ 
sip-detector-api ---
[INFO] Installing 
ch/eugster/herakles/sip-detector-api/0.0.1-SNAPSHOT/sip-detector-api-0.0.1-SNAPSHOT.jar
[INFO] Writing OBR metadata
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building sip-detector-matterhorn Blueprint Bundle 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ 
sip-detector-matterhorn ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ 
sip-detector-matterhorn ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ 
sip-detector-matterhorn ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ 
sip-detector-matterhorn ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ 
sip-detector-matterhorn ---
[INFO] Surefire report directory: 
/Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/herakles/ingest/sip-detection/sip-detector-matterhorn/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running ch.eugster.herakles.test.MatterhornProfileDetectorUnitTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.089 sec - in 
ch.eugster.herakles.test.MatterhornProfileDetectorUnitTest

Results :

Tests run: 2, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-bundle-plugin:2.5.3:bundle (default-bundle) @ 
sip-detector-matterhorn ---
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ 
sip-detector-matterhorn ---
[INFO] Installing 
/Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/herakles/ingest/sip-detection/sip-detector-matterhorn/target/sip-detector-matterhorn-0.0.1-SNAPSHOT.jar
 to 
/Users/christian/.m2/repository/ch/eugster/herakles/sip-detector-matterhorn/0.0.1-SNAPSHOT/sip-detector-matterhorn-0.0.1-SNAPSHOT.jar
[INFO] Installing 
/Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/herakles/ingest/sip-detection/sip-detector-matterhorn/pom.xml
 to 
/Users/christian/.m2/repository/ch/eugster/herakles/sip-detector-matterhorn/0.0.1-SNAPSHOT/sip-detector-matterhorn-0.0.1-SNAPSHOT.pom
[INFO] 
[INFO] --- maven-bundle-plugin:2.5.3:install (default-install) @ 
sip-detector-matterhorn ---
[INFO] Installing 
ch/eugster/herakles/sip-detector-matterhorn/0.0.1-SNAPSHOT/sip-detector-matterhorn-0.0.1-SNAPSHOT.jar
[INFO] Writing OBR metadata
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building sip-detection-processor bundle 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ 
sip-detection-processor ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ 
sip-detection-processor ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ 
sip-detection-processor ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ 
sip-detection-processor ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ 
sip-detection-processor ---
[INFO] 
[INFO] --- maven-bundle-plugin:2.5.3:bundle (default-bundle) @ 
sip-detection-processor ---
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ 
sip-detection-processor ---
[INFO] Installing 
/Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/herakles/ingest/sip-detection/sip-detection-processor/target/sip-detection-processor-0.0.1-SNAPSHOT.jar
 to 
/Users/christian/.m2/repository/ch/eugster/herakles/sip-detection-processor/0.0.1-SNAPSHOT/sip-detection-processor-0.0.1-SNAPSHOT.jar
[INFO] Installing 
/Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/herakles/ingest/sip-detection/sip-detection-processor/pom.xml
 to 
/Users/christian/.m2/repository/ch/eugster/herakles/sip-detection-processor/0.0.1-SNAPSHOT/sip-detection-processor-0.0.1-SNAPSHOT.pom
[INFO] 
[INFO] --- maven-bundle-plugin:2.5.3:install (default-install) @ 
sip-detection-processor ---
[INFO] Installing 
ch/eugster/herakles/sip-detection-processor/0.0.1-SNAPSHOT/sip-detection-processor-0.0.1-SNAPSHOT.jar
[INFO] Writing OBR metadata
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building sip-detection-features 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (filter) @ 
sip-detection-features ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- build-helper-maven-plugin:1.9.1:attach-artifact (attach-artifacts) @ 
sip-detection-features ---
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ 
sip-detection-features ---
[INFO] Installing 
/Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/herakles/ingest/sip-detection/sip-detection-features/pom.xml
 to 
/Users/christian/.m2/repository/ch/eugster/herakles/sip-detection-features/0.0.1-SNAPSHOT/sip-detection-features-0.0.1-SNAPSHOT.pom
[INFO] Installing 
/Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/herakles/ingest/sip-detection/sip-detection-features/target/classes/features.xml
 to 
/Users/christian/.m2/repository/ch/eugster/herakles/sip-detection-features/0.0.1-SNAPSHOT/sip-detection-features-0.0.1-SNAPSHOT-features.xml
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building sip-detector-itest 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-paxexam-plugin:1.2.4:generate-depends-file (generate-config) @ 
sip-detector-itest ---
[INFO] Created: 
/Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/herakles/ingest/sip-detection/sip-detector-itest/target/classes/META-INF/maven/dependencies.properties
[INFO] 
[INFO] --- maven-failsafe-plugin:2.12:integration-test (integration-test) @ 
sip-detector-itest ---
[INFO] Failsafe report directory: 
/Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/herakles/ingest/sip-detection/sip-detector-itest/target/failsafe-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. 
build is platform dependent!
[INFO] 
[INFO] --- maven-failsafe-plugin:2.12:verify (verify) @ sip-detector-itest ---
[INFO] Failsafe report directory: 
/Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/herakles/ingest/sip-detection/sip-detector-itest/target/failsafe-reports
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. 
build is platform dependent!
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ 
sip-detector-itest ---
[INFO] Installing 
/Users/christian/Projekte/ceugster/Entwicklung/Test/Workspace-4.4/herakles/ingest/sip-detection/sip-detector-itest/pom.xml
 to 
/Users/christian/.m2/repository/ch/eugster/herakles/sip-detector-itest/0.0.1-SNAPSHOT/sip-detector-itest-0.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] sip-detection ..................................... SUCCESS [0.171s]
[INFO] sip-detector-api Bundle ........................... SUCCESS [1.735s]
[INFO] sip-detector-matterhorn Blueprint Bundle .......... SUCCESS [1.237s]
[INFO] sip-detection-processor bundle .................... SUCCESS [0.208s]
[INFO] sip-detection-features ............................ SUCCESS [0.186s]
[INFO] sip-detector-itest ................................ SUCCESS [0.945s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.423s
[INFO] Finished at: Fri Mar 27 09:01:17 CET 2015
[INFO] Final Memory: 23M/270M
[INFO] ------------------------------------------------------------------------
Christians-Docuteam-MacBook:sip-detection christian$ 

The log for itest run:

Christians-Docuteam-MacBook:sip-detector-itest christian$ mvn test
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building sip-detector-itest 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.952s
[INFO] Finished at: Fri Mar 27 09:02:43 CET 2015
[INFO] Final Memory: 11M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project sip-detector-itest: Could not resolve 
dependencies for project 
ch.eugster.herakles:sip-detector-itest:pom:0.0.1-SNAPSHOT: The following 
artifacts could not be resolved: 
ch.eugster.herakles:sip-detector-api:bundle:0.0.1-SNAPSHOT, 
ch.eugster.herakles:sip-detector-matterhorn:bundle:0.0.1-SNAPSHOT, 
ch.eugster.herakles:sip-matterhorn-profile:bundle:0.0.1-SNAPSHOT, 
ch.eugster.herakles:sip-api:bundle:0.0.1-SNAPSHOT, 
ch.eugster.herakles:sip-detection-processor:bundle:0.0.1-SNAPSHOT: Could not 
find artifact ch.eugster.herakles:sip-detector-api:bundle:0.0.1-SNAPSHOT -> 
[Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
Christians-Docuteam-MacBook:sip-detector-itest christian$ 





Christian Eugster
Grissian 14
I-39010 Tisens
I:  +39 0473 420 873
CH: +41 79 107 92 27
christian.eugs...@gmx.net




Reply via email to