maven-tools 0.34.5 → 1.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/lib/maven/tools/artifact.rb +18 -12
  3. data/lib/maven/tools/dsl.rb +282 -121
  4. data/lib/maven/tools/gemfile_lock.rb +0 -6
  5. data/lib/maven/tools/model.rb +78 -69
  6. data/lib/maven/tools/pom.rb +8 -8
  7. data/lib/maven/tools/version.rb +1 -1
  8. data/lib/maven/tools/versions.rb +4 -4
  9. data/lib/maven/tools/visitor.rb +2 -2
  10. data/spec/gemfile_with_lock/bouncy-castle-version.rb +4 -0
  11. data/spec/pom_maven_alternative_style/pom.rb +116 -169
  12. data/spec/pom_maven_hash_style/pom.rb +134 -100
  13. data/spec/pom_maven_style/pom.rb +160 -163
  14. data/spec/pom_spec.rb +3 -1
  15. metadata +12 -90
  16. data/lib/maven/model/dependencies.rb +0 -249
  17. data/lib/maven/model/model.rb +0 -618
  18. data/lib/maven/model/utils.rb +0 -393
  19. data/lib/maven/tools/execute_in_phase.rb +0 -28
  20. data/lib/maven/tools/gem_project.rb +0 -513
  21. data/lib/maven/tools/maven_project.rb +0 -72
  22. data/lib/maven/tools/minimal_project.rb +0 -84
  23. data/lib/maven/tools/pom_generator.rb +0 -83
  24. data/lib/maven/tools/rails_project.rb +0 -133
  25. data/rspec/maven/model/dependencies_spec.rb +0 -260
  26. data/rspec/maven/model/model_spec.rb +0 -714
  27. data/rspec/maven/tools/Gemfile.gems +0 -11
  28. data/rspec/maven/tools/Gemfile.groups +0 -15
  29. data/rspec/maven/tools/Gemfile.ignored +0 -30
  30. data/rspec/maven/tools/Gemfile.lockfile +0 -8
  31. data/rspec/maven/tools/Gemfile.lockfile.lock +0 -53
  32. data/rspec/maven/tools/Gemfile.minimal +0 -1
  33. data/rspec/maven/tools/Gemfile.nolock +0 -1
  34. data/rspec/maven/tools/Gemfile.rails +0 -16
  35. data/rspec/maven/tools/Gemfile.simple +0 -7
  36. data/rspec/maven/tools/Gemfile.withlock +0 -1
  37. data/rspec/maven/tools/Gemfile.withlock.lock +0 -28
  38. data/rspec/maven/tools/Jarfile.with +0 -2
  39. data/rspec/maven/tools/Jarfile.with.lock +0 -1
  40. data/rspec/maven/tools/Jarfile.without +0 -2
  41. data/rspec/maven/tools/deps.gemspec +0 -8
  42. data/rspec/maven/tools/gem_project_spec.rb +0 -1126
  43. data/rspec/maven/tools/maven-tools.gemspec +0 -17
  44. data/rspec/maven/tools/minimal.gemspec +0 -5
  45. data/rspec/maven/tools/no-deps.gemspec +0 -27
  46. data/rspec/maven/tools/rails_project_spec.rb +0 -284
  47. data/rspec/maven/tools/spec_helper.rb +0 -22
@@ -82,9 +82,3 @@ module Maven
82
82
  end
83
83
  end
84
84
  end
85
-
86
- if $0 == __FILE__
87
- lockfile = Maven::Tools::GemfileLock.new(File.new(ARGV[0] || 'Gemfile.lock'))
88
- p lockfile
89
- p lockfile.dependency_hull("rails")
90
- end
@@ -1,5 +1,10 @@
1
1
  require 'virtus'
2
2
 
3
+ module Maven
4
+ module Tools
5
+ class Base
6
+ end
7
+
3
8
  module GAV
4
9
  def self.included( base )
5
10
  base.attribute :group_id, String
@@ -33,27 +38,27 @@ module INU
33
38
  end
34
39
  end
35
40
 
36
- class Parent
37
- include Virtus
41
+ class Parent < Base
42
+ include Virtus.model
38
43
 
39
44
  include GAV
40
45
 
41
46
  attribute :relative_path, String
42
47
  end
43
- class Organization
44
- include Virtus
48
+ class Organization < Base
49
+ include Virtus.model
45
50
 
46
51
  include NU
47
52
  end
48
- class License
49
- include Virtus
53
+ class License < Base
54
+ include Virtus.model
50
55
 
51
56
  include NU
52
57
  attribute :distribution, String
53
58
  attribute :comments, String
54
59
  end
55
- class Developer
56
- include Virtus
60
+ class Developer < Base
61
+ include Virtus.model
57
62
 
58
63
  include INU
59
64
  attribute :email, String
@@ -63,8 +68,8 @@ class Developer
63
68
  attribute :timezone, String
64
69
  attribute :properties, Hash
65
70
  end
66
- class Contributor
67
- include Virtus
71
+ class Contributor < Base
72
+ include Virtus.model
68
73
 
69
74
  include NU
70
75
  attribute :email, String
@@ -74,8 +79,8 @@ class Contributor
74
79
  attribute :timezone, String
75
80
  attribute :properties, Hash
76
81
  end
77
- class MailingList
78
- include Virtus
82
+ class MailingList < Base
83
+ include Virtus.model
79
84
 
80
85
  attribute :name, String
81
86
  attribute :subscribe, String
@@ -84,26 +89,26 @@ class MailingList
84
89
  attribute :archive, String
85
90
  attribute :other_archives, Array[ String ]
86
91
  end
87
- class Prerequisites
88
- include Virtus
92
+ class Prerequisites < Base
93
+ include Virtus.model
89
94
 
90
95
  attribute :maven, String
91
96
  end
92
- class Scm
93
- include Virtus
97
+ class Scm < Base
98
+ include Virtus.model
94
99
 
95
100
  attribute :connection, String
96
101
  attribute :developer_connection, String
97
102
  attribute :tag, String
98
103
  attribute :url, String
99
104
  end
100
- class IssueManagement
101
- include Virtus
105
+ class IssueManagement < Base
106
+ include Virtus.model
102
107
 
103
108
  include SU
104
109
  end
105
- class Notifier
106
- include Virtus
110
+ class Notifier < Base
111
+ include Virtus.model
107
112
 
108
113
  attribute :type, String
109
114
  attribute :send_on_error, Boolean
@@ -113,33 +118,33 @@ class Notifier
113
118
  attribute :address, String
114
119
  attribute :configuration, Hash
115
120
  end
116
- class CiManagement
117
- include Virtus
121
+ class CiManagement < Base
122
+ include Virtus.model
118
123
 
119
124
  include SU
120
125
 
121
126
  attribute :notifiers, Array[ Notifier ]
122
127
  end
123
- class Site
124
- include Virtus
128
+ class Site < Base
129
+ include Virtus.model
125
130
 
126
131
  include INU
127
132
  end
128
- class Relocation
129
- include Virtus
133
+ class Relocation < Base
134
+ include Virtus.model
130
135
 
131
136
  include GAV
132
137
  attribute :message, String
133
138
  end
134
- class RepositoryPolicy
135
- include Virtus
139
+ class RepositoryPolicy < Base
140
+ include Virtus.model
136
141
 
137
142
  attribute :enabled, Boolean
138
143
  attribute :update_policy, String
139
144
  attribute :checksum_policy, String
140
145
  end
141
- class Repository
142
- include Virtus
146
+ class Repository < Base
147
+ include Virtus.model
143
148
 
144
149
  attribute :unique_version, String
145
150
  attribute :releases, RepositoryPolicy
@@ -150,22 +155,24 @@ class Repository
150
155
  attribute :layout, String
151
156
  end
152
157
  class PluginRepository < Repository; end
153
- class DistributionManagement
154
- include Virtus
158
+ class DeploymentRepository < Repository; end
159
+ class DistributionManagement < Base
160
+ include Virtus.model
155
161
 
156
162
  attribute :repository, Repository
157
163
  attribute :snapshot_repository, Repository
158
164
  attribute :site, Site
159
165
  attribute :download_url, String
166
+ attribute :status, String
160
167
  attribute :relocation, Relocation
161
168
  end
162
- class Exclusion
163
- include Virtus
169
+ class Exclusion < Base
170
+ include Virtus.model
164
171
 
165
172
  include GA
166
173
  end
167
- class Dependency
168
- include Virtus
174
+ class Dependency < Base
175
+ include Virtus.model
169
176
 
170
177
  include GAV
171
178
 
@@ -185,18 +192,18 @@ class Dependency
185
192
  end
186
193
  end
187
194
  end
188
- class DependencyManagement
189
- include Virtus
195
+ class DependencyManagement < Base
196
+ include Virtus.model
190
197
 
191
198
  attribute :dependencies, Array[ Dependency ]
192
199
  end
193
- class Extension
194
- include Virtus
200
+ class Extension < Base
201
+ include Virtus.model
195
202
 
196
203
  include GAV
197
204
  end
198
- class Resource
199
- include Virtus
205
+ class Resource < Base
206
+ include Virtus.model
200
207
 
201
208
  attribute :target_path, String
202
209
  attribute :filtering, String
@@ -204,8 +211,8 @@ class Resource
204
211
  attribute :includes, Array[ String ]
205
212
  attribute :excludes, Array[ String ]
206
213
  end
207
- class Execution
208
- include Virtus
214
+ class Execution < Base
215
+ include Virtus.model
209
216
 
210
217
  attribute :id, String
211
218
  attribute :phase, String
@@ -213,8 +220,8 @@ class Execution
213
220
  attribute :inherited, Boolean
214
221
  attribute :configuration, Hash
215
222
  end
216
- class Plugin
217
- include Virtus
223
+ class Plugin < Base
224
+ include Virtus.model
218
225
 
219
226
  include GAV
220
227
  attribute :extensions, Boolean
@@ -233,36 +240,36 @@ class Plugin
233
240
  end
234
241
  end
235
242
  end
236
- class PluginManagement
237
- include Virtus
243
+ class PluginManagement < Base
244
+ include Virtus.model
238
245
 
239
246
  attribute :plugins, Array[ Plugin ]
240
247
  end
241
248
  class TestResource < Resource; end
242
- class ReportSet
243
- include Virtus
249
+ class ReportSet < Base
250
+ include Virtus.model
244
251
 
245
252
  attribute :id, String
246
253
  attribute :reports, Array[ String ]
247
254
  attribute :inherited, Boolean
248
255
  attribute :configuration, Hash
249
256
  end
250
- class ReportPlugin
251
- include Virtus
257
+ class ReportPlugin < Base
258
+ include Virtus.model
252
259
 
253
260
  include GAV
254
261
 
255
262
  attribute :report_sets, Array[ ReportSet ]
256
263
  end
257
- class Reporting
258
- include Virtus
264
+ class Reporting < Base
265
+ include Virtus.model
259
266
 
260
267
  attribute :exclude_defaults, Boolean
261
268
  attribute :output_directory, String
262
269
  attribute :plugins, Array[ ReportPlugin ]
263
270
  end
264
- class Build
265
- include Virtus
271
+ class Build < Base
272
+ include Virtus.model
266
273
 
267
274
  attribute :source_directory, String
268
275
  attribute :script_source_directory, String
@@ -279,37 +286,37 @@ class Build
279
286
  attribute :plugin_management, PluginManagement
280
287
  attribute :plugins, Array[ Plugin ]
281
288
  end
282
- class Os
283
- include Virtus
289
+ class Os < Base
290
+ include Virtus.model
284
291
 
285
292
  attribute :name, String
286
293
  attribute :family, String
287
294
  attribute :arch, String
288
295
  attribute :version, String
289
296
  end
290
- class Property
291
- include Virtus
297
+ class Property < Base
298
+ include Virtus.model
292
299
 
293
300
  attribute :name, String
294
301
  attribute :value, String
295
302
  end
296
- class File
297
- include Virtus
303
+ class ActivationFile < Base
304
+ include Virtus.model
298
305
 
299
306
  attribute :missing, String
300
307
  attribute :exists, String
301
308
  end
302
- class Activation
303
- include Virtus
309
+ class Activation < Base
310
+ include Virtus.model
304
311
 
305
312
  attribute :active_by_default, Boolean
306
313
  attribute :jdk, String
307
314
  attribute :os, Os
308
315
  attribute :property, Property
309
- attribute :file, File
316
+ attribute :file, ActivationFile
310
317
  end
311
- class Profile
312
- include Virtus
318
+ class Profile < Base
319
+ include Virtus.model
313
320
 
314
321
  attribute :id, String
315
322
  attribute :activation, Activation
@@ -323,8 +330,8 @@ class Profile
323
330
  attribute :plugin_repositories, Array[ PluginRepository ]
324
331
  attribute :reporting, Reporting
325
332
  end
326
- class Model
327
- include Virtus
333
+ class Model < Base
334
+ include Virtus.model
328
335
 
329
336
  attribute :model_version, String
330
337
  attribute :parent, Parent
@@ -357,3 +364,5 @@ class Model
357
364
  attribute :reporting, Reporting
358
365
  attribute :profiles, Array[ Profile ]
359
366
  end
367
+ end
368
+ end
@@ -38,7 +38,7 @@ module Maven
38
38
  end
39
39
 
40
40
  def eval_file( file )
41
- if file && File.directory?( file )
41
+ if file && ::File.directory?( file )
42
42
  dir = file
43
43
  file = nil
44
44
  else
@@ -55,7 +55,7 @@ module Maven
55
55
 
56
56
  if file
57
57
  FileUtils.cd( dir ) do
58
- @model = to_model( File.basename( file ) )
58
+ @model = to_model( ::File.basename( file ) )
59
59
  end
60
60
  end
61
61
  end
@@ -69,7 +69,7 @@ module Maven
69
69
  end
70
70
 
71
71
  def pom_file( pom, dir = '.' )
72
- files = Dir[ File.join( dir, pom ) ]
72
+ files = Dir[ ::File.join( dir, pom ) ]
73
73
  case files.size
74
74
  when 0
75
75
  when 1
@@ -90,21 +90,21 @@ module Maven
90
90
 
91
91
  def to_file( file )
92
92
  if @model
93
- v = ::Maven::Tools::Visitor.new( File.open( file, 'w' ) )
93
+ v = ::Maven::Tools::Visitor.new( ::File.open( file, 'w' ) )
94
94
  v.accept_project( @model )
95
95
  true
96
96
  end
97
97
  end
98
98
 
99
99
  def to_model( file )
100
- if File.exists?( file )
100
+ if ::File.exists?( file )
101
101
  case file
102
102
  when /pom.rb/
103
- eval_pom( "tesla do\n#{ File.read( file ) }\nend", file )
103
+ eval_pom( "tesla do\n#{ ::File.read( file ) }\nend", file )
104
104
  when /(Maven|Gem|Jar)file/
105
- eval_pom( "tesla do\n#{ File.read( file ) }\nend", file )
105
+ eval_pom( "tesla do\n#{ ::File.read( file ) }\nend", file )
106
106
  when /.+\.gemspec/
107
- eval_pom( "tesla do\ngemspec( '#{ File.basename( file ) }' )\nend", file )
107
+ eval_pom( "tesla do\ngemspec( '#{ ::File.basename( file ) }' )\nend", file )
108
108
  end
109
109
  else
110
110
  eval_pom( "tesla do\n#{file}\nend", nil )
@@ -20,6 +20,6 @@
20
20
  #
21
21
  module Maven
22
22
  module Tools
23
- VERSION = '0.34.5'.freeze
23
+ VERSION = '1.0.0.rc2'.freeze
24
24
  end
25
25
  end
@@ -27,10 +27,10 @@ module Maven
27
27
  :war_plugin => "2.2",
28
28
  :jar_plugin => "2.4",
29
29
  :clean_plugin => "2.4",
30
- :jruby_plugins => "1.0.0",
31
- :bundler_version => "1.6.2",
32
- :jruby_version => "1.7.12",
33
- :tesla_version => "0.0.9"
30
+ :jruby_plugins => "1.0.0-rc4",
31
+ :bundler_version => "1.3.5",
32
+ :jruby_version => "1.7.6",
33
+ :tesla_version => "0.0.8"
34
34
  }.freeze
35
35
  end
36
36
  end
@@ -80,7 +80,7 @@ module Maven
80
80
  start_tag( name )
81
81
  n = name.to_s.sub( /ies$/, 'y' ).sub( /s$/, '' )
82
82
  case array.first
83
- when Virtus
83
+ when Maven::Tools::Base
84
84
  array.each do |i|
85
85
  start_tag( n )
86
86
  visit( i )
@@ -143,7 +143,7 @@ module Maven
143
143
  accept_raw_hash( k, v )
144
144
  else
145
145
  case v
146
- when Virtus
146
+ when Base
147
147
  accept( k, v )
148
148
  when Array
149
149
  accept_array( k, v )
@@ -0,0 +1,4 @@
1
+ class BouncyCastle
2
+ MAVEN_VERSION = '1.49' unless defined? MAVEN_VERSION
3
+ VERSION_ = MAVEN_VERSION.sub( /[.]/, '' ) unless defined? BouncyCastle::VERSION_
4
+ end
@@ -50,179 +50,126 @@ project 'my name', 'example.com' do
50
50
  end
51
51
 
52
52
  modules 'part1', 'part2'
53
- end
54
- # <scm>
55
- # <connection/>
56
- # <developerConnection/>
57
- # <tag/>
58
- # <url/>
59
- # </scm>
60
- # <issueManagement>
61
- # <system/>
62
- # <url/>
63
- # </issueManagement>
64
- # <ciManagement>
65
- # <system/>
66
- # <url/>
67
- # <notifiers>
68
- # <notifier>
69
- # <type/>
70
- # <sendOnError/>
71
- # <sendOnFailure/>
72
- # <sendOnSuccess/>
73
- # <sendOnWarning/>
74
- # <address/>
75
- # <configuration>
76
- # <key>value</key>
77
- # </configuration>
78
- # </notifier>
79
- # </notifiers>
80
- # </ciManagement>
81
53
 
82
- # <distributionManagement>
83
- # <repository>
84
- # <uniqueVersion/>
85
- # <releases>
86
- # <enabled/>
87
- # <updatePolicy/>
88
- # <checksumPolicy/>
89
- # </releases>
90
- # <snapshots>
91
- # <enabled/>
92
- # <updatePolicy/>
93
- # <checksumPolicy/>
94
- # </snapshots>
95
- # <id/>
96
- # <name/>
97
- # <url/>
98
- # <layout/>
99
- # </repository>
100
- # <snapshotRepository>
101
- # <uniqueVersion/>
102
- # <releases>
103
- # <enabled/>
104
- # <updatePolicy/>
105
- # <checksumPolicy/>
106
- # </releases>
107
- # <snapshots>
108
- # <enabled/>
109
- # <updatePolicy/>
110
- # <checksumPolicy/>
111
- # </snapshots>
112
- # <id/>
113
- # <name/>
114
- # <url/>
115
- # <layout/>
116
- # </snapshotRepository>
117
- # <site>
118
- # <id/>
119
- # <name/>
120
- # <url/>
121
- # </site>
122
- # <downloadUrl/>
123
- # <relocation>
124
- # <groupId/>
125
- # <artifactId/>
126
- # <version/>
127
- # <message/>
128
- # </relocation>
129
- # <status/>
130
- # </distributionManagement>
131
-
132
- # <properties>
133
- # <key>value</key>
134
- # </properties>
135
-
136
- # <dependencyManagement>
137
- # <dependencies>
138
- # <dependency>
139
- # <groupId/>
140
- # <artifactId/>
141
- # <version/>
142
- # <type/>
143
- # <classifier/>
144
- # <scope/>
145
- # <systemPath/>
146
- # <exclusions>
147
- # <exclusion>
148
- # <artifactId/>
149
- # <groupId/>
150
- # </exclusion>
151
- # </exclusions>
152
- # <optional/>
153
- # </dependency>
154
- # </dependencies>
155
- # </dependencyManagement>
156
- # <dependencies>
157
- # <dependency>
158
- # <groupId/>
159
- # <artifactId/>
160
- # <version/>
161
- # <type/>
162
- # <classifier/>
163
- # <scope/>
164
- # <systemPath/>
165
- # <exclusions>
166
- # <exclusion>
167
- # <artifactId/>
168
- # <groupId/>
169
- # </exclusion>
170
- # </exclusions>
171
- # <optional/>
172
- # </dependency>
173
- # </dependencies>
54
+ scm( 'scm:git:git://github.com/torquebox/maven-tools.git',
55
+ 'scm:git:ssh://git@github.com/torquebox/maven-tools.git',
56
+ 'http://github.com/torquebox/maven-tools',
57
+ :tag => 'first' )
58
+ issue_management( 'https://issues.sonatype.org/',
59
+ :system => 'jira' )
60
+ ci_management( 'travis-ci.org/jruby/jruby',
61
+ :system => 'travis' ) do
62
+ notifier( 'email', 'mail2@example.com' )
63
+ notifier( 'email', 'mail@example.com',
64
+ :send_on_error => true,
65
+ :send_on_failure => false,
66
+ :send_on_success =>true,
67
+ :send_on_warning => false,
68
+ :configuration => { :key1 => 'value1',
69
+ :key2 => 'value2' } )
70
+ end
71
+ distribution( 'active',
72
+ 'http://dev.example.com/downloads' ) do
73
+ repository( :first,
74
+ 'http://repo.example.com',
75
+ 'First',
76
+ :unique_version => 123,
77
+ :layout => 'legacy' ) do
78
+ releases( :enabled => true,
79
+ :update_policy => 'daily',
80
+ :checksum_policy => :strict )
81
+ snapshots( :enabled =>false,
82
+ :update_policy => :never,
83
+ :checksum_policy => 'none' )
84
+ end
85
+ snapshot_repository( 'snapshots',
86
+ 'http://snaphots.example.com',
87
+ 'First Snapshots',
88
+ :unique_version => 1234,
89
+ :layout => 'legacy' ) do
90
+ releases( :enabled => false,
91
+ :update_policy => 'daily',
92
+ :checksum_policy => :strict )
93
+ snapshots( :enabled =>true,
94
+ :update_policy => :never,
95
+ :checksum_policy => 'none' )
96
+ end
97
+ site( 'first','http://dev.example.com', 'dev site' )
98
+ relocation( 'org.group', 'artifact', '1.2.3',
99
+ :message => 'follow the maven convention' )
100
+ end
101
+ properties :key1 => 'value1', 'key2' => :value2
102
+ scope :provided do
103
+ dependency_management do
104
+ jar( 'com.example', 'tools', '1.2.3',
105
+ :classifier => 'super',
106
+ :system_path => '/home/development/tools.jar',
107
+ :exclusions => [ 'org.example:some', 'org.example:something' ],
108
+ :optional => true )
109
+ end
110
+ war( 'com.example', 'tools', '2.3',
111
+ :classifier => 'super',
112
+ :system_path => '/home/development/wartools.jar',
113
+ :exclusions => [ 'org.example:some', 'org.example:something' ],
114
+ :optional => false )
115
+ end
116
+ repository( 'first', 'http://repo.example.com', 'First' ) do
117
+ unique_version 123
118
+ layout 'legacy'
119
+ releases( :enabled => true,
120
+ :update_policy => 'daily',
121
+ :checksum_policy => :strict )
122
+ snapshots( :enabled => false,
123
+ :update_policy => :never,
124
+ :checksum_policy => 'none' )
125
+ end
126
+ snapshot_repository( 'snapshots',
127
+ 'http://snaphots.example.com',
128
+ 'First Snapshots',
129
+ :unique_version => 12345,
130
+ :layout => 'legacy' ) do
131
+ releases( :update_policy => 'daily',
132
+ :checksum_policy => :strict )
133
+ snapshots( :update_policy => :never,
134
+ :checksum_policy => 'none' )
135
+ end
136
+ plugin_repository( :first, 'http://pluginrepo.example.com', 'First' ) do
137
+ unique_version 12
138
+ layout 'legacy'
139
+ releases( :enabled => true,
140
+ :update_policy => 'daily',
141
+ :checksum_policy => :strict )
142
+ snapshots( :enabled => false,
143
+ :update_policy => :never,
144
+ :checksum_policy => 'none' )
145
+ end
174
146
 
175
- # <repositories>
176
- # <repository>
177
- # <releases>
178
- # <enabled/>
179
- # <updatePolicy/>
180
- # <checksumPolicy/>
181
- # </releases>
182
- # <snapshots>
183
- # <enabled/>
184
- # <updatePolicy/>
185
- # <checksumPolicy/>
186
- # </snapshots>
187
- # <id/>
188
- # <name/>
189
- # <url/>
190
- # <layout/>
191
- # </repository>
192
- # </repositories>
193
- # <pluginRepositories>
194
- # <pluginRepository>
195
- # <releases>
196
- # <enabled/>
197
- # <updatePolicy/>
198
- # <checksumPolicy/>
199
- # </releases>
200
- # <snapshots>
201
- # <enabled/>
202
- # <updatePolicy/>
203
- # <checksumPolicy/>
204
- # </snapshots>
205
- # <id/>
206
- # <name/>
207
- # <url/>
208
- # <layout/>
209
- # </pluginRepository>
210
- # </pluginRepositories>
147
+ build do
148
+ source_directory 'src'
149
+ script_source_directory 'script'
150
+ test_source_directory 'test'
151
+ output_directory 'pkg'
152
+ test_output_directory 'pkg/test'
153
+ default_goal :install
154
+ extension 'org.group', 'gem-extension', '1.2'
155
+ resource do
156
+ target_path 'target'
157
+ filtering true
158
+ directory 'resources'
159
+ includes [ '**/*' ]
160
+ excludes [ '*~' ]
161
+ end
162
+ test_resource do
163
+ target_path 'target/test'
164
+ filtering false
165
+ directory 'testresources'
166
+ includes [ '**/*' ]
167
+ excludes [ '*~' ]
168
+ end
169
+ end
170
+ end
211
171
 
212
172
  # <build>
213
- # <sourceDirectory/>
214
- # <scriptSourceDirectory/>
215
- # <testSourceDirectory/>
216
- # <outputDirectory/>
217
- # <testOutputDirectory/>
218
- # <extensions>
219
- # <extension>
220
- # <groupId/>
221
- # <artifactId/>
222
- # <version/>
223
- # </extension>
224
- # </extensions>
225
- # <defaultGoal/>
226
173
  # <resources>
227
174
  # <resource>
228
175
  # <targetPath/>