Re: Surefire TestNG troubles

2007-04-06 Thread Jacek Laskowski
On 4/7/07, Wayne Fay <[EMAIL PROTECTED]> wrote: Don't suppose you have a working JPA with Hibernate EM and TestNG tests etc example I could take a look at (ie complete source code) just to get this all sorted out? That would be super helpful. As you wish... http://www.jaceklaskowski.pl/wiki/N

Re: Problems with implementing clover with m2

2007-04-06 Thread Baz
Wayne, read the link you sent. Are you saying that i should use different version of JDK? I cannot run different version since other software is using 1.5.0. Is there any way around this issue? On 4/6/07, Baz <[EMAIL PROTECTED]> wrote: Wayne, thanks for your reply. No kidding. I am running 1.5.

Re: Problems with implementing clover with m2

2007-04-06 Thread Baz
Wayne, thanks for your reply. No kidding. I am running 1.5.0 and clover 1.3.13. Is there any way around it? B. C:\p4\gemini\engines\platform>java -version java version "1.5.0_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) Client VM (build 1.5.0_06-b05

Re: Problems with implementing clover with m2

2007-04-06 Thread Wayne Fay
Try mvn clean to clean up your target, then clover again. Also, the enum problem usually means that you've got a pre-1.5 JDK with a 1.5 source file. Check your JDK version, and check this page: http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi ler-source-and-target.html Wa

Re: Problems with implementing clover with m2

2007-04-06 Thread Baz
Here is more info from the first time i added the clover code into pom.xml: [INFO] [clover:instrumentInternal] Clover Version 1.3.13, built on September 04 2006 loaded from: C:\Documents and Settings\Administrator\.m2\com\cenqua\clover\clove r\1.3.13\clover-1.3.13.jar 5 Seat Team License register

Re: Empty Unit Test Errors out

2007-04-06 Thread Wayne Fay
Perhaps add a dependency on Geronimo JaxRPC 1.1? http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-jaxrpc_1.1_spec/1.1/geronimo-jaxrpc_1.1_spec-1.1.pom Wayne On 4/6/07, Chris Russell <[EMAIL PROTECTED]> wrote: Hi Experts, I'm getting an error when trying to run a unit test (I've

Re: Surefire TestNG troubles

2007-04-06 Thread Wayne Fay
Thanks Jacek. I actually found the Hibernate artifacts on: andromeda team-andromeda http://team.andromda.org/maven2/ howardlewisship http://howardlewisship.com/repository Don't suppose you have a working JPA with Hibernate EM and TestNG tests etc

Problems with implementing clover with m2

2007-04-06 Thread Baz
Hi, I am having a lot of issue with implementing clover with m2. I have read http://maven.apache.org/plugins/maven-clover-plugin/usage.html and I am having the following error: [INFO] [clover:instrumentInternal] Clover Version 1.3.13, built on September 04 2006 loaded from: C:\Documents and Sett

Re: Understanding SNAPSHOT dependencies

2007-04-06 Thread Wayne Fay
I understand your problem, and I've seen it myself (infrequently) but don't really know how to deal with it other than telling you to stop using SNAPSHOTs and instead specify explicit versions in your builds etc. This might be posted in JIRA, go check... Wayne On 4/6/07, Tommy Knowlton <[EMAIL

Re: Understanding SNAPSHOT dependencies

2007-04-06 Thread Tommy Knowlton
Wayne you're right about the , and we've actually recently implemented that: it works with regard to eliminating the duplicates. Which means I didn't think long enough about how to express the problem I'm actually experiencing. We've got a webapp that provides some basic functionality, and we've

Re: Surefire TestNG troubles

2007-04-06 Thread Jacek Laskowski
On 4/3/07, Wayne Fay <[EMAIL PROTECTED]> wrote: Wondering who is using TestNG successfully on the list?? I think I am. The TestNG tests I've been doing are not very sophisticated, but let me test out the JPA features. I've recently been working on a new EJB3/JPA app by using Hibernate's Cavea

Empty Unit Test Errors out

2007-04-06 Thread Chris Russell
Hi Experts, I'm getting an error when trying to run a unit test (I've excluded all other tests but one). This test is actually empty: public void testSaveProfile() { //TODO test the save profile in local DB } The test fails with an error (not a failure/bad assert): Running test.com.o

MNG-2650 (classifiers), clover, and ejb-client

2007-04-06 Thread Chris Tucker
Hi all, I'm hitting issues related to MNG-2569 (http://jira.codehaus.org/browse/MNG-2596) when using the clover plugin to instrument an EJB project. The EJB generates both the full EJB and a client EJB, which uses the -client classifier to distinguish itself from the main artifact. Unfortunatel

Re: Getting frustrated with maven2

2007-04-06 Thread Wayne Fay
This is really a question for the Xdoclet team... But looking at their site, it seems like you should use the tag inside your Xdoclet configuration. Wayne On 4/6/07, Peter L. Berghold <[EMAIL PROTECTED]> wrote: On Fri, 2007-04-06 at 15:15 -0500, Eric Redmond wrote: > > > org.codehaus.mojo

Re: Getting frustrated with maven2

2007-04-06 Thread Mick Knutson
Provider.hbm.xml ProviderHistory.hbm.xml Plan.hbm.xml State.hbm.xml Taxonomy.hbm.xml Queries.hbm.xml

Re: Getting frustrated with maven2

2007-04-06 Thread Mick Knutson
Use Spring instead as Spring will get rid of the hibernate config and XDoclet will create the hibernate mappings. On 4/6/07, Peter L. Berghold <[EMAIL PROTECTED]> wrote: On Fri, 2007-04-06 at 15:15 -0500, Eric Redmond wrote: > > > org.codehaus.mojo > xdoclet-maven-plugin > 1.0-alpha-2

Re: Getting frustrated with maven2

2007-04-06 Thread Peter L. Berghold
On Fri, 2007-04-06 at 15:15 -0500, Eric Redmond wrote: > > > org.codehaus.mojo > xdoclet-maven-plugin > 1.0-alpha-2 > BINGO! That was the one piece of information I wasn't getting. The examples I was looking at on line (which I cut/paste literally) referenced SNAPSHOTs. LAST QUESTI

Re: Getting frustrated with maven2

2007-04-06 Thread Mick Knutson
I don't have to specify the version in my build, and it used 1.2.3 On 4/6/07, Eric Redmond <[EMAIL PROTECTED]> wrote: You're repository is messed up... there's no pom there and xdoclet is the wrong groupId. Did you just drop a jar in there - I hope not - manually playing with your local repo

Re: Getting frustrated with maven2

2007-04-06 Thread Eric Redmond
You're repository is messed up... there's no pom there and xdoclet is the wrong groupId. Did you just drop a jar in there - I hope not - manually playing with your local repository is a sure way of getting screwed up. Also, don't use SNAPSHOT if you can help it... just use the one in the public r

Re: Understanding SNAPSHOT dependencies

2007-04-06 Thread Wayne Fay
Try extracting all your dependencies (with versions) and move them into a section in a shared parent pom. Then remove the nodes specified in the dependencies in all the children poms. Wayne On 4/6/07, Tommy Knowlton <[EMAIL PROTECTED]> wrote: Hello, My project team has got on the order of 30

Understanding SNAPSHOT dependencies

2007-04-06 Thread Tommy Knowlton
Hello, My project team has got on the order of 30 projects that contribute to a single webapp. Most of the projects produce jar artifacts, that go into the webapp's WEB-INF/lib. The problem I'm having is inconsistency with how Maven resolves (and names) versioned artifacts... Within WEB-INF/lib,

Re: How to pass M2 properties to surefire plugin's argLine

2007-04-06 Thread Jacek Laskowski
On 4/5/07, David Jackman <[EMAIL PROTECTED]> wrote: That much is working okay. What isn't working now is the fact that my java agent has dependencies of its own that aren't in the surefire classpath. Wayne gave me something to try to get around this problem. Hi David, I could run the Cayenn

[m2]moving from hibernateDoclet XD1 to XD2 help?

2007-04-06 Thread Mick Knutson
Can anyone help me to convert from XD1 to XD2 specifically hibernateDoclet and Axis? -- --- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/djmick_dot_com http://www.myspace.com/sexybeotche

Re: Getting frustrated with maven2

2007-04-06 Thread Mick Knutson
Here is my XDoclet declaration: org.codehaus.mojo xdoclet-maven-plugin generate-sources

Re: Getting frustrated with maven2

2007-04-06 Thread Peter L. Berghold
After munging out some typos in the cited webpage I now get the follwing error when I run mvn install: [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.codehaus.mojo:mav

Re: Getting frustrated with maven2

2007-04-06 Thread Wayne Fay
...your xdoc config goes here... As Carlos suggested, there are a lot of resources available to help you with your problems. In particular, the Better Builds With Maven free e-book (pdf) is great. Wayne On 4/6/07, Carlos Sanchez <[EMAIL PROTECTED]> wrote: reading the book should help with

Re: Getting frustrated with maven2

2007-04-06 Thread Carlos Sanchez
reading the book should help with the basic stuff http://maven.apache.org/articles.html On 4/6/07, Peter L. Berghold <[EMAIL PROTECTED]> wrote: On Fri, 2007-04-06 at 11:10 -0700, Carlos Sanchez wrote: > for what you say your frustrations come from the xdoclet plugin, not > maven itself > True e

Re: Getting frustrated with maven2

2007-04-06 Thread Steven Rowe
You should create a tag inside your tag, then put the tag for xdoclet configurion inside of the tag. See . Steve Peter L. Berghold wrote: > On Fri, 2007-04-06 at 11:10 -0700, Carlos Sanchez wrote: >> for what you say your frustrations come from the xdoclet p

Re: Getting frustrated with maven2

2007-04-06 Thread Eric Daigneault
Peter L. Berghold wrote: On Fri, 2007-04-06 at 11:10 -0700, Carlos Sanchez wrote: for what you say your frustrations come from the xdoclet plugin, not maven itself True enough. your config doesn't look like the docs http://mojo.codehaus.org/xdoclet-maven-plugin/usage.html

Re: build failures, warnings and continuum

2007-04-06 Thread Erik Ruisma
Thanks a lot for the answer. I think we will wait for the 1.1 to be released (and hoping this will be anytime soon :-) ) Erik. On 4/5/07, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: In 1.1, you can force a build without changes (and re-do a complete checkout) And if you have 2 build definition

Re: Getting frustrated with maven2

2007-04-06 Thread Peter L. Berghold
On Fri, 2007-04-06 at 11:10 -0700, Carlos Sanchez wrote: > for what you say your frustrations come from the xdoclet plugin, not > maven itself > True enough. > your config doesn't look like the docs > http://mojo.codehaus.org/xdoclet-maven-plugin/usage.html OK.. I tried pasting that into my po

Re: Getting frustrated with maven2

2007-04-06 Thread Carlos Sanchez
for what you say your frustrations come from the xdoclet plugin, not maven itself your config doesn't look like the docs http://mojo.codehaus.org/xdoclet-maven-plugin/usage.html On 4/6/07, Peter L. Berghold <[EMAIL PROTECTED]> wrote: Hi folks, I'm having major frustration here trying to get a

Getting frustrated with maven2

2007-04-06 Thread Peter L. Berghold
Hi folks, I'm having major frustration here trying to get a project built using maven. Here's where I want to get to: My project is going to be a web application running struts/tiles and using Hibernate as the data persistance layer. I want to define my POJOs for my data objects and use xdoclet

RE: How to pass M2 properties to surefire plugin's argLine

2007-04-06 Thread David Jackman
The short answer: it didn't work. Surefire doesn't consider any of the dependencies when it starts the JVM to run the tests--it figures it will be applying those dependencies to the custom classloader it uses when it loads the test classes later on. There aren't any configuration properties in su

maven-plugin-testing-tools and code coverage?

2007-04-06 Thread Matthew Beermann
Lately, I've been using the maven-plugin-testing-tools to create unit tests for my plugins, and it works like a charm - mostly. However, I've discovered that I can't get code coverage data using either Clover or Cobertura - they always come up with 0% coverage. Is this an inherent limitation of

Maven mojo Compilation failure

2007-04-06 Thread Hodanics, Charles J.
Can someone assist with the following error when I run Maven2 compile from eclipse and continuum. I have checked a few posts and seen that JRE to JDK is a fix, but I already have this done. [INFO] Compiling 35 source files to "C:\Documents.." [ERROR] mojo-execute : compiler:compile Diagnosis: Co

Re: Enable Assertions

2007-04-06 Thread Mac81
Hi Johan, thank you very much for your answer. That was a great help. :-) Greetings, Mac -- View this message in context: http://www.nabble.com/Enable-Assertions-tf3530517s177.html#a9873298 Sent from the Maven - Users mailing list archive at Nabble.com. --

Re: m2 profiles: pom with os specific (and native) dependencies

2007-04-06 Thread jcharum
Joerg Hohwiller wrote: > > 2. SWT also requires native libraries (dll/so files). Is there a proper > way how > to put native libs into a repository and define them as dependency? Did you ever find an elegant way to do this? I am running into the same issue with SWT as we speak. Specifically,

Add files to site upload

2007-04-06 Thread Wim Deblauwe
Hi, I use the site:deploy plugin to upload my site, which works great. However, I now want to add some additional files to the site that are generated (by the webstart-maven-plugin). The only way that I can currently do that, is by letting those files get generated into src/site/resources/jnlp. I

RE: Problems installing 3rd party jar

2007-04-06 Thread Colin Young
That's exactly where I see the jar. It seems the Eclipse plugin is having some trouble finding it, because it sounds like I'm doing the right thing to make this jar available to Maven (and if not, hopefully someone will point out where I went wrong). I'll have to try the mvn eclipse:eclipse comma

Re: A little help with Netbeans plugin

2007-04-06 Thread Milos Kleint
Hello, Craig, On 4/6/07, Craig L Russell <[EMAIL PROTECTED]> wrote: Hi, Please reply all; I'm not subscribed to the users list. I'm running into some issues with mvn Netbeans plugin (Netbeans 5.5 . I've configured the "run project" using the Netbeans plugin and it apparently does work. But it

Access command line args in a unit test

2007-04-06 Thread Kevin Jackson
Hi all, I have a utility class that is tested via a Test class via surefire/junit4. I want to test if the parameter "-o" has been passed as a command to the maven command line. Prior versions of mvn allowed me to access the args via : System.getenv("MAVEN_COMMAND_LINE_ARGS") (on windows) or Sys