Skip to content
Browse files

cleanup maven setup

  • Loading branch information...
1 parent 839cf5b commit 8b56a7fbe2c24cc24e0122ded93444e244cabcf7 @mkristian committed Oct 10, 2011
View
1 demo/.gitignore
@@ -2,3 +2,4 @@
db/*.sqlite3
log/*.log
tmp/
+Gemfile.pom
View
5 demo/Gemfile
@@ -56,4 +56,7 @@ group(:development, :test) do
# gem 'rails_metrics', '~> 0.1', :git => 'git://github.com/engineyard/rails_metrics'
end
-gem 'dm-hibernate-adapter', '0.2pre'
+gem 'dm-hibernate-adapter', '0.3pre'
+
+# this trigger ruby-maven to setup target/bin/rails with classpath for that application
+gem 'rails', RAILS_VERSION, :group=>:dummy
View
2 demo/Gemfile.files
@@ -1,2 +0,0 @@
-Gemfile
-Mavenfile
View
35 demo/Gemfile.lock
@@ -19,8 +19,17 @@ GEM
activesupport (= 3.0.9)
builder (~> 2.1.2)
i18n (~> 0.5.0)
+ activerecord (3.0.9)
+ activemodel (= 3.0.9)
+ activesupport (= 3.0.9)
+ arel (~> 2.0.10)
+ tzinfo (~> 0.3.23)
+ activeresource (3.0.9)
+ activemodel (= 3.0.9)
+ activesupport (= 3.0.9)
activesupport (3.0.9)
addressable (2.2.6)
+ arel (2.0.10)
bcrypt-ruby (2.1.4-java)
builder (2.1.2)
dm-active_model (1.1.0)
@@ -32,10 +41,10 @@ GEM
dm-core (~> 1.1.0)
dm-core (1.1.0)
addressable (~> 2.2.4)
- dm-hibernate-adapter (0.2pre-java)
- dm-core (>= 1.1.0, < 1.1.99999)
- dm-migrations (>= 1.1.0, < 1.1.99999)
- dm-transactions (>= 1.1.0, < 1.1.99999)
+ dm-hibernate-adapter (0.3pre-java)
+ dm-core (~> 1.1.0)
+ dm-migrations (~> 1.1.0)
+ dm-transactions (~> 1.1.0)
slf4r (= 0.3.1)
dm-migrations (1.1.0)
dm-core (~> 1.1.0)
@@ -76,21 +85,30 @@ GEM
rack (>= 1.0.0)
rack-test (0.5.7)
rack (>= 1.0)
+ rails (3.0.9)
+ actionmailer (= 3.0.9)
+ actionpack (= 3.0.9)
+ activerecord (= 3.0.9)
+ activeresource (= 3.0.9)
+ activesupport (= 3.0.9)
+ bundler (~> 1.0)
+ railties (= 3.0.9)
railties (3.0.9)
actionpack (= 3.0.9)
activesupport (= 3.0.9)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.4)
- rake (0.9.3.beta.1)
- rdoc (3.9.4)
+ rake (0.9.2)
+ rdoc (3.10)
+ json (~> 1.4)
slf4r (0.3.1)
stringex (1.2.2)
thor (0.14.6)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
- tzinfo (0.3.29)
+ tzinfo (0.3.30)
uuidtools (2.1.2)
PLATFORMS
@@ -102,12 +120,13 @@ DEPENDENCIES
activesupport (= 3.0.9)
dm-aggregates (~> 1.1.0)
dm-constraints (~> 1.1.0)
- dm-hibernate-adapter (= 0.2pre)
+ dm-hibernate-adapter (= 0.3pre)
dm-migrations (~> 1.1.0)
dm-observer (~> 1.1.0)
dm-rails (~> 1.1.0)
dm-timestamps (~> 1.1.0)
dm-transactions (~> 1.1.0)
dm-types (~> 1.1.0)
dm-validations (~> 1.1.0)
+ rails (= 3.0.9)
railties (= 3.0.9)
View
370 demo/Gemfile.pom
@@ -1,370 +0,0 @@
-<project>
- <modelVersion>4.0.0</modelVersion>
- <groupId>rails</groupId>
- <artifactId>demo</artifactId>
- <version>0.0.0</version>
- <name><![CDATA[demo - rails application]]></name>
- <packaging>war</packaging>
- <repositories>
- <repository>
- <id>rubygems-releases</id>
- <url>http://gems.saumya.de/releases</url>
- </repository>
- <repository>
- <id>rubygems-prereleases</id>
- <url>http://gems.saumya.de/prereleases</url>
- </repository>
- </repositories>
- <pluginRepositories>
- <pluginRepository>
- <id>rubygems-releases</id>
- <url>http://gems.saumya.de/releases</url>
- </pluginRepository>
- </pluginRepositories>
- <dependencies>
- <dependency>
- <groupId>rubygems</groupId>
- <artifactId>activesupport</artifactId>
- <version>3.0.9</version>
- <type>gem</type>
- </dependency>
- <dependency>
- <groupId>rubygems</groupId>
- <artifactId>actionpack</artifactId>
- <version>3.0.9</version>
- <type>gem</type>
- </dependency>
- <dependency>
- <groupId>rubygems</groupId>
- <artifactId>actionmailer</artifactId>
- <version>3.0.9</version>
- <type>gem</type>
- </dependency>
- <dependency>
- <groupId>rubygems</groupId>
- <artifactId>railties</artifactId>
- <version>3.0.9</version>
- <type>gem</type>
- </dependency>
- <dependency>
- <groupId>rubygems</groupId>
- <artifactId>dm-rails</artifactId>
- <version>[1.1.0,1.1.99999]</version>
- <type>gem</type>
- </dependency>
- <dependency>
- <groupId>rubygems</groupId>
- <artifactId>dm-migrations</artifactId>
- <version>[1.1.0,1.1.99999]</version>
- <type>gem</type>
- </dependency>
- <dependency>
- <groupId>rubygems</groupId>
- <artifactId>dm-types</artifactId>
- <version>[1.1.0,1.1.99999]</version>
- <type>gem</type>
- </dependency>
- <dependency>
- <groupId>rubygems</groupId>
- <artifactId>dm-validations</artifactId>
- <version>[1.1.0,1.1.99999]</version>
- <type>gem</type>
- </dependency>
- <dependency>
- <groupId>rubygems</groupId>
- <artifactId>dm-constraints</artifactId>
- <version>[1.1.0,1.1.99999]</version>
- <type>gem</type>
- </dependency>
- <dependency>
- <groupId>rubygems</groupId>
- <artifactId>dm-transactions</artifactId>
- <version>[1.1.0,1.1.99999]</version>
- <type>gem</type>
- </dependency>
- <dependency>
- <groupId>rubygems</groupId>
- <artifactId>dm-aggregates</artifactId>
- <version>[1.1.0,1.1.99999]</version>
- <type>gem</type>
- </dependency>
- <dependency>
- <groupId>rubygems</groupId>
- <artifactId>dm-timestamps</artifactId>
- <version>[1.1.0,1.1.99999]</version>
- <type>gem</type>
- </dependency>
- <dependency>
- <groupId>rubygems</groupId>
- <artifactId>dm-observer</artifactId>
- <version>[1.1.0,1.1.99999]</version>
- <type>gem</type>
- </dependency>
- <dependency>
- <groupId>rubygems</groupId>
- <artifactId>dm-hibernate-adapter</artifactId>
- <version>0.2pre</version>
- <type>gem</type>
- </dependency>
- <dependency>
- <groupId>com.h2database</groupId>
- <artifactId>h2</artifactId>
- <version>1.2.138</version>
- <type>jar</type>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- <version>1.5.2</version>
- <type>jar</type>
- </dependency>
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.14</version>
- <type>jar</type>
- </dependency>
- <dependency>
- <groupId>org.jruby</groupId>
- <artifactId>jruby-complete</artifactId>
- <version>1.6.2</version>
- <type>jar</type>
- </dependency>
- <dependency>
- <groupId>rubygems</groupId>
- <artifactId>bundler</artifactId>
- <version>[0.0.0,)</version>
- <type>gem</type>
- </dependency>
- <dependency>
- <groupId>org.jruby.rack</groupId>
- <artifactId>jruby-rack</artifactId>
- <version>1.0.9</version>
- <type>jar</type>
- </dependency>
- </dependencies>
- <properties>
- <gem.home>${project.build.directory}/rubygems</gem.home>
- <gem.includeRubygemsInTestResources>false</gem.includeRubygemsInTestResources>
- <gem.path>${project.build.directory}/rubygems</gem.path>
- <jetty.version>7.4.2.v20110526</jetty.version>
- <jruby.plugins.version>0.28.3</jruby.plugins.version>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <rails.env>development</rails.env>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>de.saumya.mojo</groupId>
- <artifactId>gem-maven-plugin</artifactId>
- <version>${jruby.plugins.version}</version>
- <executions>
- <execution>
- <id>in_phase_initialize</id>
- <phase>initialize</phase>
- <goals>
- <goal>execute_in_phase</goal>
- </goals>
- <configuration>
- <file>Mavenfile</file>
- <phase>initialize</phase>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>de.saumya.mojo</groupId>
- <artifactId>bundler-maven-plugin</artifactId>
- <version>${jruby.plugins.version}</version>
- <executions>
- <execution>
- <goals>
- <goal>install</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>de.saumya.mojo</groupId>
- <artifactId>rails3-maven-plugin</artifactId>
- <version>${jruby.plugins.version}</version>
- <executions>
- <execution>
- <id>in_phase_validate</id>
- <phase>validate</phase>
- <goals>
- <goal>initialize</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-war-plugin</artifactId>
- <version>2.1.1</version>
- <configuration>
- <webResources>
- <resource>
- <directory>public</directory>
- </resource>
- <resource>
- <directory>.</directory>
- <includes>
- <include>app/**</include>
- <include>config/**</include>
- <include>lib/**</include>
- <include>vendor/**</include>
- <include>Gemfile</include>
- </includes>
- <targetPath>WEB-INF</targetPath>
- </resource>
- <resource>
- <directory>${gem.path}</directory>
- <includes>
- <include>gems/**</include>
- <include>specifications/**</include>
- </includes>
- <targetPath>WEB-INF/gems</targetPath>
- </resource>
- <resource>
- <directory>${gem.path}-bundler-maven-plugin</directory>
- <includes>
- <include>specifications/**</include>
- </includes>
- <targetPath>WEB-INF/gems</targetPath>
- </resource>
- </webResources>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <profiles>
- <profile>
- <id>development</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- </profile>
- <profile>
- <id>test</id>
- <activation>
- <property>
- <name>rails.env</name>
- <value>test</value>
- </property>
- </activation>
- </profile>
- <profile>
- <id>production</id>
- <activation>
- <property>
- <name>rails.env</name>
- <value>production</value>
- </property>
- </activation>
- <properties>
- <gem.home>${project.build.directory}/rubygems-production</gem.home>
- <gem.path>${project.build.directory}/rubygems-production</gem.path>
- </properties>
- </profile>
- <profile>
- <id>war</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>jetty-maven-plugin</artifactId>
- <version>${jetty.version}</version>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>run</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>jetty-maven-plugin</artifactId>
- <version>${jetty.version}</version>
- <configuration>
- <connectors>
- <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
- <port>8080</port>
- </connector>
- <connector implementation="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
- <port>8443</port>
- <keystore>${project.basedir}/src/test/resources/server.keystore</keystore>
- <keyPassword>123456</keyPassword>
- <password>123456</password>
- </connector>
- </connectors>
- <webAppConfig>
- <overrideDescriptor>${project.build.directory}/jetty/override-${rails.env}-web.xml</overrideDescriptor>
- </webAppConfig>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>executable</id>
- <pluginRepositories>
- <pluginRepository>
- <id>kos</id>
- <url>http://opensource.kantega.no/nexus/content/groups/public/</url>
- </pluginRepository>
- </pluginRepositories>
- <build>
- <plugins>
- <plugin>
- <groupId>org.simplericity.jettyconsole</groupId>
- <artifactId>jetty-console-maven-plugin</artifactId>
- <version>1.42</version>
- <executions>
- <execution>
- <goals>
- <goal>createconsole</goal>
- </goals>
- <configuration>
- <!--
- see http://simplericity.com/2009/11/10/1257880778509.html for more info
- -->
- <!--
- <backgroundImage>${basedir}/src/main/jettyconsole/puffin.jpg</backgroundImage>
- <additionalDependencies>
- <additionalDependency>
- <artifactId>jetty-console-winsrv-plugin</artifactId>
- </additionalDependency>
- <additionalDependency>
- <artifactId>jetty-console-requestlog-plugin</artifactId>
- </additionalDependency>
- <additionalDependency>
- <artifactId>jetty-console-log4j-plugin</artifactId>
- </additionalDependency>
- <additionalDependency>
- <artifactId>jetty-console-jettyxml-plugin</artifactId>
- </additionalDependency>
- <additionalDependency>
- <artifactId>jetty-console-ajp-plugin</artifactId>
- </additionalDependency>
- <additionalDependency>
- <artifactId>jetty-console-gzip-plugin</artifactId>
- </additionalDependency>
- <additionalDependency>
- <artifactId>jetty-console-startstop-plugin</artifactId>
- </additionalDependency>
- </additionalDependencies>
-
- -->
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-</project>
View
7 demo/Mavenfile
@@ -7,10 +7,3 @@ jar 'com.h2database:h2', '1.2.138'
jar 'org.slf4j:slf4j-log4j12', '1.5.2'
jar 'log4j:log4j', '1.2.14'
-
-properties['jruby.plugins.version'] = '0.28.3'
-
-execute_in_phase(:initialize) do
- require 'fileutils'
- FileUtils.cp("Gemfile.pom", "pom.xml")
-end
View
1 demo/config/database.yml
@@ -6,6 +6,7 @@ defaults: &defaults
development:
database: db/demo3_development.db
+ allow_reload: true
<<: *defaults
# Add more repositories
View
19 demo/config/initializers/java_throwable_monkey_patch.rb
@@ -0,0 +1,19 @@
+if RUBY_PLATFORM =~ /java/
+ class Java::JavaLang::Throwable
+ def application_backtrace
+ backtrace
+ end
+ def framework_backtrace
+ backtrace
+ end
+ def clean_backtrace
+ backtrace
+ end
+ def clean_message
+ message
+ end
+ def blamed_files
+ []
+ end
+ end
+end
View
BIN demo/db/demo.h2.db
Binary file not shown.

0 comments on commit 8b56a7f

Please sign in to comment.
Something went wrong with that request. Please try again.