Re: Required goal not found: dependency:build-classpath

2007-02-23 Thread Brad Szabo
According to http://maven.apache.org/plugins/maven-dependency-plugin/usage.html the "build-classpath" goal is new, since 2.0-alpha-2. That version is not available on ibiblio yet, only 2.0-alpha-1 is. Looks like you will have to check out the source code and build it if you need that goal. If you

Required goal not found: dependency:build-classpath

2007-02-23 Thread Jagan Padmanabha Pillai -X \(jpadmana - Insight Solutions, Inc. at Cisco\)
Any idea ? $ mvn dependency:build-classpath [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'dependency'. [INFO] [ERROR] BUILD FAILURE [INFO] ---

[M2]maven-buildnumber-plugin

2007-02-23 Thread Enrique Gaona
How do you run a plugin the parent pom only once and have its configuration inherited by its children. I'm using the maven-buildnumber-plugin in my parent pom and when I run my build, this plugin gets executed on every child pom and I end up with different buildNumber ID.

Re: Transitive Dependencies

2007-02-23 Thread Brad Szabo
No this will not error out. Transitive dependencies are added to the compile classpath, so compilation will succeed. However, it is best practice to explicitly declare all direct dependencies for a project. I think the *typically* in your reference refers to just this case. Typically a project

Transitive Dependencies

2007-02-23 Thread Jagan Padmanabha Pillai -X \(jpadmana - Insight Solutions, Inc. at Cisco\)
Hi Doesn't maven require all the direct dependencies to be mentioned explicitly in the pom or parent poms. Direct dependency means those are required for compilation. But in my case, one of the dependency required for compilation is set as transitive. Example, my component A needs C to compile. B

Re: [m2] Maven 2 and Cobertura - 100% coverage???

2007-02-23 Thread bkbonner
OK, I'll revert back to 2.0, thanks for the tip. dan tran wrote: > > use 2.0 > > latest 2.1 is bad, and it should be taken out of repo1 > > -D > > > On 2/23/07, Arnaud Bailly <[EMAIL PROTECTED]> wrote: >> >> Hello, >> You may want to try the following configuration >> >> >> >> >> >> >

Re: [m2] Maven 2 and Cobertura - 100% coverage???

2007-02-23 Thread bkbonner
Thank you all for the suggestions. I apologize, but I am new to running cobertura. I looked at the msgs in the log and they indicated that they didn't have instrumentation for the classes in question. [cobertura] INFO [main] net.sourceforge.cobertura.reporting.html.HTMLReport - D ata file doe

Re: Maven 2 and Cobertura - 100% coverage???

2007-02-23 Thread Dan Tran
use 2.0 latest 2.1 is bad, and it should be taken out of repo1 -D On 2/23/07, Arnaud Bailly <[EMAIL PROTECTED]> wrote: Hello, You may want to try the following configuration cobertura-maven-plugin org.codehaus.mojo clean

Maven2, class-dependencies like 'Makefile'

2007-02-23 Thread GreJ
Hi, It's perhaps a cray question, but why not... I'ts a question involving the compiler of maven2. I have one Project, with a lot of classes. Some class use another class of the same Project. So they are "classes dependencies". It work's fine. I compile with maven, no problems. Now, if i compile

Re: [M2] Classpath issue

2007-02-23 Thread Marcos Silva Pereira
There is some other version of xerces in your classpath? Kind Regards, On 2/23/07, Siegmann Daniel, NY <[EMAIL PROTECTED]> wrote: I am trying to convert a project from Maven1 to Maven2. Should be simple, but I am getting a ClassNotFoundException on the following line in my code when running JU

Re: Splitting APT in multiple files

2007-02-23 Thread Régis Décamps
On 2/20/07, Dennis Lundberg <[EMAIL PROTECTED]> wrote: Roland Asmann skrev: > Hi, > > I want to write an APT document, split over several files. Yes, I'd like to do that as well. Please see this link for more info on this subject: http://maven.apache.org/doxia/format.html Thanks for t

[ANN] First release of Patchwork coverage maven plugin

2007-02-23 Thread Arnaud Bailly
Hi to all, Following some discussions on the agile-testing mailing list, I revived an old project of mine named Patchwork, that aims to provide a general purpose and extensible code coverage framework. In the spirit of "release early, release often", I just released first public version of this to

Re: Maven 2 and Cobertura - 100% coverage???

2007-02-23 Thread Arnaud Bailly
Hello, You may want to try the following configuration cobertura-maven-plugin org.codehaus.mojo clean org.codehaus.mojo cobertura-maven-plugin HTH -- OQube < s

Re: [m2] Maven 2 and Cobertura - 100% coverage???

2007-02-23 Thread Brad Szabo
Since the Cobertura plugin does not properly execute 'clean' by default, add the following declaration in to bind its 'clean' goal: org.codehaus.mojo cobertura-maven-plugin clean -Brad

[M2] Classpath issue

2007-02-23 Thread Siegmann Daniel, NY
I am trying to convert a project from Maven1 to Maven2. Should be simple, but I am getting a ClassNotFoundException on the following line in my code when running JUnit tests through Maven: XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser") This class is in xerces-2.4.0.jar, I

Re: [m2] Maven 2 and Cobertura - 100% coverage???

2007-02-23 Thread Wayne Fay
Sounds like simply a bug in Cobertura. Submit a unit test and someone will surely take a look at it. Wayne On 2/23/07, bkbonner <[EMAIL PROTECTED]> wrote: btw, my plugin definition in reporting is: org.codehaus.mojo

Re: [m2] Maven 2 and Cobertura - 100% coverage???

2007-02-23 Thread Hilco Wijbenga
On 2/23/07, bkbonner <[EMAIL PROTECTED]> wrote: org.codehaus.mojo cobertura-maven-plugin "mvn clean" by default doesn't clean the Cobertura generated file. Unless this has been fix

How to access test resources with Maven2/surefire?

2007-02-23 Thread Crossley, Jim
All (but Brett in particular, I think), I'm trying to test some SQL queries in my EJB3/JPA app. To do this, I'd like for my unit tests to run against an in-memory Hypersonic database. I configured a persistence unit appropriately in src/test/resources/META-INF/persistence.xml, but alas Surefire c

Re: [m2] Maven 2 and Cobertura - 100% coverage???

2007-02-23 Thread bkbonner
btw, my plugin definition in reporting is: org.codehaus.mojo cobertura-maven-plugin Brian -- View this message in context: http://www.nabble.com/Maven-2-and-Cobertura---100--cover

Maven 2 and Cobertura - 100% coverage???

2007-02-23 Thread bkbonner
Hi, I've added the Cobertura plugin to my pom.xml build, using the examples at: http://mojo.codehaus.org/cobertura-maven-plugin/usage.html However, when I run 'mvn clean site', it shows that I have 100% line coverage. I know for certain that all of the methods in our DAOs are not exercised. Do

m2: How to include jars in classpath of xdoclet plugin definition?

2007-02-23 Thread Joaquim Oliveira
Hi all, I cannot generate xdoclet from my EJB classes because my classes extend one class from an external jar, that needs to be in classpath when the task is defined. How do I do this in the m2 xdoclet plugin configuration? Here is my actual plugin configuration:

snapshot update policy

2007-02-23 Thread Trevor Torrez
Something is wrong with the current snapshot update policy: I have a several projects going on concurrently; the first is intended to be a common components type project for the others, all are in concurrent development. The upstream project SNAPSHOT jars are *never* getting downloaded. I think

How-to pass variables from one plugin to another

2007-02-23 Thread Enrique Gaona
Greets, How do I go about setting the value of a variable from 1 plugin and passing that variable to another plugin. If I'm being vague, here are the details:-) I have a custom plugin (buildtools-tag-plugins) where I set the buildNumber instance variable to the current date and time and then

Deploying to File System

2007-02-23 Thread mark_in_gr
I have a pom.xml with basic settings which should copy an artifact to a directory on my local filesystem, however, no artifact is being sent there. The child element value under section matches an value in my settings.xml file. Why is this file not being copied to the location specified by t

Re: Help with assembler issue on release

2007-02-23 Thread Todd Nine
I figured it out, it seem to be a source control problem. I already had the tag mortgageware-1.0.0, I thought if I re-created the tag during my deployment testing, it would simply overwrite the previous tag in subversion, however that is not the case. If I explicitly delete the tag from subversi

Re: properties-files

2007-02-23 Thread Marcos Silva Pereira
It seems this will solve my problem if I find a way to pass the properties to a schemaexport-task run from the antrun-plugin. It is a quite simple: You could pass properties to ant target using ant's property task

Re: Help with assembler issue on release

2007-02-23 Thread Todd Nine
I Remy, Thanks for the reply. I had to link it to a phase explicitly to get it to deploy the zip when performing an install or release. I have tried removing the specific lifecycle execution, but this does not alleviate the issue. Thanks, Todd On 2/23/07, Rémy Sanlaville <[EMAIL PROTECTED]> w

RE: Passing parameter to mojo

2007-02-23 Thread David Jackman
The greeting field should be declared inside the class. Interesting, I would have expected a Java compile error instead of a qdox exception. ..David.. -Original Message- From: Kiruba Suthan [mailto:[EMAIL PROTECTED] Sent: Friday, February 23, 2007 12:26 AM To: users@maven.apache.org S

Re: [m2] add resources to surefire execution

2007-02-23 Thread Dan Tran
perhaps make a request to to surefire plugin to allow addition of classpath -D On 2/23/07, Dan Tran <[EMAIL PROTECTED]> wrote: build your test jar in a separate project, and run it in a test project with those resources -D On 2/23/07, apill <[EMAIL PROTECTED]> wrote: > > > I've had the sa

Re: System dependency and MANIFEST entry

2007-02-23 Thread Wayne Fay
This is one of the quirks of system scoped dependencies... and these quirks are why we generally recommend that you NOT use system scope except in a handful of situations. Leverage your local Maven repo, perform a proper install of the ctgclient artifact, and convert that system scope to compile.

maven-ejb-plugin and finalName in build (ignored?)

2007-02-23 Thread Bratek
Hi, I pasted below part of my pom file. I'd like the EJB jar file to be called myEjbJar.jar. Instead the file is named {artifactId}-{version}.jar. Is there a way to make it work? I thought finalName inside build should override the default jar file name. Any help on the subject would be greatly a

RE: Hibernate3:hbm2doc

2007-02-23 Thread Crossley, Jim
Hi Johann, I patched the plugin to make it work. I'll attach it to MOJO-530. The one currently there won't work with the head revision. I'd like to help you figure out how to integrate the hbm2doc goal into Maven's site generation. Have you considered that? Thanks, Jim -Original Message

Re: [m2] add resources to surefire execution

2007-02-23 Thread Dan Tran
build your test jar in a separate project, and run it in a test project with those resources -D On 2/23/07, apill <[EMAIL PROTECTED]> wrote: I've had the same problem. Just giving this a bump as there are no replies. davidkarlsen wrote: > > Hi List! > > I got some resources for the testing

Re: properties-files

2007-02-23 Thread Erik Drolshammer
Wayne Fay wrote: You are looking for Profiles in conjunction with Resource Filtering. Thanks for the tip. It seems this will solve my problem if I find a way to pass the properties to a schemaexport-task run from the antrun-plugin. -- Regards Erik ---

RE: TOP 5 surefire issues all unassigned?

2007-02-23 Thread andreas.ebbert-karroum
Hi, >-Original Message- >From: ext Brett Porter [mailto:[EMAIL PROTECTED] >Sent: 23 February, 2007 15:05 >To: Maven Users List >Subject: Re: TOP 5 surefire issues all unassigned? > >There's about to be a big push on fixing issues in surefire. >The main ones will be taken care of, and we

Re: [m2] add resources to surefire execution

2007-02-23 Thread apill
I've had the same problem. Just giving this a bump as there are no replies. davidkarlsen wrote: > > Hi List! > > I got some resources for the testing phase that should exist on the > classpath while testing with surefire. > > If I merely add > > > >

Re: TOP 5 surefire issues all unassigned?

2007-02-23 Thread Brett Porter
There's about to be a big push on fixing issues in surefire. The main ones will be taken care of, and we'll see what falls out from that (as there are a number of interrelated issues). Testing will also be added. Please continue to vote and comment on issues so that this can be done most effective

TOP 5 surefire issues all unassigned?

2007-02-23 Thread andreas.ebbert-karroum
Hi, not sure if there's a seperate mailinglist for surefire, I haven't found one (with google). Is there a specific reason why the TOP 5 issues of the surefire plugin are all unassigned? http://jira.codehaus.org/browse/SUREFIRE?report=com.atlassian.jira.plugin.system.project:popularissues-pa

Problem building an ear with the assembly-plugin

2007-02-23 Thread Doug Tanner
I am receiving the following error while trying to package my project into an ear using the assembly-plugin. Error creating assembly: appxml attribute is required I am unable to find any information on how to incorporate an application.xml using this plugin. We have one in source code that

Re: [m2] Can't deploy site with maven 2.0.5

2007-02-23 Thread Elid OR
I have created an issue for that : http://jira.codehaus.org/browse/MSITE-211 On Wednesday 21 February 2007 13:27, David J. M. Karlsen wrote: > Elid OR wrote: > > Hi all, > > > > When I execute the site deployment : mvn site:deploy that work with maven > > 2.0.4 I got this error on maven 2.0.5 : >

Re: [m1 or m2] aggregated changes was Re: [m2] changes and modules

2007-02-23 Thread Lukas Theussl
The current snapshot of the m1 multichanges plugin has a goal to generate a page with all changes since the last release of each sub-project, see eg http://maven.apache.org/maven-1.x/plugins/bundled/multichanges-report-next.html Apart from that, I am not aware of any such functionality. AFAIK

Cobertura Maven Plugin 2.1 does work correctly

2007-02-23 Thread Mau, Bernd
Hi, I have a problem with the cobertura plugin version 2.1. It does not generate correct reports. I use maven 2.0.5 and java 1.5 on linux. If I configure version 2.0 it works. Unfortunately this version does not report the lines of code. Bernd

Maven idea plugin

2007-02-23 Thread Vidya Mahavadi
Hi, I have an ant plugin running in my pom,xml. When I run mvn idea:idea, it throws the following exception. Can anyone tell me what is missing in my setup.. java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1768) a

RE: Problem using mvn site and mvn site-deploy

2007-02-23 Thread Tomas Malmsten
Hello aging, Just to replay to my own email, I have found a solution. There seems to be an issue with the plugin when retrieved from Mergers mirror of central. When I removed all references to the plugin and it's parents and swapped mirror settings the problem resolved it self. Regards Tomas

Add test resource outside of target/test-classes?

2007-02-23 Thread Adrian Pillinger
How can I add a directory to my test classpath without putting it in the target/test-classes directory? Basically I have a conf directory for bootstrapping embedded jboss in my JUnit test. Then I deploy the target/test-classes directory to jboss to deploy my code. If the conf files for jbos

Re: list of symbolic links to your actual CVS modules

2007-02-23 Thread Emmanuel Venisse
How are they organized in your CVS? Ronald Pieterse a écrit : Hello. I have a problem building my Maven 2 submodules in Continuum. My parent module is at the same level as my submodules (for easy IDE support reasons) and building locally goes fine. But when I try to build on the build server

list of symbolic links to your actual CVS modules

2007-02-23 Thread Ronald Pieterse
Hello. I have a problem building my Maven 2 submodules in Continuum. My parent module is at the same level as my submodules (for easy IDE support reasons) and building locally goes fine. But when I try to build on the build server the module folder names are changed into numbers so the module

System dependency and MANIFEST entry

2007-02-23 Thread Jo Support
hi, how to make system dependency added entries in manifest? I mean, this is my dependency in the pom: ... lit-commons ctgclient 1.0 system ${env.LITTOOLSDIR}/${env.SOURCEDIR}/lit-sl-comm/ctgclient- 1.0.jar ... but in the resulting jar's manifest ctgclient-1.0.jar is missing. any s

Re: [M2] runtime scope but not transitive

2007-02-23 Thread Rémy Sanlaville
Hi Rodrigo, Thanks for your reply, Mmmm, then, why do you want to stop transitivity? If you depend on a war module which depends on implJarModule at runtime, then your final module will also depend on it. Maybe your final module includes another implementation? It's not rely that I want to s

Re: Help with assembler issue on release

2007-02-23 Thread Rémy Sanlaville
Hi Todd, I'm not sure but it's perhaps because you link the maven-assembly-plugin to a phase. Generally it's better to avoid this[1]. Try this instead: maven-assembly-plugin

Re: [M2] runtime scope but not transitive

2007-02-23 Thread Rodrigo Ruiz
Mmmm, then, why do you want to stop transitivity? If you depend on a war module which depends on implJarModule at runtime, then your final module will also depend on it. Maybe your final module includes another implementation? Anyway, I guess what you need is to declare the dependency as: ...