How eclim-java-import-organize import third lib?
Closed this issue · 2 comments
Deleted user commented
I add jedis in pom.xml, update .classpath file with mvn eclipse:eclipse, but run eclim-java-import-organize at JedisPool point, it failed, error info:
App | JedisPool cannot be resolved to a type
This is my .classpath file:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/test/java" output="target/test-classes" including="**/*.java"/>
<classpathentry kind="src" path="src/main/java" including="**/*.java"/>
<classpathentry kind="output" path="target/classes"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
<classpathentry kind="var" path="M2_REPO/redis/clients/jedis/2.7.2/jedis-2.7.2.jar"/>
<classpathentry kind="var" path="M2_REPO/org/apache/commons/commons-pool2/2.3/commons-pool2-2.3.jar"/>
</classpath>
This is my pom.xml:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.talkingdata.dmk.frontend</groupId>
<artifactId>batchservice</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>batchservice</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>2.7.2</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
I add
import redis.client.redis.JedisPool;
manually, get info The import redis cann't be solved.
jchochli commented
Does it work from within eclipse?
Deleted user commented
I run mvn eclipse:eclipse before eclim-project-import, now it works OK.