This page is reserved for documenting any Maven tips and tricks that we learn while migrating OpenDJ to Maven.
Tips and tricks
- Adding new source folders and attaching arbitrary project artifacts: the build-helper-maven-plugin from CodeHaus can be used for hacking fixes to many build problems.
- To create complex artifacts such as ZIPs containing JARs, scripts, resources, etc use the maven-assembly-plugin .
- To create an artifact which includes all its dependencies use the maven-shade-plugin . This is particularly useful for creating JAR artifacts for use in external projects which do not use Maven and, therefore, no easy way to figure out the dependencies (let alone find them).