Re: [m2] Help with SCM plugin and CVS?

2005-09-29 Thread Emmanuel Venisse
your scm connection url seems to be incorrect. You need to fix it before use the scm plugin. This error is a cvs error. Emmanuel [INFO] Executing: cvs -f -q update -d -rHEAD [INFO] Working directory: C:\dev\v2\framework\common [DEBUG] Working directory: C:\dev\v2\framework\common [DEBUG]

Re: [M2] Using Spring with Maven / Eclipse

2005-09-29 Thread Jose Gonzalez Gomez
Ok, now I'm trying to use spring-beans (right now I'm using only this part), and I get the following message (quite curious WARNING): Downloading: file://c:/Documents and Settings/carlos/.m2/private_repo/commons-collections/commons-collections/3.1/commons-collections-3 .1.jar [WARNING] Unable to

RE: [M2] jar plugin and the jar manifest

2005-09-29 Thread Sasa.Djuric
Put the following in the build section of your pom: plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifest

[m1.0.2] test causes NullPointer in getPackage() call

2005-09-29 Thread Alexander Hardt
Hi everbody, In my project we have a huge amount of calls like Clazz.class.getPackage(). We are generating trace-names with this info. In JavaDoc of getPackage() is written Null is returned if no package object was created by the class loader of this class. But why, I have no idea! Perhaps

Re: [m2-b2] install:install-file fails without pom

2005-09-29 Thread Ralph Pöllath
On 29.09.2005, at 02:15, Brett Porter wrote: Ok, to elaborate: - the install plugin has this fixed, but it has not been released - it worked with the beta-1 core because it wasn't validating the @requiresProject element - when the updated install plugin is available, it will work again - you

Re: classpath woes

2005-09-29 Thread Kenney Westerhof
On Wed, 28 Sep 2005, Brian Moseley wrote: Correct, target/classes is not in the classpath when executing maven on a project. It will only be on the classpath during test excution. I recommend you create a plugin containing the org.osaf.cosmo.jackrabbit.RepositoryLoader, unless this is generated

How to use dependencyManagement?

2005-09-29 Thread Ralph Pöllath
Hi, I get the following warning when packaging my webapp project: [WARNING] Artifact javax.servlet:jsp-api:jar:2.0 has scope 'provided' replaced with 'compile' as a dependency has given a broader scope. If this is not intended, use -X to locate the dependency, or

Re: [m2] Archetype Plugin parameters and templates

2005-09-29 Thread Allan Ramirez
Eric Jacob wrote: Hi Jason, Thanks for your fast answer. However, I took a look at the maven-archetype-quickstart-1.0-alpha-3.jar in my local repository and I saw no velocity templates... Here where I looked:

Re: [m2] Multiproject site generation

2005-09-29 Thread Sena Gbeckor-Kove
Do you know which issue this is? I have ben searching for it and I can't find it at the moment. Regards On 23/09/05, Brett Porter [EMAIL PROTECTED] wrote: Not presently, but there is an open issue. - Brett On 9/23/05, Pablo Muñiz [EMAIL PROTECTED] wrote: Hi all! imagine I have a

Re: [m2] site plugin and consolidated reports

2005-09-29 Thread Sena Gbeckor-Kove
I was unde the impression that this was an m1 feature. I haven't used M1 extensively however so I'm perfectly ready to be proved wrong ;) Regards On 23/09/05, Brett Porter [EMAIL PROTECTED] wrote: No, not yet. There is an open JIRA issue to watch/comment on. Our first priority now is

Réf. : Re: [m2] Multiproject site generation

2005-09-29 Thread fabrice . belingard
This issue is probably the one you're looking for: http://jira.codehaus.org/browse/MNG-384 Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [EMAIL PROTECTED]

RE: [ot] m2 antlib and eclipse classpath task - someone else take a look pls?

2005-09-29 Thread Darren Hartford
If I could reuse the Maven Eclipse plugin as an Ant task, I would actually prefer that! Is there a reference somewhere on how to call plugins through Ant? That would be awesome! -D -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 28, 2005

Maven 2 in connection with multiple projects and eclipse.

2005-09-29 Thread Bernd Mau
Hi, we drive an Container Terminal Operating System consisting of 140 modules. To build the application we use a highly customized ant environment. As it is a hard job to maintain this environment, we plan to set up a new, standardised build environment. I think we have enough time to wait for

[M2] Multiple Project Layout and Eclipse

2005-09-29 Thread Bernd Mau
Hi, the parent POM is used to be in the parent directory of the modules. In case of using eclipse this directory would be equivalent to the workspace directory. Unfortunetly you can't check out single files with eclipse directly into the workspace. I tried the following layout: m2.test.pom

[M2] Snapshot Dependencies

2005-09-29 Thread Bernd Mau
Hi, snapshots are handled by timestamps. If I use binary dependencies against snapshots inside eclipse, each time when I need a new snapshot from my colleague I have to generate a new classpath for eclipse. Actually I only want to generate .project and .classpath only if the POM change.

[M2] Preparing a Release

2005-09-29 Thread Bernd Mau
Hi, 1. Can anybody give me an example how to prepare a release in combination with cvs? 2. How to prepare a release for a multi project? Will dependencies automatically change, if I want to release version 1.0 and ModuleA-1.0-SNAPSHOT depends on ModuleB-1.0-SNAPSHOT? Thanks for your help. Bernd

[M2] How to use relativePath of parent in a pom?

2005-09-29 Thread fabrice . belingard
Hi, I've seen that there's a relativePath attribute for the parent element of the pom. According to the documentation, this is the relative path of the parent-pom within the project hierarchy. If this property exists, I guess this allows to discover the parent pom without specifying the

Re: [M2] Snapshot Dependencies

2005-09-29 Thread Kenney Westerhof
On Thu, 29 Sep 2005, Bernd Mau wrote: Hi, This is all correct, but it's an eclipse problem - maven2 handles new snapshot versions fine, but the .classpath has to reference actual files, and if their names change, you have to update the .classpath. No workaround for that, unless eclipse has some

Re: [M2] How to use relativePath of parent in a pom?

2005-09-29 Thread Kenney Westerhof
On Thu, 29 Sep 2005 [EMAIL PROTECTED] wrote: Hi, Hi, I've seen that there's a relativePath attribute for the parent element of the pom. According to the documentation, this is the relative path of the parent-pom within the project hierarchy. If this property exists, I guess this allows to

Re: [M2] Snapshot Dependencies

2005-09-29 Thread Mark Hobson
I believe Brett very kindly fixed this in trunk last night: http://jira.codehaus.org/browse/MNG-230 This should fix the deploying snapshot issue with eclipse, but haven't had a chance to check it yet. Thanks again to Brett for getting this in before 2.1! :) Mark On 29/09/05, Kenney Westerhof

Re: [M2] How to use relativePath of parent in a pom?

2005-09-29 Thread Brett Porter
Got it one Kenney. On 9/29/05, Kenney Westerhof [EMAIL PROTECTED] wrote: On Thu, 29 Sep 2005 [EMAIL PROTECTED] wrote: Hi, Hi, I've seen that there's a relativePath attribute for the parent element of the pom. According to the documentation, this is the relative path of the

Re: [M2] Preparing a Release

2005-09-29 Thread Brett Porter
The release plugin (especially the previous release) is still a little rough, but essentially it should be: m2 release:prepare and follow the prompts. You can also run in batch mode to avoid prompts, and pass the config via system properties. Let us know your experiences and feedback - we are

Re: [M2] Multiple Project Layout and Eclipse

2005-09-29 Thread Brett Porter
This is a frequently asked and answered question - you'll find plenty in the mail archives. Any eclipse users volunteer to write a short howto/faq? - Brett On 9/29/05, Bernd Mau [EMAIL PROTECTED] wrote: Hi, the parent POM is used to be in the parent directory of the modules. In case of

Re: [ot] m2 antlib and eclipse classpath task - someone else take a look pls?

2005-09-29 Thread Brett Porter
It is simply Java code - so you would write a Java ant task to wrap the existing code. Some things to note: - the best solution would be to read the plugin metadata and construct the ant task automatically (similarly to generating the documentation) - some plugins use private field injection, so

Re: [M2] How to use relativePath of parent in a pom?

2005-09-29 Thread fabrice . belingard
Right, thanks for your answer Kenney! However, this is definitely not handy when you have a multi-module project (for instance when you build an Ear). When your parent is part of the same build process (using built-in reactor) and on the same file system, using only relativePath would be far

RE: [m2] httpclient doesn't refer to dependencies

2005-09-29 Thread Mike Perham
Done. :-) http://jira.codehaus.org/browse/MEV-100 -Original Message- From: Ashley Williams [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 28, 2005 8:58 PM To: Maven Users List Subject: Re: [m2] httpclient doesn't refer to dependencies Done http://jira.codehaus.org/browse/MEV-99

Re: [M2] Preparing a Release

2005-09-29 Thread John Casey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 There will actually be one glaring problem with rewriting the SCM URL during the release process. This plugin is currently only geared for SVN use, so it expects /trunk/ and so forth...but this is *not* the way it *should* be...it's more a function

Re: [M2] How to use relativePath of parent in a pom?

2005-09-29 Thread Brett Porter
And if you check out the EAR in isolation, how should it behave? Break? It's an option, but one that has burned many a Maven 1 user. is there a reason you can't enter the groupId/artifactId as well/instead? - Brett On 9/29/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Right, thanks for

Re: How to use dependencyManagement?

2005-09-29 Thread John Casey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If you specify these two dependencies directly in your own dependency set, and set their scope to provided, it should work. FYI, DependencyManagement information is only triggered on demand. That is, the info in the DependencyManagement section will

Re: [m2] httpclient doesn't refer to dependencies

2005-09-29 Thread John Casey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Unfortunately, the quality of the repository is somewhat in the hands of all users. This is especially true when you consider that those of us who don't use a particular library - whether we are maven devs or not - will not have the knowledge and/or

jelly variables scope

2005-09-29 Thread jan_bar
Hi, what is the scope of variable in Jelly script? For instance, I want to skip JUnit tests in cacuts:test, is the following Jelly correct? !-- skip JUnit tests during cactus test -- preGoal name=cactus:test j:set var=maven.test.skip.old-value value=${maven.test.skip} / j:set

Réf. : Re: [M2] How to use relativePath of parent in a pom?

2005-09-29 Thread fabrice . belingard
And if you check out the EAR in isolation, how should it behave? Break? Check out the EAR in isolation? What do you mean? Check out from SCM? If so, I don't see troubles with this case... Well, I guess you have a broader view of those issues :o) As for me (and as for now), I experience that

Re: jelly variables scope

2005-09-29 Thread Dion Gillard
On 9/30/05, jan_bar [EMAIL PROTECTED] wrote: Hi, what is the scope of variable in Jelly script? For instance, I want to skip JUnit tests in cacuts:test, is the following Jelly correct? !-- skip JUnit tests during cactus test -- preGoal name=cactus:test j:set var=maven.test.skip.old-value

Re: [m2] httpclient doesn't refer to dependencies

2005-09-29 Thread Ashley Williams
Hmm. Honestly I didn't realise this - I thought that you dev guys were the gatekeepers to that repository and every now and then somebody would submit to you a new component for consideration. Anyway I've submitted the same bug to httpclient bugzilla

multiproject and jelly variables

2005-09-29 Thread jan_bar
Hi, how are variables handled in multiproject? When I set a variable and call goals in subprojects, the variable seems to be ignored: goal name=gc:test-cactus !-- skip JUnit tests -- j:set var=maven.test.skip value=true / j:set var=cactus.test.skip value=false / maven:reactor basedir=.

[m2] best place for log4j.properties

2005-09-29 Thread Ashley Williams
I'm using log4j and I'm wondering if there is a single place I can put the log4j.properties file. Currently I have to keep separate copies in both test/resources and main/resources. Also I've found that Eclipse doesn't automatically see the file either after running eclipse:eclipse and I

Re: multiproject and jelly variables

2005-09-29 Thread Dion Gillard
On 9/30/05, jan_bar [EMAIL PROTECTED] wrote: Hi, how are variables handled in multiproject? Each project has it's own set of variables. When I set a variable and call goals in subprojects, the variable seems to be ignored: goal name=gc:test-cactus !-- skip JUnit tests -- j:set

RE: Cross-project dependencies on unit test code

2005-09-29 Thread Dave Neuer
-Original Message- From: Tim Dysinger [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 28, 2005 12:39 PM To: [EMAIL PROTECTED]; Brett Porter Cc: Maven Users List Subject: Re: Cross-project dependencies on unit test code Ok. Let's say we did it that way. We are still faced with

Re: [m2] httpclient doesn't refer to dependencies

2005-09-29 Thread John Casey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I agree that the issue belongs in MEV, but we still need to ping the httpclient people to take action. In the past, I've done this by emailing the dev@ list for the project, and asking them to take a look at the MEV, so that users can access their

RE: Cross-project dependencies on unit test code

2005-09-29 Thread Dave Neuer
Answers: 1) There needs to be an API package so that the Impl and Test packages can both depend on it (otherwise your base tests would depend on the impl classes, but your impl depends on the base tests, creating a circular dependancy). 2) How do you ensure that any factory returns any kind of

SCM Tagging / Releasing

2005-09-29 Thread Michael Böckling
Hello, I'd like to know whether tagging with SCM is problematic with concurrent access. Say, I want to make a release, and while SCM is running and does its job, some developer commits a patch to the repository. What happens? Do I get an inconsistent state, or is that impossible (be it with

RE: RE : CruiseControl issues trying to install and run from maven.Pleasehelp.

2005-09-29 Thread David Jackman
The problem is not that there aren't quotes around the CC properties, but that there isn't an '=' character between the property name and the value. The source for CC I'm looking at seems to be doing it right (and CC certainly works with Maven for me here), so I'm not sure why this would be

RE: SCM Tagging / Releasing

2005-09-29 Thread David Jackman
I was of the presumption that (at least with CVS) when you do a tag it tags the version of each file that are present on your machine, regardless of what the latest version is on the SCM server. I don't know for sure if the SCM plugin command is doing it this way (since it is possible to have

Re: How to use dependencyManagement?

2005-09-29 Thread Ralph Pöllath
On 29.09.2005, at 16:19, John Casey wrote: If you specify these two dependencies directly in your own dependency set, and set their scope to provided, it should work. That's what I thought. Doesn't work for me though (I think it did with previous versions): // pom.xml project

Re: SCM Tagging / Releasing

2005-09-29 Thread Craig S . Cottingham
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sep 29, 2005, at 11:05, David Jackman wrote: I was of the presumption that (at least with CVS) when you do a tag it tags the version of each file that are present on your machine, regardless of what the latest version is on the SCM server. I

Re: SCM Tagging / Releasing

2005-09-29 Thread Ralph Pöllath
On 29.09.2005, at 18:37, Craig S. Cottingham wrote: On Sep 29, 2005, at 11:05, David Jackman wrote: I was of the presumption that (at least with CVS) when you do a tag it tags the version of each file that are present on your machine, regardless of what the latest version is on the SCM

Re: multiproject and jelly variables

2005-09-29 Thread jan_bar
Thanks Dion Jan goal name=gc:test-cactus !-- skip JUnit tests -- j:set var=maven.test.skip value=true / j:set var=cactus.test.skip value=false / maven:reactor basedir=. banner=Cactus testing project includes=*/*/project.xml excludes=./project.xml postProcessing=false

Re: SCM Tagging / Releasing

2005-09-29 Thread Craig S . Cottingham
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sep 29, 2005, at 11:52, Ralph Pöllath wrote: Inconsistencies should not be possible at all using SVN. Agreed. As I said earlier, though, never say never. In the 2+ years I've been using SVN, I've had very few problems with the repository

Re: [M2] jar plugin and the jar manifest

2005-09-29 Thread Erick Dovale
Thanks a lot Sasa, I had that figure out after a lot of diging around. I could generate the manifest however, the resources folder is not added to the classpath in the manifest. I have stuff like spring contexts that need to be in the class path as well as the jars. Do you know of a way to add

error with custom goal

2005-09-29 Thread Mick Knutson
I am having a couple of issues with creating a custom/default goal. goal name=ff-dist attainGoal name=multiproject:clean/ attainGoal name=multiproject:install/ /goal postGoal name=multiproject:install attainGoal name=deployToLocalServer/ /postGoal 1st, when I

multi-project structure issues in M2

2005-09-29 Thread Saleem Shafi
hello, i'm doing some research for a new build system that we want to roll out at the end of the year and i've got Maven2 on the top of my list, so i'm trying to work out all of the scenarios that we envision and making sure that Maven2 can handle them in a reasonable manner.. please bear with

[Fwd: Re: Assembly plugin -- couple of questions [m2a3]]

2005-09-29 Thread Erick Dovale
Hello there, I was trying to do exactly what this email is explaining below and had exactly the same problem now using M2b1 which is that m2 tries to run the assembly plugin on each and every subproject. If I want to generate a single assembly file containing all sub projects and their

[m2] Question about maven-metadata.xml

2005-09-29 Thread Beermann,Matthew
So, I've been looking over the maven-metadata.xml files in the remote repository I publish to (just on my hard drive for now). There's a release/ tag if I set the updateReleaseInfo flag on the maven-deploy-plugin, which is all well and good. And there are assorted versions/, in no particular

continuous integration with M2

2005-09-29 Thread Saleem Shafi
i'm hoping someone can give me some advice on how to use Maven2 with a CI system like CruiseControl.. i understand from some other posts that CruiseControl is meant to drive the process (no i don't really have any experience with CC either), and just uses Maven2 as the build tool.. perhaps at

Re: [m2] faulty scp protocol handling in wagon?

2005-09-29 Thread Orjan Austvold
The issue with intermittent failure in ScpWagon seems to have been solved now. To me it seems to be a race condition between the thread running the ScpWagon and the internal jsch thread tracking session events. ScpWagon terminates the exec channel when it discovers that enough bytes have

[M2] Clover report with beta2

2005-09-29 Thread c_inconnu3
Hi, I am trying to generate a report with clover and m2 beta2. I have in my pom : reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-clover-plugin/artifactId version2.0-alpha-1/version

[m2] exception with report plugin

2005-09-29 Thread dohadwala, moiz
I have a plugin which I has been running without errors. I decided to convert it to a report plugin. I derived the Mojo from AbstractMavenReport and implemented the executeReport method and required other methods such as getName() etc. I included the plugin in the reporting section of the pom.

Re: error with custom goal

2005-09-29 Thread Dion Gillard
On 9/30/05, Mick Knutson [EMAIL PROTECTED] wrote: I am having a couple of issues with creating a custom/default goal. goal name=ff-dist attainGoal name=multiproject:clean/ attainGoal name=multiproject:install/ /goal postGoal name=multiproject:install

Re: How to use dependencyManagement?

2005-09-29 Thread Brett Porter
I filed MNG-1048 for the first issue. On 9/30/05, Ralph Pöllath [EMAIL PROTECTED] wrote: On 29.09.2005, at 16:19, John Casey wrote: If you specify these two dependencies directly in your own dependency set, and set their scope to provided, it should work. That's what I thought. Doesn't

Re: [m2] exception with report plugin

2005-09-29 Thread Allan Ramirez
Hi there, I am just curious on how did you get your MavenProject object, can you post it? Regards, -allan dohadwala, moiz wrote: I have a plugin which I has been running without errors. I decided to convert it to a report plugin. I derived the Mojo from AbstractMavenReport and implemented

Re: [m2] faulty scp protocol handling in wagon?

2005-09-29 Thread Brett Porter
This is great. Thanks for your help on this - I'll take a look. - Brett On 9/30/05, Orjan Austvold [EMAIL PROTECTED] wrote: The issue with intermittent failure in ScpWagon seems to have been solved now. To me it seems to be a race condition between the thread running the ScpWagon and the

Re: [m2] Question about maven-metadata.xml

2005-09-29 Thread Brett Porter
On 9/30/05, Beermann,Matthew [EMAIL PROTECTED] wrote: My question is: if I were looking through a remote repository, how would I tell which version is the latest? Maven defines an ordering for versions (see the docs.codehaus.org/pages/MAVEN wiki space). It falls back to string comparison if

Re: [Fwd: Re: Assembly plugin -- couple of questions [m2a3]]

2005-09-29 Thread Brett Porter
On 9/30/05, Erick Dovale [EMAIL PROTECTED] wrote: I was trying to do exactly what this email is explaining below and had exactly the same problem now using M2b1 which is that m2 tries to run the assembly plugin on each and every subproject. Thanks for the reminder. I just committed the missing

current system time to be used in an ant:replacefilter ...?

2005-09-29 Thread Mick Knutson
How do I get the current data and time to be used in an ant:replacefilter value? Thank You Mick Knutson Sr. Java/J2EE Consultant BASE logic, inc. (415) 648-1804 (S.F., CA) http://www.BASELogic.com HP Consulting Services (Walnut Creek, CA)

Re: current system time to be used in an ant:replacefilter ...?

2005-09-29 Thread Dion Gillard
http://ant.apache.org/manual/CoreTasks/tstamp.html On 9/30/05, Mick Knutson [EMAIL PROTECTED] wrote: How do I get the current data and time to be used in an ant:replacefilter value? Thank You Mick Knutson Sr. Java/J2EE Consultant BASE logic, inc. (415) 648-1804 (S.F., CA)

Re: multi-project structure issues in M2

2005-09-29 Thread Brett Porter
On 9/30/05, Saleem Shafi [EMAIL PROTECTED] wrote: i got the impression that i could reference the pom.xml in app from the webapp/pom.xml using the relativePath/ element, but i'm having trouble getting the app/pom.xml to recognize webapp as a module since it's embedded in client. In this

[m2b2] reading velocity template from external projects

2005-09-29 Thread Allan Ramirez
Hi everyone, I have this plugin that can read a velocity template, but the template must be in the classpath of the plugin to read it. Now, I am trying to modify the plugin which it can able to read templates from other projects. Any ideas? From my components.xml, I already tried to change