[
https://issues.apache.org/jira/browse/KARAF-6627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17110208#comment-17110208
]
Johann edited comment on KARAF-6627 at 5/18/20, 12:15 PM:
----------------------------------------------------------
To be sure not having overlooked anything, I executed the following commands in
two configurations: (1) Customized local repository path (changed in
{{%USERPROFILE%\.m2\settings.xml}}), and (2) default local repository path:
{{win10> .\bin\karaf clean}}
{{karaf> feature:install scr # my simple component depends on scr}}
{{win10> mvn install}}
{{karaf> install -s mvn:my-group/my-component/1.0-SNAPSHOT}}
{{bundle:watch *}}
bundle:watch --stop
bundle:watch --start
{{win10> mvn install # new version}}
In configuration (1) nothing happens when installing a new version of the
component. Only when executing {{update my-component}}, the component gets
updated.
In configuration (2) everything works as expected, i. e. {{mvn install}}
results in the component being updated immediately.
was (Author: heinzelreiter):
To be sure not having overlooked anything, I executed the following commands in
two configurations: (1) Customized local repository path (changed in
{{%USERPROFILE%\.m2\settings.xml}}), and (2) default local repository path:
{{win10> .\bin\karaf clean}}
{{karaf> feature:install scr # my simple component depends on scr}}
{{win10> mvn install}}
{{karaf> install -s mvn:my-group/my-component/1.0-SNAPSHOT}}
{{bundle:watch *}}
{{bundle:watch --stop }}
{{bundle:watch --start }}
{{win10> mvn install # new version}}
In configuration (1) nothing happens when installing a new version of the
component. Only when executing update my-component, the component gets updated.
In configuration (2) everything works as expected, i. e. {{mvn install}}
results in the component being updated immediately.
> bundle:watch does not work when local repository location was changed
> ---------------------------------------------------------------------
>
> Key: KARAF-6627
> URL: https://issues.apache.org/jira/browse/KARAF-6627
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.2.8
> Environment: I use a current version of Windows 10 and JDK-11.0.6.
> Reporter: Johann
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Labels: watch
> Fix For: 4.3.0, 4.2.10
>
>
> When I change the path of the local maven repository to a different path (in
> {{%USERPROFILE%\settings.xml}}) {{bundle:watch}} does not work. Snapshot
> bundles (jar files containing the substring {{-SNAPSHOT}} in its version) do
> not get updated automatically. When I switch back the path to its default
> location everything works as expected.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)