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

È stato utile?

Soluzione

Maven does not support using jars that are outside of Maven. You have two choices:

  1. mvn install:install-file
  2. mvn deploy:deploy-file

The first puts the jar in your local repo, the second in your shared repo manager, which you should have.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top