![]() This command builds the Maven project and installs the project files ( JAR, WAR, pom.xml, etc.) to the local repository: Notice the package goal executes compile, testCompile, and test goals before packaging the build. The output shows the location of the JAR file just before the "BUILD SUCCESS" message. Building jar: /Users/sammy/Desktop/maven-examples/maven-example-jar/target/maven-example-jar-0.0.1-SNAPSHOT.jar maven-jar-plugin:2.4:jar (default-jar) maven-example-jar. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec Surefire report directory: /Users/sammy/Desktop/maven-examples/maven-example-jar/target/surefire-reports maven-surefire-plugin:2.12.4:test (default-test) maven-example-jar. Compiling 1 source file to /Users/sammy/Desktop/maven-examples/maven-example-jar/target/test-classes maven-compiler-plugin:3.8.1:testCompile (default-testCompile) maven-example-jar. ![]() Compiling 1 source file to /Users/sammy/Desktop/maven-examples/maven-example-jar/target/classes Changes detected - recompiling the module! Output - maven-compiler-plugin:3.8.1:compile (default-compile) maven-example-jar.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |