Cannot find symbol error in compile time

mostafa jamareh September 24, 2013

hi all,

when i tried to compile my jira plugin i've got this:

[ERROR] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Compilation failure

/home/........./src/main/java/com/............. .java:[8,39] cannot find symbol

symbol : class elements

location: package org.codehaus.cargo.module.webapp

and i tried to add its dependency ,but doesn't work

<dependency>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-core-api-container</artifactId>
<version>1.4.4</version>
</dependency>
what can i do to resolve it?
thank's in advance,

3 answers

0 votes
RambanamP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 24, 2013

can you try this

&lt;dependency&gt;
&lt;groupId&gt;org.codehaus.cargo&lt;/groupId&gt;
&lt;artifactId&gt;cargo-core-api-container&lt;/artifactId&gt;
&lt;version&gt;1.4.4&lt;/version&gt;
&lt;scope&gt;provided&lt;/scope&gt;
&lt;/dependency&gt;

after adding this to pom.xml run atlas-mvn eclipse:eclipse command

0 votes
mostafa jamareh September 24, 2013

thanks rambanam

yes i did try

0 votes
RambanamP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 24, 2013

did you ran atlas-mvn eclipse:eclipse command?

Suggest an answer

Log in or Sign up to answer