Answer the question
In order to leave comments, you need to log in
How to force see dependency in maven project?
Hello.
There are 2 maven projects. I write under IDEA. The first project (let's call it project A) compiled and marked up the artifact in the local repository.
The second project (let's call it project B) uses an artifact from project A, or rather uses an instance of the class. With the help of IDEA features, I add this artifact to project B.
Project B has the structure:
projectB
|-- pom.xml
|-- src
|-- main
|-- java
|--ru
|-- ru.sample
-- Sample.java
|-- test
|-- java
|-- ru
|-- ru.sample
-- SampleTest.java
protected ListElemene element;
, IDEA prompts me to either create a class or connect a maven dependency. But in the pom.xml file, the dependency is already there. projectB
|-- pom.xml
|-- src
|-- main
|-- java
--App.java
|-- test
|-- java
-- AppTest.java
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question