我正在尝试创建一个Magnolia项目原型:
我正在运行
mvn archetype:generate -DarchetypeCatalog=http://nexus.magnolia-cms.com/content/groups/public/
我选择
5:http://nexus.magnolia-cms.com/content/groups/public/ - > info.magnolia.maven.archetypes:magnolia-project-archetype(创建Magnolia项目的原型(父pom和webapp))
原型版本我选择1.1.0 定义属性'magnolia-version'的值:5.0.4
当我运行maven构建时,webapp构建失败,因为它无法找到一些vaadin库
[WARNING] The POM for org.vaadin.addons:icepush:jar:0.5.3 is missing, no dependency information available
[WARNING] The POM for org.vaadin.addons:cssinject:jar:2.0.3 is missing, no dependency information available
[WARNING] The POM for org.vaadin.addons:gwt-graphics:jar:1.0.0 is missing, no dependency information available
[WARNING] The POM for org.vaadin.addons:ckeditor-wrapper-for-vaadin:jar:7.8.3 is missing, no dependency information available
[WARNING] The POM for org.vaadin.addon:easyuploads:jar:7.0.0 is missing, no dependency information available
[WARNING] The POM for org.vaadin.addons:refresher:jar:1.2.1.7 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] myapp (parent pom) ............................. SUCCESS [0.394s]
[INFO] myapp: webapp .................................. FAILURE [1.305s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.962s
[INFO] Finished at: Wed Sep 18 13:53:45 CEST 2013
[INFO] Final Memory: 7M/121M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project myapp-webapp: Could not resolve dependencies for project myapp-webapp:war:1.0-SNAPSHOT: The following artifacts could not be resolved: org.vaadin.addon:easyuploads:jar:7.0.0, org.vaadin.addons:refresher:jar:1.2.1.7, org.vaadin.addons:cssinject:jar:2.0.3, org.vaadin.addons:icepush:jar:0.5.3, org.vaadin.addons:gwt-graphics:jar:1.0.0, org.vaadin.addons:ckeditor-wrapper-for-vaadin:jar:7.8.3: Failure to find org.vaadin.addon:easyuploads:jar:7.0.0 in http://nexus.magnolia-cms.com/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of magnolia.public has elapsed or updates are forced -> [Help 1]
[ERROR]
我是否需要添加一些maven存储库?
答案 0 :(得分:7)
通过在我的pom.xml中添加以下存储库来解决它
<repository>
<id>vaadin-addons</id>
<url>http://maven.vaadin.com/vaadin-addons</url>
</repository>