项目是eclipse+maven管理的多模块项目,有两个子模块,myproject-common和myproject-web。工程结构如下:
myproject
|__myproject-common
| |__src...
| |__pom.xml
|__myproject-web
| |__src...
| |__pom.xml
|__pom.xml
在myproject-web上点击右键,选择Run As -> Maven install 报错:
Failed to execute goal on project myproject-web:
Could not resolve dependencies for project com.mycompany.myproject:myproject-web:war:1.0:
Failed to collect dependencies for [com.mycompany.myproject:myproject-common:jar:1.0 (compile), junit:junit:jar:3.8.1 (test)]:
Failed to read artifact descriptor for com.mycompany.myproject:myproject-common:jar:1.0:
Failure to find com.mycompany.myproject:myproject:pom:1.0 in http://mycompany.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of archiva.internal has elapsed or updates are forced -> [Help 1]
然后在本地和远程的maven repo仓库中都加入了myproject-common的jar包,问题依旧。。。
最后在myproject工程上执行Run As -> Maven install 后再在myproject-web工程上点击右键,选择Run As -> Maven install,SUCCESS!!
分享到:
相关推荐
mvn install单独jar到仓库使用方法举例
遍历文件夹及子文件夹下得pom文件,自动清理、编译、安装。适合批量编译多个maven工程
canal文件,下载后直接mvn_install即可使用canal文件,下载后直接mvn_install即可使用canal文件,下载后直接mvn_install即可使用
master运行mvn install报错:Failed to execute goal io.spring.javaformat:spring-javaformat-maven-plugin:0.0.19:validate (default) on project spring-petclinic: Formatting violations found in the ...
In order to build it you need to install Apache Maven and run 'mvn install' command. Some modules of project contain dependencies not included in Maven Central - to build such modules you need first ...
mvn install:install-file -DgroupId=nl.jworks.markdown_to_asciidoc -DartifactId=markdown_to_asciidoc -Dversion=1.0 -Dpackaging=jar -Dfile=C:\Users\lizz\Downloads\markdown_to_asciidoc-1.0.jar
下载之后再maven的bin目录下使用mvn命令:mvn install:install-file -Dfile=F:\apache-maven-3.5.3\mylib\olap4j-0.9.7.309-JS-3.jar -DgroupId=org.olap4j -DartifactId=olap4j-0.9.7.309-JS-3 -Dversion=0.9.7.309...
Liqp ...in your local Maven repository, as well as in the project's target/ folder. Usage This library can be used in two different ways: to construct a parse tree of some Liquid inp
博客文章“maven环境搭建...配置一下setting中的maven,把两个override勾上,相应的选出刚刚解压完的mvn-repository/settings.xml和mvn-repository。选中新建的项目,右击选择add Framework support,找到maven,勾上。
vertica-jdbc-9.2.1-0.jar) you should be able to run a command something like the following to add it to your local repository: mvn install:install-file -Dfile={/path_to/vertica-jdbc-9.2.1-0.jar} -...
NULL 博文链接:https://swanmarx.iteye.com/blog/1778928
Build Step: How to install Run mvn clean package to create the plugin .hpi file. To install: ... You have to restart Jenkins in order to find the pluing in the installed plugins list.
mvn archetype:create -DgroupId=packageName -DartifactId=projectName 2. 创建Maven的Web项目: mvn archetype:create -DgroupId=packageName -DartifactId=webappName -...
mvn install:install-file -D groupId=org.zenika.widget -D artifactId=gwt-datepicker -D version=r29 -D packaging=jar -D file=C:\gwt-datepicker-r29.jar 命令参数详解: mvn install:install-file: maven 安装...
Java将word文档转换成pdf所...mvn install:install-file -Dfile=D:\aspose-words-15.8.0-jdk16.jar -DgroupId=com.aspose.words -DartifactId=aspose-words-jdk16 -Dversion=15.8.0 -Dpackaging=jar 2.pom中引入依赖
3.mvn install 在本地repository中安装jar(包含mvn compile,mvn package,然后上传到本地仓库) 4.mvn deploy 上传到私服(包含mvn install,然后,上传到私服) 5.mvn package 打包 6.mvn test 运行测试 7.mvn site ...
由于基于包扫描查找controller,mvn仓库中应当首先install对应的工程, 可以增加一个单独的profile引入插件以及插件依赖 一个简单的示例工程 步骤 mvn package install -Papi-package mvn install -Papi-**** 更新说明...
Credentials Plugin version:1.11 download from github,and have build it by: Run mvn clean package ... You have to restart Jenkins in order to find the pluing in the installed plugins list.
swagger导出文档所需的jar ... mvn install:install-file -DgroupId=ch.netzwerg -DartifactId=paleo-core -Dversion=0.10.2 -Dpackaging=jar -Dfile=C:\Users\lizz\Downloads\paleo-core-0.10.2.jar