Skip to content

Commit 42e82be

Browse files
committed
test: Fix Maven warnings when running tests
1 parent 2c98b54 commit 42e82be

2 files changed

Lines changed: 69 additions & 17 deletions

File tree

Mavenfile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,28 @@ repository( :url => 'https://central.sonatype.com/repository/maven-snapshots/',
1616
snapshots 'true'
1717
end
1818

19-
properties( 'jruby.plugins.version' => '3.0.6',
20-
'jruby.version' => '9.4.13.0',
21-
'jetty.version' => '8.1.16.v20140903',
22-
'bundler.version' => '2.6.3')
19+
properties(
20+
'project.build.sourceEncoding' => 'UTF-8',
21+
'jruby.plugins.version' => '3.0.6',
22+
'jetty.version' => '9.4.58.v20250814',
23+
'bundler.version' => '2.6.3',
24+
)
2325

2426
# dependencies needed for compilation
2527
scope :provided do
2628
jar 'org.jruby:jruby', '${jruby.version}'
2729
jar 'org.eclipse.jetty:jetty-webapp', '${jetty.version}'
2830
end
2931

30-
plugin :compiler, '3.1', :source => '8', :target => '8'
32+
plugin :compiler, '3.14.1', :release => '8'
33+
plugin :resources, '3.3.1'
34+
plugin :jar, '2.6'
35+
plugin :install, '3.1.4'
3136

3237
gem 'bundler', '${bundler.version}'
3338
gem 'jruby-jars', '${jruby.version}'
3439

35-
plugin :invoker, '1.8' do
40+
plugin :invoker, '3.9.1' do
3641
execute_goals( :install, :run,
3742
:id => 'integration-test',
3843
:properties => { 'warbler.version' => '${project.version}',

integration/pom.xml

Lines changed: 58 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<dependency>
5050
<groupId>junit</groupId>
5151
<artifactId>junit</artifactId>
52-
<version>4.13.1</version>
52+
<version>4.13.2</version>
5353
<scope>test</scope>
5454
</dependency>
5555
<dependency>
@@ -75,10 +75,57 @@
7575
</resource>
7676
</resources>
7777
<plugins>
78+
<plugin>
79+
<groupId>org.apache.maven.plugins</groupId>
80+
<artifactId>maven-clean-plugin</artifactId>
81+
<version>3.5.0</version>
82+
</plugin>
83+
<plugin>
84+
<groupId>org.apache.maven.plugins</groupId>
85+
<artifactId>maven-enforcer-plugin</artifactId>
86+
<version>3.6.2</version>
87+
<executions>
88+
<execution>
89+
<id>enforce-maven</id>
90+
<goals>
91+
<goal>enforce</goal>
92+
</goals>
93+
<configuration>
94+
<rules>
95+
<requireMavenVersion>
96+
<version>3.6.3</version>
97+
</requireMavenVersion>
98+
</rules>
99+
</configuration>
100+
</execution>
101+
</executions>
102+
</plugin>
103+
<plugin>
104+
<groupId>org.apache.maven.plugins</groupId>
105+
<artifactId>maven-compiler-plugin</artifactId>
106+
<version>3.14.1</version>
107+
<configuration>
108+
<release>8</release>
109+
</configuration>
110+
</plugin>
111+
<plugin>
112+
<groupId>org.apache.maven.plugins</groupId>
113+
<artifactId>maven-jar-plugin</artifactId>
114+
<version>3.4.2</version>
115+
<executions>
116+
<execution>
117+
<id>default-jar</id>
118+
<phase>none</phase>
119+
</execution>
120+
</executions>
121+
</plugin>
78122
<plugin>
79123
<groupId>org.apache.maven.plugins</groupId>
80124
<artifactId>maven-failsafe-plugin</artifactId>
81-
<version>2.9</version>
125+
<version>3.5.4</version>
126+
<configuration>
127+
<failIfNoTests>true</failIfNoTests>
128+
</configuration>
82129
<executions>
83130
<execution>
84131
<goals>
@@ -101,14 +148,6 @@
101148
</plugins>
102149
<pluginManagement>
103150
<plugins>
104-
<plugin>
105-
<groupId>org.apache.maven.plugins</groupId>
106-
<artifactId>maven-compiler-plugin</artifactId>
107-
<configuration>
108-
<source>8</source>
109-
<target>8</target>
110-
</configuration>
111-
</plugin>
112151
<plugin>
113152
<groupId>org.mortbay.jetty</groupId>
114153
<artifactId>jetty-maven-plugin</artifactId>
@@ -151,7 +190,7 @@
151190
<plugin>
152191
<groupId>org.codehaus.mojo</groupId>
153192
<artifactId>exec-maven-plugin</artifactId>
154-
<version>1.2.1</version>
193+
<version>3.6.1</version>
155194
</plugin>
156195
<plugin>
157196
<groupId>org.jruby.maven</groupId>
@@ -178,6 +217,14 @@
178217
</execution>
179218
</executions>
180219
</plugin>
220+
<plugin>
221+
<groupId>org.codehaus.mojo</groupId>
222+
<artifactId>versions-maven-plugin</artifactId>
223+
<version>2.19.1</version>
224+
<configuration>
225+
<ignoredVersions>.*-(alpha|beta|M)[-0-9]+</ignoredVersions>
226+
</configuration>
227+
</plugin>
181228
</plugins>
182229
</pluginManagement>
183230
</build>

0 commit comments

Comments
 (0)