Maven does not support using jars that are outside of Maven. You have two choices:
- mvn install:install-file
- mvn deploy:deploy-file
The first puts the jar in your local repo, the second in your shared repo manager, which you should have.
Domanda
I have a maven module with one pom.xml. I have added some external jars which don't have maven repository as external jars in the project build path. The module is working fine(no errors).
When I am building it using maven build, it says some of package names from external jars are not found. there are many like this. the reason is corresponding packages API (groupid,artifactid) are not part of the pom.xml.
I want to know how to build maven module in such scenarios.
Appreciate any help
Soluzione
Maven does not support using jars that are outside of Maven. You have two choices:
The first puts the jar in your local repo, the second in your shared repo manager, which you should have.