<servers><server><id>releases</id><username>admin</username><password>admin123</password></server><server><id>snapshots</id><username>admin</username><password>admin123</password></server><server><id>thirdparty</id><username>admin</username><password>admin123</password></server><server><id>snapshots-host</id><username>admin</username><password>admin123</password></server></servers>
...........<repositories><repository><id>snapshots</id><name>Snapshots</name></repository><repository><id>releases</id><name>Releases</name></repository><repository><id>snapshots-host</id><name>SnapshotsHost</name></repository></repositories>
java.lang.Error: Unresolved compilation problems:
The import javax.servlet.ServletContext cannot be resolved
The import javax.servlet.http.HttpSession cannot be resolved
The import javax.servlet.http.HttpSessionEvent cannot be resolved
The import javax.servlet.http.HttpSessionListener cannot be resolved
HttpSessionListener cannot be resolved to a type
ServletContext cannot be resolved to a type
HttpSessionEvent cannot be resolved to a type
HttpSession cannot be resolved to a type
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
HttpSessionEvent cannot be resolved to a type
HttpSession cannot be resolved to a type
重现:
@GET public Response sayHello(@Context HttpServletRequest request, @Context HttpServletResponse response){ File file=new File("repository/configuration.xml"); URI uri = file.toURI(); System.out.println(uri); return Response.ok().status(200).build(); } |
by 刘迎光@萤火虫工作室
OpenBI交流群:495266201
MicroService 微服务交流群:217722918
ma
最近参与前端开发任务,用到nodejs,虽然公司同事都用webstorm,自己也用了,但是总感觉不顺手,可能是常年使用eclipse开发有关(这里不讨论最佳开发工具,自己顺手才是王道),于是自己想要使用eclipse开发nodejs项目,想到之前听说的nodeclipse,就去官网看了下,安装步奏还是挺方便的,安装后初步试用了下,感觉挺顺手的
1、安装nodejs
2、安装jdk,配置eclipse,这里我用的是eclipse 4.5.2
3、下载nodeclipse离线安装包:
http://nchc.dl.sourceforge.net/project/nodeclipse/update-site-archive/org.nodeclipse.site-1.0.2-201509250223.zip
或者
http://pan.baidu.com/s/1dFiF7IL
4、安装nodeclipse,help-->Install New Software,如下图选择下载的压缩包
选择插件:
5、完成以上步奏即完成了安装
更多安装方式还请参考如下地址:
http://www.nodeclipse.org/updates/