tohokuaikiのチラシの裏

技術的ネタとか。

Mavenの依存性でatlas-runが走らなかったりした場合

新年明けて、軽快に「atlas-run」としたけれどもエラーが出て動かない・・・。

C:\Users\itoh\Confluence5PluginDev\sampleplugin>atlas-cli
Executing: "C:\Users\itoh\atlassian-plugin-sdk\apache-maven\bin\mvn.bat" com.atlassian.maven.plugins:maven-amps-dispatcher-plugin:4.2.10:cli -gs C:\Users\itoh\atlassian-plugin-sdk\apache-maven/conf/settings.xml
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building smart.DITA
[INFO] task-segment: [com.atlassian.maven.plugins:maven-amps-dispatcher-plugin:4.2.10:cli]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

No versions are present in the repository for the artifact with a range [1.5,1.6.100)
org.apache.velocity:velocity:jar:null

from the specified remote repositories:
atlassian-plugin-sdk (file://C:\Users\itoh\atlassian-plugin-sdk/repository),
central (http://repo1.maven.org/maven2),
atlassian-public (https://maven.atlassian.com/repository/public)

Path to dependency:
1) jp.junoe.confluence.plugins:sampleplugin:atlassian-plugin:1.0-SNAPSHOT
2) com.atlassian.confluence:confluence:jar:5.3.1
3) com.atlassian.velocity.htmlsafe:velocity-htmlsafe:jar:1.2-fixedscm



[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Tue Jan 07 11:16:21 JST 2014
[INFO] Final Memory: 46M/265M
[INFO] ------------------------------------------------------------------------
C:\Users\itoh\Confluence5PluginDev\sampleplugin>

なにやら、velocityの依存関係のバージョン違いでこけているようだけどよく分からない。。。
もちろんatlas-cleanとかatlas-mvn cleanとかしても全然ダメ。ちなみに別環境にあるのは全然問題なくrun立ち上がる。なんぞー。

ホームディレクトリにある .m2/repositoryを削除*1して再度依存関係のものをダウンロードするしかないか・・・。依存関係って便利だけどこういう時どうしようもない(探す気力もおこらない)のがあれよねー。

*1:実際には変名