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, ∼1962🔥, 0💬
Popular Posts:
itextpdf.jar is a component in iText 5 Java library to provide core functionalities. iText Java libr...
JDK 11 java.management.jmod is the JMOD file for JDK 11 Management module. JDK 11 Management module ...
Apache ZooKeeper is an open-source server which enables highly reliable distributed coordination. Ap...
What is the sax\Counter.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 inst...
JavaMail Source Code Files are provided in the source package file, httpcomponents-client-5. 2-src.zi...