This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 132
/
pom.xml
130 lines (121 loc) · 4.05 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<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">
<parent>
<groupId>org.torquebox</groupId>
<artifactId>torquebox-build</artifactId>
<version>2.1.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>rubygems</groupId>
<artifactId>torquebox-server</artifactId>
<packaging>java-gem</packaging>
<name>TorqueBox Server Gem</name>
<description />
<url>http://torquebox.org/</url>
<dependencies>
<dependency>
<groupId>org.torquebox</groupId>
<artifactId>torquebox-dist</artifactId>
<version>${project.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>torquebox</artifactId>
<version>${project.version}</version>
<type>gem</type>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>rspec</artifactId>
<type>gem</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>rake</artifactId>
<type>gem</type>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>rspec-maven-plugin</artifactId>
<executions>
<execution>
<id>run-specs</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<fork>true</fork>
<systemProperties>
<property>
<name>log4j.configuration</name>
<value>test-log4j.xml</value>
</property>
</systemProperties>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>gem-maven-plugin</artifactId>
<configuration>
<jrubyJvmArgs>-Xmx1024m</jrubyJvmArgs>
<extraFiles>jboss/**/*,share/**/*</extraFiles>
</configuration>
</plugin>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>jruby-maven-plugin</artifactId>
<executions>
<execution>
<id>copy-jboss-and-share</id>
<phase>process-sources</phase>
<goals>
<goal>jruby</goal>
</goals>
<configuration>
<script>
require 'fileutils'
def cp( src, dest )
puts %Q(copying #{src} to #{dest})
FileUtils.mkdir_p( dest )
FileUtils.cp_r( src, dest )
end
cp( %Q(${basedir}/../assembly/target/stage/torquebox/jboss),
%Q(${basedir}/target/torquebox-server) )
cp( %Q(${basedir}/../assembly/target/stage/torquebox/share),
%Q(${basedir}/target/torquebox-server) )
</script>
</configuration>
</execution>
<execution>
<id>copy-gem</id>
<inherited>true</inherited>
<phase>install</phase>
<goals>
<goal>jruby</goal>
</goals>
<configuration>
<script>
basedir = '${project.basedir}'.gsub('\\', '/')
load %Q(#{basedir}/../assembly/lib/assembly_tool.rb)
ext = '.gem'
ext = ( ( 'java-gem' == '${project.packaging}' ) ? '-java.gem' : '.gem' )
safe_version = '${project.version}'.gsub(/-SNAPSHOT/, '')
AssemblyTool.copy_gem_to_repo( %Q(#{basedir}/target/${project.artifactId}-#{safe_version}#{ext}) )
</script>
<jrubyJvmArgs>-Xmx1024m</jrubyJvmArgs>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>