Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit d25fedc

Browse files
committed
fix build fail
1 parent 66c9ccc commit d25fedc

1 file changed

Lines changed: 27 additions & 20 deletions

File tree

pom.xml

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
7272
</repository>
7373
</distributionManagement>
74+
7475
<dependencies>
7576
<dependency>
7677
<groupId>org.mongodb</groupId>
@@ -98,6 +99,32 @@
9899
<type>jar</type>
99100
</dependency>
100101
</dependencies>
102+
103+
<build>
104+
<plugins>
105+
<plugin>
106+
<groupId>org.apache.maven.plugins</groupId>
107+
<artifactId>maven-jar-plugin</artifactId>
108+
<version>${maven.jar.plugin.version}</version>
109+
<executions>
110+
<execution>
111+
<goals>
112+
<goal>test-jar</goal>
113+
</goals>
114+
</execution>
115+
</executions>
116+
</plugin>
117+
<plugin>
118+
<groupId>org.apache.maven.plugins</groupId>
119+
<artifactId>maven-surefire-plugin</artifactId>
120+
<version>2.20</version>
121+
<configuration>
122+
<basedir>${project.basedir}</basedir>
123+
</configuration>
124+
</plugin>
125+
</plugins>
126+
</build>
127+
101128
<profiles>
102129
<profile>
103130
<id>release</id>
@@ -114,18 +141,6 @@
114141
<artifactId>maven-compiler-plugin</artifactId>
115142
<version>${maven.compilier.plugin.version}</version>
116143
</plugin>
117-
<plugin>
118-
<groupId>org.apache.maven.plugins</groupId>
119-
<artifactId>maven-jar-plugin</artifactId>
120-
<version>${maven.jar.plugin.version}</version>
121-
<executions>
122-
<execution>
123-
<goals>
124-
<goal>test-jar</goal>
125-
</goals>
126-
</execution>
127-
</executions>
128-
</plugin>
129144
<plugin>
130145
<groupId>org.sonatype.plugins</groupId>
131146
<artifactId>nexus-staging-maven-plugin</artifactId>
@@ -163,14 +178,6 @@
163178
</execution>
164179
</executions>
165180
</plugin>
166-
<plugin>
167-
<groupId>org.apache.maven.plugins</groupId>
168-
<artifactId>maven-surefire-plugin</artifactId>
169-
<version>2.20</version>
170-
<configuration>
171-
<basedir>${project.basedir}</basedir>
172-
</configuration>
173-
</plugin>
174181
<plugin>
175182
<groupId>org.apache.maven.plugins</groupId>
176183
<artifactId>maven-gpg-plugin</artifactId>

0 commit comments

Comments
 (0)