简体   繁体   English

如何使用Maven在Eclipse中创建可调试的axis2项目?

[英]how do i create a debuggable axis2 project in eclipse using maven?

I followed the tutorial at this link to create a axis2 webservice project using maven and eclipse. 我在此链接中遵循了教程,使用maven和eclipse创建axis2 Web服务项目。

However, this setup doesn't allow me to debug my code. 但是,此设置不允许我调试代码。 Can someone point me to a link which will allow me to use maven to build my axis2 webservice and debug the code inside eclipse? 有人可以指向我一个链接,该链接使我可以使用maven来构建axis2 Web服务并调试eclipse中的代码吗?

If you're using Tomcat within Eclipse, then perhaps it's just a matter of putting the project on the source lookup path. 如果您在Eclipse中使用Tomcat,那么可能只是将项目放在源代码查找路径上的问题。 Because you're not deploying it as a .war in Tomcat, it's just deployed as an .aar within the axis2.war deployment. 因为您没有将它作为.war部署在Tomcat中,所以它只是在axis2.war部署中作为.aar部署。 Try this: 尝试这个:

  1. Run -> Debug Configurations... Run -> Debug Configurations...
  2. Select your Tomcat instance under Apache Tomcat Apache Tomcat下选择您的Tomcat实例
  3. Select the Source tab 选择Source标签
  4. Click the Add... button 点击Add...按钮
  5. Select Java Project and then HighScoreService 选择“ Java Project ,然后选择“ HighScoreService

You should be able to put a breakpoint in the code and debug it. 您应该能够在代码中放置一个断点并对其进行调试。 I put a breakpoint on line 21 of HighScoreService.java , invoked getHighScores from SoapUI, and was able to debug. 我把一个断点上线21 HighScoreService.java ,调用getHighScores从了SoapUI,并能够调试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM