Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
339 lines (331 sloc) 10 KB
<?xml version="1.0" encoding="UTF-8"?>
<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>org.dhamma.taperoom</groupId>
<artifactId>taperoom</artifactId>
<packaging>war</packaging>
<version>0.1.0-SNAPSHOT</version>
<name>taperoom application</name>
<url>http://github.com/mkristian/taperoom</url>
<repositories>
<!-- source for the gem artifacts -->
<repository>
<id>saumya</id>
<url>http://mojo.saumya.de/</url>
</repository>
<!-- source for the gem artifacts -->
<repository>
<id>rubygems-releases</id>
<url>http://gems.saumya.de/releases</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.jruby.rack</groupId>
<artifactId>jruby-rack</artifactId>
<version>1.0.1</version>
</dependency>
<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby-complete</artifactId>
<version>1.5.1</version>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>rails</artifactId>
<version>2.3.8</version>
<type>gem</type>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwt.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>${gwt.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>de.saumya.gwt</groupId>
<artifactId>session</artifactId>
<version>${restful.gwt.version}</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>de.saumya.gwt.translation</groupId>
<artifactId>gui</artifactId>
<version>${restful.gwt.version}</version>
</dependency>
<dependency>
<groupId>de.saumya.gwt</groupId>
<artifactId>persistence</artifactId>
<version>${restful.gwt.version}</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>ixtlan</artifactId>
<version>0.4.0</version>
<type>gem</type>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>dm-sqlite-adapter</artifactId>
<version>${datamapper.version}</version>
<type>gem</type>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>dm-validations</artifactId>
<version>${datamapper.version}</version>
<type>gem</type>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>dm-timestamps</artifactId>
<version>${datamapper.version}</version>
<type>gem</type>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>dm-migrations</artifactId>
<version>${datamapper.version}</version>
<type>gem</type>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>dm-aggregates</artifactId>
<version>${datamapper.version}</version>
<type>gem</type>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>dm-transactions</artifactId>
<version>${datamapper.version}</version>
<type>gem</type>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>dm-adjust</artifactId>
<version>${datamapper.version}</version>
<type>gem</type>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>dm-core</artifactId>
<version>${datamapper.version}</version>
<type>gem</type>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>extlib</artifactId>
<version>0.9.15</version>
<type>gem</type>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>erector</artifactId>
<version>0.5.1</version>
<type>gem</type>
<exclusions>
<exclusion>
<groupId>rubygems</groupId>
<artifactId>hoe</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>rspec</artifactId>
<version>1.3.0</version>
<type>gem</type>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>rspec-rails</artifactId>
<version>1.3.2</version>
<type>gem</type>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jruby.plugins.version>0.28.3</jruby.plugins.version>
<datamapper.version>1.0.0</datamapper.version>
<gwt.version>1.7.1</gwt.version>
<restful.gwt.version>0.5.0</restful.gwt.version>
</properties>
<build>
<!-- allow the gwt plugin to work with this pom -->
<outputDirectory>war/WEB-INF/classes</outputDirectory>
<plugins>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>rails2-maven-plugin</artifactId>
<version>${jruby.plugins.version}</version>
</plugin>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>gem-maven-plugin</artifactId>
<version>${jruby.plugins.version}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>rspec-maven-plugin</artifactId>
<version>${jruby.plugins.version}</version>
<executions>
<execution>
<goals><goal>test</goal></goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<goals>
<goal>clean</goal>
<goal>compile</goal>
<goal>test</goal>
</goals>
</execution>
</executions>
<configuration>
<runTarget>org.dhamma.applications.taperoom.Taperoom/Taperoom.html</runTarget>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<webResources>
<resource>
<directory>public</directory>
</resource>
<resource>
<directory>.</directory>
<targetPath>WEB-INF</targetPath>
<includes>
<include>app/**</include>
<include>config/**</include>
<include>lib/**</include>
</includes>
</resource>
<resource>
<directory>${project.build.directory}/rubygems</directory>
<targetPath>WEB-INF/gems</targetPath>
</resource>
</webResources>
</configuration>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>7.0.1.v20091125</version>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>development</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<dependencies>
<dependency>
<groupId>rubygems</groupId>
<artifactId>dm-sqlite-adapter</artifactId>
<version>${datamapper.version}</version>
<type>gem</type>
</dependency>
</dependencies>
</profile>
<profile>
<id>production</id>
<dependencies>
<dependency>
<groupId>rubygems</groupId>
<artifactId>dm-mysql-adapter</artifactId>
<version>${datamapper.version}</version>
<type>gem</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>rails2-maven-plugin</artifactId>
<configuration>
<env>production</env>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>public</id>
<dependencies>
<dependency>
<groupId>rubygems</groupId>
<artifactId>git</artifactId>
<version>1.2.5</version>
<type>gem</type>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>gem-maven-plugin</artifactId>
<executions>
<execution>
<phase>prepare-package</phase>
<goals><goal>exec</goal></goals>
<configuration>
<script>
require 'rubygems'
require 'git'
require 'logger'
$KCODE='utf-8'
git = Git.open('${project.basedir}/..', :log => Logger.new(STDOUT))
list = Dir[File.join('public', '[0-9]*.cache.[hp]*')].collect {|f| File.join('rails', f)}
git.remove(list) unless list.empty?
dir = File.join('${project.build.directory}', '${project.build.finalName}', 'org.dhamma.applications.taperoom.Taperoom')
FileUtils.cp_r(Dir[File.join(dir, '[a-zA-Z0-9]*')] , 'public')
git.add(File.join('rails', 'public'))
puts "use '-Dcommit=...' to commit the new snapshot"
unless '${commit}' =~ /^.{commit}$/
git.commit('${commit}')
end
</script>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Something went wrong with that request. Please try again.