我将我的代码从JBoss Fuse 6.2.1移植到JBoss Fuse 6.3.0。
在我的开发环境中,我使用Maven构建了我的Java项目的-SNAPSHOTS,并使用dev:watch
命令自动部署它们。
我使用install mvn:my.groupid/my-artifactid/version-SNAPSHOT
然后dev:watch ID
安装了我的捆绑包
在mvn install
版本之后,不会在JBoss Fuse中自动加载,任何日志中都没有消息。
可能是什么原因?
答案 0 :(得分:2)
版本之间的默认配置已更改
6.2.1中未定义属性sacct --allusers --state=PR --starttime=2016-01-01
(因此默认为org.ops4j.pax.url.mvn.localRepository
),现在默认为6.3.0上的~/.m2/repository
因此,要重新启用以前的行为,请将该属性设置为
${karaf.data}/repository
属性在#Linux
org.ops4j.pax.url.mvn.localRepository=~/.m2/repository
#Windows
org.ops4j.pax.url.mvn.localRepository=/Users/alessandro/.m2/repository
版本6.2.1
etc/org.ops4j.pax.url.mvn.cfg
版本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"
#
#org.ops4j.pax.url.mvn.localRepository=