How can I link two maven projects to use the classes from one to the other?

0

            com.controller             EJBCARGA_ATM_REMOTO_MAVEN             1.0-SNAPSHOT             runtime             jar         

I have tried to include it that way, but it gives me an error when building the projects with the dependencies.

    
asked by david saul Ramirez 05.01.2018 в 18:33
source

1 answer

0

Install the Jar in your local Maven repository:

mvn install:install-file


-Dfile=<path-to-file>
  -DgroupId=<group-id>
  -DartifactId=<artifact-id>
  -Dversion=<version>
  -Dpackaging=<packaging>
  -DgeneratePom=true

Where: <path-to-file>  the path to the file to load
       <group-id>      the group that the file should be registered under
       <artifact-id>   the artifact name for the file
       <version>       the version of the file
       <packaging>     the packaging of the file e.g. jar

Instructions: Frequently Asked Technical Questions

You create a dependency and add it Manually

Good luck!

    
answered by 06.01.2018 в 01:30