maven-tools 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/Mavenfile +4 -3
  3. data/Rakefile +33 -1
  4. data/lib/maven/tools/dsl.rb +32 -119
  5. data/lib/maven/tools/dsl/dependency_dsl.rb +9 -3
  6. data/lib/maven/tools/dsl/gem_support.rb +97 -0
  7. data/lib/maven/tools/dsl/gemspec.rb +158 -0
  8. data/lib/maven/tools/dsl/jarfile.rb +72 -16
  9. data/lib/maven/tools/dsl/jarfile_lock.rb +106 -0
  10. data/lib/maven/tools/dsl/profile_gemspec.rb +42 -0
  11. data/lib/maven/tools/dsl/project_gemspec.rb +84 -0
  12. data/lib/maven/tools/gemspec_dependencies.rb +1 -0
  13. data/lib/maven/tools/jarfile.rb +7 -4
  14. data/lib/maven/tools/licenses.rb +77 -0
  15. data/lib/maven/tools/pom.rb +3 -5
  16. data/lib/maven/tools/project.rb +49 -0
  17. data/lib/maven/tools/version.rb +1 -1
  18. data/lib/maven/tools/versions.rb +3 -3
  19. data/lib/maven/tools/visitor.rb +8 -8
  20. data/spec/dsl/gemspec_spec.rb +58 -0
  21. data/spec/dsl/gemspec_spec/jars_and_poms.gemspec +22 -0
  22. data/spec/dsl/gemspec_spec/jars_and_poms.xml +47 -0
  23. data/spec/dsl/gemspec_spec/jars_and_poms_include_jars.xml +64 -0
  24. data/spec/dsl/gemspec_spec/maven-tools.gemspec +422 -0
  25. data/spec/dsl/gemspec_spec/maven-tools.xml +44 -0
  26. data/spec/dsl/jarfile_lock_spec.rb +118 -0
  27. data/spec/dsl/profile_gemspec_spec.rb +77 -0
  28. data/spec/dsl/profile_gemspec_spec/jars_and_poms.gemspec +21 -0
  29. data/spec/dsl/profile_gemspec_spec/jars_and_poms.xml +54 -0
  30. data/spec/dsl/profile_gemspec_spec/jars_and_poms_include_jars.xml +71 -0
  31. data/spec/dsl/profile_gemspec_spec/maven-tools.gemspec +422 -0
  32. data/spec/dsl/profile_gemspec_spec/maven-tools.xml +51 -0
  33. data/spec/dsl/profile_gemspec_spec/no_gems.xml +29 -0
  34. data/spec/dsl/profile_gemspec_spec/snapshot.gemspec +17 -0
  35. data/spec/dsl/profile_gemspec_spec/snapshot.xml +29 -0
  36. data/spec/dsl/project_gemspec_spec.rb +97 -0
  37. data/spec/dsl/project_gemspec_spec/extended.gemspec +22 -0
  38. data/spec/dsl/project_gemspec_spec/extended.xml +86 -0
  39. data/spec/dsl/project_gemspec_spec/jars_and_poms.gemspec +21 -0
  40. data/spec/dsl/project_gemspec_spec/jars_and_poms.xml +82 -0
  41. data/spec/dsl/project_gemspec_spec/jars_and_poms_include_jars.xml +99 -0
  42. data/spec/dsl/project_gemspec_spec/maven-tools.gemspec +422 -0
  43. data/spec/dsl/project_gemspec_spec/maven-tools.xml +79 -0
  44. data/spec/dsl/project_gemspec_spec/no_gems.xml +57 -0
  45. data/spec/dsl/project_gemspec_spec/profile.xml +84 -0
  46. data/spec/dsl/project_gemspec_spec/snapshot.gemspec +17 -0
  47. data/spec/dsl/project_gemspec_spec/snapshot.xml +57 -0
  48. data/spec/gemfile/pom.xml +1 -1
  49. data/spec/gemfile_include_jars/pom.xml +16 -1
  50. data/spec/gemfile_with_access_to_model/pom.xml +1 -1
  51. data/spec/gemfile_with_custom_source/pom.xml +1 -1
  52. data/spec/gemfile_with_custom_source_and_custom_jarname/pom.xml +1 -1
  53. data/spec/gemfile_with_extras/pom.xml +16 -1
  54. data/spec/gemfile_with_groups/pom.xml +1 -1
  55. data/spec/gemfile_with_groups_and_lockfile/pom.xml +1 -1
  56. data/spec/gemfile_with_lock/pom.xml +1 -1
  57. data/spec/gemfile_with_path/pom.xml +2 -2
  58. data/spec/gemfile_with_platforms/pom.xml +1 -1
  59. data/spec/gemfile_with_source/pom.xml +1 -1
  60. data/spec/gemfile_with_source_and_custom_jarname/pom.xml +1 -1
  61. data/spec/gemfile_with_source_and_no_jar/pom.xml +1 -1
  62. data/spec/gemfile_with_test_group/pom.xml +1 -1
  63. data/spec/gemfile_without_gemspec/pom.xml +1 -1
  64. data/spec/gemspec/bouncy-castle-java.gemspec +1 -0
  65. data/spec/gemspec/pom.xml +18 -1
  66. data/spec/gemspec_in_profile/pom.xml +1 -1
  67. data/spec/gemspec_include_jars/pom.xml +16 -1
  68. data/spec/gemspec_no_rubygems_repo/pom.xml +1 -1
  69. data/spec/gemspec_prerelease/pom.xml +2 -2
  70. data/spec/gemspec_prerelease_snapshot/pom.xml +1 -1
  71. data/spec/gemspec_with_access_to_model/pom.xml +1 -1
  72. data/spec/gemspec_with_custom_source/pom.xml +1 -1
  73. data/spec/gemspec_with_custom_source_and_custom_jarname/pom.xml +1 -1
  74. data/spec/gemspec_with_extras/pom.xml +16 -1
  75. data/spec/gemspec_with_prereleased_dependency/pom.xml +1 -1
  76. data/spec/gemspec_with_prereleased_dependency_and_no_repo/pom.xml +1 -1
  77. data/spec/gemspec_with_source/pom.xml +1 -1
  78. data/spec/gemspec_with_source_and_custom_jarname/pom.xml +1 -1
  79. data/spec/gemspec_with_source_and_no_jar/pom.xml +1 -1
  80. data/spec/mavenfile/Mavenfile +1 -1
  81. data/spec/pom.xml +1 -1
  82. data/spec/pom_from_jarfile/pom.xml +0 -7
  83. data/spec/pom_from_jarfile_and_lock/Jarfile +3 -0
  84. data/spec/pom_from_jarfile_and_lock/pom.rb +5 -0
  85. data/spec/pom_from_jarfile_and_lock/pom.xml +37 -0
  86. data/spec/pom_from_jarfile_and_lock/pom2.xml +41 -0
  87. data/spec/pom_from_jarfile_and_skip_lock/Jarfile +3 -0
  88. data/spec/pom_from_jarfile_and_skip_lock/pom.rb +5 -0
  89. data/spec/pom_from_jarfile_and_skip_lock/pom.xml +31 -0
  90. data/spec/pom_from_jarfile_with_jruby/Jarfile +1 -0
  91. data/spec/pom_from_jarfile_with_jruby/pom.xml +0 -15
  92. data/spec/pom_maven_alternative_style/pom.rb +1 -1
  93. data/spec/pom_maven_hash_style/pom.rb +1 -1
  94. data/spec/pom_maven_style/pom.rb +1 -1
  95. metadata +79 -2
@@ -0,0 +1,51 @@
1
+ <project>
2
+ <modelVersion>4.0.0</modelVersion>
3
+ <groupId>no_group_id_given</groupId>
4
+ <artifactId>BASEDIR</artifactId>
5
+ <version>0.0.0</version>
6
+ <name>BASEDIR</name>
7
+ <properties>
8
+ <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
9
+ <jruby.plugins.version>1.0.7</jruby.plugins.version>
10
+ </properties>
11
+ <dependencies>
12
+ <dependency>
13
+ <groupId>rubygems</groupId>
14
+ <artifactId>virtus</artifactId>
15
+ <version>[1.0,1.99999]</version>
16
+ <type>gem</type>
17
+ </dependency>
18
+ <dependency>
19
+ <groupId>rubygems</groupId>
20
+ <artifactId>rake</artifactId>
21
+ <version>[10.0,10.99999]</version>
22
+ <type>gem</type>
23
+ <scope>test</scope>
24
+ </dependency>
25
+ <dependency>
26
+ <groupId>rubygems</groupId>
27
+ <artifactId>minitest</artifactId>
28
+ <version>[5.3,5.99999]</version>
29
+ <type>gem</type>
30
+ <scope>test</scope>
31
+ </dependency>
32
+ </dependencies>
33
+ <repositories>
34
+ <repository>
35
+ <id>rubygems-releases</id>
36
+ <url>http://rubygems-proxy.torquebox.org/releases</url>
37
+ </repository>
38
+ </repositories>
39
+ <build>
40
+ <plugins>
41
+ <plugin>
42
+ <groupId>de.saumya.mojo</groupId>
43
+ <artifactId>gem-maven-plugin</artifactId>
44
+ <version>${jruby.plugins.version}</version>
45
+ <configuration>
46
+ <gemspec>maven-tools.gemspec</gemspec>
47
+ </configuration>
48
+ </plugin>
49
+ </plugins>
50
+ </build>
51
+ </project>
@@ -0,0 +1,29 @@
1
+ <project>
2
+ <modelVersion>4.0.0</modelVersion>
3
+ <groupId>no_group_id_given</groupId>
4
+ <artifactId>profile_gemspec_spec</artifactId>
5
+ <version>0.0.0</version>
6
+ <name>profile_gemspec_spec</name>
7
+ <properties>
8
+ <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
9
+ <jruby.plugins.version>1.0.7</jruby.plugins.version>
10
+ </properties>
11
+ <repositories>
12
+ <repository>
13
+ <id>rubygems-releases</id>
14
+ <url>http://rubygems-proxy.torquebox.org/releases</url>
15
+ </repository>
16
+ </repositories>
17
+ <build>
18
+ <plugins>
19
+ <plugin>
20
+ <groupId>de.saumya.mojo</groupId>
21
+ <artifactId>gem-maven-plugin</artifactId>
22
+ <version>${jruby.plugins.version}</version>
23
+ <configuration>
24
+ <gemspec>maven-tools.gemspec</gemspec>
25
+ </configuration>
26
+ </plugin>
27
+ </plugins>
28
+ </build>
29
+ </project>
@@ -0,0 +1,17 @@
1
+ # -*- mode:ruby -*-
2
+ # -*- coding: utf-8 -*-
3
+ Gem::Specification.new do |s|
4
+ s.name = 'maven-tools'
5
+ s.version = '1.a'
6
+
7
+ s.summary = 'helpers for maven related tasks'
8
+ s.description = 'adds versions conversion from rubygems to maven and vice versa, ruby DSL for POM (Project Object Model from maven), pom generators, etc'
9
+ s.homepage = 'http://github.com/torquebox/maven-tools'
10
+
11
+ s.authors = ['Christian Meier']
12
+ s.email = ['m.kristian@web.de']
13
+
14
+ s.license = 'MIT'
15
+ end
16
+
17
+ # vim: syntax=Ruby
@@ -0,0 +1,29 @@
1
+ <project>
2
+ <modelVersion>4.0.0</modelVersion>
3
+ <groupId>no_group_id_given</groupId>
4
+ <artifactId>profile_gemspec_spec</artifactId>
5
+ <version>0.0.0</version>
6
+ <name>profile_gemspec_spec</name>
7
+ <properties>
8
+ <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
9
+ <jruby.plugins.version>1.0.7</jruby.plugins.version>
10
+ </properties>
11
+ <repositories>
12
+ <repository>
13
+ <id>rubygems-releases</id>
14
+ <url>http://rubygems-proxy.torquebox.org/releases</url>
15
+ </repository>
16
+ </repositories>
17
+ <build>
18
+ <plugins>
19
+ <plugin>
20
+ <groupId>de.saumya.mojo</groupId>
21
+ <artifactId>gem-maven-plugin</artifactId>
22
+ <version>${jruby.plugins.version}</version>
23
+ <configuration>
24
+ <gemspec>snapshot.gemspec</gemspec>
25
+ </configuration>
26
+ </plugin>
27
+ </plugins>
28
+ </build>
29
+ </project>
@@ -0,0 +1,97 @@
1
+ require_relative '../spec_helper'
2
+ require 'yaml'
3
+ require 'maven/tools/dsl/project_gemspec'
4
+ require 'maven/tools/project'
5
+ require 'maven/tools/model'
6
+ require 'maven/tools/dsl'
7
+ require 'maven/tools/version'
8
+ require 'maven/tools/visitor'
9
+
10
+ class Maven::Tools::Project
11
+ include Maven::Tools::DSL
12
+ end
13
+
14
+ class XmlFile
15
+ def self.read( name, artifact_id, version = '1.0.5' )
16
+ xml = File.read( __FILE__.sub( /.rb$/, "/#{name}" ) )
17
+ xml.gsub!( /BASEDIR/, artifact_id )
18
+ xml.gsub!( /VERSION/, version )
19
+ xml
20
+ end
21
+
22
+ end
23
+
24
+ describe Maven::Tools::DSL::ProjectGemspec do
25
+
26
+ let( :parent ) { Maven::Tools::Project.new( __FILE__.sub( /.rb$/, '/maven-tools.gemspec' ) ) }
27
+
28
+ subject { Maven::Tools::DSL::ProjectGemspec }
29
+
30
+ it 'evals maven_tools.gemspec' do
31
+ parent = Maven::Tools::Project.new
32
+ subject.new parent
33
+ xml = ""
34
+ Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
35
+ v = Maven::Tools::VERSION
36
+ v += '-SNAPSHOT' if v =~ /.dev$/
37
+ xml.must_equal( XmlFile.read( 'maven-tools.xml', 'maven-tools',
38
+ v ) )
39
+ end
40
+
41
+ it 'evals maven_tools.gemspec from yaml' do
42
+ subject.new parent, 'maven-tools.gemspec'
43
+ xml = ""
44
+ Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
45
+ xml.must_equal( XmlFile.read( 'maven-tools.xml', 'gemspec_spec' ) )
46
+ end
47
+
48
+ it 'evals maven_tools.gemspec from yaml with profile' do
49
+ subject.new parent, 'maven-tools.gemspec', :profile => :hidden
50
+ xml = ""
51
+ Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
52
+ xml.must_equal( XmlFile.read( 'profile.xml', 'gemspec_spec' ) )
53
+ end
54
+
55
+ it 'evals maven_tools.gemspec from yaml no gem dependencies' do
56
+ subject.new parent, 'maven-tools.gemspec', :no_gems => true
57
+ xml = ""
58
+ Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
59
+ xml.must_equal( XmlFile.read( 'no_gems.xml', 'gemspec_spec' ) )
60
+ end
61
+
62
+ it 'evals snapshot.gemspec' do
63
+ subject.new parent, 'snapshot.gemspec'
64
+ xml = ""
65
+ Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
66
+ xml.must_equal( XmlFile.read( 'snapshot.xml', 'snapshot', '1.a-SNAPSHOT' ) )
67
+ end
68
+
69
+ it 'evals gemspec with jar and pom dependencies' do
70
+ subject.new parent, 'jars_and_poms.gemspec'
71
+ xml = ""
72
+ Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
73
+ xml.must_equal( XmlFile.read( 'jars_and_poms.xml',
74
+ 'gemspec_spec' ) )
75
+ end
76
+
77
+ it 'evals gemspec with jar and pom dependencies' do
78
+ subject.new parent, :name => 'jars_and_poms.gemspec', :include_jars => true
79
+ xml = ""
80
+ Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
81
+ xml.must_equal( XmlFile.read( 'jars_and_poms_include_jars.xml',
82
+ 'gemspec_spec' ) )
83
+ end
84
+
85
+ it 'evals gemspec with extend functionality' do
86
+ class Maven::Tools::DSL::ProjectGemspec
87
+ def repo( url )
88
+ @parent.repository( :id => url, :url => url )
89
+ end
90
+ end
91
+ subject.new parent, :name => 'extended.gemspec'
92
+ xml = ""
93
+ Maven::Tools::Visitor.new( xml ).accept_project( parent.model )
94
+ xml.must_equal( XmlFile.read( 'extended.xml',
95
+ 'gemspec_spec' ) )
96
+ end
97
+ end
@@ -0,0 +1,22 @@
1
+ # -*- mode:ruby -*-
2
+ # -*- coding: utf-8 -*-
3
+ Gem::Specification.new do |s|
4
+ s.name = 'maven-tools'
5
+ s.version = '123'
6
+
7
+ s.summary = 'helpers for maven related tasks'
8
+ s.description = 'adds versions conversion from rubygems to maven and vice versa, ruby DSL for POM (Project Object Model from maven), pom generators, etc'
9
+ s.homepage = 'http://github.com/torquebox/maven-tools'
10
+
11
+ s.authors = ['Christian Meier']
12
+ s.email = ['m.kristian@web.de']
13
+
14
+ s.license = 'MIT'
15
+
16
+ s.requirements << 'jar org.slf4j:slf4j-simple, 1.6.4'
17
+ s.requirements << 'pom org.jruby:jruby, 1.7.16'
18
+ s.requirements << 'jar org.jruby:jruby, 1.7.16, noasm, [org.jruby:jruby-stdlib]'
19
+ s.requirements << 'repo http://localhost/repo'
20
+ end
21
+
22
+ # vim: syntax=Ruby
@@ -0,0 +1,86 @@
1
+ <project>
2
+ <modelVersion>4.0.0</modelVersion>
3
+ <groupId>rubygems</groupId>
4
+ <artifactId>maven-tools</artifactId>
5
+ <version>123</version>
6
+ <packaging>gem</packaging>
7
+ <name>helpers for maven related tasks</name>
8
+ <url>http://github.com/torquebox/maven-tools</url>
9
+ <description>adds versions conversion from rubygems to maven and vice versa, ruby DSL for POM (Project Object Model from maven), pom generators, etc</description>
10
+ <licenses>
11
+ <license>
12
+ <name>MIT</name>
13
+ <url>http://opensource.org/licenses/MIT</url>
14
+ <comments>MIT license</comments>
15
+ </license>
16
+ </licenses>
17
+ <developers>
18
+ <developer>
19
+ <name>Christian Meier</name>
20
+ <email>m.kristian@web.de</email>
21
+ </developer>
22
+ </developers>
23
+ <scm>
24
+ <connection>https://github.com/torquebox/maven-tools.git</connection>
25
+ <url>http://github.com/torquebox/maven-tools</url>
26
+ </scm>
27
+ <properties>
28
+ <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
29
+ <jruby.plugins.version>1.0.7</jruby.plugins.version>
30
+ </properties>
31
+ <dependencies>
32
+ <dependency>
33
+ <groupId>org.slf4j</groupId>
34
+ <artifactId>slf4j-simple</artifactId>
35
+ <version>1.6.4</version>
36
+ </dependency>
37
+ <dependency>
38
+ <groupId>org.jruby</groupId>
39
+ <artifactId>jruby</artifactId>
40
+ <version>1.7.16</version>
41
+ <type>pom</type>
42
+ </dependency>
43
+ <dependency>
44
+ <groupId>org.jruby</groupId>
45
+ <artifactId>jruby</artifactId>
46
+ <version>1.7.16</version>
47
+ <classifier>noasm</classifier>
48
+ <exclusions>
49
+ <exclusion>
50
+ <groupId>org.jruby</groupId>
51
+ <artifactId>jruby-stdlib</artifactId>
52
+ </exclusion>
53
+ </exclusions>
54
+ </dependency>
55
+ </dependencies>
56
+ <repositories>
57
+ <repository>
58
+ <id>rubygems-releases</id>
59
+ <url>http://rubygems-proxy.torquebox.org/releases</url>
60
+ </repository>
61
+ <repository>
62
+ <id>http://localhost/repo</id>
63
+ <url>http://localhost/repo</url>
64
+ </repository>
65
+ </repositories>
66
+ <build>
67
+ <extensions>
68
+ <extension>
69
+ <groupId>de.saumya.mojo</groupId>
70
+ <artifactId>gem-extension</artifactId>
71
+ <version>${jruby.plugins.version}</version>
72
+ </extension>
73
+ </extensions>
74
+ <directory>${basedir}/pkg</directory>
75
+ <plugins>
76
+ <plugin>
77
+ <groupId>de.saumya.mojo</groupId>
78
+ <artifactId>gem-maven-plugin</artifactId>
79
+ <version>${jruby.plugins.version}</version>
80
+ <configuration>
81
+ <gemspec>extended.gemspec</gemspec>
82
+ </configuration>
83
+ </plugin>
84
+ </plugins>
85
+ </build>
86
+ </project>
@@ -0,0 +1,21 @@
1
+ # -*- mode:ruby -*-
2
+ # -*- coding: utf-8 -*-
3
+ Gem::Specification.new do |s|
4
+ s.name = 'maven-tools'
5
+ s.version = '123'
6
+
7
+ s.summary = 'helpers for maven related tasks'
8
+ s.description = 'adds versions conversion from rubygems to maven and vice versa, ruby DSL for POM (Project Object Model from maven), pom generators, etc'
9
+ s.homepage = 'http://github.com/torquebox/maven-tools'
10
+
11
+ s.authors = ['Christian Meier']
12
+ s.email = ['m.kristian@web.de']
13
+
14
+ s.license = 'MIT'
15
+
16
+ s.requirements << 'jar org.slf4j:slf4j-simple, 1.6.4'
17
+ s.requirements << 'pom org.jruby:jruby, 1.7.16'
18
+ s.requirements << 'jar org.jruby:jruby, 1.7.16, noasm, [org.jruby:jruby-stdlib]'
19
+ end
20
+
21
+ # vim: syntax=Ruby
@@ -0,0 +1,82 @@
1
+ <project>
2
+ <modelVersion>4.0.0</modelVersion>
3
+ <groupId>rubygems</groupId>
4
+ <artifactId>maven-tools</artifactId>
5
+ <version>123</version>
6
+ <packaging>gem</packaging>
7
+ <name>helpers for maven related tasks</name>
8
+ <url>http://github.com/torquebox/maven-tools</url>
9
+ <description>adds versions conversion from rubygems to maven and vice versa, ruby DSL for POM (Project Object Model from maven), pom generators, etc</description>
10
+ <licenses>
11
+ <license>
12
+ <name>MIT</name>
13
+ <url>http://opensource.org/licenses/MIT</url>
14
+ <comments>MIT license</comments>
15
+ </license>
16
+ </licenses>
17
+ <developers>
18
+ <developer>
19
+ <name>Christian Meier</name>
20
+ <email>m.kristian@web.de</email>
21
+ </developer>
22
+ </developers>
23
+ <scm>
24
+ <connection>https://github.com/torquebox/maven-tools.git</connection>
25
+ <url>http://github.com/torquebox/maven-tools</url>
26
+ </scm>
27
+ <properties>
28
+ <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
29
+ <jruby.plugins.version>1.0.7</jruby.plugins.version>
30
+ </properties>
31
+ <dependencies>
32
+ <dependency>
33
+ <groupId>org.slf4j</groupId>
34
+ <artifactId>slf4j-simple</artifactId>
35
+ <version>1.6.4</version>
36
+ </dependency>
37
+ <dependency>
38
+ <groupId>org.jruby</groupId>
39
+ <artifactId>jruby</artifactId>
40
+ <version>1.7.16</version>
41
+ <type>pom</type>
42
+ </dependency>
43
+ <dependency>
44
+ <groupId>org.jruby</groupId>
45
+ <artifactId>jruby</artifactId>
46
+ <version>1.7.16</version>
47
+ <classifier>noasm</classifier>
48
+ <exclusions>
49
+ <exclusion>
50
+ <groupId>org.jruby</groupId>
51
+ <artifactId>jruby-stdlib</artifactId>
52
+ </exclusion>
53
+ </exclusions>
54
+ </dependency>
55
+ </dependencies>
56
+ <repositories>
57
+ <repository>
58
+ <id>rubygems-releases</id>
59
+ <url>http://rubygems-proxy.torquebox.org/releases</url>
60
+ </repository>
61
+ </repositories>
62
+ <build>
63
+ <extensions>
64
+ <extension>
65
+ <groupId>de.saumya.mojo</groupId>
66
+ <artifactId>gem-extension</artifactId>
67
+ <version>${jruby.plugins.version}</version>
68
+ </extension>
69
+ </extensions>
70
+ <directory>${basedir}/pkg</directory>
71
+ <plugins>
72
+ <plugin>
73
+ <groupId>de.saumya.mojo</groupId>
74
+ <artifactId>gem-maven-plugin</artifactId>
75
+ <version>${jruby.plugins.version}</version>
76
+ <configuration>
77
+ <gemspec>jars_and_poms.gemspec</gemspec>
78
+ </configuration>
79
+ </plugin>
80
+ </plugins>
81
+ </build>
82
+ </project>
@@ -0,0 +1,99 @@
1
+ <project>
2
+ <modelVersion>4.0.0</modelVersion>
3
+ <groupId>rubygems</groupId>
4
+ <artifactId>maven-tools</artifactId>
5
+ <version>123</version>
6
+ <packaging>gem</packaging>
7
+ <name>helpers for maven related tasks</name>
8
+ <url>http://github.com/torquebox/maven-tools</url>
9
+ <description>adds versions conversion from rubygems to maven and vice versa, ruby DSL for POM (Project Object Model from maven), pom generators, etc</description>
10
+ <licenses>
11
+ <license>
12
+ <name>MIT</name>
13
+ <url>http://opensource.org/licenses/MIT</url>
14
+ <comments>MIT license</comments>
15
+ </license>
16
+ </licenses>
17
+ <developers>
18
+ <developer>
19
+ <name>Christian Meier</name>
20
+ <email>m.kristian@web.de</email>
21
+ </developer>
22
+ </developers>
23
+ <scm>
24
+ <connection>https://github.com/torquebox/maven-tools.git</connection>
25
+ <url>http://github.com/torquebox/maven-tools</url>
26
+ </scm>
27
+ <properties>
28
+ <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
29
+ <jruby.plugins.version>1.0.7</jruby.plugins.version>
30
+ </properties>
31
+ <dependencies>
32
+ <dependency>
33
+ <groupId>org.slf4j</groupId>
34
+ <artifactId>slf4j-simple</artifactId>
35
+ <version>1.6.4</version>
36
+ </dependency>
37
+ <dependency>
38
+ <groupId>org.jruby</groupId>
39
+ <artifactId>jruby</artifactId>
40
+ <version>1.7.16</version>
41
+ <type>pom</type>
42
+ </dependency>
43
+ <dependency>
44
+ <groupId>org.jruby</groupId>
45
+ <artifactId>jruby</artifactId>
46
+ <version>1.7.16</version>
47
+ <classifier>noasm</classifier>
48
+ <exclusions>
49
+ <exclusion>
50
+ <groupId>org.jruby</groupId>
51
+ <artifactId>jruby-stdlib</artifactId>
52
+ </exclusion>
53
+ </exclusions>
54
+ </dependency>
55
+ </dependencies>
56
+ <repositories>
57
+ <repository>
58
+ <id>rubygems-releases</id>
59
+ <url>http://rubygems-proxy.torquebox.org/releases</url>
60
+ </repository>
61
+ </repositories>
62
+ <build>
63
+ <extensions>
64
+ <extension>
65
+ <groupId>de.saumya.mojo</groupId>
66
+ <artifactId>gem-extension</artifactId>
67
+ <version>${jruby.plugins.version}</version>
68
+ </extension>
69
+ </extensions>
70
+ <directory>${basedir}/pkg</directory>
71
+ <plugins>
72
+ <plugin>
73
+ <artifactId>maven-dependency-plugin</artifactId>
74
+ <executions>
75
+ <execution>
76
+ <phase>generate-test-resources</phase>
77
+ <goals>
78
+ <goal>copy-dependencies</goal>
79
+ </goals>
80
+ <configuration>
81
+ <outputDirectory>lib</outputDirectory>
82
+ <useRepositoryLayout>true</useRepositoryLayout>
83
+ </configuration>
84
+ </execution>
85
+ </executions>
86
+ </plugin>
87
+ <plugin>
88
+ <groupId>de.saumya.mojo</groupId>
89
+ <artifactId>gem-maven-plugin</artifactId>
90
+ <version>${jruby.plugins.version}</version>
91
+ <configuration>
92
+ <gemspec>jars_and_poms.gemspec</gemspec>
93
+ <includeDependencies>true</includeDependencies>
94
+ <useRepositoryLayout>true</useRepositoryLayout>
95
+ </configuration>
96
+ </plugin>
97
+ </plugins>
98
+ </build>
99
+ </project>