maven-tools 1.0.0.rc2 → 1.0.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +8 -0
- data/Mavenfile +22 -0
- data/Rakefile +44 -0
- data/lib/maven/tools/coordinate.rb +6 -1
- data/lib/maven/tools/dsl.rb +116 -42
- data/lib/maven/tools/model.rb +336 -334
- data/lib/maven/tools/pom.rb +4 -5
- data/lib/maven/tools/version.rb +1 -1
- data/lib/maven/tools/versions.rb +4 -7
- data/lib/maven/tools/visitor.rb +22 -7
- data/maven-tools.gemspec +39 -0
- data/spec/artifact_spec.rb +30 -10
- data/spec/coordinate_spec.rb +1 -1
- data/spec/gemfile/Gemfile +7 -0
- data/spec/gemfile/Mavenfile +5 -0
- data/spec/gemfile/bouncy-castle-java.gemspec +20 -0
- data/spec/gemfile/pom.xml +79 -0
- data/spec/gemfile_include_jars/Gemfile +5 -0
- data/spec/gemfile_include_jars/Mavenfile +5 -0
- data/spec/gemfile_include_jars/bouncy-castle-java.gemspec +20 -0
- data/spec/gemfile_include_jars/pom.xml +74 -0
- data/spec/gemfile_with_access_to_model/Gemfile +5 -0
- data/spec/gemfile_with_access_to_model/Mavenfile +7 -0
- data/spec/gemfile_with_access_to_model/bouncy-castle-java.gemspec +16 -0
- data/spec/gemfile_with_access_to_model/pom.xml +62 -0
- data/spec/gemfile_with_custom_source/Gemfile +5 -0
- data/spec/gemfile_with_custom_source/Mavenfile +5 -0
- data/spec/gemfile_with_custom_source/bouncy-castle-java.gemspec +19 -0
- data/spec/gemfile_with_custom_source/pom.xml +107 -0
- data/spec/gemfile_with_custom_source/src/java/.keep +0 -0
- data/spec/gemfile_with_custom_source_and_custom_jarname/Gemfile +5 -0
- data/spec/gemfile_with_custom_source_and_custom_jarname/Mavenfile +5 -0
- data/spec/gemfile_with_custom_source_and_custom_jarname/bouncy-castle-java.gemspec +18 -0
- data/spec/gemfile_with_custom_source_and_custom_jarname/pom.xml +107 -0
- data/spec/gemfile_with_custom_source_and_custom_jarname/src/java/.keep +0 -0
- data/spec/gemfile_with_extras/Gemfile +5 -0
- data/spec/gemfile_with_extras/Mavenfile +21 -0
- data/spec/gemfile_with_extras/bouncy-castle-java.gemspec +20 -0
- data/spec/gemfile_with_extras/pom.xml +106 -0
- data/spec/gemfile_with_groups/Gemfile +9 -0
- data/spec/gemfile_with_groups/Mavenfile +5 -0
- data/spec/gemfile_with_groups/pom.xml +44 -0
- data/spec/gemfile_with_groups_and_lockfile/Gemfile +10 -0
- data/spec/gemfile_with_groups_and_lockfile/Gemfile.lock +34 -0
- data/spec/gemfile_with_groups_and_lockfile/Mavenfile +5 -0
- data/spec/gemfile_with_groups_and_lockfile/pom.xml +155 -0
- data/spec/gemfile_with_lock/Gemfile +7 -0
- data/spec/gemfile_with_lock/Gemfile.lock +42 -0
- data/spec/gemfile_with_lock/Mavenfile +5 -0
- data/spec/gemfile_with_lock/bouncy-castle-java.gemspec +22 -0
- data/spec/gemfile_with_lock/pom.xml +197 -0
- data/spec/gemfile_with_path/Gemfile +7 -0
- data/spec/gemfile_with_path/Mavenfile +5 -0
- data/spec/gemfile_with_path/pom.xml +63 -0
- data/spec/gemfile_with_source/Mavenfile +5 -0
- data/spec/gemfile_with_source/bouncy-castle-java.gemspec +21 -0
- data/spec/gemfile_with_source/pom.xml +103 -0
- data/spec/gemfile_with_source/src/main/java/.keep +0 -0
- data/spec/gemfile_with_source_and_custom_jarname/Gemfile +5 -0
- data/spec/gemfile_with_source_and_custom_jarname/Mavenfile +5 -0
- data/spec/gemfile_with_source_and_custom_jarname/bouncy-castle-java.gemspec +19 -0
- data/spec/gemfile_with_source_and_custom_jarname/pom.xml +106 -0
- data/spec/gemfile_with_source_and_custom_jarname/src/main/java/.keep +0 -0
- data/spec/gemfile_with_source_and_no_jar/Gemfile +5 -0
- data/spec/gemfile_with_source_and_no_jar/Mavenfile +5 -0
- data/spec/gemfile_with_source_and_no_jar/bouncy-castle-java.gemspec +19 -0
- data/spec/gemfile_with_source_and_no_jar/pom.xml +76 -0
- data/spec/gemfile_with_source_and_no_jar/src/main/java/.keep +0 -0
- data/spec/gemspec/Mavenfile +5 -0
- data/spec/gemspec/bouncy-castle-java.gemspec +20 -0
- data/spec/gemspec/pom.xml +73 -0
- data/spec/gemspec_in_profile/Mavenfile +7 -0
- data/spec/gemspec_in_profile/bouncy-castle-java.gemspec +20 -0
- data/spec/gemspec_in_profile/pom.xml +57 -0
- data/spec/gemspec_include_jars/Mavenfile +5 -0
- data/spec/gemspec_include_jars/bouncy-castle-java.gemspec +20 -0
- data/spec/gemspec_include_jars/pom.xml +74 -0
- data/spec/gemspec_no_rubygems_repo/Mavenfile +5 -0
- data/spec/gemspec_no_rubygems_repo/bouncy-castle-java.gemspec +17 -0
- data/spec/gemspec_no_rubygems_repo/pom.xml +64 -0
- data/spec/gemspec_prerelease/Mavenfile +5 -0
- data/spec/gemspec_prerelease/bouncy-castle-java.gemspec +17 -0
- data/spec/gemspec_prerelease/pom.xml +70 -0
- data/spec/gemspec_prerelease_snapshot/Mavenfile +5 -0
- data/spec/gemspec_prerelease_snapshot/bouncy-castle-java.gemspec +17 -0
- data/spec/gemspec_prerelease_snapshot/pom.xml +70 -0
- data/spec/gemspec_with_access_to_model/Mavenfile +7 -0
- data/spec/gemspec_with_access_to_model/bouncy-castle-java.gemspec +16 -0
- data/spec/gemspec_with_access_to_model/pom.xml +62 -0
- data/spec/gemspec_with_custom_source/Mavenfile +5 -0
- data/spec/gemspec_with_custom_source/bouncy-castle-java.gemspec +19 -0
- data/spec/gemspec_with_custom_source/pom.xml +107 -0
- data/spec/gemspec_with_custom_source/src/java/.keep +0 -0
- data/spec/gemspec_with_custom_source_and_custom_jarname/Mavenfile +5 -0
- data/spec/gemspec_with_custom_source_and_custom_jarname/bouncy-castle-java.gemspec +18 -0
- data/spec/gemspec_with_custom_source_and_custom_jarname/pom.xml +107 -0
- data/spec/gemspec_with_custom_source_and_custom_jarname/src/java/.keep +0 -0
- data/spec/gemspec_with_extras/Mavenfile +21 -0
- data/spec/gemspec_with_extras/bouncy-castle-java.gemspec +20 -0
- data/spec/gemspec_with_extras/pom.xml +106 -0
- data/spec/gemspec_with_prereleased_dependency/Mavenfile +5 -0
- data/spec/gemspec_with_prereleased_dependency/bouncy-castle-java.gemspec +17 -0
- data/spec/gemspec_with_prereleased_dependency/pom.xml +80 -0
- data/spec/gemspec_with_prereleased_dependency_and_no_repo/Mavenfile +5 -0
- data/spec/gemspec_with_prereleased_dependency_and_no_repo/bouncy-castle-java.gemspec +17 -0
- data/spec/gemspec_with_prereleased_dependency_and_no_repo/pom.xml +76 -0
- data/spec/gemspec_with_source/Mavenfile +5 -0
- data/spec/gemspec_with_source/bouncy-castle-java.gemspec +21 -0
- data/spec/gemspec_with_source/pom.xml +103 -0
- data/spec/gemspec_with_source/src/main/java/.keep +0 -0
- data/spec/gemspec_with_source_and_custom_jarname/Mavenfile +5 -0
- data/spec/gemspec_with_source_and_custom_jarname/bouncy-castle-java.gemspec +19 -0
- data/spec/gemspec_with_source_and_custom_jarname/pom.xml +106 -0
- data/spec/gemspec_with_source_and_custom_jarname/src/main/java/.keep +0 -0
- data/spec/gemspec_with_source_and_no_jar/Mavenfile +5 -0
- data/spec/gemspec_with_source_and_no_jar/bouncy-castle-java.gemspec +19 -0
- data/spec/gemspec_with_source_and_no_jar/pom.xml +76 -0
- data/spec/gemspec_with_source_and_no_jar/src/main/java/.keep +0 -0
- data/spec/mavenfile/Mavenfile +894 -0
- data/spec/my/my-1.0.gem +0 -0
- data/spec/my/my.gemspec +10 -0
- data/spec/pom.xml +423 -0
- data/spec/pom_from_jarfile/Jarfile +3 -0
- data/spec/pom_from_jarfile/pom.xml +39 -0
- data/spec/pom_maven_alternative_style/pom.rb +57 -6
- data/spec/pom_maven_hash_style/pom.rb +56 -175
- data/spec/pom_maven_style/pom.rb +59 -6
- data/spec/pom_spec.rb +1 -1
- data/spec/pom_with_execute/pom.xml +92 -0
- metadata +246 -2
@@ -1,6 +1,6 @@
|
|
1
1
|
project 'my name', 'example.com' do
|
2
2
|
|
3
|
-
model_version '1.0.
|
3
|
+
model_version '1.0.1'
|
4
4
|
|
5
5
|
parent 'example', 'parent', '1.1' do
|
6
6
|
relative_path '../pom.xml'
|
@@ -73,7 +73,6 @@ project 'my name', 'example.com' do
|
|
73
73
|
repository( :first,
|
74
74
|
'http://repo.example.com',
|
75
75
|
'First',
|
76
|
-
:unique_version => 123,
|
77
76
|
:layout => 'legacy' ) do
|
78
77
|
releases( :enabled => true,
|
79
78
|
:update_policy => 'daily',
|
@@ -85,7 +84,6 @@ project 'my name', 'example.com' do
|
|
85
84
|
snapshot_repository( 'snapshots',
|
86
85
|
'http://snaphots.example.com',
|
87
86
|
'First Snapshots',
|
88
|
-
:unique_version => 1234,
|
89
87
|
:layout => 'legacy' ) do
|
90
88
|
releases( :enabled => false,
|
91
89
|
:update_policy => 'daily',
|
@@ -114,7 +112,6 @@ project 'my name', 'example.com' do
|
|
114
112
|
:optional => false )
|
115
113
|
end
|
116
114
|
repository( 'first', 'http://repo.example.com', 'First' ) do
|
117
|
-
unique_version 123
|
118
115
|
layout 'legacy'
|
119
116
|
releases( :enabled => true,
|
120
117
|
:update_policy => 'daily',
|
@@ -126,7 +123,6 @@ project 'my name', 'example.com' do
|
|
126
123
|
snapshot_repository( 'snapshots',
|
127
124
|
'http://snaphots.example.com',
|
128
125
|
'First Snapshots',
|
129
|
-
:unique_version => 12345,
|
130
126
|
:layout => 'legacy' ) do
|
131
127
|
releases( :update_policy => 'daily',
|
132
128
|
:checksum_policy => :strict )
|
@@ -134,7 +130,6 @@ project 'my name', 'example.com' do
|
|
134
130
|
:checksum_policy => 'none' )
|
135
131
|
end
|
136
132
|
plugin_repository( :first, 'http://pluginrepo.example.com', 'First' ) do
|
137
|
-
unique_version 12
|
138
133
|
layout 'legacy'
|
139
134
|
releases( :enabled => true,
|
140
135
|
:update_policy => 'daily',
|
@@ -166,6 +161,62 @@ project 'my name', 'example.com' do
|
|
166
161
|
includes [ '**/*' ]
|
167
162
|
excludes [ '*~' ]
|
168
163
|
end
|
164
|
+
|
165
|
+
plugin :jar, '1.0', :inherited => true do
|
166
|
+
configuration :finalName => :testing
|
167
|
+
end
|
168
|
+
|
169
|
+
jruby_plugin :gem, '1.0.0' do
|
170
|
+
gem :bundler, '1.6.2'
|
171
|
+
end
|
172
|
+
|
173
|
+
phase :package do
|
174
|
+
plugin :antrun do
|
175
|
+
execute_goals( 'run',
|
176
|
+
:id => 'copy',
|
177
|
+
'tasks' => {
|
178
|
+
'exec' => {
|
179
|
+
'@executable' => '/bin/sh',
|
180
|
+
'@osfamily' => 'unix',
|
181
|
+
'arg' => {
|
182
|
+
'@line' => '-c \'cp "${jruby.basedir}/bin/jruby.bash" "${jruby.basedir}/bin/jruby"\''
|
183
|
+
}
|
184
|
+
},
|
185
|
+
'chmod' => {
|
186
|
+
'@file' => '${jruby.basedir}/bin/jruby',
|
187
|
+
'@perm' => '755'
|
188
|
+
}
|
189
|
+
} )
|
190
|
+
jar 'org.super.duper:executor:1.0.0'
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
194
|
+
plugin 'org.codehaus.mojo:exec-maven-plugin' do
|
195
|
+
execute_goal( 'exec',
|
196
|
+
:id => 'invoker-generator',
|
197
|
+
'arguments' => [ '-Djruby.bytecode.version=${base.java.version}',
|
198
|
+
'-classpath',
|
199
|
+
xml( '<classpath/>' ),
|
200
|
+
'org.jruby.anno.InvokerGenerator',
|
201
|
+
'${anno.sources}/annotated_classes.txt',
|
202
|
+
'${project.build.outputDirectory}' ],
|
203
|
+
'executable' => 'java',
|
204
|
+
'classpathScope' => 'compile' )
|
205
|
+
end
|
206
|
+
|
207
|
+
overrides do
|
208
|
+
plugin( "org.mortbay.jetty:jetty-maven-plugin:8.1",
|
209
|
+
:path => '/',
|
210
|
+
:connectors => [ { :@implementation => "org.eclipse.jetty.server.nio.SelectChannelConnector",
|
211
|
+
:port => '${run.port}' },
|
212
|
+
{ :@implementation => "org.eclipse.jetty.server.ssl.SslSelectChannelConnector",
|
213
|
+
:port => '${run.sslport}',
|
214
|
+
:keystore => '${run.keystore}',
|
215
|
+
:keyPassword => '${run.keystore.pass}',
|
216
|
+
:trustPassword => '${run.truststore.pass}' } ],
|
217
|
+
:httpConnector => { :port => '${run.port}' } )
|
218
|
+
end
|
219
|
+
|
169
220
|
end
|
170
221
|
end
|
171
222
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
project :name => 'my name', :url => 'example.com' do
|
2
2
|
|
3
|
-
model_version '1.0.
|
3
|
+
model_version '1.0.1'
|
4
4
|
|
5
5
|
parent( :group_id => 'example',
|
6
6
|
:artifact_id => 'parent',
|
@@ -76,20 +76,18 @@ project :name => 'my name', :url => 'example.com' do
|
|
76
76
|
end
|
77
77
|
distribution( :status => 'active',
|
78
78
|
:download_url => 'http://dev.example.com/downloads' ) do
|
79
|
-
repository( :
|
80
|
-
:id => 'first',
|
79
|
+
repository( :id => 'first',
|
81
80
|
:name => 'First',
|
82
81
|
:url => 'http://repo.example.com',
|
83
82
|
:layout => 'legacy' ) do
|
84
83
|
releases( :enabled => true,
|
85
84
|
:update_policy => 'daily',
|
86
85
|
:checksum_policy => :strict )
|
87
|
-
snapshots( :enabled =>false,
|
86
|
+
snapshots( :enabled => false,
|
88
87
|
:update_policy => :never,
|
89
88
|
:checksum_policy => 'none' )
|
90
89
|
end
|
91
|
-
snapshot_repository( :
|
92
|
-
:id => 'snapshots',
|
90
|
+
snapshot_repository( :id => 'snapshots',
|
93
91
|
:name => 'First Snapshots',
|
94
92
|
:url => 'http://snaphots.example.com',
|
95
93
|
:layout => 'legacy' ) do
|
@@ -136,7 +134,6 @@ project :name => 'my name', :url => 'example.com' do
|
|
136
134
|
repository( :id => 'first',
|
137
135
|
:url => 'http://repo.example.com',
|
138
136
|
:name => 'First',
|
139
|
-
:unique_version => 123,
|
140
137
|
:layout => 'legacy' ) do
|
141
138
|
releases( :enabled => true,
|
142
139
|
:update_policy => 'daily',
|
@@ -148,7 +145,6 @@ project :name => 'my name', :url => 'example.com' do
|
|
148
145
|
snapshot_repository( :id => 'snapshots',
|
149
146
|
:url => 'http://snaphots.example.com',
|
150
147
|
:name => 'First Snapshots',
|
151
|
-
:unique_version => 12345,
|
152
148
|
:layout => 'legacy' ) do
|
153
149
|
releases( :update_policy => 'daily',
|
154
150
|
:checksum_policy => :strict )
|
@@ -158,7 +154,6 @@ project :name => 'my name', :url => 'example.com' do
|
|
158
154
|
plugin_repository( :id => :first,
|
159
155
|
:url => 'http://pluginrepo.example.com',
|
160
156
|
:name => 'First',
|
161
|
-
:unique_version => 12,
|
162
157
|
:layout => 'legacy' ) do
|
163
158
|
releases( :enabled => true,
|
164
159
|
:update_policy => 'daily',
|
@@ -187,179 +182,65 @@ project :name => 'my name', :url => 'example.com' do
|
|
187
182
|
:directory => 'testresources',
|
188
183
|
:includes => [ '**/*' ],
|
189
184
|
:excludes => [ '*~' ] )
|
190
|
-
|
191
|
-
|
185
|
+
plugin( :jar, '1.0',
|
186
|
+
:inherited => true,
|
187
|
+
:finalName => :testing )
|
192
188
|
|
189
|
+
jruby_plugin :gem, '1.0.0' do
|
190
|
+
gem :bundler, '1.6.2'
|
191
|
+
end
|
193
192
|
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
193
|
+
plugin :antrun do
|
194
|
+
execute_goals( 'run',
|
195
|
+
:id => 'copy',
|
196
|
+
:phase => 'package',
|
197
|
+
'tasks' => {
|
198
|
+
'exec' => {
|
199
|
+
'@executable' => '/bin/sh',
|
200
|
+
'@osfamily' => 'unix',
|
201
|
+
'arg' => {
|
202
|
+
'@line' => '-c \'cp "${jruby.basedir}/bin/jruby.bash" "${jruby.basedir}/bin/jruby"\''
|
203
|
+
}
|
204
|
+
},
|
205
|
+
'chmod' => {
|
206
|
+
'@file' => '${jruby.basedir}/bin/jruby',
|
207
|
+
'@perm' => '755'
|
208
|
+
}
|
209
|
+
} )
|
210
|
+
jar 'org.super.duper:executor:1.0.0'
|
211
|
+
end
|
212
212
|
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
# <updatePolicy/>
|
241
|
-
# <checksumPolicy/>
|
242
|
-
# </snapshots>
|
243
|
-
# <id/>
|
244
|
-
# <name/>
|
245
|
-
# <url/>
|
246
|
-
# <layout/>
|
247
|
-
# </pluginRepository>
|
248
|
-
# </pluginRepositories>
|
213
|
+
plugin 'org.codehaus.mojo:exec-maven-plugin' do
|
214
|
+
execute_goal( 'exec',
|
215
|
+
:id => 'invoker-generator',
|
216
|
+
'arguments' => [ '-Djruby.bytecode.version=${base.java.version}',
|
217
|
+
'-classpath',
|
218
|
+
xml( '<classpath/>' ),
|
219
|
+
'org.jruby.anno.InvokerGenerator',
|
220
|
+
'${anno.sources}/annotated_classes.txt',
|
221
|
+
'${project.build.outputDirectory}' ],
|
222
|
+
'executable' => 'java',
|
223
|
+
'classpathScope' => 'compile' )
|
224
|
+
end
|
225
|
+
|
226
|
+
plugin_management do
|
227
|
+
plugin( "org.mortbay.jetty:jetty-maven-plugin:8.1",
|
228
|
+
:path => '/',
|
229
|
+
:connectors => [ { :@implementation => "org.eclipse.jetty.server.nio.SelectChannelConnector",
|
230
|
+
:port => '${run.port}' },
|
231
|
+
{ :@implementation => "org.eclipse.jetty.server.ssl.SslSelectChannelConnector",
|
232
|
+
:port => '${run.sslport}',
|
233
|
+
:keystore => '${run.keystore}',
|
234
|
+
:keyPassword => '${run.keystore.pass}',
|
235
|
+
:trustPassword => '${run.truststore.pass}' } ],
|
236
|
+
:httpConnector => { :port => '${run.port}' } )
|
237
|
+
end
|
238
|
+
end
|
239
|
+
end
|
249
240
|
|
250
|
-
# <build>
|
251
|
-
# <sourceDirectory/>
|
252
|
-
# <scriptSourceDirectory/>
|
253
|
-
# <testSourceDirectory/>
|
254
|
-
# <outputDirectory/>
|
255
|
-
# <testOutputDirectory/>
|
256
|
-
# <extensions>
|
257
|
-
# <extension>
|
258
|
-
# <groupId/>
|
259
|
-
# <artifactId/>
|
260
|
-
# <version/>
|
261
|
-
# </extension>
|
262
|
-
# </extensions>
|
263
|
-
# <defaultGoal/>
|
264
|
-
# <resources>
|
265
|
-
# <resource>
|
266
|
-
# <targetPath/>
|
267
|
-
# <filtering/>
|
268
|
-
# <directory/>
|
269
|
-
# <includes/>
|
270
|
-
# <excludes/>
|
271
|
-
# </resource>
|
272
|
-
# </resources>
|
273
|
-
# <testResources>
|
274
|
-
# <testResource>
|
275
|
-
# <targetPath/>
|
276
|
-
# <filtering/>
|
277
|
-
# <directory/>
|
278
|
-
# <includes/>
|
279
|
-
# <excludes/>
|
280
|
-
# </testResource>
|
281
|
-
# </testResources>
|
282
241
|
# <directory/>
|
283
242
|
# <finalName/>
|
284
243
|
# <filters/>
|
285
|
-
# <pluginManagement>
|
286
|
-
# <plugins>
|
287
|
-
# <plugin>
|
288
|
-
# <groupId/>
|
289
|
-
# <artifactId/>
|
290
|
-
# <version/>
|
291
|
-
# <extensions/>
|
292
|
-
# <executions>
|
293
|
-
# <execution>
|
294
|
-
# <id/>
|
295
|
-
# <phase/>
|
296
|
-
# <goals/>
|
297
|
-
# <inherited/>
|
298
|
-
# <configuration/>
|
299
|
-
# </execution>
|
300
|
-
# </executions>
|
301
|
-
# <dependencies>
|
302
|
-
# <dependency>
|
303
|
-
# <groupId/>
|
304
|
-
# <artifactId/>
|
305
|
-
# <version/>
|
306
|
-
# <type/>
|
307
|
-
# <classifier/>
|
308
|
-
# <scope/>
|
309
|
-
# <systemPath/>
|
310
|
-
# <exclusions>
|
311
|
-
# <exclusion>
|
312
|
-
# <artifactId/>
|
313
|
-
# <groupId/>
|
314
|
-
# </exclusion>
|
315
|
-
# </exclusions>
|
316
|
-
# <optional/>
|
317
|
-
# </dependency>
|
318
|
-
# </dependencies>
|
319
|
-
# <goals/>
|
320
|
-
# <inherited/>
|
321
|
-
# <configuration/>
|
322
|
-
# </plugin>
|
323
|
-
# </plugins>
|
324
|
-
# </pluginManagement>
|
325
|
-
# <plugins>
|
326
|
-
# <plugin>
|
327
|
-
# <groupId/>
|
328
|
-
# <artifactId/>
|
329
|
-
# <version/>
|
330
|
-
# <extensions/>
|
331
|
-
# <executions>
|
332
|
-
# <execution>
|
333
|
-
# <id/>
|
334
|
-
# <phase/>
|
335
|
-
# <goals/>
|
336
|
-
# <inherited/>
|
337
|
-
# <configuration/>
|
338
|
-
# </execution>
|
339
|
-
# </executions>
|
340
|
-
# <dependencies>
|
341
|
-
# <dependency>
|
342
|
-
# <groupId/>
|
343
|
-
# <artifactId/>
|
344
|
-
# <version/>
|
345
|
-
# <type/>
|
346
|
-
# <classifier/>
|
347
|
-
# <scope/>
|
348
|
-
# <systemPath/>
|
349
|
-
# <exclusions>
|
350
|
-
# <exclusion>
|
351
|
-
# <artifactId/>
|
352
|
-
# <groupId/>
|
353
|
-
# </exclusion>
|
354
|
-
# </exclusions>
|
355
|
-
# <optional/>
|
356
|
-
# </dependency>
|
357
|
-
# </dependencies>
|
358
|
-
# <goals/>
|
359
|
-
# <inherited/>
|
360
|
-
# <configuration/>
|
361
|
-
# </plugin>
|
362
|
-
# </plugins>
|
363
244
|
# </build>
|
364
245
|
|
365
246
|
# <reports/>
|
data/spec/pom_maven_style/pom.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
project do
|
2
2
|
|
3
|
-
model_version '1.0.
|
3
|
+
model_version '1.0.1'
|
4
4
|
|
5
5
|
parent 'example:parent:1.1' do
|
6
6
|
relative_path '../pom.xml'
|
@@ -102,7 +102,6 @@ project do
|
|
102
102
|
id :first
|
103
103
|
url 'http://repo.example.com'
|
104
104
|
name 'First'
|
105
|
-
unique_version 123
|
106
105
|
layout 'legacy'
|
107
106
|
releases do
|
108
107
|
enabled true
|
@@ -118,7 +117,6 @@ project do
|
|
118
117
|
snapshot_repository( 'snapshots',
|
119
118
|
'http://snaphots.example.com',
|
120
119
|
'First Snapshots',
|
121
|
-
:unique_version => 1234,
|
122
120
|
:layout => 'legacy' ) do
|
123
121
|
releases( :enabled => false,
|
124
122
|
:update_policy => 'daily',
|
@@ -159,7 +157,6 @@ project do
|
|
159
157
|
id :first
|
160
158
|
url 'http://repo.example.com'
|
161
159
|
name 'First'
|
162
|
-
unique_version 123
|
163
160
|
layout 'legacy'
|
164
161
|
releases do
|
165
162
|
enabled true
|
@@ -176,7 +173,6 @@ project do
|
|
176
173
|
id 'snapshots'
|
177
174
|
url 'http://snaphots.example.com'
|
178
175
|
name 'First Snapshots'
|
179
|
-
unique_version 12345
|
180
176
|
layout 'legacy'
|
181
177
|
releases do
|
182
178
|
update_policy 'daily'
|
@@ -191,7 +187,6 @@ project do
|
|
191
187
|
id :first
|
192
188
|
url 'http://pluginrepo.example.com'
|
193
189
|
name 'First'
|
194
|
-
unique_version 12
|
195
190
|
layout 'legacy'
|
196
191
|
releases do
|
197
192
|
enabled true
|
@@ -226,6 +221,64 @@ project do
|
|
226
221
|
includes [ '**/*' ]
|
227
222
|
excludes [ '*~' ]
|
228
223
|
end
|
224
|
+
|
225
|
+
plugin :jar, '1.0' do
|
226
|
+
inherited true
|
227
|
+
configuration :finalName => :testing
|
228
|
+
end
|
229
|
+
|
230
|
+
jruby_plugin :gem, '1.0.0' do
|
231
|
+
gem :bundler, '1.6.2'
|
232
|
+
end
|
233
|
+
|
234
|
+
plugin :antrun do
|
235
|
+
execute_goals( 'run' ) do
|
236
|
+
configuration( 'tasks' => {
|
237
|
+
'exec' => {
|
238
|
+
'@executable' => '/bin/sh',
|
239
|
+
'@osfamily' => 'unix',
|
240
|
+
'arg' => {
|
241
|
+
'@line' => '-c \'cp "${jruby.basedir}/bin/jruby.bash" "${jruby.basedir}/bin/jruby"\''
|
242
|
+
}
|
243
|
+
},
|
244
|
+
'chmod' => {
|
245
|
+
'@file' => '${jruby.basedir}/bin/jruby',
|
246
|
+
'@perm' => '755'
|
247
|
+
}
|
248
|
+
} )
|
249
|
+
id 'copy'
|
250
|
+
phase 'package'
|
251
|
+
end
|
252
|
+
jar 'org.super.duper:executor:1.0.0'
|
253
|
+
end
|
254
|
+
|
255
|
+
plugin 'org.codehaus.mojo:exec-maven-plugin' do
|
256
|
+
execute_goal( 'exec' ) do
|
257
|
+
id 'invoker-generator'
|
258
|
+
configuration( 'arguments' => [ '-Djruby.bytecode.version=${base.java.version}',
|
259
|
+
'-classpath',
|
260
|
+
xml( '<classpath/>' ),
|
261
|
+
'org.jruby.anno.InvokerGenerator',
|
262
|
+
'${anno.sources}/annotated_classes.txt',
|
263
|
+
'${project.build.outputDirectory}' ],
|
264
|
+
'executable' => 'java',
|
265
|
+
'classpathScope' => 'compile' )
|
266
|
+
end
|
267
|
+
end
|
268
|
+
|
269
|
+
plugin_management do
|
270
|
+
plugin( "org.mortbay.jetty:jetty-maven-plugin:8.1" ) do
|
271
|
+
configuration( :path => '/',
|
272
|
+
:connectors => [ { :@implementation => "org.eclipse.jetty.server.nio.SelectChannelConnector",
|
273
|
+
:port => '${run.port}' },
|
274
|
+
{ :@implementation => "org.eclipse.jetty.server.ssl.SslSelectChannelConnector",
|
275
|
+
:port => '${run.sslport}',
|
276
|
+
:keystore => '${run.keystore}',
|
277
|
+
:keyPassword => '${run.keystore.pass}',
|
278
|
+
:trustPassword => '${run.truststore.pass}' } ],
|
279
|
+
:httpConnector => { :port => '${run.port}' } )
|
280
|
+
end
|
281
|
+
end
|
229
282
|
end
|
230
283
|
end
|
231
284
|
# <build>
|