[ 
https://jira.codehaus.org/browse/SUREFIRE-855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=358239#comment-358239
 ] 

Benson Margulies commented on SUREFIRE-855:
-------------------------------------------

I have recently been using pax-exam with failsafe to test OSGi bundles.

You need to pass project.build.directory and project.version into the test as 
system properties, so that you can load the bundle by pathname. If you need 
other bundles from earlier in the reactor, you have to use the 
maven-dependency-plugin get them; if you use pax-aether, you end up with old 
versions.


> Allow failsafe to use actual jar file instead of target/classes
> ---------------------------------------------------------------
>
>                 Key: SUREFIRE-855
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-855
>             Project: Maven Surefire
>          Issue Type: Improvement
>          Components: Maven Failsafe Plugin
>    Affects Versions: 2.12
>            Reporter: Benson Margulies
>            Priority: Critical
>
> I've got some code that calls Class.getPackage() to see the manifest. I want 
> to test it. A seemingly logical scheme here would be to have failsafe put the 
> actual packaged jar into the classpath instead of the unpacked directory -- 
> or some way to get the manifest copied across.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to