2016-11-22 57 views
2

我將我的代碼從JBoss Fuse 6.2.1移植到JBoss Fuse 6.3.0。dev:watch不重新加載JBoss保險絲套件6.3.0

在我的開發環境中,我使用Maven構建了我的Java項目的-SNAPSHOTS,並使用dev:watch命令自動部署它們。

我安裝我的軟件包install mvn:my.groupid/my-artifactid/version-SNAPSHOT,然後dev:watch ID
以下mvn install構建不會自動加載JBoss Fuse內部,任何日誌中都沒有消息。

可能是什麼原因?

回答

2

版本之間的默認配置已更改。
物業org.ops4j.pax.url.mvn.localRepository在6.2.1(因此默認爲~/.m2/repository)沒有定義,現在默認爲${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版

# 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" 
# 
#org.ops4j.pax.url.mvn.localRepository= 

版本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