Github user CMoH commented on the pull request:
https://github.com/apache/incubator-brooklyn/pull/962#issuecomment-151554535
The build took quite a while now, but I have results after running the same
maven build as above while having the default repository empty. Unfortunately
some of the plugins do not honor -Dmaven.repo.local, producing the following
files in the default mvn repo:
```
cipi@pink ~/.m2 $ find . -type d
.
./repository
./repository/org
./repository/org/apache
./repository/org/apache/karaf
./repository/org/apache/karaf/features
./repository/org/apache/karaf/features/enterprise
./repository/org/apache/karaf/features/enterprise/4.0.1
./repository/org/apache/karaf/features/standard
./repository/org/apache/karaf/features/standard/4.0.1
./repository/org/apache/karaf/features/framework
./repository/org/apache/karaf/features/framework/4.0.1
./repository/org/ops4j
./repository/org/ops4j/pax
./repository/org/ops4j/pax/web
./repository/org/ops4j/pax/web/pax-web-features
./repository/org/ops4j/pax/web/pax-web-features/4.2.0
./repository/org/ops4j/pax/cdi
./repository/org/ops4j/pax/cdi/pax-cdi-features
./repository/org/ops4j/pax/cdi/pax-cdi-features/0.12.0
```
The first seem to be the feature repositories that are referenced in my
features.xml, and I assume the ops4j ones are dependencies. This points towards
karaf-maven-plugin downloading artifacts into the wrong location during build.
I've built both karaf/features and karaf/apache-brooklyn separately, and the
offending behavior is generated by the karaf assembly project.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---