aboutsummaryrefslogtreecommitdiffstats
path: root/server/pom.xml
diff options
context:
space:
mode:
authorMirjan Merruko <mirjan@vaadin.com>2017-03-24 13:33:37 +0200
committerHenri Sara <henri.sara@gmail.com>2017-04-25 15:01:06 +0300
commit9a6ebeb5a80bdb1d97d47422c62a973b3f2d2cf9 (patch)
tree20b1c09d6c2e6319cba036f9ecf409893c4b6c56 /server/pom.xml
parentd0a8608c7e074d4baeef0282146b2da5c47603a5 (diff)
downloadvaadin-framework-9a6ebeb5a80bdb1d97d47422c62a973b3f2d2cf9.tar.gz
vaadin-framework-9a6ebeb5a80bdb1d97d47422c62a973b3f2d2cf9.zip
Add OSGi support #8830 #8827 #8828 #8829
Use bnd-maven-plugin instead of maven-bundle-plugin and helper class, and add support for publishing static resources such as themes and widgetsets.
Diffstat (limited to 'server/pom.xml')
-rw-r--r--server/pom.xml65
1 files changed, 24 insertions, 41 deletions
diff --git a/server/pom.xml b/server/pom.xml
index d890a25462..3d2f8c47bc 100644
--- a/server/pom.xml
+++ b/server/pom.xml
@@ -20,6 +20,14 @@
<!-- Liferay Portal Service -->
<dependency>
<groupId>com.liferay.portal</groupId>
+ <artifactId>com.liferay.portal.kernel</artifactId>
+ <version>${liferay.portal-kernel.version}</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <!-- Liferay 6 -->
+ <dependency>
+ <groupId>com.liferay.portal</groupId>
<artifactId>portal-service</artifactId>
<version>${liferay.portal-service.version}</version>
<scope>provided</scope>
@@ -85,6 +93,17 @@
<version>1.2.0</version>
</dependency>
+ <!-- OSGi API -->
+
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>osgi.core</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>osgi.cmpn</artifactId>
+ </dependency>
+
<!-- TESTING DEPENDENCIES -->
<!-- Test dependencies -->
@@ -225,46 +244,10 @@
</execution>
</executions>
</plugin>
-
<plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <extensions>true</extensions>
- <configuration>
- <instructions>
- <Bundle-RequiredExecutionEnvironment>${osgi.execution.environment}</Bundle-RequiredExecutionEnvironment>
- <Bundle-Version>${osgi.bundle.version}</Bundle-Version>
- <Export-Package>VAADIN;version="${osgi.bundle.version}",com.vaadin.*;version="${osgi.bundle.version}"</Export-Package>
- <!-- Note that Liferay 6 does not use OSGi, and the dependency is optional for non-Liferay deployments -->
- <Import-Package>javax.servlet;version="${osgi.javax.servlet.version}",
- javax.servlet.http;version="${osgi.javax.servlet.version}",
- javax.validation;version="${javax.validation.version}";resolution:=optional,
- org.jsoup;version="${jsoup.version}",
- org.jsoup.parser;version="${jsoup.version}",
- org.jsoup.nodes;version="${jsoup.version}",
- org.jsoup.helper;version="${jsoup.version}",
- org.jsoup.safety;version="${jsoup.version}",
- org.jsoup.select;version="${jsoup.version}",
- javax.portlet;version="[${javax.portlet.version},3)";resolution:=optional,
- javax.portlet.filter;version="[${javax.portlet.version},3)";resolution:=optional,
- com.liferay.portal.kernel.util;version="[7,8)";resolution:=optional</Import-Package>
- <Require-Bundle>
- com.vaadin.shared;bundle-version="${osgi.bundle.version}",
- com.vaadin.push;bundle-version="${osgi.bundle.version}";resolution:=optional,
- com.vaadin.sass-compiler;bundle-version="${vaadin.sass.version}";resolution:=optional</Require-Bundle>
- </instructions>
- </configuration>
- <executions>
- <execution>
- <id>bundle-manifest</id>
- <phase>prepare-package</phase>
- <goals>
- <goal>manifest</goal>
- </goals>
- </execution>
- </executions>
+ <groupId>biz.aQute.bnd</groupId>
+ <artifactId>bnd-maven-plugin</artifactId>
</plugin>
-
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
@@ -277,7 +260,7 @@
</manifest>
</archive>
</configuration>
- <!-- Package src/test into a jar so that compatbility-server
+ <!-- Package src/test into a jar so that compatbility-server
can use the same test classes, e.g. test beans -->
<executions>
<execution>
@@ -293,7 +276,7 @@
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
</plugins>
-
+
<pluginManagement>
<plugins>
<!-- Make Eclipse add the source folder -->
@@ -334,5 +317,5 @@
</plugins>
</pluginManagement>
</build>
-
+
</project>