Skip to content

Commit 46aa96b

Browse files
committed
[PAXCDI-193] fixed fragment manifest, use it for all tests
1 parent 5c1c8e2 commit 46aa96b

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

itest/src/it/itest-standalone/src/test/java/org/ops4j/pax/cdi/test/SecurityTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import org.junit.Test;
3333
import org.junit.rules.ExpectedException;
3434
import org.junit.runner.RunWith;
35-
import org.ops4j.pax.cdi.api.Info;
3635
import org.ops4j.pax.cdi.sample8.service.SecuredClient;
3736
import org.ops4j.pax.exam.Configuration;
3837
import org.ops4j.pax.exam.Option;
@@ -62,7 +61,6 @@ public Option[] config() {
6261
// DeltaSpike bundles
6362
mavenBundle("org.apache.deltaspike.core", "deltaspike-core-api").versionAsInProject(),
6463
mavenBundle("org.apache.deltaspike.core", "deltaspike-core-impl").versionAsInProject(),
65-
mavenBundle("org.ops4j.pax.cdi", "pax-cdi-weld-fragment", Info.getPaxCdiVersion()).noStart(),
6664

6765
// Uncomment this section and delete the next after upgrading to DS 1.4.2
6866
// mavenBundle("org.apache.deltaspike.modules", "deltaspike-security-module-api").versionAsInProject(),

pax-cdi-test-support/src/main/java/org/ops4j/pax/cdi/test/support/TestConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ public static Option openWebBeans15Bundles() {
268268
public static Option weld2Bundles() {
269269
return composite(
270270
workspaceBundle("org.ops4j.pax.cdi", "pax-cdi-weld"),
271+
mavenBundle("org.ops4j.pax.cdi", "pax-cdi-weld-fragment", Info.getPaxCdiVersion()).noStart(),
271272
mavenBundle("org.apache.xbean", "xbean-bundleutils", "4.1"),
272273
mavenBundle("org.jboss.logging", "jboss-logging", "3.1.3.GA"),
273274
mavenBundle("org.jboss.classfilewriter", "jboss-classfilewriter", "1.1.1.Final"),

pax-cdi-weld-fragment/pom.xml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44
<parent>
5-
<groupId>org.ops4j.pax</groupId>
6-
<artifactId>cdi</artifactId>
5+
<groupId>org.ops4j.pax.cdi</groupId>
6+
<artifactId>pax-cdi-parent</artifactId>
77
<version>1.0.0-SNAPSHOT</version>
8+
<relativePath>../pax-cdi-parent</relativePath>
89
</parent>
9-
<groupId>org.ops4j.pax.cdi</groupId>
1010
<artifactId>pax-cdi-weld-fragment</artifactId>
1111
<packaging>bundle</packaging>
1212

@@ -15,8 +15,7 @@
1515
<bundle.symbolicName>org.ops4j.pax.cdi.weld.fragment</bundle.symbolicName>
1616
<bundle.namespace>org.ops4j.pax.cdi.weld.fragment</bundle.namespace>
1717
</properties>
18-
19-
18+
2019
<build>
2120
<plugins>
2221
<plugin>
@@ -26,12 +25,10 @@
2625
<instructions>
2726
<Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
2827
<Fragment-Host>org.jboss.weld.osgi-bundle</Fragment-Host>
29-
<Import-Package>
30-
org.jboss.weld.*, *
31-
</Import-Package>
32-
<Export-Package>
33-
org.jboss.weld.*
34-
</Export-Package>
28+
<_exportcontents>
29+
org.jboss.weld.interceptor.proxy;version="2.2",
30+
org.jboss.weld.interceptor.util.proxy;version="2.2"
31+
</_exportcontents>
3532
</instructions>
3633
</configuration>
3734
</plugin>

0 commit comments

Comments
 (0)