How to debug Ant Ivy project in Eclipse IDE

摘要: In this tutorial, we will show you how to debug an Ant-Ivy web project in Eclipse IDE.

In this tutorial, we will show you how to debug an Ant-Ivy web project in Eclipse IDE.

Technologies used :

  1. Eclipse 4.2
  2. Eclipse Tomcat Plugin
  3. Ant 1.9.4
  4. Apache IvyDE
  5. Spring 4.1.3.RELEASE
Note
Previous Ant Spring MVC web project will be reused.

1. Install Apache IvyDE

Install Apache IvyDE, it integrates Ivy into Eclipse IDE. Restart Eclipse to finish the installation.

2. Add Ivy support to Project

Imports previous Ant Spring MVC project into Eclipse IDE as Java project (we will convert it later).

Note
There are some error icons on Java source, ignore it, the error will be gone after integrated with Ivy dependency management.

2.1 Right clicks on the project folder, select “configuration -> Add Ivy Dependency Management”

2.2 Right clicks on either ivy.xml or build.xml, choose “Add Ivy Library…”, a Ivy dialog box will be prompted, clicks on the finish button to accept the default settings.

2.3 Right clicks on the project folder again, Select “Ivy”, many options are available now.

3. Convert to Eclipse Web Project

To convert the imported Java project to web project (WTP) in Eclipse :

3.1 Right clicks on the project, select “properties -> Project Facets” :

Check Java, select 1.7, check Dynamic Web Module, select 2.5, clicks on the “Further configuration available”, clicks “next” to accept the default for Java application,

Update “Content directory” to war folder (The folder which contains the WEB-INF folder), unchecked the generate web.xml option.

3.2 On project properties, select “Deployment Assembly”, clicks on the “Add…” button. Select “Java Build Path Entries -> Ivy”.

Make sure the folders are corrected, and Ivy libraries are added.

4. Debug It

Above project is integrated with Eclipse, just debug the project as usual. In Server view, just create a Tomcat server and attaches the web project.

Done.

References

  1. IvyDE official website
  2. Ant Spring MVC web project

上一篇: Where is Eclipse deploy web application Tomcat
下一篇: Ant Spring MVC and WAR file Example
 评论 ( What Do You Think )
名称
邮箱
网址
评论
验证
   
 

 


  • 微信公众号

  • 我的微信

站点声明:

1、一号门博客CMS,由Python, MySQL, Nginx, Wsgi 强力驱动

2、部分文章或者资源来源于互联网, 有时候很难判断是否侵权, 若有侵权, 请联系邮箱:summer@yihaomen.com, 同时欢迎大家注册用户,主动发布无版权争议的 文章/资源.

3、鄂ICP备14001754号-3, 鄂公网安备 42280202422812号