2016-11-22 6 views
2

自分のコードをJBoss Fuse 6.2.1からJBoss Fuse 6.3.0に移植しています。dev:watchはJBoss Fuse 6.3.0でバンドルをリロードしません

私の開発環境では、私のJavaプロジェクトの-SNAPSHOTSをビルドするためにMavenを使い、dev:watchコマンドを使って自動的に展開しました。

install mvn:my.groupid/my-artifactid/version-SNAPSHOTdev:watch IDでバンドルをインストールしました。
mvn installのビルドが自動的にJBoss Fuse内にロードされることはありません。ログにはメッセージはありません。

原因は何でしょうか?

答えて

2

デフォルト設定がバージョン間で変更されました。今
プロパティorg.ops4j.pax.url.mvn.localRepositoryが(これ~/.m2/repositoryをデフォルト)6.2.1で定義されていなかった、${karaf.data}/repositoryデフォルトだから、

6.3.0に再度有効に以前の動作には、プロパティが定義されている

#Linux 
org.ops4j.pax.url.mvn.localRepository=~/.m2/repository 
#Windows 
org.ops4j.pax.url.mvn.localRepository=/Users/alessandro/.m2/repository 

にプロパティを設定しますetc/org.ops4j.pax.url.mvn.cfg

バージョン6.2.1

で0

バージョン6.3.0

# Path to the local Maven repository which is used to avoid downloading 
# artifacts when they already exist locally. 
# The value of this property will be extracted from the settings.xml file 
# above, or defaulted to: 
#  System.getProperty("user.home") + "/.m2/repository" 
# leaving this option commented makes the system dependent on external configuration, which is not always desired 
# "localRepository" is the target location for artifacts downloaded from "remote repositories", it's not 
# searched for already available artifacts, unless added explicitly to "defaultRepositories" 
# by default internal local repository is used to have behavior independent of the content of ~/.m2/repository 
org.ops4j.pax.url.mvn.localRepository = ${karaf.data}/repository 
関連する問題