[
http://issues.ops4j.org/browse/PAXEXAM-35?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12161#action_12161
]
Toni Menzel commented on PAXEXAM-35:
------------------------------------
Thanks Richard! Sorry, i haven't been notified by your updates. Thanks very
much, the suggested apprach works nicely.
The plugin now honors "reactor dependencies" and uses the local-in-project
path.
Unfortunately, now (and probably even before) maven itself complains at resolve
time:
INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.ops4j.pax.exam:pax-exam-it-05-adependencybundle:jar:0.4.0-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.ops4j.pax.exam
-DartifactId=pax-exam-it-05-adependencybundle -Dversion=0.4.0-SNAPSHOT
-Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.ops4j.pax.exam
-DartifactId=pax-exam-it-05-adependencybundle -Dversion=0.4.0-SNAPSHOT
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.ops4j.pax.exam:pax-exam-it-05-testproject:jar:0.4.0-SNAPSHOT
2)
org.ops4j.pax.exam:pax-exam-it-05-adependencybundle:jar:0.4.0-SNAPSHOT
----------
> Let maven resolve dependencies in plugin up-front and provide resolved urls
> in generated paxexam.args
> -----------------------------------------------------------------------------------------------------
>
> Key: PAXEXAM-35
> URL: http://issues.ops4j.org/browse/PAXEXAM-35
> Project: Pax Exam
> Issue Type: Improvement
> Components: maven-paxexam-plugin
> Reporter: Richard Wallace
> Assignee: Toni Menzel
> Attachments: PAXEXAM-35.patch
>
>
> Suggestion from Richard Wallace on Mailinglist:
> The only thing I think would be an improvement is if the
> dependencies, instead of being passed using the mvn: URIs, would be
> resolved by the maven plugin and passed as file: URIs instead. This
> way, if I've got a project structure like
> myproject/
> bundle1/
> pom.xml
> bundle2/
> pom.xml
> integration-tests/
> pom.xml
> I can run the integration tests from the root project directory,
> myproject, and have the bundles that pax runner is configured with be
> the jars in myproject/bundle1/target/bundle1-1.0-SNAPSHOT.jar and
> myproject/bundle2/target/bundle2-1.0-SNAPSHOT.jar. As it stands now,
> because you pass the mvn: URI instead of the file: URI, pax runner
> will try and find the bundle jars in the local repository or try and
> download them from a remote repository rather than use the jars that
> were created as part of the build. It's really handy to not have to
> install the bundles into a local repository until the integration
> tests pass. This can be particularly important in doing CI.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general