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
Binary file
@@ -0,0 +1,10 @@
1
+ #-*- mode: ruby -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = 'my'
5
+ s.version = '1.0'
6
+ s.author = 'me'
7
+ s.summary = 'summary'
8
+ end
9
+
10
+ # vim: syntax=Ruby
@@ -0,0 +1,423 @@
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>1.0.1</modelVersion>
14
+ <parent>
15
+ <groupId>example</groupId>
16
+ <artifactId>parent</artifactId>
17
+ <version>1.1</version>
18
+ <relativePath>../pom.xml</relativePath>
19
+ </parent>
20
+ <artifactId>project</artifactId>
21
+ <packaging>jar</packaging>
22
+ <name>my name</name>
23
+ <url>example.com</url>
24
+ <description>some description</description>
25
+ <inceptionYear>2020</inceptionYear>
26
+ <organization>
27
+ <name>ngo</name>
28
+ <url>ngo.org</url>
29
+ </organization>
30
+ <licenses>
31
+ <license>
32
+ <name>AGPL</name>
33
+ <url>gnu.org/agpl</url>
34
+ <distribution>online</distribution>
35
+ <comments>should be used more often</comments>
36
+ </license>
37
+ </licenses>
38
+ <developers>
39
+ <developer>
40
+ <id>1</id>
41
+ <name>first</name>
42
+ <url>example.com/first</url>
43
+ <email>first@example.com</email>
44
+ <organization>orga</organization>
45
+ <organizationUrl>example.org</organizationUrl>
46
+ <roles>
47
+ <role>developer</role>
48
+ <role>architect</role>
49
+ </roles>
50
+ <timezone>IST</timezone>
51
+ <properties>
52
+ <gender>male</gender>
53
+ </properties>
54
+ </developer>
55
+ </developers>
56
+ <contributors>
57
+ <contributor>
58
+ <name>first</name>
59
+ <url>example.com/first</url>
60
+ <email>first@example.com</email>
61
+ <organization>orga</organization>
62
+ <organizationUrl>example.org</organizationUrl>
63
+ <roles>
64
+ <role>developer</role>
65
+ <role>architect</role>
66
+ </roles>
67
+ <timezone>IST</timezone>
68
+ <properties>
69
+ <gender>male</gender>
70
+ </properties>
71
+ </contributor>
72
+ </contributors>
73
+ <mailingLists>
74
+ <mailingList>
75
+ <name>development</name>
76
+ <subscribe>subcribe@example.com</subscribe>
77
+ <unsubscribe>unsubcribe@example.com</unsubscribe>
78
+ <post>post@example.com</post>
79
+ <archive>example.com/archive</archive>
80
+ <otherArchives>
81
+ <otherArchive>example.com/archive1</otherArchive>
82
+ <otherArchive>example.com/archive2</otherArchive>
83
+ </otherArchives>
84
+ </mailingList>
85
+ </mailingLists>
86
+ <prerequisites>
87
+ <maven>3.0.5</maven>
88
+ </prerequisites>
89
+ <modules>
90
+ <module>part1</module>
91
+ <module>part2</module>
92
+ </modules>
93
+ <scm>
94
+ <connection>scm:git:git://github.com/torquebox/maven-tools.git</connection>
95
+ <developerConnection>scm:git:ssh://git@github.com/torquebox/maven-tools.git</developerConnection>
96
+ <tag>first</tag>
97
+ <url>http://github.com/torquebox/maven-tools</url>
98
+ </scm>
99
+ <issueManagement>
100
+ <system>jira</system>
101
+ <url>https://issues.sonatype.org/</url>
102
+ </issueManagement>
103
+ <ciManagement>
104
+ <system>travis</system>
105
+ <url>travis-ci.org/jruby/jruby</url>
106
+ <notifiers>
107
+ <notifier>
108
+ <type>email</type>
109
+ <address>mail2@example.com</address>
110
+ </notifier>
111
+ <notifier>
112
+ <type>email</type>
113
+ <sendOnError>true</sendOnError>
114
+ <sendOnFailure>false</sendOnFailure>
115
+ <sendOnSuccess>true</sendOnSuccess>
116
+ <sendOnWarning>false</sendOnWarning>
117
+ <address>mail@example.com</address>
118
+ <configuration>
119
+ <key1>value1</key1>
120
+ <key2>value2</key2>
121
+ </configuration>
122
+ </notifier>
123
+ </notifiers>
124
+ </ciManagement>
125
+ <distributionManagement>
126
+ <repository>
127
+ <releases>
128
+ <enabled>true</enabled>
129
+ <updatePolicy>daily</updatePolicy>
130
+ <checksumPolicy>strict</checksumPolicy>
131
+ </releases>
132
+ <snapshots>
133
+ <enabled>false</enabled>
134
+ <updatePolicy>never</updatePolicy>
135
+ <checksumPolicy>none</checksumPolicy>
136
+ </snapshots>
137
+ <id>first</id>
138
+ <name>First</name>
139
+ <url>http://repo.example.com</url>
140
+ <layout>legacy</layout>
141
+ </repository>
142
+ <snapshotRepository>
143
+ <releases>
144
+ <enabled>false</enabled>
145
+ <updatePolicy>daily</updatePolicy>
146
+ <checksumPolicy>strict</checksumPolicy>
147
+ </releases>
148
+ <snapshots>
149
+ <enabled>true</enabled>
150
+ <updatePolicy>never</updatePolicy>
151
+ <checksumPolicy>none</checksumPolicy>
152
+ </snapshots>
153
+ <id>snapshots</id>
154
+ <name>First Snapshots</name>
155
+ <url>http://snaphots.example.com</url>
156
+ <layout>legacy</layout>
157
+ </snapshotRepository>
158
+ <site>
159
+ <id>first</id>
160
+ <name>dev site</name>
161
+ <url>http://dev.example.com</url>
162
+ </site>
163
+ <downloadUrl>http://dev.example.com/downloads</downloadUrl>
164
+ <status>active</status>
165
+ <relocation>
166
+ <groupId>org.group</groupId>
167
+ <artifactId>artifact</artifactId>
168
+ <version>1.2.3</version>
169
+ <message>follow the maven convention</message>
170
+ </relocation>
171
+ </distributionManagement>
172
+ <properties>
173
+ <key1>value1</key1>
174
+ <key2>value2</key2>
175
+ </properties>
176
+ <dependencyManagement>
177
+ <dependencies>
178
+ <dependency>
179
+ <groupId>com.example</groupId>
180
+ <artifactId>tools</artifactId>
181
+ <version>1.2.3</version>
182
+ <classifier>super</classifier>
183
+ <scope>provided</scope>
184
+ <systemPath>/home/development/tools.jar</systemPath>
185
+ <exclusions>
186
+ <exclusion>
187
+ <groupId>org.example</groupId>
188
+ <artifactId>some</artifactId>
189
+ </exclusion>
190
+ <exclusion>
191
+ <groupId>org.example</groupId>
192
+ <artifactId>something</artifactId>
193
+ </exclusion>
194
+ </exclusions>
195
+ <optional>true</optional>
196
+ </dependency>
197
+ </dependencies>
198
+ </dependencyManagement>
199
+ <dependencies>
200
+ <dependency>
201
+ <groupId>com.example</groupId>
202
+ <artifactId>tools</artifactId>
203
+ <version>2.3</version>
204
+ <type>war</type>
205
+ <classifier>super</classifier>
206
+ <scope>provided</scope>
207
+ <systemPath>/home/development/wartools.jar</systemPath>
208
+ <exclusions>
209
+ <exclusion>
210
+ <groupId>org.example</groupId>
211
+ <artifactId>some</artifactId>
212
+ </exclusion>
213
+ <exclusion>
214
+ <groupId>org.example</groupId>
215
+ <artifactId>something</artifactId>
216
+ </exclusion>
217
+ </exclusions>
218
+ <optional>false</optional>
219
+ </dependency>
220
+ </dependencies>
221
+ <repositories>
222
+ <repository>
223
+ <releases>
224
+ <enabled>true</enabled>
225
+ <updatePolicy>daily</updatePolicy>
226
+ <checksumPolicy>strict</checksumPolicy>
227
+ </releases>
228
+ <snapshots>
229
+ <enabled>false</enabled>
230
+ <updatePolicy>never</updatePolicy>
231
+ <checksumPolicy>none</checksumPolicy>
232
+ </snapshots>
233
+ <id>first</id>
234
+ <name>First</name>
235
+ <url>http://repo.example.com</url>
236
+ <layout>legacy</layout>
237
+ </repository>
238
+ <repository>
239
+ <releases>
240
+ <enabled>false</enabled>
241
+ <updatePolicy>daily</updatePolicy>
242
+ <checksumPolicy>strict</checksumPolicy>
243
+ </releases>
244
+ <snapshots>
245
+ <enabled>true</enabled>
246
+ <updatePolicy>never</updatePolicy>
247
+ <checksumPolicy>none</checksumPolicy>
248
+ </snapshots>
249
+ <id>snapshots</id>
250
+ <name>First Snapshots</name>
251
+ <url>http://snaphots.example.com</url>
252
+ <layout>legacy</layout>
253
+ </repository>
254
+ </repositories>
255
+ <pluginRepositories>
256
+ <pluginRepository>
257
+ <releases>
258
+ <enabled>true</enabled>
259
+ <updatePolicy>daily</updatePolicy>
260
+ <checksumPolicy>strict</checksumPolicy>
261
+ </releases>
262
+ <snapshots>
263
+ <enabled>false</enabled>
264
+ <updatePolicy>never</updatePolicy>
265
+ <checksumPolicy>none</checksumPolicy>
266
+ </snapshots>
267
+ <id>first</id>
268
+ <name>First</name>
269
+ <url>http://pluginrepo.example.com</url>
270
+ <layout>legacy</layout>
271
+ </pluginRepository>
272
+ </pluginRepositories>
273
+ <build>
274
+ <sourceDirectory>src</sourceDirectory>
275
+ <scriptSourceDirectory>script</scriptSourceDirectory>
276
+ <testSourceDirectory>test</testSourceDirectory>
277
+ <outputDirectory>pkg</outputDirectory>
278
+ <testOutputDirectory>pkg/test</testOutputDirectory>
279
+ <extensions>
280
+ <extension>
281
+ <groupId>org.group</groupId>
282
+ <artifactId>gem-extension</artifactId>
283
+ <version>1.2</version>
284
+ </extension>
285
+ </extensions>
286
+ <defaultGoal>install</defaultGoal>
287
+ <resources>
288
+ <resource>
289
+ <targetPath>target</targetPath>
290
+ <filtering>true</filtering>
291
+ <directory>resources</directory>
292
+ <includes>
293
+ <include>**/*</include>
294
+ </includes>
295
+ <excludes>
296
+ <exclude>*~</exclude>
297
+ </excludes>
298
+ </resource>
299
+ </resources>
300
+ <testResources>
301
+ <testResource>
302
+ <targetPath>target/test</targetPath>
303
+ <filtering>false</filtering>
304
+ <directory>testresources</directory>
305
+ <includes>
306
+ <include>**/*</include>
307
+ </includes>
308
+ <excludes>
309
+ <exclude>*~</exclude>
310
+ </excludes>
311
+ </testResource>
312
+ </testResources>
313
+ <pluginManagement>
314
+ <plugins>
315
+ <plugin>
316
+ <groupId>org.mortbay.jetty</groupId>
317
+ <artifactId>jetty-maven-plugin</artifactId>
318
+ <version>8.1</version>
319
+ <configuration>
320
+ <path>/</path>
321
+ <connectors>
322
+ <connector
323
+ implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
324
+ <port>${run.port}</port>
325
+ </connector>
326
+ <connector
327
+ implementation="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
328
+ <port>${run.sslport}</port>
329
+ <keystore>${run.keystore}</keystore>
330
+ <keyPassword>${run.keystore.pass}</keyPassword>
331
+ <trustPassword>${run.truststore.pass}</trustPassword>
332
+ </connector>
333
+ </connectors>
334
+ <httpConnector>
335
+ <port>${run.port}</port>
336
+ </httpConnector>
337
+ </configuration>
338
+ </plugin>
339
+ </plugins>
340
+ </pluginManagement>
341
+ <plugins>
342
+ <plugin>
343
+ <artifactId>maven-jar-plugin</artifactId>
344
+ <version>1.0</version>
345
+ <inherited>true</inherited>
346
+ <configuration>
347
+ <finalName>testing</finalName>
348
+ </configuration>
349
+ </plugin>
350
+ <plugin>
351
+ <groupId>de.saumya.mojo</groupId>
352
+ <artifactId>gem-maven-plugin</artifactId>
353
+ <version>1.0.0</version>
354
+ <dependencies>
355
+ <dependency>
356
+ <groupId>rubygems</groupId>
357
+ <artifactId>bundler</artifactId>
358
+ <version>1.6.2</version>
359
+ <type>gem</type>
360
+ </dependency>
361
+ </dependencies>
362
+ </plugin>
363
+ <plugin>
364
+ <artifactId>maven-antrun-plugin</artifactId>
365
+ <executions>
366
+ <execution>
367
+ <id>copy</id>
368
+ <phase>package</phase>
369
+ <goals>
370
+ <goal>run</goal>
371
+ </goals>
372
+ <configuration>
373
+ <tasks>
374
+ <exec
375
+ executable="/bin/sh"
376
+ osfamily="unix">
377
+ <arg
378
+ line="-c 'cp &quot;${jruby.basedir}/bin/jruby.bash&quot; &quot;${jruby.basedir}/bin/jruby&quot;'">
379
+ </arg>
380
+ </exec>
381
+ <chmod
382
+ file="${jruby.basedir}/bin/jruby"
383
+ perm="755">
384
+ </chmod>
385
+ </tasks>
386
+ </configuration>
387
+ </execution>
388
+ </executions>
389
+ <dependencies>
390
+ <dependency>
391
+ <groupId>org.super.duper</groupId>
392
+ <artifactId>executor</artifactId>
393
+ <version>1.0.0</version>
394
+ </dependency>
395
+ </dependencies>
396
+ </plugin>
397
+ <plugin>
398
+ <groupId>org.codehaus.mojo</groupId>
399
+ <artifactId>exec-maven-plugin</artifactId>
400
+ <executions>
401
+ <execution>
402
+ <id>invoker-generator</id>
403
+ <goals>
404
+ <goal>exec</goal>
405
+ </goals>
406
+ <configuration>
407
+ <arguments>
408
+ <argument>-Djruby.bytecode.version=${base.java.version}</argument>
409
+ <argument>-classpath</argument>
410
+ <classpath/>
411
+ <argument>org.jruby.anno.InvokerGenerator</argument>
412
+ <argument>${anno.sources}/annotated_classes.txt</argument>
413
+ <argument>${project.build.outputDirectory}</argument>
414
+ </arguments>
415
+ <executable>java</executable>
416
+ <classpathScope>compile</classpathScope>
417
+ </configuration>
418
+ </execution>
419
+ </executions>
420
+ </plugin>
421
+ </plugins>
422
+ </build>
423
+ </project>
@@ -0,0 +1,3 @@
1
+ jar 'junit:junit', '4.11'
2
+
3
+ local './myfirst.jar'
@@ -0,0 +1,39 @@
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>dummy</groupId>
15
+ <artifactId>pom_from_jarfile</artifactId>
16
+ <version>0.0.0</version>
17
+ <name>example from jarfile</name>
18
+ <dependencies>
19
+ <dependency>
20
+ <groupId>org.jruby</groupId>
21
+ <artifactId>jruby</artifactId>
22
+ <version>1.7.12</version>
23
+ <type>pom</type>
24
+ <scope>provided</scope>
25
+ </dependency>
26
+ <dependency>
27
+ <groupId>junit</groupId>
28
+ <artifactId>junit</artifactId>
29
+ <version>4.11</version>
30
+ </dependency>
31
+ <dependency>
32
+ <groupId>ruby.maven-tools.jar</groupId>
33
+ <artifactId>myfirst</artifactId>
34
+ <version>0</version>
35
+ <scope>system</scope>
36
+ <systemPath>myfirst.jar</systemPath>
37
+ </dependency>
38
+ </dependencies>
39
+ </project>