我在Mac上的AlgoTrader 2.2.2中出现了构建错误。
E.g。
ERROR] Failed to execute goal on project algotrader-mda: Could not resolve dependencies for project algotrader:algotrader-mda:pom:2.2.2: The following artifacts could not be resolved: algotrader:algotrader-uml:jar:2.2.2, org.andromda.cartridges:andromda-hibernate-cartridge:jar:3.4-at2, org.andromda.cartridges:andromda-java-cartridge:jar:3.4-at, org.andromda.cartridges:andromda-spring-cartridge:jar:3.4-at7: Failure to find algotrader:algotrader-uml:jar:2.2.2 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
电子
WARNING] The POM for algotrader:algotrader-uml:jar:2.2.2 is missing, no dependency information available
[WARNING] The POM for org.andromda.cartridges:andromda-hibernate-cartridge:jar:3.4-at2 is missing, no dependency information available
我正在运行Mac OS X 10.10.1 Yosemite,
Java 1.7.0_71
Maven 3.2.3
我已经编辑了〜/ .m2 / settings.xml来访问AlgoTrader Nexus存储库: settings.xml中:
<profile>
<id>algotrader</id>
<repositories>
<repository>
<id>algotraderrepo</id>
<url>https://repo.algotrader.ch/nexus/content/groups/public</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>algotraderrepo</id>
<url>https://repo.algotrader.ch/nexus/content/groups/public</url>
</pluginRepository>
<pluginRepository>
<id>sonatype</id>
<name>Sonatype Repository</name>
<url>http://oss.sonatype.org/content/groups/public</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
dave@vishnu.local:〜/ .m2 / repository $ ls -lR algotrader / algotrader-uml / 总计0 drwxr-xr-x 4 dave staff 136 Dec 15 15:28 2.2.2
algotrader / algotrader-UML // 2.2.2: 共16 -rw-r - r-- 1 dave staff 244 Dec 15 15:28 algotrader-uml-2.2.2.jar.lastUpdated -rw-r - r-- 1 dave staff 244 Dec 15 15:28 algotrader-uml-2.2.2.pom.lastUpdated
dave@vishnu.local:〜/ .m2 / repository $ ls -lR org / andromda / cartridges / andromda-hibernate-cartridge / 总计0 drwxr-xr-x 4 dave staff 136 Dec 15 15:28 3.4-at2
组织/ AndroMDA的/盒/ AndroMDA的-休眠盒// 3.4 AT2: 共16 -rw-r - r-- 1 dave staff 244 Dec 15 15:28 andromda-hibernate-cartridge-3.4-at2.jar.lastUpdated -rw-r - r-- 1 dave staff 244 Dec 15 15:28 andromda-hibernate-cartridge-3.4-at2.pom.lastUpdated
提前致谢。
答案 0 :(得分:0)
将<repositories>
标记添加到pom.xml
您要在settings.xml
上为profile
配置的{{1}}