Sometimes you need an ant build file for an existing Eclipse project, for instance when moving it to jenkins.. The easy way to do it is as follows:
on Eclipse click on File -> Export -> General -> Ant Buildfiles and specify the wanted fields.
It does not automatically have a war target, so have to add it.
eclipse etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
eclipse etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
10 Ağustos 2015 Pazartesi
creating ant file for eclipse project
18 Haziran 2015 Perşembe
using testng on eclipse
This post provides a quick roadmap to start using testng on eclipse, since there is enourmous amount of documentation on web and it is hard to pick the most relevant ones..
- http://www.testng.org/doc/eclipse.html : quite well to start using the framework.
- https://khyatisehgal.wordpress.com/2014/08/24/java-lang-unsupportedclassversionerror-unsupported-major-minor-version-51-0-at/ : helps to solve the troubles encountered while following the first tutorial..
- https://www.youtube.com/watch?v=gFLpTjH9dlY : not too relevant, but it is a good seminar about testing on enterprise applications, so i wanted to share..
another tip: testng eclipse plugin version 6.9.5... (Update Site - http://beust.com/eclipse) supports JDK7 and 6.8.6 (Update Site - http://beust.com/eclipse-old/eclipse-6.8.6.20141201_2240) supports JDK6.
Etiketler:
eclipse,
eclipse indigo,
testng,
unit testing
19 Mayıs 2013 Pazar
debug maven project in eclipse
This post (http://www.homik.de/think/index.php/2008/07/31/debugging-maven-projects-with-eclipse/) explains how to debug a maven project with eclipse ide. i just copy the steps from that post:
- Create a new Java Project and call it “Maven Debug”. This Project willnever have any source code in it, it is just a shell for attaching the debugger.
- Create a debug configuration: Run -> Debug Configurations and then right click on Remote Java Application and select New launch configuration. Call it “Maven Surefire”.
- On the Connect tab click the Browse button and select the “Maven Debug” project.
- Set connection properties to localhost and port 5005. This is the port on which Surefire waits for the debugger.
- The connection type is Standard (Socket Attach)
- On the Source tab add all projects that have any Maven source that you want to debug.
During debugging process:
- Select break points in the code you’re are going to run. Note, you cn select only code in your test classes. It won’t work on classes outside the test phase.
- In your command line, append the following switch to your maven command: -Dmaven.surefire.debug. For example, to debug the tests run by the maven lifecycle install do mvn install -Dmaven.surefire.debug
- Wait for maven to pause its execution and display the message: Listeningfor transport dt_socket at address: 5005
- Attach the debugger to the running maven by selecting the “Maven Surefire” debug configuration created above. Your debugger should stop at your breakpoint.
install maven plugin
I have discovered an API that can be useful to my thesis project. Unfortunately, the API address is broken at the moment. However, i could be able to find source code which is maven project. Therefore, i installed maven in my Eclipse Juno. http://stackoverflow.com/questions/11242107/maven-with-eclipse-juno is helpful for this purpose.
In summary,
- Install maven
- download http://maven.apache.org/download.cgi#Installation (i used apache-maven-3.0.5-bin.zip)
- extract the zip and follow the ReadMe file (which says to add bin folder to PATH environment variable)
- In Eclipse IDE, do Help -> Install New Software as follows: (installing maven for eclipse plugin)
After a successful installation, I imported the maven project by doing File -> Import as follows:
However, I got the following error during import process:
However changing maven installation path in Eclipse via Preferences interface did not help to resolve the problem :( So I continued the import process with errors..
EDIT 13:49
The problem was due to my import project style.. I included all the pom files at first, however importing only the pom in the parent directory was enough! That solved the situation in my condition..
Kaydol:
Kayıtlar (Atom)



