Skip to content

Instantly share code, notes, and snippets.

@kurtharriger
Created June 24, 2011 14:53
Show Gist options
  • Save kurtharriger/1044946 to your computer and use it in GitHub Desktop.
Save kurtharriger/1044946 to your computer and use it in GitHub Desktop.
Spock OSGI Wrapper
<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>
<groupId>com.twcable.atg</groupId>
<artifactId>spock-core</artifactId>
<version>1.0-SNAPSHOT</version>
<name>Spock bundle</name>
<description>Bundled version of Spock Framework</description>
<packaging>bundle</packaging>
<parent>
<groupId>com.twc.pilot</groupId>
<artifactId>pilot-osgi-bundles</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<properties>
<hamcrest.version>1.2</hamcrest.version>
<sling.url>http://localhost:4502/system/console</sling.url>
<sling.user>admin</sling.user>
<sling.password>admin</sling.password>
</properties>
<dependencies>
<dependency>
<groupId>org.spockframework</groupId>
<artifactId>spock-core</artifactId>
<version>${spock.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<version>${hamcrest.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>spock-core</Bundle-SymbolicName>
<_exportcontents>
org.spockframework.*;version=${spock.version},
spock.*;version=${spock.version},
org.junit.*;version=${junit.version},
org.hamcrest.*;version=${hamcrest.version}
</_exportcontents>
<Import-Package>
org.codehaus.groovy.*;version="[1.8,2)",
groovy.lang;version="[1.8,2)",
org.objenesis;version="[1.0,2)";resolution:=optional,
org.objectweb.asm;version="[3.0,4)";resolution:=optional,
org.apache.tools.ant;version="[1.0,2)";resolution:=optional,
org.apache.tools.ant.types;version="[1.0,2)";resolution:=optional,
net.sf.cglib.proxy;version="[2.2,3)";resolution:=optional,
org.apache.tools.ant.types.selectors;version="[1.7,2.0)";resolution:=optional
</Import-Package>
<Embed-Dependency>
spock-core;inline=true,
junit;inline=false,
hamcrest-core;inline=false
</Embed-Dependency>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>autoInstallBundle</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<env>default</env>
<sling.url>http://localhost:4502/system/console</sling.url>
<sling.user>admin</sling.user>
<sling.password>admin</sling.password>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.sling</groupId>
<artifactId>maven-sling-plugin</artifactId>
<version>${sling-plugin.version}</version>
<executions>
<execution>
<id>install-bundle</id>
<goals>
<goal>install</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<repositories>
<!-- OSGi Repos -->
<repository>
<id>com.springsource.repository.bundles.release</id>
<name>SpringSource EBR - SpringSource Bundle Releases</name>
<url>http://repository.springsource.com/maven/bundles/release</url>
</repository>
<repository>
<id>com.springsource.repository.bundles.external</id>
<name>SpringSource EBR - External Bundle Releases</name>
<url>http://repository.springsource.com/maven/bundles/external</url>
</repository>
<repository>
<id>spring-maven-milestone</id>
<name>Springframework Maven Repository</name>
<url>http://s3.amazonaws.com/maven.springframework.org/milestone</url>
</repository>
<repository>
<id>spring-osgified-artifacts</id>
<snapshots>
<enabled>true</enabled>
</snapshots>
<name>Springframework Maven OSGified Artifacts Repository</name>
<url>http://maven.springframework.org/osgi</url>
</repository>
<!-- Internal Nexus Repo -->
<repository>
<id>twcable-public</id>
<url>http://nexus.webapps.rr.com/nexus/content/groups/public/</url>
</repository>
<!-- Unofficial Gmaven deps for Groovy-->
<repository>
<id>kurtharriger-gmaven-snapshots</id>
<url>https://github.com/kurtharriger/gmaven/raw/maven/snapshots</url>
</repository>
</repositories>
<pluginRepositories>
<!-- Unofficial Gmaven deps for Groovy-->
<pluginRepository>
<id>kurtharriger-gmaven-snapshots</id>
<url>https://github.com/kurtharriger/gmaven/raw/maven/snapshots</url>
</pluginRepository>
</pluginRepositories>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment