Java实战及解析 — Maven快速入门
来源:互联网 发布:电脑如何连接手机网络 编辑:程序博客网 时间:2024/05/17 23:43
五分钟快速入门
mvn --version
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
-X -DarchetypeCatalog=internal
cd my-app
mvn package
java -cp target/my-app-1.0-SNAPSHOT.jar com.mycompany.app.App
http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
Maven标准目录布局
http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
Maven快速入门
Maven 阶段(Phrases)
validate: validate the project is correct and all necessary information is available
compile: compile the source code of the project
test: test the compiled source code using a suitable unit testing framework. These tests should not require the code be packaged or deployed
package: take the compiled code and package it in its distributable format, such as a JAR.
integration-test: process and deploy the package if necessary into an environment where integration tests can be run
verify: run any checks to verify the package is valid and meets quality criteria
install: install the package into the local repository, for use as a dependency in other projects locally
deploy: done in an integration or release environment, copies the final package to the remote repository for sharing with other developers and projects.
clean: cleans up artifacts created by prior builds
site: generates site documentation for this project
Maven快速入门
mvn clean dependency:copy-dependencies package
This command will clean the project, copy dependencies, and package the project (executing all phases up to package, of course).
mvn site
This phase generates a site based upon information on the project's pom. You can look at the documentation generated under target/site.
欢迎加入程序员的世界,添物科技为您服务。
- Java实战及解析 — Maven快速入门
- Maven快速入门及应用
- Flask系列----快速入门实战解析(上篇)
- Python3网络爬虫快速入门实战解析
- Maven入门指南① :Maven 快速入门及简单使用
- Maven入门指南 :Maven 快速入门及简单使用
- Maven入门指南① :Maven 快速入门及简单使用
- Maven入门指南① :Maven 快速入门及简单使用
- Maven入门指南① :Maven 快速入门及简单使用
- Maven入门指南① :Maven 快速入门及简单使用
- Maven入门指南 :Maven 快速入门及简单使用
- Maven入门指南① :Maven 快速入门及简单使用
- Java日志实战及解析
- Maven 快速入门及简单使用
- Maven 快速入门及简单使用
- Maven实战——Maven入门
- Maven实战——Maven入门
- Maven实战——Maven入门
- 恋襄城独留情迷乱
- iOS近场通信(wifi、蓝牙)
- c++设计模式之迭代器模式
- cookie、session总结
- jQuery-Ajax 使用
- Java实战及解析 — Maven快速入门
- Callable与Future的介绍
- 用链表手动实现C++栈操作(5种)
- python中安装各种库小结
- HTML5实现获取地理位置信息并定位功能
- iOS --NSURLConnection 请求总结
- dll动态库(二)项目中引用自定义动态库
- [LeetCode] 79. Word Search
- log4j总结