Created
June 10, 2009 08:38
-
-
Save jabley/127099 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<project> | |
<parent> | |
<artifactId>rails-ui</artifactId> | |
<groupId>com.example</groupId> | |
<version>1.0-SNAPSHOT</version> | |
</parent> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.example</groupId> | |
<artifactId>rails-ui-webapp</artifactId> | |
<packaging>war</packaging> | |
<name>Example Rails Webapp</name> | |
<version>${project.parent.version}</version> | |
<url>http://maven.apache.org</url> | |
<build> | |
<finalName>rails-ui-webapp</finalName> | |
<plugins> | |
<plugin> | |
<!-- Use ANT to do all of the stuff that maven can't do. --> | |
<artifactId>maven-antrun-plugin</artifactId> | |
<executions> | |
<execution> | |
<phase>compile</phase> | |
<configuration> | |
<tasks xmlns:artifact="urn:maven-artifact-ant"> | |
<!-- | |
Execute warble to create a basic war which includes the required gems and rails part. | |
This requires jruby -S gem install warble to have been run, jruby and warble on the PATH, etc. | |
--> | |
<exec executable="warble" dir="${project.build.directory}/../src/main/rails" /> | |
<!-- Explode the warbler war into the directory structure that the maven-war-plugin will use --> | |
<unjar src="${project.build.directory}/../src/main/rails/rails.war" | |
dest="${project.build.directory}/${project.build.finalName}" /> | |
</tasks> | |
</configuration> | |
<goals> | |
<goal>run</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<dependencies> | |
<dependency> | |
<groupId>org.jruby.rack</groupId> | |
<artifactId>jruby-rack</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.jruby</groupId> | |
<artifactId>jruby-complete</artifactId> | |
</dependency> | |
</dependencies> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment