Skip to content

Commit 69acdc5

Browse files
committed
support cleaning up fully (target contains JRuby generated invoker classes)
1 parent 17ae2fd commit 69acdc5

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

Mavenfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ plugin( :compiler, '3.1',
7676
# NOTE: maybe '-J-Xbootclasspath/p:${unsafe.jar}' ... as well ?!
7777
end
7878

79+
plugin :clean, :filesets => [
80+
{ :directory => 'lib', :includes => [ 'jopenssl.jar' ] },
81+
{ :directory => 'lib/org' },
82+
{ :directory => 'target', :includes => [ '*' ] },
83+
]
84+
7985
# NOTE: unfortunately we can not use 1.6.8 to generate invokers ...
8086
# although we'd like to compile against 1.6 to make sure all is well
8187
jar 'org.jruby:jruby-core', '1.7.17', :scope => :provided # 1.6.8

pom.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,28 @@
260260
</compilerArgs>
261261
</configuration>
262262
</plugin>
263+
<plugin>
264+
<artifactId>maven-clean-plugin</artifactId>
265+
<configuration>
266+
<filesets>
267+
<fileset>
268+
<directory>lib</directory>
269+
<includes>
270+
<include>jopenssl.jar</include>
271+
</includes>
272+
</fileset>
273+
<fileset>
274+
<directory>lib/org</directory>
275+
</fileset>
276+
<fileset>
277+
<directory>target</directory>
278+
<includes>
279+
<include>*</include>
280+
</includes>
281+
</fileset>
282+
</filesets>
283+
</configuration>
284+
</plugin>
263285
<plugin>
264286
<artifactId>maven-dependency-plugin</artifactId>
265287
<executions>

0 commit comments

Comments
 (0)