maven命令mvn eclipse:eclipse作用和原因
maven
Maven: Apache Maven是一个开源的项目管理和构建工具,主要用于Java项目。适合需要自动化项目构建和依赖管理的开发者。特点包括约定优于配置、易于使用和社区驱动。
项目地址:https://gitcode.com/gh_mirrors/ma/maven
·
作用
将非Eclipse(如IDEA)创建的项目转为eclipse可以装配的项目,而且目录结构保持原样。
$ mvn eclipse:eclipse
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< xyz.cglzwz:bookmanagement >----------------------
[INFO] Building bookmanagement Maven Webapp 1.0-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] >>> maven-eclipse-plugin:2.10:eclipse (default-cli) > generate-resources @ bookmanagement >>>
[INFO]
[INFO] <<< maven-eclipse-plugin:2.10:eclipse (default-cli) < generate-resources @ bookmanagement <<<
[INFO]
[INFO]
[INFO] --- maven-eclipse-plugin:2.10:eclipse (default-cli) @ bookmanagement ---
[INFO] Using Eclipse Workspace: null
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER
[INFO] Not writing settings - defaults suffice
[INFO] Wrote Eclipse project for "bookmanagement" to C:\Users\Administrator\Desktop\Book-management-master.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.091 s
[INFO] Finished at: 2018-11-14T23:10:45+08:00
[INFO] ------------------------------------------------------------------------
生成以下两个eclipse的关键文件 .classpath, .project
这是maven项目,这样之后通过 File -> open project from file system 导入可以保持项目结构。
注意
- maven项目也可以不使用 mvn eclipse:eclipse 来生成配置文件,可以直接在集成maven插件的eclipse里 File->import 通过maven项目的方式导入。也是可以的,推荐。
- maven项目或者其他类型项目如果不这样做,那么导入即便成功,目录结构变了,变成普通的Java项目结构。比如maven项目这样导入以后可执行文件目录变成了bin目录。
Maven: Apache Maven是一个开源的项目管理和构建工具,主要用于Java项目。适合需要自动化项目构建和依赖管理的开发者。特点包括约定优于配置、易于使用和社区驱动。
最近提交(Master分支:2 个月前 )
d94feaca
* Bump eu.maveniverse.maven.mimir:testing from 0.10.4 to 0.10.5
Bumps [eu.maveniverse.maven.mimir:testing](https://github.com/maveniverse/mimir) from 0.10.4 to 0.10.5.
- [Release notes](https://github.com/maveniverse/mimir/releases)
- [Commits](https://github.com/maveniverse/mimir/compare/release-0.10.4...release-0.10.5)
---
updated-dependencies:
- dependency-name: eu.maveniverse.maven.mimir:testing
dependency-version: 0.10.5
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Also upgrade mimir version used in GH workflow
* Apply suggestion from @cstamas
* Apply suggestion from @cstamas
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Guillaume Nodet <gnodet@gmail.com>
Co-authored-by: Tamas Cservenak <tamas@cservenak.net> 1 天前
f1cada5c
Bumps `mockitoVersion` from 5.20.0 to 5.21.0.
Updates `org.mockito:mockito-bom` from 5.20.0 to 5.21.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v5.20.0...v5.21.0)
Updates `org.mockito:mockito-junit-jupiter` from 5.20.0 to 5.21.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v5.20.0...v5.21.0)
---
updated-dependencies:
- dependency-name: org.mockito:mockito-bom
dependency-version: 5.21.0
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: org.mockito:mockito-junit-jupiter
dependency-version: 5.21.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 1 天前
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐


所有评论(0)