Skip to content

Commit d8cf1bb

Browse files
authored
Merge pull request #116 from networknt/isuse115
fixes #115 update pom.xml to resolve the build issue with the latest …
2 parents 1bbaf9b + aaff995 commit d8cf1bb

File tree

1 file changed

+66
-6
lines changed

1 file changed

+66
-6
lines changed

pom.xml

Lines changed: 66 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,13 @@
9191
<version.jose4j>0.9.6</version.jose4j>
9292
<version.logback>1.5.6</version.logback>
9393
<version.maven-shade>3.2.4</version.maven-shade>
94+
<version.maven-javadoc>3.4.1</version.maven-javadoc>
9495
<version.maven-jar>3.3.0</version.maven-jar>
9596
<version.maven-compiler>3.8.1</version.maven-compiler>
97+
<version.maven-deploy>2.8.2</version.maven-deploy>
98+
<version.exec-maven>1.6.0</version.exec-maven>
99+
<version.maven-surefire>2.22.2</version.maven-surefire>
100+
<version.maven-source>3.1.0</version.maven-source>
96101
<version.junit-jupiter>5.9.1</version.junit-jupiter>
97102
</properties>
98103

@@ -355,11 +360,6 @@
355360

356361
<build>
357362
<plugins>
358-
<plugin>
359-
<groupId>org.apache.maven.plugins</groupId>
360-
<artifactId>maven-surefire-plugin</artifactId>
361-
<version>3.2.5</version>
362-
</plugin>
363363
<plugin>
364364
<groupId>org.apache.maven.plugins</groupId>
365365
<artifactId>maven-compiler-plugin</artifactId>
@@ -437,6 +437,67 @@
437437
</execution>
438438
</executions>
439439
</plugin>
440+
<plugin>
441+
<groupId>org.apache.maven.plugins</groupId>
442+
<artifactId>maven-source-plugin</artifactId>
443+
<version>${version.maven-source}</version>
444+
<executions>
445+
<execution>
446+
<id>attach-sources</id>
447+
<goals>
448+
<goal>jar</goal>
449+
</goals>
450+
</execution>
451+
</executions>
452+
</plugin>
453+
<plugin>
454+
<groupId>org.apache.maven.plugins</groupId>
455+
<artifactId>maven-javadoc-plugin</artifactId>
456+
<version>${version.maven-javadoc}</version>
457+
<executions>
458+
<execution>
459+
<id>attach-javadocs</id>
460+
<goals>
461+
<goal>jar</goal>
462+
</goals>
463+
</execution>
464+
</executions>
465+
</plugin>
466+
<plugin>
467+
<groupId>org.apache.maven.plugins</groupId>
468+
<artifactId>maven-surefire-plugin</artifactId>
469+
<version>${version.maven-surefire}</version>
470+
<dependencies>
471+
<dependency>
472+
<groupId>org.junit.platform</groupId>
473+
<artifactId>junit-platform-surefire-provider</artifactId>
474+
<version>1.2.0</version>
475+
<scope>compile</scope>
476+
</dependency>
477+
<dependency>
478+
<groupId>org.junit.jupiter</groupId>
479+
<artifactId>junit-jupiter-api</artifactId>
480+
<version>${version.junit-jupiter}</version>
481+
</dependency>
482+
</dependencies>
483+
</plugin>
484+
<plugin>
485+
<groupId>org.codehaus.mojo</groupId>
486+
<artifactId>exec-maven-plugin</artifactId>
487+
<version>${version.exec-maven}</version>
488+
<configuration>
489+
<executable>java</executable>
490+
<arguments>
491+
<argument>-jar</argument>
492+
<argument>target/${project.build.finalName}.jar</argument>
493+
</arguments>
494+
</configuration>
495+
</plugin>
496+
<plugin>
497+
<groupId>org.apache.maven.plugins</groupId>
498+
<artifactId>maven-deploy-plugin</artifactId>
499+
<version>${version.maven-deploy}</version>
500+
</plugin>
440501
</plugins>
441502
</build>
442503
<profiles>
@@ -473,6 +534,5 @@
473534
</plugins>
474535
</build>
475536
</profile>
476-
477537
</profiles>
478538
</project>

0 commit comments

Comments
 (0)