Cannot resolve symbol 'exec'
I am having a strange issue
1. In my pom.xml, I have the following entry
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-exec</artifactId>
<version>1.1</version>
</dependency>
2. And in my IDE I have the following import
import org.apache.log4j.Logger;
import org.apache.log4j.Level;
import org.apache.commons.exec.ExecuteWatchdog;
I am getting an error on the 3rd import, which is strange when I compile it in command line, it works fine, but I cannot get the IDE to work which is a pain.
Any help would be appreciated.
请先登录再写评论。
Hi Vivek,
Please try to execute 'main menu | file | invalidate caches'.
Provide a sample project (sources and pom.xml) if the above doesn't help.
Denis
That didn't help, I've attached the pom and source for reference.
Attachment(s):
code.java.zip
pom.xml
Sorry but I can't reproduce the problem under IJ 12.1.4.
Please check the screencast which illustrates my actions and advise on what should be changed.
Denis