Details
-
Bug
-
Resolution: Done
-
Major
-
jboss-fuse-6.2.1
-
%
-
-
Description
If OS level user configures for non-default local Maven repository directory, then Karaf's dev:watch command fails to update and redeploy new builds of a snapshot bundle.
When specifically setting etc/org.ops4j.pax.url.mvn.cfg
org.ops4j.pax.url.mvn.localRepository=/root/localRepo
dev:watch works fine.
However when setting
org.ops4j.pax.url.mvn.settings=/root/.m2/settings.xml
with settings.xml pointing to a different local Maven repository folder
<localRepository>/root/localRepo</localRepository>
then dev:watch does not work.
According to etc/org.ops4j.pax.url.mvn.cfg it should be enough to point org.ops4j.pax.url.mvn.settings to the custom settings.xml but that does not seem to be sufficient.
# 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=