Where do I put custom assembly descriptors for the Maven Assembly plugin?
maven-2
Solution
Yes, you have to specify the location. According to the Configuration and Usage page, this is done this way:
<project>
[...]
<build>
[...]
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/main/assembly/src.xml</descriptor>
</descriptors>
</configuration>
[...]
</project>
Actually, I'd recommend using `src/main/assembly` as location.
Problem
Either I'm missing something obvious, or both the Maven book and the Maven Assembly Plugin's homepage, while describing how to write custom assembly descriptors, don't say anything about where that file has to go. Is it part of my project? Does it go into some central Maven configuration directory? Do I have to specify its location somewhere?