OWB-1150 trying to fix some OSGi import ranges
git-svn-id: https://svn.apache.org/repos/asf/openwebbeans/trunk@1762001 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index 14585c8..7f37db5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -278,6 +278,21 @@
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
</plugin>
+
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>3.0.1</version>
+ <executions>
+ <execution>
+ <id>bundle-manifest</id>
+ <phase>process-classes</phase>
+ <goals>
+ <goal>manifest</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</pluginManagement>
@@ -315,16 +330,6 @@
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
- <version>3.0.1</version>
- <executions>
- <execution>
- <id>bundle-manifest</id>
- <phase>process-classes</phase>
- <goals>
- <goal>manifest</goal>
- </goals>
- </execution>
- </executions>
<configuration>
<supportedProjectTypes>
<supportedProjectType>jar</supportedProjectType>
diff --git a/webbeans-el22/pom.xml b/webbeans-el22/pom.xml
index e2d9b28..794a3b5 100644
--- a/webbeans-el22/pom.xml
+++ b/webbeans-el22/pom.xml
@@ -84,4 +84,32 @@
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+
+ <configuration>
+ <supportedProjectTypes>
+ <supportedProjectType>jar</supportedProjectType>
+ <supportedProjectType>bundle</supportedProjectType>
+ <supportedProjectType>war</supportedProjectType>
+ </supportedProjectTypes>
+ <instructions>
+ <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>!org.apache.webbeans.internal.*,org.apache.webbeans.*;version="${project.version}"</Export-Package>
+ <Private-Package>org.apache.webbeans.internal.*</Private-Package>
+ <Import-Package>
+ javax.el.*;version="[2.2,)",
+ *
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+
+ </plugins>
+ </build>
+
</project>
diff --git a/webbeans-impl/pom.xml b/webbeans-impl/pom.xml
index d16eaab..4b72990 100644
--- a/webbeans-impl/pom.xml
+++ b/webbeans-impl/pom.xml
@@ -100,7 +100,32 @@
</execution>
</executions>
</plugin>
-
+
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <supportedProjectTypes>
+ <supportedProjectType>jar</supportedProjectType>
+ <supportedProjectType>bundle</supportedProjectType>
+ <supportedProjectType>war</supportedProjectType>
+ </supportedProjectTypes>
+ <instructions>
+ <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>!org.apache.webbeans.internal.*,org.apache.webbeans.*;version="${project.version}"</Export-Package>
+ <Private-Package>org.apache.webbeans.internal.*</Private-Package>
+ <Import-Package>
+ javax.decorator.*;version="[1.1,1.2]",
+ javax.enterprise.*;version="[1.1,1.2]",
+ javax.el.*;version="[2.2,)",
+ *
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+
+
</plugins>
</build>
diff --git a/webbeans-jsf/pom.xml b/webbeans-jsf/pom.xml
index c8c6e7b..2d37c23 100644
--- a/webbeans-jsf/pom.xml
+++ b/webbeans-jsf/pom.xml
@@ -85,16 +85,7 @@
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
- <version>2.1.0</version>
- <executions>
- <execution>
- <id>bundle-manifest</id>
- <phase>process-classes</phase>
- <goals>
- <goal>manifest</goal>
- </goals>
- </execution>
- </executions>
+
<configuration>
<supportedProjectTypes>
<supportedProjectType>jar</supportedProjectType>
@@ -107,6 +98,9 @@
<Export-Package>!org.apache.webbeans.internal.*,org.apache.webbeans.*;version="${project.version}"</Export-Package>
<Private-Package>org.apache.webbeans.internal.*</Private-Package>
<Import-Package>
+ javax.servlet.*;version="[2.4,)",
+ javax.el.*;version="[2.2,)",
+ javax.faces.*;version="[2.0,)",
*
</Import-Package>
</instructions>
diff --git a/webbeans-web/pom.xml b/webbeans-web/pom.xml
index 5038cb7..780e389 100644
--- a/webbeans-web/pom.xml
+++ b/webbeans-web/pom.xml
@@ -112,6 +112,34 @@
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <supportedProjectTypes>
+ <supportedProjectType>jar</supportedProjectType>
+ <supportedProjectType>bundle</supportedProjectType>
+ <supportedProjectType>war</supportedProjectType>
+ </supportedProjectTypes>
+ <instructions>
+ <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>!org.apache.webbeans.internal.*,org.apache.webbeans.*;version="${project.version}"</Export-Package>
+ <Private-Package>org.apache.webbeans.internal.*</Private-Package>
+ <Import-Package>
+ javax.servlet.*;version="[2.4,)",
+ javax.el.*;version="[2.2,)",
+ *
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+
+ </plugins>
+ </build>
+
<profiles>
<profile>