Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
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 (309)
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:
C:\fyicenter>cd hello C:\fyicenter\hello>\fyicenter\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:
C:\fyicenter\hello>java -cp target/hello-1.0-SNAPSHOT.jar com.fyicenter.App Hello World!
⇒ "maven-archetype-quickstart" - Default Java Code
2020-10-17, 730🔥, 0💬
Popular Posts:
JDK 11 jdk.localedata.jmod is the JMOD file for JDK 11 Localedata module. JDK 11 Locale Data module ...
The JSR 105 XML Digital Signature 1.0.1 FCS implementation provides an API and implementation that a...
The Web Services Description Language for Java Toolkit (WSDL4J), Release 1.6.2, allows the creation,...
ANTLR is a powerful parser generator for multiple programming languages including Java. ANTLR contai...
JAX-RPC is an API for building Web services and clients that used remote procedure calls (RPC) and X...