Skip to content

Commit 83d44e4

Browse files
mkristiankares
authored andcommitted
added missing jar and clean plugin [skip ci]
1 parent 61d37cc commit 83d44e4

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

Mavenfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ end
2020

2121
plugin( :compiler, :target => '1.6', :source => '1.6', :debug => true, :verbose => false, :showWarnings => true, :showDeprecation => true )
2222

23+
# TODO need upstream fix
24+
plugin( :jar,
25+
:outputDirectory => 'lib',
26+
:finalName => 'jopenssl.jar' ) do
27+
execute_goals :jar, :phase => 'prepare-package'
28+
end
29+
30+
plugin( :clean, VERSIONS[ :clean_plugin ],
31+
:filesets => [ { :directory => 'lib',
32+
:includes => [ "jopenssl.jar" ] } ] )
33+
2334
jruby_plugin! :gem do
2435
# avoid adding this not yet built openssl to the load_path
2536
# when installing dependent gems

pom.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,35 @@
131131
<showDeprecation>true</showDeprecation>
132132
</configuration>
133133
</plugin>
134+
<plugin>
135+
<artifactId>maven-jar-plugin</artifactId>
136+
<executions>
137+
<execution>
138+
<phase>prepare-package</phase>
139+
<goals>
140+
<goal>jar</goal>
141+
</goals>
142+
</execution>
143+
</executions>
144+
<configuration>
145+
<outputDirectory>lib</outputDirectory>
146+
<finalName>jopenssl.jar</finalName>
147+
</configuration>
148+
</plugin>
149+
<plugin>
150+
<artifactId>maven-clean-plugin</artifactId>
151+
<version>2.4</version>
152+
<configuration>
153+
<filesets>
154+
<fileset>
155+
<directory>lib</directory>
156+
<includes>
157+
<include>jopenssl.jar</include>
158+
</includes>
159+
</fileset>
160+
</filesets>
161+
</configuration>
162+
</plugin>
134163
</plugins>
135164
</build>
136165
</project>

0 commit comments

Comments
 (0)