Re: [m2] Integration-test target runs integration tests twice...

2007-04-25 Thread Chris Richardson
Was there any decision as to whether this (ie. surefire configuration in parent POM causing surefire plugin in child POM that's bound to the integration-test phase to run twice) is a bug or feature? Any maven committers out there? Chris -- Enterprise POJO consulting -

Re: EJB3 Web project with cargo, jetty6

2006-07-14 Thread Chris Richardson
Tony, If you want to test your session beans and MDBs you can use the JBoss microcontainer. It starts up very quickly. No need for a long running server. Its been discussed a few times on this mailing list - I also have an example in my book's source code. EJB3 entity beans (aka JPA) can easily

Re: Best practices in testing Hibernate/EJB3 POJOs (or doing database tests)

2006-07-11 Thread Chris Richardson
Jose, Here are a couple of things you might find interesting: * A excerpt from my book POJOs in Action on testing a persistence layer: http://www.theserverside.com/tt/articles/article.tss?l=PersistentDomain * The slide from my JavaOne talk on the same topic:

Re: DESPERATE: JBoss EJB3 embeddable container fails under surefire?

2006-03-28 Thread Chris Richardson
); } It actually CRASHES surefire, I think because of a null pointer exception in EJB3StandaloneBootstrap.boot. But still runs fine in eclipse. Don't know what the problem is, but it seems like a bug in Surefire. I updated SUREFIRE-38 to document this. By the way, thank you to Chris Richardson

Re: DESPERATE: JBoss EJB3 embeddable container fails under surefire?

2006-03-20 Thread Chris Richardson
to test JBoss EJB3 EJBs using surefire or testNG, so I am wondering what the options are, and how this emedded EJB3 container works / fits in ? Pete On 19/03/06, Chris Richardson [EMAIL PROTECTED] wrote: Dan, I also had a problem using maven2 to run the EJB3/JBoss microcontainer

Re: DESPERATE: JBoss EJB3 embeddable container fails under surefire?

2006-03-19 Thread Chris Richardson
Dan, I also had a problem using maven2 to run the EJB3/JBoss microcontainer tests for the example from my book. It got this error: Caused by: java.net.MalformedURLException: no protocol: and at java.net.URL.lt;initgt;(URL.java:567) at java.net.URL.lt;initgt;(URL.java:464) at

Where is the spring.jar for Spring 2.0 m1?

2006-01-20 Thread Chris Richardson
Hi, I've started to migrate the example source code for my book to Spring 2.0M1. However, http://www.ibiblio.org/maven2/org/springframework/spring/2.0-m1/ does not contain a spring.jar. I've had to replace the dependency on spring.jar with dependencies on the smaller jars: spring-code.jar,

Re: Where is the spring.jar for Spring 2.0 m1?

2006-01-20 Thread Chris Richardson
not using it and use the smaller ones) On 1/20/06, Chris Richardson [EMAIL PROTECTED] wrote: Hi, I've started to migrate the example source code for my book to Spring 2.0M1. However, http://www.ibiblio.org/maven2/org/springframework/spring/2.0-m1/ does not contain a spring.jar. I've

Re: maven-jetty6-plugin

2005-12-27 Thread Chris Richardson
Hi, When I try running jetty6:run I get this error, which seems to be related to log4j. Any suggestions? Thanks. Chris [DEBUG] Trace java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at

Re: Maven 1 book for Maven 2

2005-12-09 Thread Chris Richardson
I found it very useful to read '*Maven*: A *Developer's Notebook'* when I started using maven2. I hadn't used maven1 and this book was a good introduction to many of the concepts and capabilities of maven2. Its also a quick read. Chris -- Enterprise POJO consulting -

Where is the source code for this JPOX maven plugin: maven-jpox-plugin version 1.0.1?

2005-11-28 Thread Chris Richardson
Hello, I am trying to track down the source code for this JPOX maven plugin. I've only been able to find older (maven1/jelly) versions. Here is an excerpt from maven-jpox-plugin-1.0.1 project parent artifactIdmojo/artifactId groupIdorg.codehaus.mojo/groupId version2/version

Re: How to make self contained database dependant unit tests in maven 2?

2005-11-09 Thread Chris Richardson
I use HSQL DB (http://hsqldb.org/) for testing with both Kodo JDO and Hibernate. It works well and is very fast. This is what I have in my pom.xml dependency groupIdhsqldb/groupId artifactIdhsqldb/artifactId version1.7.2.2 http://1.7.2.2/version scopetest/scope /dependency Chris --

Re: How to make self contained database dependant unit tests in maven 2?

2005-11-09 Thread Chris Richardson
- http://chris-richardson.blog-city.com -Original Message- From: Chris Richardson [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 09, 2005 2:06 PM To: Maven Users List Subject: Re: How to make self contained database dependant unit tests in maven 2? I use HSQL DB (http

After using install:install-file for 3rdparty jar, maven2 still checks ibiblio

2005-11-08 Thread Chris Richardson
Hi, I used install:install-file to install a bunch of 3rd party jars into my local (default) repository But maven 2.0 insists on trying to download the dependency from http://repo1.maven.org. This fails of course: [WARNING] Unable to get resource from repository central (

Re: After using install:install-file for 3rdparty jar, maven2 still checks ibiblio

2005-11-08 Thread Chris Richardson
. - Brett On 11/9/05, Chris Richardson [EMAIL PROTECTED] wrote: Hi, I used install:install-file to install a bunch of 3rd party jars into my local (default) repository But maven 2.0 insists on trying to download the dependency from http://repo1.maven.org. This fails of course