[
https://issues.apache.org/jira/browse/JENA-879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14302657#comment-14302657
]
Stian Soiland-Reyes commented on JENA-879:
------------------------------------------
An alternative using the PAX solution is here:
https://github.com/stain/jena/tree/jena-osgi-pax-exam
it's quite a bit more verbose as the setup has to list the transitive bundle
dependencies manually:
https://github.com/stain/jena/blob/jena-osgi-pax-exam/jena-osgi-test/src/test/java/org/apache/jena/osgi/test/JenaOSGITest.java#L81
The test dependencies would be:
[INFO] org.apache.jena:jena-osgi-test:bundle:2.13.0-SNAPSHOT
[INFO] +- org.apache.jena:jena-osgi:bundle:2.13.0-SNAPSHOT:test
[INFO] | +- org.apache.httpcomponents:httpclient-osgi:jar:4.2.6:test
[INFO] | +- org.apache.httpcomponents:httpcore-osgi:jar:4.2.5:test
[INFO] | +- com.github.jsonld-java:jsonld-java:jar:0.5.1:test
[INFO] | | +- com.fasterxml.jackson.core:jackson-core:jar:2.3.3:test
[INFO] | | \- com.fasterxml.jackson.core:jackson-databind:jar:2.3.3:test
[INFO] | | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.3.0:test
[INFO] | +- org.apache.commons:commons-csv:jar:1.0:test
[INFO] | +- org.apache.thrift:libthrift:jar:0.9.2:test
[INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.7.6:test
[INFO] | \- org.apache.commons:commons-lang3:jar:3.3.2:test
[INFO] +- org.osgi:org.osgi.core:jar:5.0.0:provided
[INFO] +- junit:junit:jar:4.11:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.ops4j.pax.logging:pax-logging-log4j2:jar:1.8.1:test
[INFO] | +- org.apache.logging.log4j:log4j-api:jar:2.0.2:test
[INFO] | \- org.apache.logging.log4j:log4j-core:jar:2.0.2:test
[INFO] +- org.ops4j.pax.logging:pax-logging-api:jar:1.8.1:compile
[INFO] +- org.ops4j.pax.exam:pax-exam-container-native:jar:4.4.0:test
[INFO] | +- org.ops4j.pax.exam:pax-exam:jar:4.4.0:test
[INFO] | | +- org.ops4j.base:ops4j-base-store:jar:1.5.0:test
[INFO] | | | \- org.ops4j.base:ops4j-base-io:jar:1.5.0:test
[INFO] | | \- org.ops4j.base:ops4j-base-util-property:jar:1.5.0:test
[INFO] | +- org.ops4j.pax.exam:pax-exam-spi:jar:4.4.0:test
[INFO] | | +- org.ops4j.base:ops4j-base-spi:jar:1.5.0:test
[INFO] | | \- org.ops4j.pax.tinybundles:tinybundles:jar:2.1.0:test
[INFO] | | \- biz.aQute.bnd:bndlib:jar:2.3.0:test
[INFO] | +- org.ops4j.pax.swissbox:pax-swissbox-core:jar:1.8.0:test
[INFO] | | \- org.ops4j.pax.swissbox:pax-swissbox-lifecycle:jar:1.8.0:test
[INFO] | +- org.ops4j.pax.swissbox:pax-swissbox-tracker:jar:1.8.0:test
[INFO] | +- org.ops4j.base:ops4j-base-lang:jar:1.5.0:test
[INFO] | +- org.ops4j.base:ops4j-base-net:jar:1.5.0:test
[INFO] | | \- org.ops4j.base:ops4j-base-monitors:jar:1.5.0:test
[INFO] | +- org.ops4j.pax.url:pax-url-link:jar:2.2.0:test
[INFO] | \- org.ops4j.pax.url:pax-url-classpath:jar:2.2.0:test
[INFO] | \- org.ops4j.pax.swissbox:pax-swissbox-optional-jcl:jar:1.8.0:test
[INFO] +- org.ops4j.pax.exam:pax-exam-junit4:jar:4.4.0:test
[INFO] +- org.ops4j.pax.exam:pax-exam-link-mvn:jar:4.4.0:test
[INFO] +- org.ops4j.pax.url:pax-url-aether:jar:1.6.0:test
[INFO] | +- org.ops4j.pax.url:pax-url-commons:jar:1.6.0:test
[INFO] | | \- org.ops4j.pax.swissbox:pax-swissbox-property:jar:1.7.0:test
[INFO] | +- org.ops4j.pax.url:pax-url-maven-commons:jar:1.6.0:test
[INFO] | | \- org.ops4j.base:ops4j-base-util-xml:jar:1.4.0:test
[INFO] | | \- org.ops4j.base:ops4j-base-util-collections:jar:1.4.0:test
[INFO] | +- org.sonatype.aether:aether-api:jar:1.13.1:test
[INFO] | +- org.sonatype.aether:aether-spi:jar:1.13.1:test
[INFO] | +- org.sonatype.aether:aether-util:jar:1.13.1:test
[INFO] | +- org.sonatype.aether:aether-impl:jar:1.13.1:test
[INFO] | +- org.sonatype.aether:aether-connector-wagon:jar:1.13.1:test
[INFO] | | +- org.codehaus.plexus:plexus-classworlds:jar:2.4:test
[INFO] | | \- org.sonatype.sisu:sisu-inject-plexus:jar:2.2.3:test
[INFO] | | \- org.sonatype.sisu:sisu-inject-bean:jar:2.2.3:test
[INFO] | | \- org.sonatype.sisu:sisu-guice:jar:no_aop:3.0.3:test
[INFO] | +- org.apache.maven:maven-aether-provider:jar:3.0.4:test
[INFO] | | +- org.apache.maven:maven-model:jar:3.0.4:test
[INFO] | | +- org.apache.maven:maven-model-builder:jar:3.0.4:test
[INFO] | | | \- org.codehaus.plexus:plexus-interpolation:jar:1.14:test
[INFO] | | +- org.apache.maven:maven-repository-metadata:jar:3.0.4:test
[INFO] | | \- org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:test
[INFO] | +- org.apache.maven.wagon:wagon-provider-api:jar:1.0:test
[INFO] | +- org.apache.maven.wagon:wagon-file:jar:1.0:test
[INFO] | +- org.apache.maven.wagon:wagon-http-lightweight:jar:1.0:test
[INFO] | | \- org.apache.maven.wagon:wagon-http-shared:jar:1.0:test
[INFO] | | +- commons-io:commons-io:jar:2.0.1:test
[INFO] | | \- org.jsoup:jsoup:jar:1.6.1:test
[INFO] | +- org.codehaus.plexus:plexus-container-default:jar:1.5.5:test
[INFO] | | +- org.apache.xbean:xbean-reflect:jar:3.4:test
[INFO] | | \- com.google.collections:google-collections:jar:1.0:test
[INFO] | +- org.codehaus.plexus:plexus-utils:jar:3.0:test
[INFO] | \- commons-httpclient:commons-httpclient:jar:3.1:test
[INFO] | +- commons-logging:commons-logging:jar:1.0.4:test
[INFO] | \- commons-codec:commons-codec:jar:1.2:test
[INFO] +- org.apache.felix:org.apache.felix.framework:jar:4.6.0:test
[INFO] +- org.slf4j:slf4j-api:jar:1.7.6:compile
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.6:compile
[INFO] \- log4j:log4j:jar:1.2.17:compile
which I have not checked for LGPL issues yet.
> Use PAX Exam for jena-osgi-test
> -------------------------------
>
> Key: JENA-879
> URL: https://issues.apache.org/jira/browse/JENA-879
> Project: Apache Jena
> Issue Type: Task
> Components: Build
> Affects Versions: Jena 2.13.0
> Reporter: Stian Soiland-Reyes
>
> The eosgi plugin used by jena-osgi-test to run the tests within an OSGi
> container is licensed as LGPL.
> As an optional LGPL dependencies only used for running the test, this is
> nominally allowed within Apache, but this is a thin line, and it would be
> cleaner to avoid the dependency altogher - so that we can include
> jena-osgi-test in the general "complete" profile.
> http://mail-archives.apache.org/mod_mbox/jena-dev/201502.mbox/%3CCAPRnXtnf7Katv9mozKjr56nHjaqqGJnX8LpLZmyptae%2Bv9mD7g%40mail.gmail.com%3E
> An alternative (this task) is to use the PAX Exam system instead. (supposedly
> Apache licensed) It is probably good to allow jena-osgi-test to still test
> against multiple OSGi implementations as of today.
> Relevant links:
> https://ops4j1.jira.com/wiki/display/PAXEXAM4/Pax+Exam
> https://ops4j1.jira.com/wiki/display/PAXEXAM4/Getting+Started+with+OSGi+Tests
> https://ops4j1.jira.com/wiki/display/PAXEXAM4/OSGi+Containers
> Example use (possibly outdated):
> https://github.com/basis-technology-corp/tcl-regex-java
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)