ruby-maven 3.0.3.0.29.0.pre → 3.0.4.0.29.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. data/LICENSE.txt +202 -202
  2. data/NOTICE.txt +23 -23
  3. data/README.txt +77 -77
  4. data/bin/m2.conf +2 -2
  5. data/bin/rmvn +0 -1
  6. data/conf/settings.xml +257 -257
  7. data/lib/aether-api-1.13.1.jar +0 -0
  8. data/lib/aether-connector-wagon-1.13.1.jar +0 -0
  9. data/lib/aether-impl-1.13.1.jar +0 -0
  10. data/lib/aether-spi-1.13.1.jar +0 -0
  11. data/lib/aether-util-1.13.1.jar +0 -0
  12. data/lib/ext/README.txt +2 -2
  13. data/lib/maven-aether-provider-3.0.4.jar +0 -0
  14. data/lib/maven-artifact-3.0.4.jar +0 -0
  15. data/lib/{maven-compat-3.0.3.jar → maven-compat-3.0.4.jar} +0 -0
  16. data/lib/{maven-core-3.0.3.jar → maven-core-3.0.4.jar} +0 -0
  17. data/lib/maven-embedder-3.0.4.jar +0 -0
  18. data/lib/maven-model-3.0.4.jar +0 -0
  19. data/lib/{maven-model-builder-3.0.3.jar → maven-model-builder-3.0.4.jar} +0 -0
  20. data/lib/{maven-plugin-api-3.0.3.jar → maven-plugin-api-3.0.4.jar} +0 -0
  21. data/lib/{maven-repository-metadata-3.0.3.jar → maven-repository-metadata-3.0.4.jar} +0 -0
  22. data/lib/{maven-settings-3.0.3.jar → maven-settings-3.0.4.jar} +0 -0
  23. data/lib/{maven-settings-builder-3.0.3.jar → maven-settings-builder-3.0.4.jar} +0 -0
  24. data/lib/plexus-cipher-1.7.jar +0 -0
  25. data/lib/ruby/ruby_maven.rb +25 -10
  26. data/lib/sisu-guava-0.9.9.jar +0 -0
  27. data/lib/sisu-guice-3.1.0-no_aop.jar +0 -0
  28. data/lib/sisu-inject-bean-2.3.0.jar +0 -0
  29. data/lib/sisu-inject-plexus-2.3.0.jar +0 -0
  30. data/lib/wagon-file-2.2.jar +0 -0
  31. data/lib/wagon-http-2.2-shaded.jar +0 -0
  32. data/lib/wagon-provider-api-2.2.jar +0 -0
  33. metadata +40 -46
  34. data/bin/gwt +0 -59
  35. data/bin/jetty-run +0 -26
  36. data/bin/tomcat-run +0 -26
  37. data/lib/aether-api-1.11.jar +0 -0
  38. data/lib/aether-connector-wagon-1.11.jar +0 -0
  39. data/lib/aether-impl-1.11.jar +0 -0
  40. data/lib/aether-spi-1.11.jar +0 -0
  41. data/lib/aether-util-1.11.jar +0 -0
  42. data/lib/maven-aether-provider-3.0.3.jar +0 -0
  43. data/lib/maven-artifact-3.0.3.jar +0 -0
  44. data/lib/maven-embedder-3.0.3.jar +0 -0
  45. data/lib/maven-model-3.0.3.jar +0 -0
  46. data/lib/nekohtml-1.9.6.2.jar +0 -0
  47. data/lib/plexus-cipher-1.4.jar +0 -0
  48. data/lib/ruby-maven-3.0.3.0.29.0.pre.jar +0 -0
  49. data/lib/ruby/maven/model/dependencies.rb +0 -281
  50. data/lib/ruby/maven/model/model.rb +0 -490
  51. data/lib/ruby/maven/model/model_utils.rb +0 -322
  52. data/lib/ruby/maven/tools/execute_in_phase.rb +0 -9
  53. data/lib/ruby/maven/tools/gem_project.rb +0 -400
  54. data/lib/ruby/maven/tools/gemfile_lock.rb +0 -67
  55. data/lib/ruby/maven/tools/pom_generator.rb +0 -63
  56. data/lib/ruby/maven/tools/rails_project.rb +0 -164
  57. data/lib/ruby/maven/tools/versions.rb +0 -12
  58. data/lib/sisu-guice-2.9.4-no_aop.jar +0 -0
  59. data/lib/sisu-inject-bean-2.1.1.jar +0 -0
  60. data/lib/sisu-inject-plexus-2.1.1.jar +0 -0
  61. data/lib/wagon-file-1.0-beta-7.jar +0 -0
  62. data/lib/wagon-http-lightweight-1.0-beta-7.jar +0 -0
  63. data/lib/wagon-http-shared-1.0-beta-7.jar +0 -0
  64. data/lib/wagon-provider-api-1.0-beta-7.jar +0 -0
  65. data/lib/xercesMinimal-1.9.6.2.jar +0 -0
@@ -1,67 +0,0 @@
1
- module Maven
2
- module Tools
3
- class GemfileLock < Hash
4
-
5
- class Dependency
6
- attr_accessor :name, :version, :dependencies
7
- def initialize(line, deps = {})
8
- @name = line.sub(/\ .*/,'')
9
- @version = line.sub(/.*\(/, '').sub(/\).*/, '').sub(/-java$/, '')
10
- @dependencies = deps
11
- end
12
-
13
- def add(line)
14
- dependencies[line.sub(/\ .*/,'')] = line.sub(/.*\(/, '').sub(/\).*/, '')
15
- end
16
- end
17
-
18
- def initialize(file)
19
- current = nil
20
- f = file.is_a?(File) ? file.path: file
21
- if File.exists? f
22
- File.readlines(f).each do |line|
23
- if line =~ /^ [^ ]/
24
- line.strip!
25
- current = Dependency.new(line)
26
- self[current.name] = current
27
- elsif line =~ /^ [^ ]/
28
- line.strip!
29
- current.add(line) if current
30
- end
31
- end
32
- end
33
- end
34
-
35
- def recurse(result, dep)
36
- result[dep] = self[dep].version if self[dep] && !result.key?(dep)
37
- if d = self[dep]
38
- d.dependencies.each do |name, version|
39
- unless result.key? name
40
- result[name] = self[name].nil?? version : self[name].version
41
- recurse(result, name)
42
- end
43
- end
44
- end
45
- end
46
-
47
- def dependency_hull(deps = [])
48
- deps = deps.is_a?(Array) ? deps : [deps]
49
- result = {}
50
- deps.each do |dep|
51
- recurse(result, dep)
52
- end
53
- result
54
- end
55
-
56
- def hull
57
- dependency_hull(keys)
58
- end
59
- end
60
- end
61
- end
62
-
63
- if $0 == __FILE__
64
- lockfile = Maven::Tools::GemfileLock.new(File.new(ARGV[0] || 'Gemfile.lock'))
65
- p lockfile
66
- p lockfile.dependency_hull("rails")
67
- end
@@ -1,63 +0,0 @@
1
- require File.join(File.dirname(__FILE__), 'rails_project.rb')
2
- module Maven
3
- module Tools
4
- class PomGenerator
5
- def read_rails(filename, plugin_version = nil, jruby_version = nil)
6
- proj = Maven::Tools::RailsProject.new
7
- proj.load(filename.to_s)
8
- proj.load(File.join(File.dirname(filename.to_s), 'Mavenfile'))
9
- proj.add_defaults(versions(plugin_version, jruby_version))
10
- proj.dump_loaded_file_list
11
- proj.to_xml
12
- end
13
-
14
- # the dummy allows to have all three methods the same argument list
15
- def read_gemfile(filename, plugin_version = nil, dummy = nil)
16
- dir = File.dirname(filename)
17
- proj =
18
- if File.exists? File.join( dir, 'config', 'application.rb' )
19
- Maven::Tools::RailsProject.new
20
- else
21
- Maven::Tools::GemProject.new
22
- end
23
- proj.load(filename.to_s)
24
- proj.load(File.join(File.dirname(filename.to_s), 'Mavenfile'))
25
- proj.add_defaults(versions(plugin_version, nil))
26
- proj.dump_loaded_file_list
27
- proj.to_xml
28
- end
29
-
30
- # the dummy allows to have all three methods the same argument list
31
- def read_gemspec(filename, plugin_version = nil, dummy = nil)
32
- proj = Maven::Tools::GemProject.new
33
- proj.load_gemspec(filename.to_s)
34
- proj.load(File.join(File.dirname(filename.to_s), 'Mavenfile'))
35
- proj.add_defaults(versions(plugin_version, nil))
36
- proj.dump_loaded_file_list
37
- proj.to_xml
38
- end
39
-
40
- private
41
-
42
- def versions(plugin_version, jruby_version)
43
- result = {}
44
- result[:jruby_plugins] = plugin_version if plugin_version
45
- result[:jruby_version] = jruby_version if jruby_version
46
- result
47
- end
48
- end
49
- end
50
- end
51
-
52
- generator = Maven::Tools::PomGenerator.new
53
-
54
- case ARGV.size
55
- when 2
56
- puts generator.send("read_#{ARGV[0]}".to_sym, ARGV[1])
57
- when 3
58
- puts generator.send("read_#{ARGV[0]}".to_sym, ARGV[1], ARGV[2])
59
- when 4
60
- puts generator.send("read_#{ARGV[0]}".to_sym, ARGV[1], ARGV[2], ARGV[3])
61
- else
62
- generator
63
- end
@@ -1,164 +0,0 @@
1
- require File.join(File.dirname(__FILE__), 'gem_project.rb')
2
- module Maven
3
- module Tools
4
- class RailsProject < GemProject
5
- tags :dummy
6
-
7
- def initialize(name = dir_name, &block)
8
- super(name, &block)
9
- group_id "rails"
10
- packaging "war"
11
- end
12
-
13
- def add_defaults(args = {})
14
- self.name = "#{dir_name} - rails application" unless name
15
-
16
- # setup bundler plugin
17
- plugin(:bundler)
18
-
19
- s_args = args.dup
20
- s_args.delete(:jruby_plugins)
21
- super(s_args)
22
-
23
- versions = VERSIONS.merge(args)
24
-
25
- rails_gem = dependencies.detect { |d| d.type.to_sym == :gem && d.artifact_id.to_s =~ /^rail.*s$/ } # allow rails or railties
26
-
27
- if rails_gem && rails_gem.version =~ /^3.1./
28
- versions[:jruby_rack] = '1.1.0.dev'
29
- end
30
-
31
- if !jar?("org.jruby:jruby-complete") && !jar?("org.jruby:jruby-core") && versions[:jruby_version]
32
- minor = versions[:jruby_version].sub(/[0-9]*\./, '').sub(/\..*/, '')
33
-
34
- #TODO once jruby-core pom is working !!!
35
- if minor.to_i > 55 #TODO fix minor minimum version
36
- jar("org.jruby:jruby-core", versions[:jruby_version])
37
- jar("org.jruby:jruby-stdlib", versions[:jruby_version])
38
- # override deps which works
39
- jar("jline:jline", '0.9.94') if versions[:jruby_version] =~ /1.6.[1-2]/
40
- jar("org.jruby.extras:jffi", '1.0.8', 'native') if versions[:jruby_version] =~ /1.6.[0-2]/
41
- jar("org.jruby.extras:jaffl", '0.5.10') if versions[:jruby_version] =~ /1.6.[0-2]/
42
- else
43
- jar("org.jruby:jruby-complete", versions[:jruby_version])
44
- end
45
- end
46
-
47
- jar("org.jruby.rack:jruby-rack", versions[:jruby_rack]) unless jar?("org.jruby.rack:jruby-rack")
48
-
49
- self.properties = {
50
- "jetty.version" => versions[:jetty_plugin],
51
- "rails.env" => "development",
52
- "gem.includeRubygemsInTestResources" => false
53
- }.merge(self.properties)
54
-
55
- plugin(:rails3) do |rails|
56
- rails.version = "${jruby.plugins.version}" unless rails.version
57
- rails.in_phase(:validate).execute_goal(:initialize)#.goals << "initialize"
58
- end
59
-
60
- plugin(:war, versions[:war_plugin]) unless plugin?(:war)
61
- plugin(:war).with({
62
- :webResources => Maven::Model::NamedArray.new(:resource) do |l|
63
- l << { :directory => "public" }
64
- l << {
65
- :directory => ".",
66
- :targetPath => "WEB-INF",
67
- :includes => ['app/**', 'config/**', 'lib/**', 'vendor/**', 'Gemfile']
68
- }
69
- l << {
70
- :directory => '${gem.path}',
71
- :targetPath => 'WEB-INF/gems',
72
- :includes => ['gems/**', 'specifications/**']
73
- }
74
- l << {
75
- :directory => '${gem.path}-bundler-maven-plugin',
76
- :targetPath => 'WEB-INF/gems',
77
- :includes => ['specifications/**']
78
- }
79
- end
80
- })
81
-
82
- profile(:assets).activation.by_default if profiles.key?(:assets)
83
- profile(:development).activation.by_default
84
- profile(:test).activation.property("rails.env", "test")
85
- profile(:production) do |prod|
86
- prod.activation.property("rails.env", "production")
87
- prod.properties = {
88
- "gem.home" => "${project.build.directory}/rubygems-production",
89
- "gem.path" => "${project.build.directory}/rubygems-production"
90
- }.merge(prod.properties)
91
- end
92
-
93
- profile(:war).plugin("org.mortbay.jetty:jetty-maven-plugin",
94
- "${jetty.version}")
95
-
96
- profile(:run) do |run|
97
- overrideDescriptor = '${project.build.directory}/jetty/override-${rails.env}-web.xml'
98
- run.activation.by_default
99
- run.plugin("org.mortbay.jetty:jetty-maven-plugin",
100
- "${jetty.version}").with({
101
- :webAppConfig => {
102
- :overrideDescriptor => overrideDescriptor
103
- },
104
- :connectors => <<-XML
105
-
106
- <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
107
- <port>8080</port>
108
- </connector>
109
- <connector implementation="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
110
- <port>8443</port>
111
- <keystore>${project.basedir}/src/test/resources/server.keystore</keystore>
112
- <keyPassword>123456</keyPassword>
113
- <password>123456</password>
114
- </connector>
115
- XML
116
- })
117
- end
118
- profile(:executable) do |exec|
119
- exec.plugin_repository('kos').url = 'http://opensource.kantega.no/nexus/content/groups/public/'
120
- exec.plugin('org.simplericity.jettyconsole:jetty-console-maven-plugin', '1.42').execution do |jetty|
121
- jetty.execute_goal(:createconsole)
122
- jetty.configuration.comment <<-TEXT
123
- see http://simplericity.com/2009/11/10/1257880778509.html for more info
124
- -->
125
- <!--
126
- <backgroundImage>${basedir}/src/main/jettyconsole/puffin.jpg</backgroundImage>
127
- <additionalDependencies>
128
- <additionalDependency>
129
- <artifactId>jetty-console-winsrv-plugin</artifactId>
130
- </additionalDependency>
131
- <additionalDependency>
132
- <artifactId>jetty-console-requestlog-plugin</artifactId>
133
- </additionalDependency>
134
- <additionalDependency>
135
- <artifactId>jetty-console-log4j-plugin</artifactId>
136
- </additionalDependency>
137
- <additionalDependency>
138
- <artifactId>jetty-console-jettyxml-plugin</artifactId>
139
- </additionalDependency>
140
- <additionalDependency>
141
- <artifactId>jetty-console-ajp-plugin</artifactId>
142
- </additionalDependency>
143
- <additionalDependency>
144
- <artifactId>jetty-console-gzip-plugin</artifactId>
145
- </additionalDependency>
146
- <additionalDependency>
147
- <artifactId>jetty-console-startstop-plugin</artifactId>
148
- </additionalDependency>
149
- </additionalDependencies>
150
- TEXT
151
- end
152
- end
153
- end
154
- end
155
- end
156
- end
157
-
158
- if $0 == __FILE__
159
- proj = Maven::Tools::RailsProject.new
160
- proj.load(ARGV[0] || 'Gemfile')
161
- proj.load(ARGV[1] || 'Mavenfile')
162
- proj.add_defaults
163
- puts proj.to_xml
164
- end
@@ -1,12 +0,0 @@
1
- module Maven
2
- module Tools
3
- VERSIONS = {
4
- :jetty_plugin => "7.5.1.v20110908",
5
- :jruby_rack => "1.0.10",
6
- :war_plugin => "2.1.1",
7
- :jar_plugin => "2.3.1",
8
- :jruby_plugins => "0.29.0-SNAPSHOT",
9
- :jruby_version => defined?(JRUBY_VERSION) ? JRUBY_VERSION : '1.6.7'
10
- }.freeze
11
- end
12
- end
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file