org.friendularity.bundle.lifter
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.friendularity</groupId>
<artifactId>org.friendularity.bundle.lifter</artifactId>
<version>1.0.2</version>
</dependency>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.friendularity</groupId>
<artifactId>org.friendularity.modules.main</artifactId>
<version>1.0.2</version>
<relativePath>../org.friendularity.modules.main/pom.xml</relativePath>
</parent>
<artifactId>org.friendularity.bundle.lifter</artifactId>
<packaging>bundle</packaging>
<name>${project.artifactId} - OSGi</name>
<dependencies>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.osgi.core</artifactId>
<version>1.4.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<!-- This is a big honking hunk of code, but so far is working better than trying
to mix-and-match our own version of Jetty + PAX.
-->
<groupId>org.ops4j.pax.web</groupId>
<artifactId>pax-web-jetty-bundle</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<!-- http://team.ops4j.org/wiki/display/paxweb/WAR+Extender
"Once installed the war extender will watch over the bundles that get started / stopped.
Once your war bundle gets deployed and started, the war extender will parse your web.xml
and registers all elements with http service."
-->
<groupId>org.ops4j.pax.web</groupId>
<artifactId>pax-web-extender-war</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<!-- We do not use JSP technology, but apparently pax-web-jsp is needed, to resolve:
org.ops4j.pax.web.pax-web-jetty-bundle imports (package=org.eclipse.jdt.core.compiler)
-->
<groupId>org.ops4j.pax.web</groupId>
<artifactId>pax-web-jsp</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<!-- Our Lift-based webapp, which we expect PAX services above to find and launch to HTTP for us -->
<groupId>org.cogchar</groupId>
<artifactId>org.cogchar.bundle.bind.lift</artifactId>
<version>${cogchar.version}</version>
</dependency>
<dependency>
<groupId>org.appdapter</groupId>
<artifactId>org.appdapter.bundle.core</artifactId>
<version>${appdapter.version}</version>
</dependency>
<dependency>
<groupId>org.appdapter</groupId>
<artifactId>ext.bundle.jena_all_2_10_1</artifactId>
<type>jar</type>
<version>${appdapter.version}</version>
</dependency>
<!-- We want the same deps as CCRK, but not the full PUMA boot peformed by CCRK activator.
-->
<dependency>
<groupId>org.cogchar</groupId>
<artifactId>org.cogchar.bundle.app.puma</artifactId>
<version>${cogchar.version}</version>
</dependency>
<!--
<dependency>
<groupId>org.cogchar</groupId>
<artifactId>org.cogchar.bundle.render.resources</artifactId>
<version>${cogchar.version}</version>
</dependency>
-->
<dependency>
<!-- Note that o.f.project.root and o.f.modules.main must also have been built and avail in local repo,
in order for variables like "mechio.version" to resolve when applied *transitively*
(The built main+root is not required to resolve the variables used directly in this pom;
those are allowed to come from the source-tree poms).
-->
<groupId>${project.groupId}</groupId>
<artifactId>org.friendularity.bundle.netconfig</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.7</version>
<extensions>true</extensions>
<configuration>
<instructions>
<!-- Web-ContextPath is from the OSGi spec.
With no Web-ContextPath, PAX assigns a default context path like:
http://localhost:8080/org.cogchar.org.cogchar.lifter/
-->
<Web-ContextPath>${web.contextPath}</Web-ContextPath>
<Export-Package>etc.*, Data.*</Export-Package>
<Bundle-Activator>org.friendularity.bundle.lifter.Activator</Bundle-Activator>
</instructions>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<configuration>
<tasks>
<property name="runtime_classpath" refid="maven.runtime.classpath" />
<echo message="Extracting DeliSchema from deliSchema.n3 and converting to Java" />
<java classname="jena.schemagen" classpath="${runtime_classpath}">
<arg value="--inference" />
<arg value="-i" />
<arg value="../../../cogchar_trunk/src_resources_core/org/cogchar/onto/AnimMotivMapBlend.owl" />
<arg value="-a" />
<arg value="http://www.cogchar.org/ontologies/y2012m06/AnimMotivMapBlend.owl#" />
<arg value="--package" />
<arg value="org.friendu.otest" />
<arg value="-o" />
<arg value="src/main/java" />
<arg value="-n" />
<arg value="AnimSchema" />
</java>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-antrun-plugin
</artifactId>
<versionRange>
[1.3,)
</versionRange>
<goals>
<goal>run</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>build-for-felix</id>
<dependencies>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.main</artifactId>
<version>4.2.1</version>
<scope>provided</scope>
</dependency>
<!-- To include a shell:
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.gogo.shell</artifactId>
<version>0.6.1</version>
</dependency>
-->
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>compile</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<pathconvert property="plugins.jars" pathsep="${path.separator}">
<path refid="maven.runtime.classpath" />
<map from="${project.build.directory}${file.separator}classes" to="" />
</pathconvert>
<pathconvert pathsep=" " property="bundles">
<path path="${plugins.jars}" />
<mapper>
<chainedmapper>
<flattenmapper />
<globmapper from="*" to="file:modules/*" casesensitive="no" />
</chainedmapper>
</mapper>
</pathconvert>
<propertyfile file="${project.build.directory}/config.properties">
<entry key="felix.auto.start" value="${bundles} file:modules/${project.build.finalName}.jar" />
<entry key="org.osgi.framework.bootdelegation" value="*" />
</propertyfile>
<copy file="${maven.dependency.org.apache.felix.org.apache.felix.main.jar.path}" tofile="${project.build.directory}/felix.jar" />
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<id>create-executable-jar</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>${basedir}/src/main/assembly/felix.xml</descriptor>
</descriptors>
<finalName>${project.build.finalName}</finalName>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>run-on-felix</id>
<dependencies>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.main</artifactId>
<version>4.2.1</version>
<scope>provided</scope>
</dependency>
<!-- org.apache.felix:org.apache.felix.gogo.shell:0.6.1 useless from Maven since stdin is swallowed -->
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<configuration>
<target>
<property name="vm.args" value="" />
<pathconvert property="plugins.jars" pathsep="${path.separator}">
<path refid="maven.runtime.classpath" />
<map from="${project.build.directory}${file.separator}classes" to="" />
</pathconvert>
<makeurl property="urls" separator=" ">
<path path="${plugins.jars}" />
<path location="${project.build.directory}/${project.build.finalName}.jar" />
</makeurl>
<propertyfile file="${project.build.directory}/run.properties">
<entry key="felix.auto.start" value="${urls}" />
<entry key="felix.auto.deploy.action" value="uninstall,install,update,start" />
<entry key="org.osgi.framework.storage" value="${project.build.directory}${file.separator}felix-cache" />
<entry key="org.osgi.framework.bootdelegation" value="*" />
<!-- Allow sun.misc package to be used by LWJGL -->
<!-- org.w3c.dom.* are missing from default.properties in felix 4.2.1, they are present in 3.0.7 -->
<entry key="org.osgi.framework.system.packages.extra" value="sun.misc, org.w3c.dom.css, org.w3c.dom.html, org.w3c.dom.stylesheets, org.w3c.dom.traversal, org.w3c.dom.ranges, org.w3c.dom.views, org.w3c.dom.xpath" />
</propertyfile>
<makeurl property="run.properties.url" file="${project.build.directory}/run.properties" />
<java fork="true" jar="${maven.dependency.org.apache.felix.org.apache.felix.main.jar.path}">
<sysproperty key="felix.config.properties" value="${run.properties.url}" />
<jvmarg line="${vm.args}" />
</java>
</target>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>