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
@@ -0,0 +1,5 @@
1
+ #-*- mode: ruby -*-
2
+
3
+ gemspec :jar => 'green'
4
+
5
+ # vim: syntax=Ruby
@@ -0,0 +1,19 @@
1
+ #-*- mode: ruby -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = 'bouncy-castle-java'
5
+ s.version = "1.5.0"
6
+ s.author = 'Hiroshi Nakamura'
7
+ s.email = [ 'nahi@ruby-lang.org' ]
8
+ s.rubyforge_project = "jruby-extras"
9
+ s.homepage = 'http://github.com/jruby/jruby/tree/master/gems/bouncy-castle-java/'
10
+ s.summary = 'Gem redistribution of Bouncy Castle jars'
11
+ s.description = 'Gem redistribution of "Legion of the Bouncy Castle Java cryptography APIs" jars at http://www.bouncycastle.org/java.html'
12
+ s.platform = 'java'
13
+ s.files = ['README', 'LICENSE.html', 'lib/bouncy-castle-java.rb' ] + Dir['lib/bc*.jar' ]
14
+ s.add_dependency 'thor', '>= 0.14.6', '< 2.0'
15
+ s.add_development_dependency 'rake', '~> 10.0'
16
+ s.require_path = 'mylib'
17
+ end
18
+
19
+ # vim: syntax=Ruby
@@ -0,0 +1,106 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+
4
+ Copyright (c) 2012 to original author or authors
5
+ All rights reserved. This program and the accompanying materials
6
+ are made available under the terms of the Eclipse Public License v1.0
7
+ which accompanies this distribution, and is available at
8
+ http://www.eclipse.org/legal/epl-v10.html
9
+
10
+ -->
11
+ <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
12
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
13
+ <modelVersion>4.0.0</modelVersion>
14
+ <groupId>rubygems</groupId>
15
+ <artifactId>bouncy-castle-java</artifactId>
16
+ <version>1.5.0</version>
17
+ <packaging>gem</packaging>
18
+ <name>Gem redistribution of Bouncy Castle jars</name>
19
+ <url>http://github.com/jruby/jruby/tree/master/gems/bouncy-castle-java/</url>
20
+ <description>Gem redistribution of "Legion of the Bouncy Castle Java cryptography APIs" jars at http://www.bouncycastle.org/java.html</description>
21
+ <developers>
22
+ <developer>
23
+ <name>Hiroshi Nakamura</name>
24
+ <email>nahi@ruby-lang.org</email>
25
+ </developer>
26
+ </developers>
27
+ <scm>
28
+ <connection>https://github.com/jruby/jruby/tree/master/gems/bouncy-castle-java.git</connection>
29
+ <url>http://github.com/jruby/jruby/tree/master/gems/bouncy-castle-java/</url>
30
+ </scm>
31
+ <properties>
32
+ <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
+ <jruby.plugins.version>1.0.1</jruby.plugins.version>
34
+ </properties>
35
+ <dependencies>
36
+ <dependency>
37
+ <groupId>rubygems</groupId>
38
+ <artifactId>thor</artifactId>
39
+ <version>[0.14.6,2.0)</version>
40
+ <type>gem</type>
41
+ </dependency>
42
+ <dependency>
43
+ <groupId>rubygems</groupId>
44
+ <artifactId>rake</artifactId>
45
+ <version>[10.0,10.99999]</version>
46
+ <type>gem</type>
47
+ <scope>test</scope>
48
+ </dependency>
49
+ </dependencies>
50
+ <repositories>
51
+ <repository>
52
+ <id>rubygems-releases</id>
53
+ <url>http://rubygems-proxy.torquebox.org/releases</url>
54
+ </repository>
55
+ </repositories>
56
+ <build>
57
+ <extensions>
58
+ <extension>
59
+ <groupId>de.saumya.mojo</groupId>
60
+ <artifactId>gem-extension</artifactId>
61
+ <version>${jruby.plugins.version}</version>
62
+ </extension>
63
+ </extensions>
64
+ <directory>${basedir}/pkg</directory>
65
+ <plugins>
66
+ <plugin>
67
+ <artifactId>maven-jar-plugin</artifactId>
68
+ <version>2.4</version>
69
+ <executions>
70
+ <execution>
71
+ <phase>prepare-package</phase>
72
+ <goals>
73
+ <goal>jar</goal>
74
+ </goals>
75
+ </execution>
76
+ </executions>
77
+ <configuration>
78
+ <outputDirectory>mylib</outputDirectory>
79
+ <finalName>green</finalName>
80
+ </configuration>
81
+ </plugin>
82
+ <plugin>
83
+ <artifactId>maven-clean-plugin</artifactId>
84
+ <version>2.4</version>
85
+ <configuration>
86
+ <filesets>
87
+ <fileset>
88
+ <directory>mylib</directory>
89
+ <includes>
90
+ <include>green.jar</include>
91
+ </includes>
92
+ </fileset>
93
+ </filesets>
94
+ </configuration>
95
+ </plugin>
96
+ <plugin>
97
+ <groupId>de.saumya.mojo</groupId>
98
+ <artifactId>gem-maven-plugin</artifactId>
99
+ <version>${jruby.plugins.version}</version>
100
+ <configuration>
101
+ <gemspec>bouncy-castle-java.gemspec</gemspec>
102
+ </configuration>
103
+ </plugin>
104
+ </plugins>
105
+ </build>
106
+ </project>
@@ -0,0 +1,5 @@
1
+ #-*- mode: ruby -*-
2
+
3
+ gemspec :jar => nil
4
+
5
+ # vim: syntax=Ruby
@@ -0,0 +1,19 @@
1
+ #-*- mode: ruby -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = 'bouncy-castle-java'
5
+ s.version = "1.5.0"
6
+ s.author = 'Hiroshi Nakamura'
7
+ s.email = [ 'nahi@ruby-lang.org' ]
8
+ s.rubyforge_project = "jruby-extras"
9
+ s.homepage = 'http://github.com/jruby/jruby/tree/master/gems/bouncy-castle-java/'
10
+ s.summary = 'Gem redistribution of Bouncy Castle jars'
11
+ s.description = 'Gem redistribution of "Legion of the Bouncy Castle Java cryptography APIs" jars at http://www.bouncycastle.org/java.html'
12
+ s.platform = 'java'
13
+ s.files = ['README', 'LICENSE.html', 'lib/bouncy-castle-java.rb' ] + Dir['lib/bc*.jar' ]
14
+ s.add_dependency 'thor', '>= 0.14.6', '< 2.0'
15
+ s.add_development_dependency 'rake', '~> 10.0'
16
+ s.require_path = 'mylib'
17
+ end
18
+
19
+ # vim: syntax=Ruby
@@ -0,0 +1,76 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+
4
+ Copyright (c) 2012 to original author or authors
5
+ All rights reserved. This program and the accompanying materials
6
+ are made available under the terms of the Eclipse Public License v1.0
7
+ which accompanies this distribution, and is available at
8
+ http://www.eclipse.org/legal/epl-v10.html
9
+
10
+ -->
11
+ <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
12
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
13
+ <modelVersion>4.0.0</modelVersion>
14
+ <groupId>rubygems</groupId>
15
+ <artifactId>bouncy-castle-java</artifactId>
16
+ <version>1.5.0</version>
17
+ <packaging>gem</packaging>
18
+ <name>Gem redistribution of Bouncy Castle jars</name>
19
+ <url>http://github.com/jruby/jruby/tree/master/gems/bouncy-castle-java/</url>
20
+ <description>Gem redistribution of "Legion of the Bouncy Castle Java cryptography APIs" jars at http://www.bouncycastle.org/java.html</description>
21
+ <developers>
22
+ <developer>
23
+ <name>Hiroshi Nakamura</name>
24
+ <email>nahi@ruby-lang.org</email>
25
+ </developer>
26
+ </developers>
27
+ <scm>
28
+ <connection>https://github.com/jruby/jruby/tree/master/gems/bouncy-castle-java.git</connection>
29
+ <url>http://github.com/jruby/jruby/tree/master/gems/bouncy-castle-java/</url>
30
+ </scm>
31
+ <properties>
32
+ <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
+ <jruby.plugins.version>1.0.1</jruby.plugins.version>
34
+ </properties>
35
+ <dependencies>
36
+ <dependency>
37
+ <groupId>rubygems</groupId>
38
+ <artifactId>thor</artifactId>
39
+ <version>[0.14.6,2.0)</version>
40
+ <type>gem</type>
41
+ </dependency>
42
+ <dependency>
43
+ <groupId>rubygems</groupId>
44
+ <artifactId>rake</artifactId>
45
+ <version>[10.0,10.99999]</version>
46
+ <type>gem</type>
47
+ <scope>test</scope>
48
+ </dependency>
49
+ </dependencies>
50
+ <repositories>
51
+ <repository>
52
+ <id>rubygems-releases</id>
53
+ <url>http://rubygems-proxy.torquebox.org/releases</url>
54
+ </repository>
55
+ </repositories>
56
+ <build>
57
+ <extensions>
58
+ <extension>
59
+ <groupId>de.saumya.mojo</groupId>
60
+ <artifactId>gem-extension</artifactId>
61
+ <version>${jruby.plugins.version}</version>
62
+ </extension>
63
+ </extensions>
64
+ <directory>${basedir}/pkg</directory>
65
+ <plugins>
66
+ <plugin>
67
+ <groupId>de.saumya.mojo</groupId>
68
+ <artifactId>gem-maven-plugin</artifactId>
69
+ <version>${jruby.plugins.version}</version>
70
+ <configuration>
71
+ <gemspec>bouncy-castle-java.gemspec</gemspec>
72
+ </configuration>
73
+ </plugin>
74
+ </plugins>
75
+ </build>
76
+ </project>
@@ -0,0 +1,894 @@
1
+ #-*- mode: ruby -*-
2
+
3
+ name 'my name'
4
+
5
+ url 'example.com'
6
+
7
+ model_version '1.0.1'
8
+
9
+ parent( 'example:parent', '1.1',
10
+ :relative_path => '../pom.xml' )
11
+
12
+ id 'example:project', '1.1'
13
+
14
+ packaging 'jar'
15
+
16
+ description 'some description'
17
+
18
+ inception_year 2020
19
+
20
+ organization :name => 'ngo', :url => 'ngo.org'
21
+
22
+ license( :name => 'AGPL',
23
+ :url => 'gnu.org/agpl',
24
+ :distribution => 'online',
25
+ :comments => 'should be used more often' )
26
+
27
+ developer( :id => '1',
28
+ :name => 'first',
29
+ :url => 'example.com/first',
30
+ :email => 'first@example.com',
31
+ :organization => 'orga',
32
+ :organization_url => 'example.org',
33
+ :roles => [ 'developer', 'architect' ],
34
+ :timezone => 'IST',
35
+ :properties => { :gender => :male } )
36
+
37
+ contributor( :name => 'first',
38
+ :url => 'example.com/first',
39
+ :email => 'first@example.com',
40
+ :organization => 'orga',
41
+ :organization_url => 'example.org',
42
+ :roles => [ 'developer', 'architect' ],
43
+ :timezone => 'IST',
44
+ :properties => { :gender => :male } )
45
+
46
+ mailing_list( :name => 'development',
47
+ :subscribe => 'subcribe@example.com',
48
+ :unsubscribe => 'unsubcribe@example.com',
49
+ :post => 'post@example.com',
50
+ :archives => [ 'example.com/archive',
51
+ 'example.com/archive1',
52
+ 'example.com/archive2' ] )
53
+
54
+ prerequisites :maven => '3.0.5'
55
+
56
+ modules 'part1', 'part2'
57
+
58
+ scm do
59
+ connection 'scm:git:git://github.com/torquebox/maven-tools.git'
60
+ developer_connection 'scm:git:ssh://git@github.com/torquebox/maven-tools.git'
61
+ tag 'first'
62
+ url 'http://github.com/torquebox/maven-tools'
63
+ end
64
+
65
+ issue_management do
66
+ system 'jira'
67
+ url 'https://issues.sonatype.org/'
68
+ end
69
+
70
+ ci_management do
71
+ url 'travis-ci.org/jruby/jruby'
72
+ system 'travis'
73
+ notifier do
74
+ type 'email'
75
+ address 'mail2@example.com'
76
+ end
77
+ notifier do
78
+ type 'email'
79
+ address 'mail@example.com'
80
+ send_on_error true
81
+ send_on_failure false
82
+ send_on_success true
83
+ send_on_warning false
84
+ configuration :key1 => 'value1', :key2 => 'value2'
85
+ end
86
+ end
87
+
88
+ distribution do
89
+ status 'active'
90
+ download_url 'http://dev.example.com/downloads'
91
+ repository do
92
+ id :first
93
+ url 'http://repo.example.com'
94
+ name 'First'
95
+ layout 'legacy'
96
+ releases do
97
+ enabled true
98
+ update_policy 'daily'
99
+ checksum_policy :strict
100
+ end
101
+ snapshots do
102
+ enabled false
103
+ update_policy :never
104
+ checksum_policy 'none'
105
+ end
106
+ end
107
+ snapshot_repository( 'snapshots',
108
+ 'http://snaphots.example.com',
109
+ 'First Snapshots',
110
+ :layout => 'legacy' ) do
111
+ releases( :enabled => false,
112
+ :update_policy => 'daily',
113
+ :checksum_policy => :strict )
114
+ snapshots( :enabled =>true,
115
+ :update_policy => :never,
116
+ :checksum_policy => 'none' )
117
+ end
118
+ site do
119
+ id 'first'
120
+ url 'http://dev.example.com'
121
+ name 'dev site'
122
+ end
123
+ relocation( 'org.group:artifact:1.2.3' ) do
124
+ message 'follow the maven convention'
125
+ end
126
+ end
127
+
128
+ properties :key1 => 'value1', 'key2' => :value2
129
+
130
+ dependency_management do
131
+ jar( 'com.example:tools:1.2.3' ) do
132
+ classifier 'super'
133
+ scope 'provided'
134
+ system_path '/home/development/tools.jar'
135
+ optional true
136
+ exclusion 'org.example:some'
137
+ exclusion 'org.example', 'something'
138
+ end
139
+ end
140
+
141
+ war( 'com.example:tools', '2.3' ) do
142
+ classifier 'super'
143
+ scope 'provided'
144
+ system_path '/home/development/wartools.jar'
145
+ optional false
146
+ exclusion 'org.example:some'
147
+ exclusion 'org.example', 'something'
148
+ end
149
+
150
+ repository do
151
+ id :first
152
+ url 'http://repo.example.com'
153
+ name 'First'
154
+ layout 'legacy'
155
+ releases do
156
+ enabled true
157
+ update_policy 'daily'
158
+ checksum_policy :strict
159
+ end
160
+ snapshots do
161
+ enabled false
162
+ update_policy :never
163
+ checksum_policy 'none'
164
+ end
165
+ end
166
+
167
+ snapshot_repository do
168
+ id 'snapshots'
169
+ url 'http://snaphots.example.com'
170
+ name 'First Snapshots'
171
+ layout 'legacy'
172
+ releases do
173
+ update_policy 'daily'
174
+ checksum_policy :strict
175
+ end
176
+ snapshots do
177
+ update_policy :never
178
+ checksum_policy 'none'
179
+ end
180
+ end
181
+
182
+ plugin_repository do
183
+ id :first
184
+ url 'http://pluginrepo.example.com'
185
+ name 'First'
186
+ layout 'legacy'
187
+ releases do
188
+ enabled true
189
+ update_policy 'daily'
190
+ checksum_policy :strict
191
+ end
192
+ snapshots do
193
+ enabled false
194
+ update_policy :never
195
+ checksum_policy 'none'
196
+ end
197
+ end
198
+
199
+ build do
200
+ source_directory 'src'
201
+ script_source_directory 'script'
202
+ test_source_directory 'test'
203
+ output_directory 'pkg'
204
+ test_output_directory 'pkg/test'
205
+ default_goal :install
206
+ extension 'org.group:gem-extension:1.2'
207
+ end
208
+
209
+ resource do
210
+ target_path 'target'
211
+ filtering true
212
+ directory 'resources'
213
+ includes [ '**/*' ]
214
+ excludes [ '*~' ]
215
+ end
216
+
217
+ test_resource do
218
+ target_path 'target/test'
219
+ filtering false
220
+ directory 'testresources'
221
+ includes [ '**/*' ]
222
+ excludes [ '*~' ]
223
+ end
224
+
225
+ plugin :jar, '1.0', :inherited => true do
226
+ configuration :finalName => :testing
227
+ end
228
+
229
+ jruby_plugin :gem, '1.0.0' do
230
+ gem :bundler, '1.6.2'
231
+ end
232
+
233
+ phase :package do
234
+ plugin :antrun do
235
+ execute_goals( 'run',
236
+ :id => 'copy',
237
+ 'tasks' => {
238
+ 'exec' => {
239
+ '@executable' => '/bin/sh',
240
+ '@osfamily' => 'unix',
241
+ 'arg' => {
242
+ '@line' => '-c \'cp "${jruby.basedir}/bin/jruby.bash" "${jruby.basedir}/bin/jruby"\''
243
+ }
244
+ },
245
+ 'chmod' => {
246
+ '@file' => '${jruby.basedir}/bin/jruby',
247
+ '@perm' => '755'
248
+ }
249
+ } )
250
+ jar 'org.super.duper:executor:1.0.0'
251
+ end
252
+ end
253
+
254
+ plugin 'org.codehaus.mojo:exec-maven-plugin' do
255
+ execute_goal( 'exec',
256
+ :id => 'invoker-generator',
257
+ 'arguments' => [ '-Djruby.bytecode.version=${base.java.version}',
258
+ '-classpath',
259
+ xml( '<classpath/>' ),
260
+ 'org.jruby.anno.InvokerGenerator',
261
+ '${anno.sources}/annotated_classes.txt',
262
+ '${project.build.outputDirectory}' ],
263
+ 'executable' => 'java',
264
+ 'classpathScope' => 'compile' )
265
+ end
266
+
267
+ plugin_management do
268
+ plugin( "org.mortbay.jetty:jetty-maven-plugin:8.1",
269
+ :path => '/',
270
+ :connectors => [ { :@implementation => "org.eclipse.jetty.server.nio.SelectChannelConnector",
271
+ :port => '${run.port}' },
272
+ { :@implementation => "org.eclipse.jetty.server.ssl.SslSelectChannelConnector",
273
+ :port => '${run.sslport}',
274
+ :keystore => '${run.keystore}',
275
+ :keyPassword => '${run.keystore.pass}',
276
+ :trustPassword => '${run.truststore.pass}' } ],
277
+ :httpConnector => { :port => '${run.port}' } )
278
+ end
279
+
280
+ # <groupId/>
281
+ # <artifactId/>
282
+ # <version/>
283
+ # <extensions/>
284
+ # <executions>
285
+ # <execution>
286
+ # <id/>
287
+ # <phase/>
288
+ # <goals/>
289
+ # <inherited/>
290
+ # <configuration/>
291
+ # </execution>
292
+ # </executions>
293
+ # <dependencies>
294
+ # <dependency>
295
+ # <groupId/>
296
+ # <artifactId/>
297
+ # <version/>
298
+ # <type/>
299
+ # <classifier/>
300
+ # <scope/>
301
+ # <systemPath/>
302
+ # <exclusions>
303
+ # <exclusion>
304
+ # <artifactId/>
305
+ # <groupId/>
306
+ # </exclusion>
307
+ # </exclusions>
308
+ # <optional/>
309
+ # </dependency>
310
+ # </dependencies>
311
+ # <goals/>
312
+ # <inherited/>
313
+ # <configuration/>
314
+ # </plugin>
315
+
316
+ # <scm>
317
+ # <connection/>
318
+ # <developerConnection/>
319
+ # <tag/>
320
+ # <url/>
321
+ # </scm>
322
+ # <issueManagement>
323
+ # <system/>
324
+ # <url/>
325
+ # </issueManagement>
326
+ # <ciManagement>
327
+ # <system/>
328
+ # <url/>
329
+ # <notifiers>
330
+ # <notifier>
331
+ # <type/>
332
+ # <sendOnError/>
333
+ # <sendOnFailure/>
334
+ # <sendOnSuccess/>
335
+ # <sendOnWarning/>
336
+ # <address/>
337
+ # <configuration>
338
+ # <key>value</key>
339
+ # </configuration>
340
+ # </notifier>
341
+ # </notifiers>
342
+ # </ciManagement>
343
+
344
+ # <distributionManagement>
345
+ # <repository>
346
+ # <uniqueVersion/>
347
+ # <releases>
348
+ # <enabled/>
349
+ # <updatePolicy/>
350
+ # <checksumPolicy/>
351
+ # </releases>
352
+ # <snapshots>
353
+ # <enabled/>
354
+ # <updatePolicy/>
355
+ # <checksumPolicy/>
356
+ # </snapshots>
357
+ # <id/>
358
+ # <name/>
359
+ # <url/>
360
+ # <layout/>
361
+ # </repository>
362
+ # <snapshotRepository>
363
+ # <uniqueVersion/>
364
+ # <releases>
365
+ # <enabled/>
366
+ # <updatePolicy/>
367
+ # <checksumPolicy/>
368
+ # </releases>
369
+ # <snapshots>
370
+ # <enabled/>
371
+ # <updatePolicy/>
372
+ # <checksumPolicy/>
373
+ # </snapshots>
374
+ # <id/>
375
+ # <name/>
376
+ # <url/>
377
+ # <layout/>
378
+ # </snapshotRepository>
379
+ # <site>
380
+ # <id/>
381
+ # <name/>
382
+ # <url/>
383
+ # </site>
384
+ # <downloadUrl/>
385
+ # <relocation>
386
+ # <groupId/>
387
+ # <artifactId/>
388
+ # <version/>
389
+ # <message/>
390
+ # </relocation>
391
+ # <status/>
392
+ # </distributionManagement>
393
+
394
+ # <properties>
395
+ # <key>value</key>
396
+ # </properties>
397
+
398
+ # <dependencyManagement>
399
+ # <dependencies>
400
+ # <dependency>
401
+ # <groupId/>
402
+ # <artifactId/>
403
+ # <version/>
404
+ # <type/>
405
+ # <classifier/>
406
+ # <scope/>
407
+ # <systemPath/>
408
+ # <exclusions>
409
+ # <exclusion>
410
+ # <artifactId/>
411
+ # <groupId/>
412
+ # </exclusion>
413
+ # </exclusions>
414
+ # <optional/>
415
+ # </dependency>
416
+ # </dependencies>
417
+ # </dependencyManagement>
418
+ # <dependencies>
419
+ # <dependency>
420
+ # <groupId/>
421
+ # <artifactId/>
422
+ # <version/>
423
+ # <type/>
424
+ # <classifier/>
425
+ # <scope/>
426
+ # <systemPath/>
427
+ # <exclusions>
428
+ # <exclusion>
429
+ # <artifactId/>
430
+ # <groupId/>
431
+ # </exclusion>
432
+ # </exclusions>
433
+ # <optional/>
434
+ # </dependency>
435
+ # </dependencies>
436
+
437
+ # <repositories>
438
+ # <repository>
439
+ # <releases>
440
+ # <enabled/>
441
+ # <updatePolicy/>
442
+ # <checksumPolicy/>
443
+ # </releases>
444
+ # <snapshots>
445
+ # <enabled/>
446
+ # <updatePolicy/>
447
+ # <checksumPolicy/>
448
+ # </snapshots>
449
+ # <id/>
450
+ # <name/>
451
+ # <url/>
452
+ # <layout/>
453
+ # </repository>
454
+ # </repositories>
455
+ # <pluginRepositories>
456
+ # <pluginRepository>
457
+ # <releases>
458
+ # <enabled/>
459
+ # <updatePolicy/>
460
+ # <checksumPolicy/>
461
+ # </releases>
462
+ # <snapshots>
463
+ # <enabled/>
464
+ # <updatePolicy/>
465
+ # <checksumPolicy/>
466
+ # </snapshots>
467
+ # <id/>
468
+ # <name/>
469
+ # <url/>
470
+ # <layout/>
471
+ # </pluginRepository>
472
+ # </pluginRepositories>
473
+
474
+ # <build>
475
+ # <sourceDirectory/>
476
+ # <scriptSourceDirectory/>
477
+ # <testSourceDirectory/>
478
+ # <outputDirectory/>
479
+ # <testOutputDirectory/>
480
+ # <extensions>
481
+ # <extension>
482
+ # <groupId/>
483
+ # <artifactId/>
484
+ # <version/>
485
+ # </extension>
486
+ # </extensions>
487
+ # <defaultGoal/>
488
+ # <resources>
489
+ # <resource>
490
+ # <targetPath/>
491
+ # <filtering/>
492
+ # <directory/>
493
+ # <includes/>
494
+ # <excludes/>
495
+ # </resource>
496
+ # </resources>
497
+ # <testResources>
498
+ # <testResource>
499
+ # <targetPath/>
500
+ # <filtering/>
501
+ # <directory/>
502
+ # <includes/>
503
+ # <excludes/>
504
+ # </testResource>
505
+ # </testResources>
506
+ # <directory/>
507
+ # <finalName/>
508
+ # <filters/>
509
+ # <pluginManagement>
510
+ # <plugins>
511
+ # <plugin>
512
+ # <groupId/>
513
+ # <artifactId/>
514
+ # <version/>
515
+ # <extensions/>
516
+ # <executions>
517
+ # <execution>
518
+ # <id/>
519
+ # <phase/>
520
+ # <goals/>
521
+ # <inherited/>
522
+ # <configuration/>
523
+ # </execution>
524
+ # </executions>
525
+ # <dependencies>
526
+ # <dependency>
527
+ # <groupId/>
528
+ # <artifactId/>
529
+ # <version/>
530
+ # <type/>
531
+ # <classifier/>
532
+ # <scope/>
533
+ # <systemPath/>
534
+ # <exclusions>
535
+ # <exclusion>
536
+ # <artifactId/>
537
+ # <groupId/>
538
+ # </exclusion>
539
+ # </exclusions>
540
+ # <optional/>
541
+ # </dependency>
542
+ # </dependencies>
543
+ # <goals/>
544
+ # <inherited/>
545
+ # <configuration/>
546
+ # </plugin>
547
+ # </plugins>
548
+ # </pluginManagement>
549
+ # <plugins>
550
+ # <plugin>
551
+ # <groupId/>
552
+ # <artifactId/>
553
+ # <version/>
554
+ # <extensions/>
555
+ # <executions>
556
+ # <execution>
557
+ # <id/>
558
+ # <phase/>
559
+ # <goals/>
560
+ # <inherited/>
561
+ # <configuration/>
562
+ # </execution>
563
+ # </executions>
564
+ # <dependencies>
565
+ # <dependency>
566
+ # <groupId/>
567
+ # <artifactId/>
568
+ # <version/>
569
+ # <type/>
570
+ # <classifier/>
571
+ # <scope/>
572
+ # <systemPath/>
573
+ # <exclusions>
574
+ # <exclusion>
575
+ # <artifactId/>
576
+ # <groupId/>
577
+ # </exclusion>
578
+ # </exclusions>
579
+ # <optional/>
580
+ # </dependency>
581
+ # </dependencies>
582
+ # <goals/>
583
+ # <inherited/>
584
+ # <configuration/>
585
+ # </plugin>
586
+ # </plugins>
587
+ # </build>
588
+
589
+ # <reports/>
590
+ # <reporting>
591
+ # <excludeDefaults/>
592
+ # <outputDirectory/>
593
+ # <plugins>
594
+ # <plugin>
595
+ # <groupId/>
596
+ # <artifactId/>
597
+ # <version/>
598
+ # <reportSets>
599
+ # <reportSet>
600
+ # <id/>
601
+ # <reports/>
602
+ # <inherited/>
603
+ # <configuration/>
604
+ # </reportSet>
605
+ # </reportSets>
606
+ # <inherited/>
607
+ # <configuration/>
608
+ # </plugin>
609
+ # </plugins>
610
+ # </reporting>
611
+
612
+ # <profiles>
613
+ # <profile>
614
+ # <id/>
615
+ # <activation>
616
+ # <activeByDefault/>
617
+ # <jdk/>
618
+ # <os>
619
+ # <name/>
620
+ # <family/>
621
+ # <arch/>
622
+ # <version/>
623
+ # </os>
624
+ # <property>
625
+ # <name/>
626
+ # <value/>
627
+ # </property>
628
+ # <file>
629
+ # <missing/>
630
+ # <exists/>
631
+ # </file>
632
+ # </activation>
633
+ # <build>
634
+ # <defaultGoal/>
635
+ # <resources>
636
+ # <resource>
637
+ # <targetPath/>
638
+ # <filtering/>
639
+ # <directory/>
640
+ # <includes/>
641
+ # <excludes/>
642
+ # </resource>
643
+ # </resources>
644
+ # <testResources>
645
+ # <testResource>
646
+ # <targetPath/>
647
+ # <filtering/>
648
+ # <directory/>
649
+ # <includes/>
650
+ # <excludes/>
651
+ # </testResource>
652
+ # </testResources>
653
+ # <directory/>
654
+ # <finalName/>
655
+ # <filters/>
656
+ # <pluginManagement>
657
+ # <plugins>
658
+ # <plugin>
659
+ # <groupId/>
660
+ # <artifactId/>
661
+ # <version/>
662
+ # <extensions/>
663
+ # <executions>
664
+ # <execution>
665
+ # <id/>
666
+ # <phase/>
667
+ # <goals/>
668
+ # <inherited/>
669
+ # <configuration/>
670
+ # </execution>
671
+ # </executions>
672
+ # <dependencies>
673
+ # <dependency>
674
+ # <groupId/>
675
+ # <artifactId/>
676
+ # <version/>
677
+ # <type/>
678
+ # <classifier/>
679
+ # <scope/>
680
+ # <systemPath/>
681
+ # <exclusions>
682
+ # <exclusion>
683
+ # <artifactId/>
684
+ # <groupId/>
685
+ # </exclusion>
686
+ # </exclusions>
687
+ # <optional/>
688
+ # </dependency>
689
+ # </dependencies>
690
+ # <goals/>
691
+ # <inherited/>
692
+ # <configuration/>
693
+ # </plugin>
694
+ # </plugins>
695
+ # </pluginManagement>
696
+ # <plugins>
697
+ # <plugin>
698
+ # <groupId/>
699
+ # <artifactId/>
700
+ # <version/>
701
+ # <extensions/>
702
+ # <executions>
703
+ # <execution>
704
+ # <id/>
705
+ # <phase/>
706
+ # <goals/>
707
+ # <inherited/>
708
+ # <configuration/>
709
+ # </execution>
710
+ # </executions>
711
+ # <dependencies>
712
+ # <dependency>
713
+ # <groupId/>
714
+ # <artifactId/>
715
+ # <version/>
716
+ # <type/>
717
+ # <classifier/>
718
+ # <scope/>
719
+ # <systemPath/>
720
+ # <exclusions>
721
+ # <exclusion>
722
+ # <artifactId/>
723
+ # <groupId/>
724
+ # </exclusion>
725
+ # </exclusions>
726
+ # <optional/>
727
+ # </dependency>
728
+ # </dependencies>
729
+ # <goals/>
730
+ # <inherited/>
731
+ # <configuration/>
732
+ # </plugin>
733
+ # </plugins>
734
+ # </build>
735
+
736
+ # <modules/>
737
+
738
+ # <distributionManagement>
739
+ # <repository>
740
+ # <uniqueVersion/>
741
+ # <releases>
742
+ # <enabled/>
743
+ # <updatePolicy/>
744
+ # <checksumPolicy/>
745
+ # </releases>
746
+ # <snapshots>
747
+ # <enabled/>
748
+ # <updatePolicy/>
749
+ # <checksumPolicy/>
750
+ # </snapshots>
751
+ # <id/>
752
+ # <name/>
753
+ # <url/>
754
+ # <layout/>
755
+ # </repository>
756
+ # <snapshotRepository>
757
+ # <uniqueVersion/>
758
+ # <releases>
759
+ # <enabled/>
760
+ # <updatePolicy/>
761
+ # <checksumPolicy/>
762
+ # </releases>
763
+ # <snapshots>
764
+ # <enabled/>
765
+ # <updatePolicy/>
766
+ # <checksumPolicy/>
767
+ # </snapshots>
768
+ # <id/>
769
+ # <name/>
770
+ # <url/>
771
+ # <layout/>
772
+ # </snapshotRepository>
773
+ # <site>
774
+ # <id/>
775
+ # <name/>
776
+ # <url/>
777
+ # </site>
778
+ # <downloadUrl/>
779
+ # <relocation>
780
+ # <groupId/>
781
+ # <artifactId/>
782
+ # <version/>
783
+ # <message/>
784
+ # </relocation>
785
+ # <status/>
786
+ # </distributionManagement>
787
+
788
+ # <properties>
789
+ # <key>value</key>
790
+ # </properties>
791
+
792
+ # <dependencyManagement>
793
+ # <dependencies>
794
+ # <dependency>
795
+ # <groupId/>
796
+ # <artifactId/>
797
+ # <version/>
798
+ # <type/>
799
+ # <classifier/>
800
+ # <scope/>
801
+ # <systemPath/>
802
+ # <exclusions>
803
+ # <exclusion>
804
+ # <artifactId/>
805
+ # <groupId/>
806
+ # </exclusion>
807
+ # </exclusions>
808
+ # <optional/>
809
+ # </dependency>
810
+ # </dependencies>
811
+ # </dependencyManagement>
812
+ # <dependencies>
813
+ # <dependency>
814
+ # <groupId/>
815
+ # <artifactId/>
816
+ # <version/>
817
+ # <type/>
818
+ # <classifier/>
819
+ # <scope/>
820
+ # <systemPath/>
821
+ # <exclusions>
822
+ # <exclusion>
823
+ # <artifactId/>
824
+ # <groupId/>
825
+ # </exclusion>
826
+ # </exclusions>
827
+ # <optional/>
828
+ # </dependency>
829
+ # </dependencies>
830
+
831
+ # <repositories>
832
+ # <repository>
833
+ # <releases>
834
+ # <enabled/>
835
+ # <updatePolicy/>
836
+ # <checksumPolicy/>
837
+ # </releases>
838
+ # <snapshots>
839
+ # <enabled/>
840
+ # <updatePolicy/>
841
+ # <checksumPolicy/>
842
+ # </snapshots>
843
+ # <id/>
844
+ # <name/>
845
+ # <url/>
846
+ # <layout/>
847
+ # </repository>
848
+ # </repositories>
849
+ # <pluginRepositories>
850
+ # <pluginRepository>
851
+ # <releases>
852
+ # <enabled/>
853
+ # <updatePolicy/>
854
+ # <checksumPolicy/>
855
+ # </releases>
856
+ # <snapshots>
857
+ # <enabled/>
858
+ # <updatePolicy/>
859
+ # <checksumPolicy/>
860
+ # </snapshots>
861
+ # <id/>
862
+ # <name/>
863
+ # <url/>
864
+ # <layout/>
865
+ # </pluginRepository>
866
+ # </pluginRepositories>
867
+
868
+ # <reports/>
869
+ # <reporting>
870
+ # <excludeDefaults/>
871
+ # <outputDirectory/>
872
+ # <plugins>
873
+ # <plugin>
874
+ # <groupId/>
875
+ # <artifactId/>
876
+ # <version/>
877
+ # <reportSets>
878
+ # <reportSet>
879
+ # <id/>
880
+ # <reports/>
881
+ # <inherited/>
882
+ # <configuration/>
883
+ # </reportSet>
884
+ # </reportSets>
885
+ # <inherited/>
886
+ # <configuration/>
887
+ # </plugin>
888
+ # </plugins>
889
+ # </reporting>
890
+ # </profile>
891
+ # </profiles>
892
+ # </project>
893
+
894
+ # vim: syntax=Ruby