0

I would like to create a jar file including some files from a non-java project and then have Maven be aware of the file, so I can define dependencies on it and so on.

Is there a way to "mavenize" an existing jar, or create a "maven jar" from some files, so that I can easily (in script) define its artifactId, versionId and other information?

Martin Melka
  • 7,177
  • 16
  • 79
  • 138
  • 1
    Yes. refer https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html – Balaji Krishnan Apr 14 '16 at 13:55
  • `deploy:deploy-file` is more what I need. Is it also somehow possible to define dependencies on other jars like this? edit - or just tell maven to generate the pom file for me and I could then manually add the dependency declaration? – Martin Melka Apr 14 '16 at 14:14

0 Answers0