How can i add/replace project specific variables locally?

2007-04-10 Thread Baz
All, How can i add or replace project specific variables locally? Specific case: How can i read a file and replace a variable in the pom.xml so i dont need to produce SNAPSHOT but using a variable $VERSION that control by build system? What is the recommended approach to this? So that I can pro

Re: Packing up configurations for various servers

2007-04-10 Thread franz see
Good day, Create a maven project for your configurations. Then use remote-resources:bundle on it. And on the maven projects that need those configurations file, use remote-resources:process ( with reference to your configuration maven project ) to retrieve those resources. See [1] for more info

Re: Multiple artifacts

2007-04-10 Thread franz see
Good day, AFAIU, you have a single maven project that packages several binaries and adds them to the classpaths via a plugin that you've created. But the binary that you add via your plugin gets overriden by the binary added via maven's transitive dependencyDid I get that right? Curious, wha

Re: overriding version of dependent library

2007-04-10 Thread franz see
Good day, In addition, you can simply specify jta 1.1 as a direct dependency of your maven project ( without excluding jta from your hibernate dependnecy) and maven won't bother looking for other versions of jta :) Cheers, Franz oching wrote: > > You could try in your hiberrnate dependency s

Re: Maven mojo Compilation failure

2007-04-10 Thread franz see
Good day, Try running mvn clean compile -X and showing us the logs starting from [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler-plugin::compile' up to the end. The first part of the logs would consists of the maven-compiler-plugin's configuration while the next part will sh

Re: Maven 2.x in quiet mode

2007-04-10 Thread franz see
Good day, Nope. You'd have to use at least maven 2.0.5 :) As to running 2.0.4 in quiet mode, I know no such way to do so :) Cheers, Franz uma_rk wrote: > > Was the -q option introduced post 2.0.4? > > $ mvn -version > Maven version: 2.0.4 > > $ > $ mvn -q > Unable to parse command line opt

Re: Maven and 3rd Party Libraries

2007-04-10 Thread franz see
Good day, Kindly take a look at [1]. You will see there the dependency tag and the scope and systemPath elements Eric mentioned. Cheers, Franz [1] http://maven.apache.org/ref/current/maven-model/maven.html Wayne Fay wrote: > > Yes. Search the list archives (at Nabble.com) for more informatio

Re: Using maven directly from a java application ?

2007-04-10 Thread franz see
Good day, Try [1]. Also you can check out the the latest maven-embedder ( from [2] ) and take a look at its examples and tests. You may also want to run mvn site against [2] to get the latest version of the guide presented in [1]. Cheers, Franz [1] http://maven.apache.org/guides/mini/guide-embe

Re: How to specify where to copy particular files

2007-04-10 Thread franz see
Good day, In addition, there's a difference between src/main/resources/ foo/bar.xml And src/main/resources/foo bar.xml The first one would result to a target/classes/foo/bar.xml while the second, to a target/classes/bar.xml Thus, if you want a certain directory

Re: Maven 2.x in quiet mode

2007-04-10 Thread uma_rk
Was the -q option introduced post 2.0.4? $ mvn -version Maven version: 2.0.4 $ $ mvn -q Unable to parse command line options: Unrecognized option: -q usage: mvn [options] [] [] Options: -C,--strict-checksums Fail the build if checksums don't match -c,--lax-checksumsWarn i

Re: eclipse:install-plugins and features?

2007-04-10 Thread Barrie Treloar
Has anyone else found they needed to do something like what I am doing? It feels like I should also be adding the features to the eclipse:make-artifacts and getting eclipse:install-plugins (or eclipse:install-features) to do the work. If I go and create eclipse:install-features, I'm wondering ho

Re: Maven and 3rd Party Libraries

2007-04-10 Thread Wayne Fay
Yes. Search the list archives (at Nabble.com) for more information, or the Maven site itself; there are several examples available. Wayne On 4/10/07, Fong Chan <[EMAIL PROTECTED]> wrote: Sorry you'll have to excuse my ignorance as I am still new to Maven. But when you say "set the 'scope' of t

Re: Maven and 3rd Party Libraries

2007-04-10 Thread Fong Chan
Sorry you'll have to excuse my ignorance as I am still new to Maven. But when you say "set the 'scope' of the jar as 'system' in dependency, then set 'systemPath' to the path of the jar." Do you mean setting the properties in the pom.xml of the project? Thanks, Fong >>> "Eric Redmond" <[E

Re: Maven and 3rd Party Libraries

2007-04-10 Thread Eric Redmond
On 4/10/07, Fong Chan <[EMAIL PROTECTED]> wrote: Hello all, I am having some problems with Maven right now. Just to give some background. I currently have installed all of Taverna's (A workflow management system that uses Maven) classes into the Maven repository and I am able to use them no p

Maven and 3rd Party Libraries

2007-04-10 Thread Fong Chan
Hello all, I am having some problems with Maven right now. Just to give some background. I currently have installed all of Taverna's (A workflow management system that uses Maven) classes into the Maven repository and I am able to use them no problem. For one of my programs, I would like t

Re: What's the deal with MNG-2858??!?

2007-04-10 Thread Wayne Fay
Welcome to open source development. There is a small team of programmers working on things (including dealing with bug reports) and then quite a number of users using the product and reporting issues. Users# >> Developers#. Therefore, it is challenging for the Development team to keep up with all

Re: What's the deal with MNG-2858??!?

2007-04-10 Thread Nick Stolwijk
You could try setting up multiple "remote repositories" through the "file://" type of URL. That way you can zip up the whole bunch (try to make it as simple and lean as possible) and attach it to the issue. Nick Stolwijk David Jackman wrote: I could try it with multiple public repositories, b

RE: What's the deal with MNG-2858??!?

2007-04-10 Thread David Jackman
I could try it with multiple public repositories, but I don't know any besides the central one. Can you name some? I would especially need at least one that has a specific artifact that ISN'T also in the central repository. If there aren't such repositories already out there I can try to find so

Re: What's the deal with MNG-2858??!?

2007-04-10 Thread Carlos Sanchez
no example, no output, no tests,... I can point you to companies and people that will be glad to help you if you pay their time, but with what you are providing I don't see how would anybody in the community help you. On 4/10/07, David Jackman <[EMAIL PROTECTED]> wrote: I've sent email to this g

Re: What's the deal with MNG-2858??!?

2007-04-10 Thread Wendy Smoak
On 4/10/07, David Jackman <[EMAIL PROTECTED]> wrote: I've sent email to this group, I've written a bug (http://jira.codehaus.org/browse/MNG-2858), but still no one has given any kind of response. Maybe we're the only ones on the planet that are having this problem, but it is happening repeatedl

Maven2 plugin for Cactus

2007-04-10 Thread Sambit Bharimalla
Hi, I have developed a J2EE project. I have choosen Maven2 for automation build process. My J2EE project involves some incontainer test cases written in Cactus. I need suggestion if following is possible or not. I want to -> i- compile the code ii- test out of container test cases iii- b

What's the deal with MNG-2858??!?

2007-04-10 Thread David Jackman
I've sent email to this group, I've written a bug (http://jira.codehaus.org/browse/MNG-2858), but still no one has given any kind of response. Maybe we're the only ones on the planet that are having this problem, but it is happening repeatedly and is beginning to hinder my group's acceptance of Ma

Re: pack a WAR class as a JAR inside of it

2007-04-10 Thread Gonzalo Vásquez Sáez
thanks, i'll try it...any other suggestions will be appreciated On 10/04/07, Wayne Fay <[EMAIL PROTECTED]> wrote: Split your project into 2 parts: 1. app/jar/pom.xml with packaging jar, all Java sources go here 2. app/war/pom.xml with packaging war and dependency against jar project, all web p

Re: pack a WAR class as a JAR inside of it

2007-04-10 Thread Wayne Fay
Split your project into 2 parts: 1. app/jar/pom.xml with packaging jar, all Java sources go here 2. app/war/pom.xml with packaging war and dependency against jar project, all web project source go here Wayne On 4/10/07, Gonzalo Vásquez Sáez <[EMAIL PROTECTED]> wrote: What would be the appropia

Re: Missing dependencies if building from parent directory (maven 2.0.5)

2007-04-10 Thread Wayne Fay
I haven't pulled the code and built etc yet, but I noticed the pom.xml for tuscany-das-rdb is missing a node. This may be related to your issues... Wayne On 4/9/07, Luciano Resende <[EMAIL PROTECTED]> wrote: Hi maven gurus We are having a strange dependency issue in our build at Apache Tus

Re: Maven 2.x in quiet mode

2007-04-10 Thread Wayne Fay
I assume you already tried mvn -q?? C:\cvs_root>mvn -h usage: mvn [options] [] [] Options: -q,--quietQuiet output - only show errors -C,--strict-checksums Fail the build if checksums don't match -c,--lax-checksumsWarn if checksums don't match -P,--activat

Re: Maven site-plugin

2007-04-10 Thread Nick Stolwijk
I looked at the code of the site plugin and it seems this is a bug in maven-site-plugin as published but solved in the trunk of the source code [MSITE-91]. Hth, Nick Stolwijk [EMAIL PROTECTED] wrote: Hi, I've tried to move the "src/site" directory to "site/src/site" using org.apac

Re: Using maven directly from a java application ?

2007-04-10 Thread Wayne Fay
Not that I am personally aware of. But search this list and the Maven Dev list -- you're bound to find something. Wayne On 4/10/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote: Thx for reply. There are some documentation about using embeded maven ?? -Message d'origine- De: Wayne Fay [m

Re: Maven Assembly:Assembly plugin issue

2007-04-10 Thread Edwin Punzalan
Try using the other assembly goals... some of them doesn't fork a new lifecycle. Please see: http://maven.apache.org/plugins/maven-assembly-plugin/plugin-info.html On 4/5/07, Kishor Patil <[EMAIL PROTECTED]> wrote: Greetings !! Maven's assembly:assembly mojo Invokes the execution of the life

Re: How to specify where to copy particular files

2007-04-10 Thread Rod Mclaughlin
Thanks again, guys. Plus you can specify where the files come from if you don't want to put them in src/main/resources: foo ${basedir}/src/main/java/foo *.xml ... -

Maven 2.x in quiet mode

2007-04-10 Thread uma_rk
I apologize if this is a FAQ. Is there a way to run Maven 2.x in quiet mode? I run Maven under CruiseControl and get verbose reports, which I 'd like to trim down. Tx, /U - To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Maven site-plugin

2007-04-10 Thread Andre.Sudhoff
Hi, I've tried to move the "src/site" directory to "site/src/site" using org.apache.maven.plugins maven-site-plugin ${basedir}/site/src/site When I create the site all resources from the subdirectories (apt, fml, xdoc) except the "site.xml" (.

Re: Maven mojo Compilation failure

2007-04-10 Thread Edwin Punzalan
The stacktrace is incomplete... there may be a message coming from the java compiler (javac) itself. On 4/6/07, Hodanics, Charles J. <[EMAIL PROTECTED]> wrote: Can someone assist with the following error when I run Maven2 compile from eclipse and continuum. I have checked a few posts and seen

Re: Release plugin: able to create branches?

2007-04-10 Thread Edwin Punzalan
Hi Graham. No, the release plugin does not have a separate goal for that. you might want to look at the maven-scm-plugin On 4/9/07, Graham Leggett <[EMAIL PROTECTED]> wrote: Hi all, We have been using the release plugin very successfully to create tags and keep version numbers up to date for

Re: How to exclude some java source files

2007-04-10 Thread Edwin Punzalan
You mean you want to exclude the source files from compilation? Then use in the compiler plugin. Please refer to http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html. On 4/10/07, sunynec <[EMAIL PROTECTED]> wrote: How to exclude some java source files in pom.xml file, sinc

Re: How to specify where to copy particular files

2007-04-10 Thread Edwin Punzalan
Two ways: * First is to save the bar.xml into src/main/resources/foo/bar.xml so you don't have to configure anything. * Second is to use foo in On 4/10/07, Rod Mclaughlin <[EMAIL PROTECTED]> wrote: I know how to make Maven copy a buncha files into the classpath, but does anyone know how to

How to exclude some java source files

2007-04-10 Thread sunynec
How to exclude some java source files in pom.xml file, since the source file are located in different package name. -- View this message in context: http://www.nabble.com/How-to-exclude-some-java-source-files-tf3554974s177.html#a9926074 Sent from the Maven - Users mailing list archive at Nabble.

How to specify where to copy particular files

2007-04-10 Thread Rod Mclaughlin
I know how to make Maven copy a buncha files into the classpath, but does anyone know how to make it copy into a particular folder? Eg. I want src/main/java/foo/bar.xml to go in target/classes/foo/ next to bar.class? Thanks for any assistance. I have of course googled for it, to no avail.

Did webstart-maven-plugin 1.0-alpha-2-SNAPSHOT change the artifact type?

2007-04-10 Thread Mykel Alvis
I just updated to 1.0-alpha-2-SNAPSHOT of the webstart mojo. Did the artifact type change? The behavior I see now is similar to pom processing, which makes sense since the artifact type is "pom". -- I'm just an unfrozen caveman software developer. I don't understand your strange, "modern" ways.

RE: Using maven directly from a java application ?

2007-04-10 Thread Marouane Amraoui
Thx for reply. There are some documentation about using embeded maven ?? -Message d'origine- De : Wayne Fay [mailto:[EMAIL PROTECTED] Envoyé : mardi 10 avril 2007 15:16 À : Maven Users List Objet : Re: Using maven directly from a java application ? You may want to try to use the Maven E

Re: How to NOT include test resources in jar

2007-04-10 Thread Eric Daigneault
Classic case... Blinded by the very light I was looking for :-) Thanks Peter, still few small problems updating the repository but I should manage... Hayes, Peter wrote: Just a shot in the dark but did you try an "mvn clean package"? Maybe the test resources had at some point made it into

Re: ClearCase checkout

2007-04-10 Thread Emmanuel Venisse
Thanks. I'll apply it when you'll provide a patch for the site too. Emmanuel Antoine Véret a écrit : Hello, i have just created an issue for this task : http://jira.codehaus.org/browse/SCM-296 Hope it helps On 3/21/07, * Antoine Véret* <[EMAIL PROTECTED] > wrote:

RE: How to NOT include test resources in jar

2007-04-10 Thread Hayes, Peter
Just a shot in the dark but did you try an "mvn clean package"? Maybe the test resources had at some point made it into the target\classes directory... Pete -Original Message- From: Eric Daigneault [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 10, 2007 11:32 AM To: Maven Users List S

Re: ClearCase checkout

2007-04-10 Thread Antoine Véret
Hello, i have just created an issue for this task : http://jira.codehaus.org/browse/SCM-296 Hope it helps On 3/21/07, Antoine Véret <[EMAIL PROTECTED]> wrote: Well, i didnt know the difference ... So yes, I will add support for UCM, for the checkout task. Antoine I think "-stream" i

How to NOT include test resources in jar

2007-04-10 Thread Eric Daigneault
Hi everybody, I'm trying to package my projects and everything works fine except that test resources are systematically included in the jar. No matter where I put them or what I declare in testResources they always end up in the jar. This can me problematic as some of the test can be very ex

Re: aspectj error

2007-04-10 Thread Steve Shucker
Like people said, it's probably a bad aspect. However, I also have 1.5 in my configuration. A side note about maven and eclipse integration: Make sure eclipse has ASPECJTRT_LIB on its build path before the maven2 container. This makes sure eclipse uses the version of aspectj that comes with

pack a WAR class as a JAR inside of it

2007-04-10 Thread Gonzalo Vásquez Sáez
What would be the appropiate way of compiling a Web Project's classes into a JAR file which could be lately stored in it's WEB-INF/lib directory? I'd like to do it so no wandering .class files are spread in the WEB-INF/classes directory. Regards, Gonzalo Vásquez

Re: Using maven directly from a java application ?

2007-04-10 Thread Wayne Fay
You may want to try to use the Maven Embedder: http://idisk.maven.org/jvanzyl/Public/embedder/ Wayne On 4/9/07, Marouane Amraoui <[EMAIL PROTECTED]> wrote: Hi, I want to atomize the creation of the structure of my project. So iwant to develop a desktop application in order to give to the e

Re: parallel building

2007-04-10 Thread emerson cargnin
I had a look on Hudson and I think it just distribute different projects, not the same project build: https://hudson.dev.java.net/masterSlave.html I couldn't found in any of Jira projects any thing regarding to parallel multi module build. Does anyone knows if this search is right? : http://jira.

Re: parallel building

2007-04-10 Thread Nigel Magnay
Not as far as I know. The Hudson CI tool claims to be able to parallel build in the correct order, but I don't know how good it is at it. IMHO it'd be a very powerful addition - if you've got something like an 8-core mac, it'd be nice to keep more of it busy. Even farming out builds to separate m

parallel building

2007-04-10 Thread emerson cargnin
Is there any way to make multi modules (regarding to both maven 1 and maven 2) builds to work in parallel when it detects a project has no dependencies (that need to be built beforehand)? thanks emerson - To unsubscribe, e-mail:

Re: overriding version of dependent library

2007-04-10 Thread oching
You could try in your hiberrnate dependency so as not to download the 1.0.1B jta jar it dependes on, and leave the dependency that uses the jta 1.1 version as is. :) You can check out this link http://maven.apache.org/pom.html for more info. Thanks, Deng > Hi all, > > How can I override version

Re: Project Inheritance reference to parent dependency?

2007-04-10 Thread DI Kurt Edegger
Hi, thank you Jerome for your fast response! I'll check out that plugin. Take care, Kurt Jerome Lacoste schrieb: On 4/10/07, DI Kurt Edegger <[EMAIL PROTECTED]> wrote: Hi, I do have a question regarding referencing the parent pom of a multi module project as described in chapter 3 of "Bette

overriding version of dependent library

2007-04-10 Thread Wojtek Ciesielski
Hi all, How can I override version number of a dependent library defined in my pom.xml file? I use org.hibernate:hibernate:jar:3.2.2.ga which depends on javax.transaction:jta:jar:1.0.1B while I'd like to use jta-1.1.jar (because it's needed elsewhere). How can I force a dependency to stop com

Re: Project Inheritance reference to parent dependency?

2007-04-10 Thread Jerome Lacoste
On 4/10/07, DI Kurt Edegger <[EMAIL PROTECTED]> wrote: Hi, I do have a question regarding referencing the parent pom of a multi module project as described in chapter 3 of "Better Builds With Maven". If a project consists of multiple modules (e.g.: api, core, model, ..), these modules reside

Project Inheritance reference to parent dependency?

2007-04-10 Thread DI Kurt Edegger
Hi, I do have a question regarding referencing the parent pom of a multi module project as described in chapter 3 of "Better Builds With Maven". If a project consists of multiple modules (e.g.: api, core, model, ..), these modules reside in sub-directories of a top level directory. Each module

Re: dependency:unpack unzipping .tgz files after HTTP downloads

2007-04-10 Thread Steinar Bang
> "Brian E. Fox" <[EMAIL PROTECTED]>: > Putting explicit versions should force it. The only caveat is that > it seems that once maven picks a version in a multi-module build, it > uses that throughout the build, regardless of individual poms. > Looking over the change log[1], I don't see anyt

Re: [NEWSENDER] - Re: maven-release-plugin getiing SCM values - Message is from an unknown sender

2007-04-10 Thread Emmanuel Venisse
I don't know how JavaSVN store username/password but I think it use the subversion registry too, so if you're already authenticated on the svn server from this computer, you won't need username/password. If you want to set explicitly the username/password, you can set them in the release plugin

Re: reference a pom variable in the website

2007-04-10 Thread Wim Deblauwe
Retrying... 2006/12/14, Wim Deblauwe <[EMAIL PROTECTED]>: Hi, is it possible to reference a pom variable in the website? I would like to be able to do something like this in an APT file: The latest version of the software is ${pom.version}. regards, Wim -- Vigilog - an open source log