dev:watch不会在JBoss Fuse 6.3.0上重新加载捆绑软件 [英] dev:watch does not reload bundles on JBoss Fuse 6.3.0

查看:76
本文介绍了dev:watch不会在JBoss Fuse 6.3.0上重新加载捆绑软件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将代码从JBoss Fuse 6.2.1移植到JBoss Fuse 6.3.0.

I am porting my code from JBoss Fuse 6.2.1 to JBoss Fuse 6.3.0.

在开发环境中,我使用Maven构建Java项目的-SNAPSHOTS,并使用dev:watch命令自动部署它们.

On my development environment I used Maven to build -SNAPSHOTS of my Java projects, and have them automatically deployed using dev:watch command.

我先安装了install mvn:my.groupid/my-artifactid/version-SNAPSHOT,然后又安装了dev:watch ID.
遵循mvn install的构建不会自动加载到JBoss Fuse内,任何日志中都没有消息.

I installed my bundle with install mvn:my.groupid/my-artifactid/version-SNAPSHOT and then dev:watch ID.
Following mvn install builds do not get automatically loaded inside JBoss Fuse, no messages in any log.

可能是什么原因?

推荐答案

版本之间的默认配置已更改.
在6.2.1中未定义属性org.ops4j.pax.url.mvn.localRepository(因此默认为~/.m2/repository),现在在6.3.0上默认为${karaf.data}/repository

A default configuration has changed between versions.
Property org.ops4j.pax.url.mvn.localRepository was not defined in 6.2.1 (thus defaulting to ~/.m2/repository), now defaults to ${karaf.data}/repository on 6.3.0

因此,要重新启用以前的行为,请将属性设置为

So to reenable previous behaviour, set the property to

#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

这篇关于dev:watch不会在JBoss Fuse 6.3.0上重新加载捆绑软件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆