Maven project with native dependency and copying files

The base idea is the following:

  • Maven is good in handling with one result per Maven POM.
  • It is possible to have libraries and dependencies to these libraries in your local repositories only.

So you have to do the following steps:

  1. Define for the additional library a separate project (or a module in your project) and define the library as the result.
  2. Change your POM so that this POM has now a dependency to the new project.
  3. Do the same steps for your DLL (see the post Managing DLL dependencies with Maven) how to do that).
  4. Deploy your additional library and your DLL to your local repository.

Now you should be able to use Maven for the build process again, and by using additional plugins like the maven-assembly-plugin, you are able to pack all together.

Leave a Comment