Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
Maven Project Compilation Output
Where is the compilation output of my "hello" Maven project? I just finished the "mvn package" command.
✍: FYIcenter.com
After fixing the JDK version issue in the pom.xml, you should
run "mvn package" again to compile the "hello" project:
fyicenter> cd hello fyicenter\hello> ..\apache-maven-3.5.4\bin\mvn package [INFO] Scanning for projects... [INFO] [INFO] ------------------------ com.fyicenter:hello >------------------------- [INFO] Building hello 1.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ hello --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory C:\fyicenter\hello\src\main\resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ hello --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 1 source file to C:\fyicenter\hello\target\classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ hello --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory C:\fyicenter\hello\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ hello --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 1 source file to C:\fyicenter\hello\target\test-classes [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ hello --- Downloading from central: https://repo.maven.apache.org/maven2 /org/apache/maven/surefire/surefire-booter/2.12.4/surefire-booter-2.12.4.pom ... Downloading from central: https://repo.maven.apache.org/maven2 /surefire/surefire-junit3/2.12.4/surefire-junit3-2.12.4.jar ------------------------------------------------------- T E S T S ------------------------------------------------------- Running com.fyicenter.AppTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Results : Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ hello --- Downloading from central: https://repo.maven.apache.org/maven2 /org/apache/maven/maven-archiver/2.5/maven-archiver-2.5.pom ... Downloading from central: https://repo.maven.apache.org/maven2 /org/codehaus/plexus/plexus-utils/3.0/plexus-utils-3.0.jar [INFO] Building jar: C:\fyicenter\hello\target\hello-1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:11 min [INFO] ------------------------------------------------------------------------
The output tells you that the output of the compilation is a JAR file located at .\target\hello-1.0-SNAPSHOT.jar
The "mvn package" command actually performed JUnit tests using the default com.fyicenter.AppTest.java code.
You can verify the output JAR file by running the "java" command:
fyicenter\hello> java -cp target/hello-1.0-SNAPSHOT.jar com.fyicenter.App Hello World!
⇒ "maven-archetype-quickstart" - Default Java Code
2020-10-17, ∼1795🔥, 0💬
Popular Posts:
Rhino JavaScript Java Library is an open-source implementation of JavaScript written entirely in Jav...
What Is jsse.jar (JDK 6) Java Secure Socket Extension? jsse.jar, Java Secure Socket Extension, is Ja...
Where to get the Java source code for Connector/J 8.0 User Impl module? Java source code files for C...
JLayer is a library that decodes/plays/converts MPEG 1/2/2.5 Layer 1/2/3 (i.e. MP3) in real time for...
What Is wstx-asl-3.2.8.jar? wstx-asl-3.2.8.jar is JAR file for the ASL component of Woodstox 3.2.8. ...