maven

Getting started with Hudson

To get started with hudson you need to download the latest hudson version Winstone is included in the war file so with a single command you can start hudson...

Include integration tests in maven build with TestNG

To execute integration tests you can use testNG an other test framwork bases on junit framework. Test Suite Just create a simple testNG suite defined in a XML format: Annotations It calls the following Selenium test case where i have created a simple login script that logins with the supplied username and password (annotated with testng annotations ). It validates the tests if a valid or invalid repose is available in the HTML page. Used annotations: @BeforeClass you specify...

Integration test with maven

Configure in your maven project a simple integration test looks complex but it really isn't. Belolw you see the configuration of the plugin's with their configuration i will shortly explain the items maven-failsafe-plugin Use the maven failsafe plugin to run your integration tests. You can use the maven-surefire-plugin but this plugin will halt on the integration-test phase if there occurs an error. This behavior looks valid because you don't want to install or deploy any code if an...

Maven mirror configuration

Today i got the question if it was possible to configure a repository directly in the pom file without specifying the repository in our internal nexus server. This is possible as described in the Maven mirror quide. configuration We configured a nexus server to control the used dependencies and ensure that all developers are using the correct versions. Therefore we configured the following in our settings.xml All repostiory request that mach '*' will be redirected to the nexus...