现在项目换到另一个系统的内网,他有很多公共包,这个不是问题,但是私有包需要一个个手动上传吗。最关键的是,现在的项目有个 parent 依赖,我搞了半天也不行
|
1
parent 里还有 parent,很多级
|
|
2
ali 有个 maven 私库批量迁移工具,migrate-local-repo-tool.jar ,可以试试,挺好用的
|
|
cs419Nov 30, 2020
3
不一定要放仓库 也可以是本地文件
方案 1 ``` <dependency> <groupId>fluffy.mo</groupId> <artifactId>hello</artifactId> <version>1.0</version> <scope>system</scope> <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/world.jar</systemPath> </dependency> ``` 方案 2 ``` <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <compilerArguments> <extdirs>src\main\webapp\WEB-INF\lib</extdirs> </compilerArguments> </configuration> </plugin> </plugins> </build> ``` |
|
bianjpNov 30, 2020
4
如果 Maven 私服使用的是 Nexus OSS, 那么它支持导入 Maven 仓库: https://help.sonatype.com/repomanager3/system-configuration/tasks/repository-import
|
|
zhangsen1992Nov 30, 2020
5
nexus 有批量导入
|