I haven't found a solution to this yet. I involves debugging through the
shader plugin and I have got round to that yet. I have a very ugly and
manual work round that allows me to get on. Here is what I do:

1/ Edit sca/disitribution/pom.xml to remove bundle reactor reference so that
I can do the manual step after the budle build has finished but before the
rest of the distribution build happens

<module>bundle</module> becomes <!--module>bundle</module-->

2/ Run the bundle build

cd sca/distribution/bundle
mvn

3/ The manual step. Copy the shaded jar to the local maven repository

cp sca/disitribution/bundle/target/tuscany-
bundle-1.0-incubating-SNAPSHOT-shaded.jar

.m2/repository/org/apache/tuscany/sca/tuscany-bundle/1.0-incubating-SNAPSHOT/tuscany-
bundle-1.0-incubating-SNAPSHOT.jar

This represents what the bundle build should have done in the first place
and overwrites the empty jar that is put into the local repository
erroneously.

4/ Run the disitribution build

cd sca/disitribution
mvn

Hope this helps

Simon

Reply via email to