有没有兄弟碰到过maven在linux环境下构建引用java_memcached-release_2.5.1.jar 后报
[ERROR] ObjectCacheImpl.java:[9,0] The import com.danga.MemCached cannot be resolved
[ERROR] ObjectCacheImpl.java:[25,0] MemCachedClient cannot be resolved to a type
[ERROR] ObjectCacheImpl.java:[29,0] MemCachedClient cannot be resolved to a type
[ERROR] ObjectCacheImpl.java:[30,0] cacheProvider cannot be resolved
[ERROR] ObjectCacheImpl.java:[250,0] cacheProvider cannot be resolved or is not a field
错误?
使用
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<compilerId>eclipse</compilerId>
<source>1.5</source>
<target>1.5</target>
<encoding>UTF-8</encoding>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-compiler-eclipse</artifactId>
<version>1.8.6</version>
</dependency>
</dependencies>
</plugin>
会报这个错误
但是去掉eclipse编译器则不报错,
求大虾帮助,谢谢!
dancedwolf