TweetI have been using the hibernate3-maven-plugin for some time with a good deal of success in unit testing my data access layers through dbunit. I always separate my data access into a separate module, called data-services, for many reasons. Mostly so I can separate my testing to just database integration testing, and not unit testing [...]
READ MORE »Posts tagged Apache Maven
Maven ignores unit test with JUnit and TestNG
TweetToday I was trying to use JUnit 4, and JUnit 3 in a Maven archetype I was creating. I had previously added TestNG dependencies to this project. I then added JUnit in addition to the TestNG. I run mvn test and no unit tests where run. Strange! I did not get any errors even using [...]
READ MORE »Spring Security issue: Duplicate detected.
TweetSo I ran into an issue today that has been detailed at http://forum.springframework.org/showthread.php?p=193052 in the Spring forums that at first glance, looked identical to my issue. But this was in fact not my issue. First off, when I was using acegi, I declared an applicationContext-test.xml that myTestNG would instanciate. I then would import my other [...]
READ MORE »Managing your settings.xml
TweetNOTE: AVOID SPACES IN DIRECTORY NAMES AT ALL COST! It is mandatory that your JDK be installed in a directory that does NOT have spaces. The default installer uses “C:\Program Files\Java\**” and I just put mine in “c:\Java\**” instead. Local Repository Your “c:\Documents and Settings\[userId]\.m2\settings.xml” is the location where you can override various project properties. [...]
READ MORE »Keeping Tomcat binaries locally for integration testing on Linux
TweetI ran into an issue of server timeouts with embedded Tomcat in my Maven build once I moved to my Linux Build Server. I defined the cargo plugin as that is starting my embedded Tomcat during the build: <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0-alpha-4</version> <configuration> <wait>${cargo.wait}</wait> <container> <containerId>${cargo.container}</containerId> <output>${project.build.directory}/${cargo.container}.log</output> <log> ${project.build.directory}/${cargo.container}-cargo.log </log> <zipUrlInstaller> <url>${cargo.container.url}</url> <installDir>${installDir}</installDir> </zipUrlInstaller> </container> [...]
READ MORE »Deploying webapp to multiple containers
TweetIn my efforts to integrate Jetty, tomcat and selenium into my Maven build for continuous integration tests, I have run into some strange issues. It seems that if I run my webapp-2.2.war in my standalone Tomcat 5.5 installation, or in my Maven integrated Jetty, I can refer to my application at my root context of [...]
READ MORE »Testing CXF within embeded Tomcat using Spring
TweetI converted from XFire to CXF which is really XFire 2 I guess. Now I am using Maven, DBUnit, TestNG, H2 and embedded Tomcat for continuous integration testing. Now I wanted to be able to test my webservice contracts as well, and Spring has helped me to accomplish that. In my webservices war, I first [...]
READ MORE »Building Oracle BPEL suitcase from Maven
Tweetbpel-example I spent quite a while trying to get Maven to build our Oracle BPEL suitcases. I wanted to do this because I did not want to rely on JDeveloper to deploy the suitcases. That would also not fit into a continuous integration. The biggest issue we faced was the recursive JAR inclusion that the [...]
READ MORE »
