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, 786🔥, 0💬
Popular Posts:
JDK 11 jdk.xml.dom.jmod is the JMOD file for JDK 11 XML DOM module. JDK 11 XML DOM module compiled c...
Provides support for the runtime platform, core utility methods and the extension registry. JAR File...
How to read XML document with DTD validation from socket connections with the socket\DelayedInput.ja.. .
What Is HttpComponents commons-httpclient-3.1.j ar?HttpComponents commons-httpclient-3.1.j aris the ...
Xalan-Java, Version 2.7.1, is an XSLT processor for transforming XML documents into HTML, text, or o...