Normally, the maven-jetty-plugin should be configured in the pom of your Maven webapp project/module. But the project i am working is a legacy Java project with many modules and the webapp module depends on others. so i cannot simply start it due to the build sequence.
If you are a Tapestry user, the pom.xml in the above article may not work as the webapp cannot be started in the Embedded Jetty (404 Not Found). I am not sure the reason behind but i find a work around to solve the problem. The tricky thing is in the Embedded Jetty configuration in the cargo2-maven-plugin. Continue reading Run Selenium in Tapestry Maven Project→
In this article, i will show you how to integrate the Selenium tests into a Maven webapp project using the selenium-maven-plugin and cargo-maven2-plugin.
In this example, i used JUnit as the testing framework. There is no problem if you use TestNG to replace JUnit. This example is a simple Java webapp Maven project which only shows a simple html page (index.jsp). During the build, a Selenium Server is started with the webapp deployed in the Embedded Jetty. It then runs an Unit Test (Selenium Test) during the Maven integration-test life cycle. Here comes to the code. Continue reading Selenium – Integrate the Selenium Tests into Maven Build→
If you want to copy a Maven project dependency to a specific location, the maven-dependency-plugin could help.
For example. if you want to copy the log4j-1.2.15.jar to the project target folder during mvn install. you can use the following piece of code. Continue reading Maven – Copy A Dependency→
It is possible to add other Maven repositories which is specified explicitly in the pom.xml using the <repositories> node. But if you have a Maven Repository Manager like Archiva, you should configure those remote Maven repostories in Archiva instead of adding them in the pom.xml Continue reading Maven – Add New Remote Maven Repository in Archiva→
I always think that building a good developing environment for developers are essential in terms of efficiency as well as quality. maven-jetty-plugin let you run the webapp without deploying the .war to Java web container and run debug mode directly in the Eclipse IDE. Continue reading Maven – Run Webapp by maven-jetty-plugin→
The maven-antrun-plugin allows us to run Ant tasks in Maven. On the contrary, there is no Ant task for running Maven in Ant. Continue reading Run Maven in Ant→