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.
Files changed (131) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +8 -0
  3. data/Mavenfile +22 -0
  4. data/Rakefile +44 -0
  5. data/lib/maven/tools/coordinate.rb +6 -1
  6. data/lib/maven/tools/dsl.rb +116 -42
  7. data/lib/maven/tools/model.rb +336 -334
  8. data/lib/maven/tools/pom.rb +4 -5
  9. data/lib/maven/tools/version.rb +1 -1
  10. data/lib/maven/tools/versions.rb +4 -7
  11. data/lib/maven/tools/visitor.rb +22 -7
  12. data/maven-tools.gemspec +39 -0
  13. data/spec/artifact_spec.rb +30 -10
  14. data/spec/coordinate_spec.rb +1 -1
  15. data/spec/gemfile/Gemfile +7 -0
  16. data/spec/gemfile/Mavenfile +5 -0
  17. data/spec/gemfile/bouncy-castle-java.gemspec +20 -0
  18. data/spec/gemfile/pom.xml +79 -0
  19. data/spec/gemfile_include_jars/Gemfile +5 -0
  20. data/spec/gemfile_include_jars/Mavenfile +5 -0
  21. data/spec/gemfile_include_jars/bouncy-castle-java.gemspec +20 -0
  22. data/spec/gemfile_include_jars/pom.xml +74 -0
  23. data/spec/gemfile_with_access_to_model/Gemfile +5 -0
  24. data/spec/gemfile_with_access_to_model/Mavenfile +7 -0
  25. data/spec/gemfile_with_access_to_model/bouncy-castle-java.gemspec +16 -0
  26. data/spec/gemfile_with_access_to_model/pom.xml +62 -0
  27. data/spec/gemfile_with_custom_source/Gemfile +5 -0
  28. data/spec/gemfile_with_custom_source/Mavenfile +5 -0
  29. data/spec/gemfile_with_custom_source/bouncy-castle-java.gemspec +19 -0
  30. data/spec/gemfile_with_custom_source/pom.xml +107 -0
  31. data/spec/gemfile_with_custom_source/src/java/.keep +0 -0
  32. data/spec/gemfile_with_custom_source_and_custom_jarname/Gemfile +5 -0
  33. data/spec/gemfile_with_custom_source_and_custom_jarname/Mavenfile +5 -0
  34. data/spec/gemfile_with_custom_source_and_custom_jarname/bouncy-castle-java.gemspec +18 -0
  35. data/spec/gemfile_with_custom_source_and_custom_jarname/pom.xml +107 -0
  36. data/spec/gemfile_with_custom_source_and_custom_jarname/src/java/.keep +0 -0
  37. data/spec/gemfile_with_extras/Gemfile +5 -0
  38. data/spec/gemfile_with_extras/Mavenfile +21 -0
  39. data/spec/gemfile_with_extras/bouncy-castle-java.gemspec +20 -0
  40. data/spec/gemfile_with_extras/pom.xml +106 -0
  41. data/spec/gemfile_with_groups/Gemfile +9 -0
  42. data/spec/gemfile_with_groups/Mavenfile +5 -0
  43. data/spec/gemfile_with_groups/pom.xml +44 -0
  44. data/spec/gemfile_with_groups_and_lockfile/Gemfile +10 -0
  45. data/spec/gemfile_with_groups_and_lockfile/Gemfile.lock +34 -0
  46. data/spec/gemfile_with_groups_and_lockfile/Mavenfile +5 -0
  47. data/spec/gemfile_with_groups_and_lockfile/pom.xml +155 -0
  48. data/spec/gemfile_with_lock/Gemfile +7 -0
  49. data/spec/gemfile_with_lock/Gemfile.lock +42 -0
  50. data/spec/gemfile_with_lock/Mavenfile +5 -0
  51. data/spec/gemfile_with_lock/bouncy-castle-java.gemspec +22 -0
  52. data/spec/gemfile_with_lock/pom.xml +197 -0
  53. data/spec/gemfile_with_path/Gemfile +7 -0
  54. data/spec/gemfile_with_path/Mavenfile +5 -0
  55. data/spec/gemfile_with_path/pom.xml +63 -0
  56. data/spec/gemfile_with_source/Mavenfile +5 -0
  57. data/spec/gemfile_with_source/bouncy-castle-java.gemspec +21 -0
  58. data/spec/gemfile_with_source/pom.xml +103 -0
  59. data/spec/gemfile_with_source/src/main/java/.keep +0 -0
  60. data/spec/gemfile_with_source_and_custom_jarname/Gemfile +5 -0
  61. data/spec/gemfile_with_source_and_custom_jarname/Mavenfile +5 -0
  62. data/spec/gemfile_with_source_and_custom_jarname/bouncy-castle-java.gemspec +19 -0
  63. data/spec/gemfile_with_source_and_custom_jarname/pom.xml +106 -0
  64. data/spec/gemfile_with_source_and_custom_jarname/src/main/java/.keep +0 -0
  65. data/spec/gemfile_with_source_and_no_jar/Gemfile +5 -0
  66. data/spec/gemfile_with_source_and_no_jar/Mavenfile +5 -0
  67. data/spec/gemfile_with_source_and_no_jar/bouncy-castle-java.gemspec +19 -0
  68. data/spec/gemfile_with_source_and_no_jar/pom.xml +76 -0
  69. data/spec/gemfile_with_source_and_no_jar/src/main/java/.keep +0 -0
  70. data/spec/gemspec/Mavenfile +5 -0
  71. data/spec/gemspec/bouncy-castle-java.gemspec +20 -0
  72. data/spec/gemspec/pom.xml +73 -0
  73. data/spec/gemspec_in_profile/Mavenfile +7 -0
  74. data/spec/gemspec_in_profile/bouncy-castle-java.gemspec +20 -0
  75. data/spec/gemspec_in_profile/pom.xml +57 -0
  76. data/spec/gemspec_include_jars/Mavenfile +5 -0
  77. data/spec/gemspec_include_jars/bouncy-castle-java.gemspec +20 -0
  78. data/spec/gemspec_include_jars/pom.xml +74 -0
  79. data/spec/gemspec_no_rubygems_repo/Mavenfile +5 -0
  80. data/spec/gemspec_no_rubygems_repo/bouncy-castle-java.gemspec +17 -0
  81. data/spec/gemspec_no_rubygems_repo/pom.xml +64 -0
  82. data/spec/gemspec_prerelease/Mavenfile +5 -0
  83. data/spec/gemspec_prerelease/bouncy-castle-java.gemspec +17 -0
  84. data/spec/gemspec_prerelease/pom.xml +70 -0
  85. data/spec/gemspec_prerelease_snapshot/Mavenfile +5 -0
  86. data/spec/gemspec_prerelease_snapshot/bouncy-castle-java.gemspec +17 -0
  87. data/spec/gemspec_prerelease_snapshot/pom.xml +70 -0
  88. data/spec/gemspec_with_access_to_model/Mavenfile +7 -0
  89. data/spec/gemspec_with_access_to_model/bouncy-castle-java.gemspec +16 -0
  90. data/spec/gemspec_with_access_to_model/pom.xml +62 -0
  91. data/spec/gemspec_with_custom_source/Mavenfile +5 -0
  92. data/spec/gemspec_with_custom_source/bouncy-castle-java.gemspec +19 -0
  93. data/spec/gemspec_with_custom_source/pom.xml +107 -0
  94. data/spec/gemspec_with_custom_source/src/java/.keep +0 -0
  95. data/spec/gemspec_with_custom_source_and_custom_jarname/Mavenfile +5 -0
  96. data/spec/gemspec_with_custom_source_and_custom_jarname/bouncy-castle-java.gemspec +18 -0
  97. data/spec/gemspec_with_custom_source_and_custom_jarname/pom.xml +107 -0
  98. data/spec/gemspec_with_custom_source_and_custom_jarname/src/java/.keep +0 -0
  99. data/spec/gemspec_with_extras/Mavenfile +21 -0
  100. data/spec/gemspec_with_extras/bouncy-castle-java.gemspec +20 -0
  101. data/spec/gemspec_with_extras/pom.xml +106 -0
  102. data/spec/gemspec_with_prereleased_dependency/Mavenfile +5 -0
  103. data/spec/gemspec_with_prereleased_dependency/bouncy-castle-java.gemspec +17 -0
  104. data/spec/gemspec_with_prereleased_dependency/pom.xml +80 -0
  105. data/spec/gemspec_with_prereleased_dependency_and_no_repo/Mavenfile +5 -0
  106. data/spec/gemspec_with_prereleased_dependency_and_no_repo/bouncy-castle-java.gemspec +17 -0
  107. data/spec/gemspec_with_prereleased_dependency_and_no_repo/pom.xml +76 -0
  108. data/spec/gemspec_with_source/Mavenfile +5 -0
  109. data/spec/gemspec_with_source/bouncy-castle-java.gemspec +21 -0
  110. data/spec/gemspec_with_source/pom.xml +103 -0
  111. data/spec/gemspec_with_source/src/main/java/.keep +0 -0
  112. data/spec/gemspec_with_source_and_custom_jarname/Mavenfile +5 -0
  113. data/spec/gemspec_with_source_and_custom_jarname/bouncy-castle-java.gemspec +19 -0
  114. data/spec/gemspec_with_source_and_custom_jarname/pom.xml +106 -0
  115. data/spec/gemspec_with_source_and_custom_jarname/src/main/java/.keep +0 -0
  116. data/spec/gemspec_with_source_and_no_jar/Mavenfile +5 -0
  117. data/spec/gemspec_with_source_and_no_jar/bouncy-castle-java.gemspec +19 -0
  118. data/spec/gemspec_with_source_and_no_jar/pom.xml +76 -0
  119. data/spec/gemspec_with_source_and_no_jar/src/main/java/.keep +0 -0
  120. data/spec/mavenfile/Mavenfile +894 -0
  121. data/spec/my/my-1.0.gem +0 -0
  122. data/spec/my/my.gemspec +10 -0
  123. data/spec/pom.xml +423 -0
  124. data/spec/pom_from_jarfile/Jarfile +3 -0
  125. data/spec/pom_from_jarfile/pom.xml +39 -0
  126. data/spec/pom_maven_alternative_style/pom.rb +57 -6
  127. data/spec/pom_maven_hash_style/pom.rb +56 -175
  128. data/spec/pom_maven_style/pom.rb +59 -6
  129. data/spec/pom_spec.rb +1 -1
  130. data/spec/pom_with_execute/pom.xml +92 -0
  131. metadata +246 -2
@@ -1,6 +1,6 @@
1
1
  project 'my name', 'example.com' do
2
2
 
3
- model_version '1.0.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.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( :unique_version => 123,
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( :unique_version => 1234,
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
- end
191
- end
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
- # <dependencies>
195
- # <dependency>
196
- # <groupId/>
197
- # <artifactId/>
198
- # <version/>
199
- # <type/>
200
- # <classifier/>
201
- # <scope/>
202
- # <systemPath/>
203
- # <exclusions>
204
- # <exclusion>
205
- # <artifactId/>
206
- # <groupId/>
207
- # </exclusion>
208
- # </exclusions>
209
- # <optional/>
210
- # </dependency>
211
- # </dependencies>
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
- # <repositories>
214
- # <repository>
215
- # <releases>
216
- # <enabled/>
217
- # <updatePolicy/>
218
- # <checksumPolicy/>
219
- # </releases>
220
- # <snapshots>
221
- # <enabled/>
222
- # <updatePolicy/>
223
- # <checksumPolicy/>
224
- # </snapshots>
225
- # <id/>
226
- # <name/>
227
- # <url/>
228
- # <layout/>
229
- # </repository>
230
- # </repositories>
231
- # <pluginRepositories>
232
- # <pluginRepository>
233
- # <releases>
234
- # <enabled/>
235
- # <updatePolicy/>
236
- # <checksumPolicy/>
237
- # </releases>
238
- # <snapshots>
239
- # <enabled/>
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/>
@@ -1,6 +1,6 @@
1
1
  project do
2
2
 
3
- model_version '1.0.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>