maven-tools 1.0.0.rc5 → 1.0.0.rc6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/maven/tools/artifact.rb +1 -1
- data/lib/maven/tools/coordinate.rb +1 -1
- data/lib/maven/tools/dsl.rb +50 -15
- data/lib/maven/tools/version.rb +1 -1
- data/lib/maven/tools/versions.rb +3 -3
- data/spec/gemfile/pom.xml +1 -1
- data/spec/gemfile_include_jars/pom.xml +2 -1
- data/spec/gemfile_with_access_to_model/pom.xml +1 -1
- data/spec/gemfile_with_custom_source/pom.xml +2 -1
- data/spec/gemfile_with_custom_source_and_custom_jarname/pom.xml +2 -1
- data/spec/gemfile_with_extras/pom.xml +2 -1
- data/spec/gemfile_with_groups/pom.xml +1 -1
- data/spec/gemfile_with_groups_and_lockfile/pom.xml +1 -1
- data/spec/gemfile_with_lock/pom.xml +1 -1
- data/spec/gemfile_with_path/pom.xml +1 -1
- data/spec/gemfile_with_source/pom.xml +2 -1
- data/spec/gemfile_with_source_and_custom_jarname/pom.xml +2 -1
- data/spec/gemfile_with_source_and_no_jar/pom.xml +1 -1
- data/spec/gemfile_with_test_group/pom.xml +1 -1
- data/spec/gemfile_without_gemspec/pom.xml +1 -1
- data/spec/gemspec/pom.xml +1 -1
- data/spec/gemspec_in_profile/pom.xml +1 -1
- data/spec/gemspec_include_jars/pom.xml +2 -1
- data/spec/gemspec_no_rubygems_repo/pom.xml +1 -1
- data/spec/gemspec_prerelease/pom.xml +1 -1
- data/spec/gemspec_prerelease_snapshot/pom.xml +1 -1
- data/spec/gemspec_with_access_to_model/pom.xml +1 -1
- data/spec/gemspec_with_custom_source/pom.xml +2 -1
- data/spec/gemspec_with_custom_source_and_custom_jarname/pom.xml +2 -1
- data/spec/gemspec_with_extras/pom.xml +2 -1
- data/spec/gemspec_with_prereleased_dependency/pom.xml +1 -1
- data/spec/gemspec_with_prereleased_dependency_and_no_repo/pom.xml +1 -1
- data/spec/gemspec_with_source/pom.xml +2 -1
- data/spec/gemspec_with_source_and_custom_jarname/pom.xml +2 -1
- data/spec/gemspec_with_source_and_no_jar/pom.xml +1 -1
- data/spec/pom_from_jarfile/pom.xml +1 -1
- data/spec/pom_maven_style/pom.rb +119 -86
- data/spec/pom_with_execute/pom.xml +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1601cbf1e73ea797bebffc753c925173153824f7
|
4
|
+
data.tar.gz: 08609fc9a6ea13a191458d7c5f1c449823be4500
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2b2551400405f9aec9f3c09a98c58790ea402f53244055847c6701f1af2eb9e6972be4a8ac7d65728a32e3c192f1953670d7e8235c2127a34fb191fb0359446
|
7
|
+
data.tar.gz: e4928cbe9160003568ff70ba3c89e5935fa54495a891cc83da4b1a5fcd67f385b48c4af5a4cf9dfe6eaa474fc6667c8c56cd682002641c334cb26e6f9308c514
|
data/lib/maven/tools/artifact.rb
CHANGED
data/lib/maven/tools/dsl.rb
CHANGED
@@ -245,8 +245,12 @@ module Maven
|
|
245
245
|
source_directory source
|
246
246
|
end
|
247
247
|
end
|
248
|
-
if jar && ( source ||
|
249
|
-
::File.exists?( ::File.join( basedir, 'src', 'main', 'java' ) ) )
|
248
|
+
if jar && ( source ||
|
249
|
+
::File.exists?( ::File.join( basedir, 'src', 'main', 'java' ) ) )
|
250
|
+
unless spec.nil? || spec.platform.to_s.match( /java|jruby/ )
|
251
|
+
warn "gem is not a java platform gem but has a jar and source"
|
252
|
+
end
|
253
|
+
|
250
254
|
plugin( :jar, VERSIONS[ :jar_plugin ],
|
251
255
|
:outputDirectory => output,
|
252
256
|
:finalName => jar ) do
|
@@ -254,7 +258,7 @@ module Maven
|
|
254
258
|
end
|
255
259
|
plugin( :clean, VERSIONS[ :clean_plugin ],
|
256
260
|
:filesets => [ { :directory => output,
|
257
|
-
:includes => [ "#{jar}.jar" ] } ] )
|
261
|
+
:includes => [ "#{jar}.jar", '*/**/*.jar' ] } ] )
|
258
262
|
true
|
259
263
|
else
|
260
264
|
false
|
@@ -299,7 +303,7 @@ module Maven
|
|
299
303
|
file.populate_unlocked do |dsl|
|
300
304
|
setup_jruby( dsl.jruby )
|
301
305
|
dsl.artifacts.each do |a|
|
302
|
-
|
306
|
+
_dependency a
|
303
307
|
end
|
304
308
|
end
|
305
309
|
else
|
@@ -395,6 +399,7 @@ module Maven
|
|
395
399
|
config = { :gemspec => name.sub( /^#{basedir}\/?/, '' ) }
|
396
400
|
if options[ :include_jars ] || options[ 'include_jars' ]
|
397
401
|
config[ :includeDependencies ] = true
|
402
|
+
config[ :useRepositoryLayout ] = true
|
398
403
|
end
|
399
404
|
jruby_plugin!( :gem, config )
|
400
405
|
|
@@ -409,7 +414,7 @@ module Maven
|
|
409
414
|
|
410
415
|
unless deps.java_runtime.empty?
|
411
416
|
deps.java_runtime.each do |d|
|
412
|
-
|
417
|
+
_dependency Maven::Tools::Artifact.new( *d )
|
413
418
|
end
|
414
419
|
end
|
415
420
|
end
|
@@ -430,6 +435,21 @@ module Maven
|
|
430
435
|
end
|
431
436
|
private :all_deps
|
432
437
|
|
438
|
+
def licenses
|
439
|
+
yield
|
440
|
+
end
|
441
|
+
alias :developers :licenses
|
442
|
+
alias :contributors :licenses
|
443
|
+
alias :mailing_lists :licenses
|
444
|
+
alias :notifiers :licenses
|
445
|
+
alias :dependencies :licenses
|
446
|
+
alias :repositories :licenses
|
447
|
+
alias :plugin_repositories :licenses
|
448
|
+
alias :extensions :licenses
|
449
|
+
alias :resources :licenses
|
450
|
+
alias :testResources :licenses
|
451
|
+
alias :plugins :licenses
|
452
|
+
|
433
453
|
def build( &block )
|
434
454
|
build = @current.build ||= Build.new
|
435
455
|
nested_block( :build, build, block ) if block
|
@@ -978,15 +998,15 @@ module Maven
|
|
978
998
|
exec
|
979
999
|
end
|
980
1000
|
|
981
|
-
def
|
1001
|
+
def _dependency( type, *args, &block )
|
982
1002
|
do_dependency( false, type, *args, &block )
|
983
1003
|
end
|
984
1004
|
|
985
|
-
def
|
1005
|
+
def _dependency!( type, *args, &block )
|
986
1006
|
do_dependency( true, type, *args, &block )
|
987
1007
|
end
|
988
1008
|
|
989
|
-
def
|
1009
|
+
def _dependency?( type, *args )
|
990
1010
|
find_dependency( dependency_container,
|
991
1011
|
retrieve_dependency( type, *args ) ) != nil
|
992
1012
|
end
|
@@ -1122,14 +1142,29 @@ module Maven
|
|
1122
1142
|
end
|
1123
1143
|
end
|
1124
1144
|
|
1125
|
-
def profile(
|
1145
|
+
def profile( *args, &block )
|
1126
1146
|
profile = Profile.new
|
1127
|
-
|
1147
|
+
args, options = args_and_options( *args )
|
1148
|
+
profile.id = args[ 0 ]
|
1149
|
+
fill_options( profile, options )
|
1128
1150
|
@current.profiles << profile
|
1129
1151
|
nested_block( :profile, profile, block ) if block
|
1130
1152
|
profile
|
1131
1153
|
end
|
1132
1154
|
|
1155
|
+
def dependency( *args, &block )
|
1156
|
+
dep = Dependency.new
|
1157
|
+
args, options = args_and_options( *args )
|
1158
|
+
dep.group_id = args[ 0 ]
|
1159
|
+
dep.artifact_id = args[ 1 ]
|
1160
|
+
dep.version = args[ 2 ]
|
1161
|
+
dep.type = :jar
|
1162
|
+
fill_options( dep, options )
|
1163
|
+
nested_block( :dependency, dep, block ) if block
|
1164
|
+
dependency_container << dep
|
1165
|
+
dep
|
1166
|
+
end
|
1167
|
+
|
1133
1168
|
def report_set( *reports, &block )
|
1134
1169
|
set = ReportSet.new
|
1135
1170
|
case reports.last
|
@@ -1160,7 +1195,7 @@ module Maven
|
|
1160
1195
|
end
|
1161
1196
|
|
1162
1197
|
def jar!( *args )
|
1163
|
-
|
1198
|
+
_dependency!( :jar, *args )
|
1164
1199
|
end
|
1165
1200
|
|
1166
1201
|
def gem( *args )
|
@@ -1217,7 +1252,7 @@ module Maven
|
|
1217
1252
|
|
1218
1253
|
def local( path, options = {} )
|
1219
1254
|
path = ::File.expand_path( path )
|
1220
|
-
|
1255
|
+
_dependency( :jar,
|
1221
1256
|
Maven::Tools::Artifact.new_local( path, :jar, options ) )
|
1222
1257
|
end
|
1223
1258
|
|
@@ -1260,11 +1295,11 @@ module Maven
|
|
1260
1295
|
# ( args.size == 1 && args[0].is_a?( Hash ) )
|
1261
1296
|
case method.to_s[ -1 ]
|
1262
1297
|
when '?'
|
1263
|
-
|
1298
|
+
_dependency?( method.to_s[0..-2].to_sym, *args, &block )
|
1264
1299
|
when '!'
|
1265
|
-
|
1300
|
+
_dependency!( method.to_s[0..-2].to_sym, *args, &block )
|
1266
1301
|
else
|
1267
|
-
|
1302
|
+
_dependency( method, *args, &block )
|
1268
1303
|
end
|
1269
1304
|
# elsif @current.respond_to? method
|
1270
1305
|
# @current.send( method, *args )
|
data/lib/maven/tools/version.rb
CHANGED
data/lib/maven/tools/versions.rb
CHANGED
@@ -24,10 +24,10 @@ module Maven
|
|
24
24
|
VERSIONS = {
|
25
25
|
:jar_plugin => "2.4",
|
26
26
|
:clean_plugin => "2.4",
|
27
|
-
:jruby_plugins => "1.0.
|
27
|
+
:jruby_plugins => "1.0.3",
|
28
28
|
:bundler_version => "1.6.2",
|
29
|
-
:jruby_version => "1.7.
|
30
|
-
:tesla_version => "0.1.
|
29
|
+
:jruby_version => "1.7.13",
|
30
|
+
:tesla_version => "0.1.1"
|
31
31
|
}.freeze
|
32
32
|
end
|
33
33
|
end
|
data/spec/gemfile/pom.xml
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>1.0.
|
33
|
+
<jruby.plugins.version>1.0.3</jruby.plugins.version>
|
34
34
|
</properties>
|
35
35
|
<dependencies>
|
36
36
|
<dependency>
|
@@ -67,6 +67,7 @@
|
|
67
67
|
<configuration>
|
68
68
|
<gemspec>bouncy-castle-java.gemspec</gemspec>
|
69
69
|
<includeDependencies>true</includeDependencies>
|
70
|
+
<useRepositoryLayout>true</useRepositoryLayout>
|
70
71
|
</configuration>
|
71
72
|
</plugin>
|
72
73
|
</plugins>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>1.0.
|
33
|
+
<jruby.plugins.version>1.0.3</jruby.plugins.version>
|
34
34
|
<version_from_model>1.5.0</version_from_model>
|
35
35
|
</properties>
|
36
36
|
<repositories>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>1.0.
|
33
|
+
<jruby.plugins.version>1.0.3</jruby.plugins.version>
|
34
34
|
</properties>
|
35
35
|
<dependencies>
|
36
36
|
<dependency>
|
@@ -89,6 +89,7 @@
|
|
89
89
|
<directory>mylib</directory>
|
90
90
|
<includes>
|
91
91
|
<include>bouncy-castle-java.jar</include>
|
92
|
+
<include>*/**/*.jar</include>
|
92
93
|
</includes>
|
93
94
|
</fileset>
|
94
95
|
</filesets>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>1.0.
|
33
|
+
<jruby.plugins.version>1.0.3</jruby.plugins.version>
|
34
34
|
</properties>
|
35
35
|
<dependencies>
|
36
36
|
<dependency>
|
@@ -89,6 +89,7 @@
|
|
89
89
|
<directory>lib</directory>
|
90
90
|
<includes>
|
91
91
|
<include>green.jar</include>
|
92
|
+
<include>*/**/*.jar</include>
|
92
93
|
</includes>
|
93
94
|
</fileset>
|
94
95
|
</filesets>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>1.0.
|
33
|
+
<jruby.plugins.version>1.0.3</jruby.plugins.version>
|
34
34
|
<tesla.dump.pom>pom.xml</tesla.dump.pom>
|
35
35
|
<tesla.dump.readonly>true</tesla.dump.readonly>
|
36
36
|
</properties>
|
@@ -78,6 +78,7 @@
|
|
78
78
|
<configuration>
|
79
79
|
<gemspec>bouncy-castle-java.gemspec</gemspec>
|
80
80
|
<includeDependencies>true</includeDependencies>
|
81
|
+
<useRepositoryLayout>true</useRepositoryLayout>
|
81
82
|
</configuration>
|
82
83
|
</plugin>
|
83
84
|
<plugin>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<name>gemfile_with_groups</name>
|
18
18
|
<properties>
|
19
19
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
20
|
-
<jruby.plugins.version>1.0.
|
20
|
+
<jruby.plugins.version>1.0.3</jruby.plugins.version>
|
21
21
|
</properties>
|
22
22
|
<dependencies>
|
23
23
|
<dependency>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<name>gemfile_with_groups_and_lockfile</name>
|
18
18
|
<properties>
|
19
19
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
20
|
-
<jruby.plugins.version>1.0.
|
20
|
+
<jruby.plugins.version>1.0.3</jruby.plugins.version>
|
21
21
|
</properties>
|
22
22
|
<repositories>
|
23
23
|
<repository>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<name>gemfile_with_path</name>
|
18
18
|
<properties>
|
19
19
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
20
|
-
<jruby.plugins.version>1.0.
|
20
|
+
<jruby.plugins.version>1.0.3</jruby.plugins.version>
|
21
21
|
</properties>
|
22
22
|
<dependencies>
|
23
23
|
<dependency>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>1.0.
|
33
|
+
<jruby.plugins.version>1.0.3</jruby.plugins.version>
|
34
34
|
</properties>
|
35
35
|
<dependencies>
|
36
36
|
<dependency>
|
@@ -85,6 +85,7 @@
|
|
85
85
|
<directory>mylib</directory>
|
86
86
|
<includes>
|
87
87
|
<include>bouncy-castle-java.jar</include>
|
88
|
+
<include>*/**/*.jar</include>
|
88
89
|
</includes>
|
89
90
|
</fileset>
|
90
91
|
</filesets>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>1.0.
|
33
|
+
<jruby.plugins.version>1.0.3</jruby.plugins.version>
|
34
34
|
</properties>
|
35
35
|
<dependencies>
|
36
36
|
<dependency>
|
@@ -88,6 +88,7 @@
|
|
88
88
|
<directory>mylib</directory>
|
89
89
|
<includes>
|
90
90
|
<include>green.jar</include>
|
91
|
+
<include>*/**/*.jar</include>
|
91
92
|
</includes>
|
92
93
|
</fileset>
|
93
94
|
</filesets>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<name>gemfile_with_test_group</name>
|
9
9
|
<properties>
|
10
10
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
11
|
-
<jruby.plugins.version>1.0.
|
11
|
+
<jruby.plugins.version>1.0.3</jruby.plugins.version>
|
12
12
|
</properties>
|
13
13
|
<repositories>
|
14
14
|
<repository>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<name>gemfile_without_gemspec</name>
|
18
18
|
<properties>
|
19
19
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
20
|
-
<jruby.plugins.version>1.0.
|
20
|
+
<jruby.plugins.version>1.0.3</jruby.plugins.version>
|
21
21
|
</properties>
|
22
22
|
<dependencies>
|
23
23
|
<dependency>
|
data/spec/gemspec/pom.xml
CHANGED
@@ -32,7 +32,7 @@
|
|
32
32
|
</build>
|
33
33
|
<properties>
|
34
34
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
35
|
-
<jruby.plugins.version>1.0.
|
35
|
+
<jruby.plugins.version>1.0.3</jruby.plugins.version>
|
36
36
|
</properties>
|
37
37
|
<dependencies>
|
38
38
|
<dependency>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>1.0.
|
33
|
+
<jruby.plugins.version>1.0.3</jruby.plugins.version>
|
34
34
|
</properties>
|
35
35
|
<dependencies>
|
36
36
|
<dependency>
|
@@ -67,6 +67,7 @@
|
|
67
67
|
<configuration>
|
68
68
|
<gemspec>bouncy-castle-java.gemspec</gemspec>
|
69
69
|
<includeDependencies>true</includeDependencies>
|
70
|
+
<useRepositoryLayout>true</useRepositoryLayout>
|
70
71
|
</configuration>
|
71
72
|
</plugin>
|
72
73
|
</plugins>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>1.0.
|
33
|
+
<jruby.plugins.version>1.0.3</jruby.plugins.version>
|
34
34
|
<version_from_model>1.5.0</version_from_model>
|
35
35
|
</properties>
|
36
36
|
<repositories>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>1.0.
|
33
|
+
<jruby.plugins.version>1.0.3</jruby.plugins.version>
|
34
34
|
</properties>
|
35
35
|
<dependencies>
|
36
36
|
<dependency>
|
@@ -89,6 +89,7 @@
|
|
89
89
|
<directory>mylib</directory>
|
90
90
|
<includes>
|
91
91
|
<include>bouncy-castle-java.jar</include>
|
92
|
+
<include>*/**/*.jar</include>
|
92
93
|
</includes>
|
93
94
|
</fileset>
|
94
95
|
</filesets>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>1.0.
|
33
|
+
<jruby.plugins.version>1.0.3</jruby.plugins.version>
|
34
34
|
</properties>
|
35
35
|
<dependencies>
|
36
36
|
<dependency>
|
@@ -89,6 +89,7 @@
|
|
89
89
|
<directory>lib</directory>
|
90
90
|
<includes>
|
91
91
|
<include>green.jar</include>
|
92
|
+
<include>*/**/*.jar</include>
|
92
93
|
</includes>
|
93
94
|
</fileset>
|
94
95
|
</filesets>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>1.0.
|
33
|
+
<jruby.plugins.version>1.0.3</jruby.plugins.version>
|
34
34
|
<tesla.dump.pom>pom.xml</tesla.dump.pom>
|
35
35
|
<tesla.dump.readonly>true</tesla.dump.readonly>
|
36
36
|
</properties>
|
@@ -78,6 +78,7 @@
|
|
78
78
|
<configuration>
|
79
79
|
<gemspec>bouncy-castle-java.gemspec</gemspec>
|
80
80
|
<includeDependencies>true</includeDependencies>
|
81
|
+
<useRepositoryLayout>true</useRepositoryLayout>
|
81
82
|
</configuration>
|
82
83
|
</plugin>
|
83
84
|
<plugin>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>1.0.
|
33
|
+
<jruby.plugins.version>1.0.3</jruby.plugins.version>
|
34
34
|
</properties>
|
35
35
|
<dependencies>
|
36
36
|
<dependency>
|
@@ -85,6 +85,7 @@
|
|
85
85
|
<directory>mylib</directory>
|
86
86
|
<includes>
|
87
87
|
<include>bouncy-castle-java.jar</include>
|
88
|
+
<include>*/**/*.jar</include>
|
88
89
|
</includes>
|
89
90
|
</fileset>
|
90
91
|
</filesets>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>1.0.
|
33
|
+
<jruby.plugins.version>1.0.3</jruby.plugins.version>
|
34
34
|
</properties>
|
35
35
|
<dependencies>
|
36
36
|
<dependency>
|
@@ -88,6 +88,7 @@
|
|
88
88
|
<directory>mylib</directory>
|
89
89
|
<includes>
|
90
90
|
<include>green.jar</include>
|
91
|
+
<include>*/**/*.jar</include>
|
91
92
|
</includes>
|
92
93
|
</fileset>
|
93
94
|
</filesets>
|
data/spec/pom_maven_style/pom.rb
CHANGED
@@ -23,43 +23,51 @@ project do
|
|
23
23
|
url 'ngo.org'
|
24
24
|
end
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
26
|
+
licenses do
|
27
|
+
license do
|
28
|
+
name 'AGPL'
|
29
|
+
url 'gnu.org/agpl'
|
30
|
+
distribution 'online'
|
31
|
+
comments 'should be used more often'
|
32
|
+
end
|
31
33
|
end
|
32
34
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
35
|
+
developers do
|
36
|
+
developer do
|
37
|
+
id '1'
|
38
|
+
name 'first'
|
39
|
+
email 'first@example.com'
|
40
|
+
url 'example.com/first'
|
41
|
+
organization 'orga'
|
42
|
+
organization_url 'example.org'
|
43
|
+
roles 'developer', 'architect'
|
44
|
+
timezone 'IST'
|
45
|
+
properties :gender => :male
|
46
|
+
end
|
43
47
|
end
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
48
|
+
|
49
|
+
contributors do
|
50
|
+
contributor do
|
51
|
+
name 'first'
|
52
|
+
email 'first@example.com'
|
53
|
+
url 'example.com/first'
|
54
|
+
organization 'orga'
|
55
|
+
organization_url 'example.org'
|
56
|
+
roles 'developer', 'architect'
|
57
|
+
timezone 'IST'
|
58
|
+
properties :gender => :male
|
59
|
+
end
|
54
60
|
end
|
55
61
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
62
|
+
mailing_lists do
|
63
|
+
mailing_list do
|
64
|
+
name 'development'
|
65
|
+
subscribe 'subcribe@example.com'
|
66
|
+
unsubscribe 'unsubcribe@example.com'
|
67
|
+
post 'post@example.com'
|
68
|
+
archive 'example.com/archive'
|
69
|
+
other_archives 'example.com/archive1', 'example.com/archive2'
|
70
|
+
end
|
63
71
|
end
|
64
72
|
|
65
73
|
prerequisites do
|
@@ -136,67 +144,83 @@ project do
|
|
136
144
|
end
|
137
145
|
properties :key1 => 'value1', 'key2' => :value2
|
138
146
|
dependency_management do
|
139
|
-
|
147
|
+
dependencies do
|
148
|
+
dependency do
|
149
|
+
group_id 'com.example'
|
150
|
+
artifact_id 'tools'
|
151
|
+
version '1.2.3'
|
152
|
+
classifier 'super'
|
153
|
+
scope 'provided'
|
154
|
+
system_path '/home/development/tools.jar'
|
155
|
+
optional true
|
156
|
+
exclusion 'org.example:some'
|
157
|
+
exclusion 'org.example', 'something'
|
158
|
+
end
|
159
|
+
end
|
160
|
+
end
|
161
|
+
dependencies do
|
162
|
+
dependency do
|
163
|
+
group_id 'com.example'
|
164
|
+
artifact_id 'tools'
|
165
|
+
version '2.3'
|
166
|
+
type :war
|
140
167
|
classifier 'super'
|
141
168
|
scope 'provided'
|
142
|
-
system_path '/home/development/
|
143
|
-
optional
|
169
|
+
system_path '/home/development/wartools.jar'
|
170
|
+
optional false
|
144
171
|
exclusion 'org.example:some'
|
145
172
|
exclusion 'org.example', 'something'
|
146
173
|
end
|
147
174
|
end
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
checksum_policy :strict
|
165
|
-
end
|
166
|
-
snapshots do
|
167
|
-
enabled false
|
168
|
-
update_policy :never
|
169
|
-
checksum_policy 'none'
|
170
|
-
end
|
171
|
-
end
|
172
|
-
snapshot_repository do
|
173
|
-
id 'snapshots'
|
174
|
-
url 'http://snaphots.example.com'
|
175
|
-
name 'First Snapshots'
|
176
|
-
layout 'legacy'
|
177
|
-
releases do
|
178
|
-
update_policy 'daily'
|
179
|
-
checksum_policy :strict
|
175
|
+
repositories do
|
176
|
+
repository do
|
177
|
+
id :first
|
178
|
+
url 'http://repo.example.com'
|
179
|
+
name 'First'
|
180
|
+
layout 'legacy'
|
181
|
+
releases do
|
182
|
+
enabled true
|
183
|
+
update_policy 'daily'
|
184
|
+
checksum_policy :strict
|
185
|
+
end
|
186
|
+
snapshots do
|
187
|
+
enabled false
|
188
|
+
update_policy :never
|
189
|
+
checksum_policy 'none'
|
190
|
+
end
|
180
191
|
end
|
181
|
-
|
182
|
-
|
183
|
-
|
192
|
+
|
193
|
+
snapshot_repository do
|
194
|
+
id 'snapshots'
|
195
|
+
url 'http://snaphots.example.com'
|
196
|
+
name 'First Snapshots'
|
197
|
+
layout 'legacy'
|
198
|
+
releases do
|
199
|
+
update_policy 'daily'
|
200
|
+
checksum_policy :strict
|
201
|
+
end
|
202
|
+
snapshots do
|
203
|
+
update_policy :never
|
204
|
+
checksum_policy 'none'
|
205
|
+
end
|
184
206
|
end
|
185
207
|
end
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
208
|
+
plugin_repositories do
|
209
|
+
plugin_repository do
|
210
|
+
id :first
|
211
|
+
url 'http://pluginrepo.example.com'
|
212
|
+
name 'First'
|
213
|
+
layout 'legacy'
|
214
|
+
releases do
|
215
|
+
enabled true
|
216
|
+
update_policy 'daily'
|
217
|
+
checksum_policy :strict
|
218
|
+
end
|
219
|
+
snapshots do
|
220
|
+
enabled false
|
221
|
+
update_policy :never
|
222
|
+
checksum_policy 'none'
|
223
|
+
end
|
200
224
|
end
|
201
225
|
end
|
202
226
|
build do
|
@@ -228,7 +252,12 @@ project do
|
|
228
252
|
end
|
229
253
|
|
230
254
|
jruby_plugin :gem, '1.0.0' do
|
231
|
-
|
255
|
+
dependency do
|
256
|
+
group_id 'rubygems'
|
257
|
+
artifact_id 'bundler'
|
258
|
+
version '1.6.2'
|
259
|
+
type :gem
|
260
|
+
end
|
232
261
|
end
|
233
262
|
|
234
263
|
plugin :antrun do
|
@@ -249,7 +278,11 @@ project do
|
|
249
278
|
id 'copy'
|
250
279
|
phase 'package'
|
251
280
|
end
|
252
|
-
|
281
|
+
dependency do
|
282
|
+
group_id 'org.super.duper'
|
283
|
+
artifact_id 'executor'
|
284
|
+
version '1.0.0'
|
285
|
+
end
|
253
286
|
end
|
254
287
|
|
255
288
|
plugin 'org.codehaus.mojo:exec-maven-plugin' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maven-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Meier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: virtus
|