Skip to end of metadata
Go to start of metadata

Introduction

This page is reserved for documenting any Maven tips and tricks that we learn while migrating OpenDJ to Maven.

Tips and tricks

  1. 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.
  2. To create complex artifacts such as ZIPs containing JARs, scripts, resources, etc use the maven-assembly-plugin .
  3. 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).
Labels
  • None