2013年9月20日星期五

Anxious ~ Online ! maven compile error "can not find symbol "

pom.xml configuration

<parent>
<groupId>com.hxsmart.sicard</groupId>
<artifactId>sicard</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

given as follows:

E: \ workspace \ iccardcore \ mis \ src \ main \ java \ com \ hxsmart \ sicard \ core \ webapp \ action \
process \ DayEndProcessBean.java: [298,65] can not find symbol
symbol : variable autoTapeFile
Location: class com.hxsmart.framework.webapp.util.Constant

E: \ workspace \ iccardcore \ mis \ src \ main \ java \ com \ hxsmart \ sicard \ core \ webapp \ action \
process \ DayEndProcessBean.java: [298,118] can not find symbol
symbol : variable autoTapeFile
Location: class com.hxsmart.framework.webapp.util.Constant

E: \ workspace \ iccardcore \ mis \ src \ main \ java \ com \ hxsmart \ sicard \ core \ schedule \ DayEn
dJob.java: [94,66] can not find symbol
symbol : variable autoTapeFile
Location: class com.hxsmart.framework.webapp.util.Constant

E: \ workspace \ iccardcore \ mis \ src \ main \ java \ com \ hxsmart \ sicard \ core \ schedule \ DayEn
dJob.java: [94,119] can not find symbol
symbol : variable autoTapeFile
Location: class com.hxsmart.framework.webapp.util.Constant


In Constant in :

public static String autoTapeFile= "/home/sybase/";


tried many methods are not resolved, maven unfamiliar, experts hope to answer, thank you !

------ Solution ------------------------------------ --------
Java code and compiled to ensure there is no problem under the premise , the use of projec-> clean-> cleanAll clean up , and then try the next
------ For reference only ---------------------------------------


code in eclipse compiler no problem, also cleaned up , or being given
------ For reference only ------------------- --------------------
I have encountered this problem , toss me a long time , and depressed . . . .
------ For reference only -------------------------------------- -
resolved, ha ha , lz can mvn install sicard package
------ For reference only --------------------- ------------------

clean after like , but why?
------ For reference only - -------------------------------------
how to solve ah ! QQ243992112 seeking guidance
------ For reference only ----------------------------------- ----
first run mvn clean
then execute mvn command such as : mvn compile, mvn install, mvn deploy
no problems
------ For reference only ------------------------------ ---------
I also encountered this problem , clean enough after
------ For reference only -------------- -------------------------
my clean, clean all will not work, now is not good, depressed ah , seeking Daren advice , is certainly character encoding is wrong, but the set is UTF-8 , and have checked ah.
------ For reference only -------------------------------------- -
use projec-> clean-> cleanAll clean , really good , why

没有评论:

发表评论