Skip to content

Instantly share code, notes, and snippets.

@krimple
Created April 13, 2012 17:04
Show Gist options
  • Save krimple/2378379 to your computer and use it in GitHub Desktop.
Save krimple/2378379 to your computer and use it in GitHub Desktop.
A working maven build for a git-based Roo add-on
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.sillyweasel.addons.jqueryui</groupId>
<artifactId>org.sillyweasel.addons.jqueryui</artifactId>
<packaging>bundle</packaging>
<version>0.9.9</version>
<name>jqueryui</name>
<organization>
<name>Silly Weasel</name>
</organization>
<licenses>
<license>
<name>Apache 2 License</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<description>Installs jQuery UI</description>
<url>http://www.rimple.com/sillyweasel</url>
<properties>
<roo.version>1.2.1.RELEASE</roo.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<google.code.project.name>${project.name}</google.code.project.name>
<repo.folder>org/sillyweasel/addons/jqueryui</repo.folder>
</properties>
<repositories>
<repository>
<id>spring-roo-repository</id>
<name>Spring Roo Repository</name>
<url>http://spring-roo-repository.springsource.org/release</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-roo-repository</id>
<name>Spring Roo Repository</name>
<url>http://spring-roo-repository.springsource.org/release</url>
</pluginRepository>
</pluginRepositories>
<dependencies>
<!-- OSGi -->
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<version>4.2.0</version>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.compendium</artifactId>
<version>4.2.0</version>
</dependency>
<!-- Apache Felix -->
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.scr.annotations</artifactId>
<version>1.6.0</version>
</dependency>
<!-- Spring Roo modules -->
<dependency>
<groupId>org.springframework.roo</groupId>
<artifactId>org.springframework.roo.metadata</artifactId>
<version>${roo.version}</version>
<type>bundle</type>
</dependency>
<dependency>
<groupId>org.springframework.roo</groupId>
<artifactId>org.springframework.roo.process.manager</artifactId>
<version>${roo.version}</version>
<type>bundle</type>
</dependency>
<dependency>
<groupId>org.springframework.roo</groupId>
<artifactId>org.springframework.roo.project</artifactId>
<version>${roo.version}</version>
<type>bundle</type>
</dependency>
<dependency>
<groupId>org.springframework.roo</groupId>
<artifactId>org.springframework.roo.support</artifactId>
<version>${roo.version}</version>
<type>bundle</type>
</dependency>
<dependency>
<groupId>org.springframework.roo</groupId>
<artifactId>org.springframework.roo.shell</artifactId>
<version>${roo.version}</version>
<type>bundle</type>
</dependency>
<dependency>
<groupId>org.springframework.roo</groupId>
<artifactId>org.springframework.roo.bootstrap</artifactId>
<version>${roo.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.roo</groupId>
<artifactId>org.springframework.roo.model</artifactId>
<version>${roo.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.roo</groupId>
<artifactId>org.springframework.roo.classpath</artifactId>
<version>${roo.version}</version>
<type>bundle</type>
</dependency>
</dependencies>
<scm>
<connection>scm:git:ssh://git@git.cloudbees.com/sillyweasel/jquery-roo-addon.git</connection>
<url>git:ssh://git@git.cloudbees.com/sillyweasel/jquery-roo-addon.git</url>
<developerConnection>scm:git:ssh://git@git.cloudbees.com/sillyweasel/jquery-roo-addon.git</developerConnection>
</scm>
<distributionManagement>
<repository>
<id>sillyweasel-release</id>
<url>http://***YOUR NEXUS REPO***/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>sillyweasel-snapshot</id>
<url>http://e***YOUR NEXUS REPO***/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>
<build>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-webdav-jackrabbit</artifactId>
<!-- Upgraded to 2.2 from 1.0.6 beta by KJR-->
<version>2.2</version>
</extension>
</extensions>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
</execution>
</executions>
<configuration>
<outputDirectory>${project.build.directory}/all</outputDirectory>
<silent>true</silent>
<includeScope>compile</includeScope>
<excludeArtifactIds>org.apache.felix.scr.annotations</excludeArtifactIds>
<excludeGroupIds>org.osgi</excludeGroupIds>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2.1</version>
<configuration>
<descriptors>
<descriptor>src/main/assembly/assembly.xml</descriptor>
</descriptors>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>package</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.2</version>
<configuration>
<mavenExecutorId>forked-path</mavenExecutorId>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.4</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Copyright>Copyright ${project.organization.name}. All Rights Reserved.
</Bundle-Copyright>
<Bundle-DocURL>${project.url}</Bundle-DocURL>
<Export-Package />
</instructions>
<remoteOBR>true</remoteOBR>
<bundleUrl>httppgp://***YOUR NEXUS REPO***/nexus/content/repositories/releases/org/sillyweasel/addons/jqueryui/org.sillyweasel.addons.jqueryui/${project.version}/${project.artifactId}-${project.version}.jar
</bundleUrl>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-scr-plugin</artifactId>
<version>1.7.2</version>
<executions>
<execution>
<id>generate-scr-scrdescriptor</id>
<goals>
<goal>scr</goal>
</goals>
</execution>
</executions>
<configuration>
<parseJavaDoc>false</parseJavaDoc>
</configuration>
</plugin>
</plugins>
</build>
</project>
@krimple
Copy link
Author

krimple commented Apr 13, 2012

Note the vestiges of google code in this and ignore them. I'm not deploying to google code...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment