I'm trying to run archiva from within RAD.
For this I checkout the whole archiva sources from the repository and run mvn install. After running the eclipse goal (wtpversion=1.5), everything is setup fine for development with RAD/Eclipse
I got problems regarding the merge of components-fragment.xml and the derived resource components.xml (happing in e.g. archiva-policies).
After a project clean or a change in the generated components xml, the automatic eclipse build overwrites the merged file, which only exists in the target/classes folder. This results in error messages like: url-failures-cache bean cannot be found.
I wonder why the descriptor goals do not run in the generate-resources phase and generate their output first to target/generated-resources, making later phases take care of the processing and packaging.
The suggested patch:
- changes the phases for the descriptor and merge-descriptors goals
- outputs the merged result to generated-resources/plexus/META-INF/plexus/components.xml