Replace surefire dependency with a plugin
Update `maven-javadoc-plugin`
<artifactId>commons-text</artifactId>
<version>1.8</version>
</dependency>
-
- <dependency>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>3.0.0-M5</version>
- <type>maven-plugin</type>
- </dependency>
</dependencies>
<build>
<plugins>
- <!--- Creates a JAR of the source files in the target directory during build. -->
+ <!-- Runs tests during build. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <version>3.0.1</version>
- <executions>
- <execution>
- <id>attach-sources</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>3.0.0-M5</version>
</plugin>
<!--- Generates JavaDoc files during build. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
- <version>3.1.1</version>
+ <version>3.2.0</version>
<!-- Solution to problem:
MavenReportException: Error while creating archive: Unable to find
javadoc command: The environment variable JAVA_HOME is not correctly set.
