Does not compile Local Repository - Maven

0

I am using Maven with Eclipse and I have configured a source repository in the pom.xml. In my .m2 are all the dependencies included jars of other projects that I must use (before they were as lib).

My problem is that it fails to compile in those java classes that refer to class methods included in said jars.

For example:

  

... mundoMundo.java:[586,91] incompatible types: ....

When in the pom file I have something like this:

<dependency> 
  <groupId>es.proyectomundo</groupId> 
  <artifactId>ProyectoMundo</artifactId> 
  <version>1.0</version> 
</dependency> 

Why should the dependencies be in .m2?

    
asked by Luna 31.05.2017 в 17:41
source

1 answer

0

The own libraries are added manually in the .m2 with the jar, the Pom and with the same groupId. However, in addition to the error when compiling, when standing on the line with an error, it indicates "configure build path ..."

Thank you!

    
answered by 01.06.2017 в 09:20