java - Maven says that there is now dependency despite the fact that it exists -
I have a project of two modules and I have to use the class in the second one for the first time. For this, I have added the dependency of the first palm file:
& Lt; Version & gt; 1.0-snapshots & lt; / Edition & gt; & Lt; / Dependencies & gt; The following is when I am trying to add the module:
& lt; Project xmlns = "http: // maven.apache .org / POM / 4.0.0" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schema location = "http: / /maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> & Lt; ModelVersion & gt; 4.0.0 & lt; / ModelVersion & gt; & Lt; Parents & gt; & Lt; ArtifactId & gt; DLP & lt; / ArtifactId> & Lt; Group & gt; Com.messagedna.dlp & lt; / Group & gt; & Lt; Version & gt; 1.0 & lt; / Edition & gt; & Lt; / Parent & gt; & Lt; Group & gt; Com.mdnaRabbit.worker & lt; / Group & gt; & Lt; ArtifactId & gt; Worker & lt; / ArtifactId> & Lt; Version & gt; 1.0-snapshots & lt; / Edition & gt; & Lt; Packaging & gt; Jar & lt; / Packaging & gt; & Lt; Name & gt; Worker & lt; / Name & gt; When I am importing classes in the first class like this:
import com.mdnaRabbit.worker.data.Data; And in trying to execute the packaging I have the following trace:
[Error] Compilation Error: [INFO] ------- - ------------------------------------------------ - - [Error] /home/mikhail/bzrrep/DLP/NewTask/src/main/java/com/mdnaRabbit/newt/App.java: [9.33] Error: package com.mdnaRabbit.worker.data does not exist [ ERROR] /home/mikhail/bzrrep/DLP/NewTask/src/main/java/com/mdnaRabbit/newt/App.java:[39,19] Error: Icons can not be found [Error] Class AP / Home / Mikhail / Bzrrep / DLP / NewTask / src / main / java / com / mdnarabbit / newt / app.java: [2712] Error: Icons can not be found [Error] Category / Home / M Error: [Error] Icon / bzrrep / DLP / NewTask / src / Main / Java / Com / Mdnrbit / Newt / APJavaA: [40,8] Error: Icon / Error: Main / Java / Com / MDNRBT / Newt / App.java: [4024] Error: Symbol [INFO] 5 errors can not be found [INFO] ----------------- --------- ----------------------------------- [INFO] --- --------- ----------------------------------------- --------- -------- - [Error] Build Failure [INFO] ------------------------ ---------------- -------------------------------- [INFO ] Compilation failure Import String Red
is not underlined with solution : let me run "mvn" Need install "
Comments
Post a Comment