按照
Getting Started的指引,最后运行时还是出现了以下问题:
[artifact:dependencies] Downloading: com/ptp/core/1.0/core-1.0.jar from repository public releases at http://www.broadleafcommerce.org/nexus/content/repositories/snapshots/
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'com.ptp:core:jar:1.0' in repository public releases (http://www.broadleafcommerce.org/nexus/content/repositories/snapshots/)
[artifact:dependencies] Downloading: com/ptp/core/1.0/core-1.0.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'com.ptp:core:jar:1.0' in repository central (http://repo1.maven.org/maven2)
[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
[artifact:dependencies] Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: Missing:
[artifact:dependencies] ----------
[artifact:dependencies] 1) com.ptp:core:jar:1.0
[artifact:dependencies]
[artifact:dependencies] Try downloading the file manually from the project website.
[artifact:dependencies]
[artifact:dependencies] Then, install it using the command:
[artifact:dependencies] mvn install:install-file -DgroupId=com.ptp -DartifactId=core -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
[artifact:dependencies]
[artifact:dependencies] Alternatively, if you host your own repository you can deploy the file there:
[artifact:dependencies] mvn deploy:deploy-file -DgroupId=com.ptp -DartifactId=core -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[artifact:dependencies]
[artifact:dependencies] Path to dependency:
[artifact:dependencies] 1) com.ptp:site:war:1.0
[artifact:dependencies] 2) com.ptp:core:jar:1.0
[artifact:dependencies]
[artifact:dependencies] ----------
[artifact:dependencies] 1 required artifact is missing.
[artifact:dependencies]
[artifact:dependencies] for artifact:
[artifact:dependencies] com.ptp:site:war:1.0
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies] central (http://repo1.maven.org/maven2),
[artifact:dependencies] public releases (http://www.broadleafcommerce.org/nexus/content/repositories/snapshots/)
但实际上com.ptp:core:jar已经install到本地仓库了,那么为什么不能找到这个依赖呢?
打开ant的详细日志,即运行时加上-v参数,可以看到:
Using local repository: C:\Users\Administrator\.m2\repository
而我本地使用的库存路径是:F:\MavenRepository\m3\repository
那么问题就找到了,是因为没有使用正确的本地库存,所以在build.xml的<artifact:dependencies>加上settingsFile="${maven.home}/conf/settings.xml",问题得到解决。
分享到:
相关推荐
介绍BroadleafCommerce是一个完全用Java编写并利用Spring框架的电子商务框架。 它的目的是通过提供健壮的数据模型,服务...执照Broadleaf Commerce核心以双重许可证格式发布。 除非违反了其中的使用限制并要求向Broadle
Broadleaf Commerce Spring Boot React入门这个Maven项目旨在用作任何应用程序的可靠的入门项目。 它设置了许多合理的默认值,并举例说明了基于Broadleaf的功能齐全的电子商务网站可能如何工作。 该项目与不同之处...
Broadleaf Commerce 是国外一个开源的 Java 电子商务平台,基于 Spring 框架开发。提供了一个可靠、可扩展的架构,可进行深度的定制和快速开发。BroadLeaf结构非常清晰,模块化程度很高,使用的技术也是国内流行的...
Broadleaf Commerce 是国外一个开源的 Java 电子商务平台,基于 Spring 框架开发。提供了一个可靠、可扩展的架构,可进行深度的定制和快速开发。
Java 1.6 小门户 2.0 Spring 框架 3.1.1 基于注解的控制器配置SpringMVC 百里香叶Jersey 客户端与本地 Broadleaf Commerce REST API 通信能够从 maven 在轻量级 Pluto 门户中运行 portlet用法首先确保您在上运行 ...
项目概况社区演示由4个独立项目组成: ~ /CommunityDemo » tree -L 1├── LICENSE├── README.md├── admin├── api├── core├── pom.xml└── site admin用于目录管理的Broadleaf管理员的Spring ...
新 Broadleaf Commerce 演示站点此 Maven 项目旨在用作任何应用程序的可靠启动项目。 它设置了许多合理的默认值以及基于 Broadleaf 的功能齐全的电子商务网站如何工作的示例。 使用此项目的一种典型方法是遵循,该将...
这将为您带来额外的好处,即在我们努力改进DemoSite时能够进行上游更改。 注意:如果您要分叉此项目,建议您将工作基于master分支,而不是develop分支。 开发是我们正在进行的开发分支,因此不能保证其稳定性。执照...
NULL 博文链接:https://xiangtui.iteye.com/blog/1448125
新 Broadleaf Commerce 演示站点 此 Maven 项目旨在用作任何应用程序的可靠启动项目。 它设置了许多合理的默认值以及基于 Broadleaf 的功能齐全的电子商务网站如何工作的示例。 使用此项目的一种典型方法是遵循,该...
新 Broadleaf Commerce 演示站点此 Maven 项目旨在用作任何应用程序的可靠启动项目。 它设置了许多合理的默认值以及基于 Broadleaf 的功能齐全的电子商务网站如何工作的示例。 使用此项目的一种典型方法是遵循,该将...
这会给您带来额外的好处,即在我们努力改进 DemoSite 时能够引入上游更改。 注意:如果你要 fork 这个项目,我们建议你的工作基于master分支,而不是 develop 分支。 develop 是我们正在进行的开发分支,不保证其...
jar包,亲测可用
jar包,亲测可用
jar包,亲测可用
jar包,亲测可用
jar包,亲测可用
jar包,亲测可用