Re: maintaining versions across multi-module project

2008-07-01 Thread Martin Höller
On Monday 30 June 2008 Kallin Nagelberg wrote: > Can anyone tell me what is the best/simplest way to maintain a version > number across all the poms in a multi-module project? > > They are all to be deployed with the same version every time. Use the maven-release-plugin to release your project. Th

Re: Tip about Skinny Wars

2008-07-01 Thread Martin Höller
On Tuesday 01 July 2008 Michael McCallum wrote: > > On Tue, Jul 1, 2008 at 2:58 PM, Martin Höller <[EMAIL PROTECTED]> wrote: > > > I think I found one BIG problem with your workaround: it only works > > > if you already have (the latest version of) your WAR's pom.xml file > > > in the repository, o

RE: m2 eclipse plug installation problem

2008-07-01 Thread Kent Tong
Hi, It turns out that I have to install buckminster first, at least on Windows. It seems to work without it on Linux. - -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW Axis2 tutorials freely available at http://www.agileskills2.org/DWSAA -- View this messa

Re: Issue with ProGuard Maven plugin.

2008-07-01 Thread Mikel Cármenes Cavia
Isn't that feature enabled automatically? I thought that Maven took care of the dependencies specified in the POM by passing these over to ProGuard... It'd be lovely to get this all to work! Thanks. On Tue, Jul 1, 2008 at 15:19, Dirk Olmes <[EMAIL PROTECTED]> wrote: > Mikel Cármenes Cavia wrote:

How to use DB2's JCC jars as a single dependency.

2008-07-01 Thread Chris_Graham
I was asked privately how to: "Can you explain what should I do to use db2 jcc library as one dependency in my maven project? What commands I should execute to gain such feature?" Simple, you need to install (into your local repo) or deploy (into your corporate one, if you have one) the jars

Assembly interpolation

2008-07-01 Thread Kathryn Huxtable
Is there any way to get the assembly id interpolated into a filtered resource? Or failing that, the execution id? I don't want to create a separate profile and pass parameters. -K - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Tip about Skinny Wars

2008-07-01 Thread Michael McCallum
> On Tue, Jul 1, 2008 at 2:58 PM, Martin Höller <[EMAIL PROTECTED]> wrote: > > I think I found one BIG problem with your workaround: it only works if > > you already have (the latest version of) your WAR's pom.xml file in the > > repository, otherwise maven 2.0.9 reports a missing dependency. > > >

Re: Proper Dependency Management - HowTo?

2008-07-01 Thread Michael McCallum
Think about poms and dependendencies in the same way you would a piece of OO code. You should use inheritance, composition and aggregation appropriately to reduce change and improve stability. Don't make the mistake of thinking that inheritance is the only solution. On Tue, 01 Jul 2008 23:39:51

Maven AntRun Plugin - Phase Required?

2008-07-01 Thread Elliot Barlas
Hi all, I would like to define a ant task in a AntRun plugin configuration that isn't tied to any phase. I would like to be able to invoke it from the command line with mvn antrun:run. Is this possible? I haven't been able to get it working. Thanks, Elliot -- View this message in context: ht

JSPC plugin can't find tag library embedded in jar

2008-07-01 Thread chexxor
This is the error I get when I try to precompile my project with the mojo JSPC plugin by codehaus. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] JSPC Erro

Re: Debugging why Maven is using a particular repository

2008-07-01 Thread Wouter Hermeling
+1 I also could not find out which repo maven would try first and which one after that, etc. It would be nice to make this behaviour more transparant. Martin Gilday wrote: > > Hi, > I have just added the Clover 2 plugin to my POM and now Maven keeps > attempting to download Doxia jars from > h

Re: source arbitrary external profile data?

2008-07-01 Thread ertnutler
After some more digging, I notice that I can replace MavenCli with a custom implementation in /bin/m2.conf that I could use to manually create an instance of ProfileManager that does what I want. Is this the only way to accomplish what I need? I was hoping to be able to inject an instance of my

Re: maintaining versions across multi-module project

2008-07-01 Thread Geoffrey Wiseman
On Mon, Jun 30, 2008 at 7:47 PM, <[EMAIL PROTECTED]> wrote: > I remove the version from all of the module poms entirely and just have > the multi module build pom have it. It works for me. How do you handle the version in the section? What about inter-module dependencies, do you use the depend

Re: Issue with ProGuard Maven plugin.

2008-07-01 Thread Dirk Olmes
Mikel Cármenes Cavia wrote: I actually managed to get past this error, I shamelessly forgot to take care of my ProGuard parameters. My POM now looks includes all of the pertinent options, however, I continue to get errors, and I really have no clue what they mean: Here they are: [proguard] War

source arbitrary external profile data?

2008-07-01 Thread ertnutler
I'm looking for a good way to surface external properties to Maven. For the sake of brevity, these properties aren't in profiles.xml format but are in a proprietary format. I was thinking I could create Profile instances as I see fit and populate them such that the properties are available at ru

Re: fatal dependency management flaw in maven?

2008-07-01 Thread Lee Meador
And you can just stick the "file" with the list of allowed dependencies in the repo and pass it as a dependency to your plugin in the config. Nobody can fool with it there so its better than putting it in the source repository (e.g. SVN, CVS). And its easier than trying to put it on a whole 'nother

"mvn test" uses wrong resources

2008-07-01 Thread M. Dahm
Hi, I really don't know what is happening here: There is a file META-INF/persistence.xml as well in src/test/resources as in src/main/resources But when I execute "mvn test" in the UBI-ALS-NG/UBI-ALS-NG-datamodel folder the wrong persistence.xml is loaded, i.e. the one in src/main/resources.

Re: problem installing the oracle library ojdbc14.jar

2008-07-01 Thread Stefan Seidel
Ok, it just seemed to be because the output is very weird: >>> [INFO] Searching repository for plugin with prefix: ' -X install'. >>> [INFO] org.apache.maven.plugins: checking for updates from central >>> [INFO] org.codehaus.mojo: checking for updates from central >>> [INFO] artifact org.apache.m

Re: Odd warning in assembly plugin

2008-07-01 Thread Kathryn Huxtable
Well, that's what Grouper is, but Signet is also a non-Maven project. I created pom files for each of them, though, and specified them in my install:install-file command. And yet, I only get the warning on Grouper. ** I just figured it out! * The pom file for Grouper has the wrong g

Re: problem installing the oracle library ojdbc14.jar

2008-07-01 Thread María Isabel López Sánchez-Huete
Thank you, for your rapid answer. I guess it´s not the problem. These options only shows a more detailled error message. The build error is the same without these options. Any other idea? Stefan Seidel escribió: hi, the problem seems to be your -X. Try without -e and without -X. S

Re: Odd warning in assembly plugin

2008-07-01 Thread Magne Nordtveit
On Mon, 2008-06-30 at 18:27 -0500, Kathryn Huxtable wrote: > Correct. I have several Internet2 projects which are not currently in > any repository except my local one. They, in turn, have dependencies. > > Of these, only the Grouper project gives me the warning. > > -K, who will go over the Gr

Re: Tip about Skinny Wars

2008-07-01 Thread Arnaud HERITIER
My workaround is more a hack that something else. It's not really logical to have in a project to dependencies to a pom and a war of a same artifact. This is certainly a bug in the core of maven which doesn't support it :-( I'm trying to see how I can change the ear plugin to fix this issue. Arnau

Re: Adding custom link to the report of mvn site.

2008-07-01 Thread Julien Simon
Hi, If you want to add a link in the menu of the site generated by maven, you could add the file site.xml under src/site/site.xml with something like the following content : Have a look at http://maven.apache.org/guides/mini/guide-site.html or "The Maven Definitive Guide"

RE: Maven2+Jboss support(what's the future of jboss with maven2)

2008-07-01 Thread Renu Gupta
Hey thanx... Its working but then to tell u we need to add one more property in configuration default Then it will work... :) Here is my pom configuration for the same: org.codehaus.cargo cargo-maven2-plugin 0.3.1 false

Re: how to upgrade the version of transitive dependency?!

2008-07-01 Thread Jörg Schaible
Hi Oliver, oliver.maven wrote: > hi,all > > my Maven libraries container found a dependency ,which is asm-1.5.3.jar,it > is automatically added by other dependency transitivly. > > but the version is to low caused a ClassNotFound exception at runtime, > > i can not add a new asm dependency by

Re: Tip about Skinny Wars

2008-07-01 Thread Martin Höller
Hi Arnaud! I think I found one BIG problem with your workaround: it only works if you already have (the latest version of) your WAR's pom.xml file in the repository, otherwise maven 2.0.9 reports a missing dependency. So this approach is not useable with the maven-release-plugin :-( I made up

RE: m2 eclipse plug installation problem

2008-07-01 Thread Renu Gupta
Hi I have installed same on eclipse3.2.1.So, if u need any help regarding that then do let me know. Cheers! Renu -Original Message- From: Kent Tong [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2008 2:37 PM To: users@maven.apache.org Subject: m2 eclipse plug installation problem Hi

Re: problem installing the oracle library ojdbc14.jar

2008-07-01 Thread Stefan Seidel
hi, the problem seems to be your -X. Try without -e and without -X. Stefan María Isabel López Sánchez-Huete wrote: Hí, I'm a beginner in this matter, and I'm lost. I expect somebody can help me. I´m trying to install dspace 1.5 on Solaris 10 in a SPARC computer. I read the

Re: Maven2+Jboss support(what's the future of jboss with maven2)

2008-07-01 Thread Stefan Seidel
I'm not sure, I think I had this error before, but can't remember what the problem was. YOu could try with version 0.3.1 of the plugin, I had some troubles with the latest. Here's my config for reference: false jboss4x ...

problem installing the oracle library ojdbc14.jar

2008-07-01 Thread María Isabel López Sánchez-Huete
Hí, I'm a beginner in this matter, and I'm lost. I expect somebody can help me. I´m trying to install dspace 1.5 on Solaris 10 in a SPARC computer. I read the installation documentation, and follow the steps. My problems is about installing the oracle library ojdbc14.jar.

Proper Dependency Management - HowTo?

2008-07-01 Thread Peter Horlock
Hi, we got a software, which is devided into serveral sub projects. We defined a parent pom, that, besides other shared items, contains a dependency management section to ensure all sub projects are using the same dependencies. Also, as the "software" we are talking about is actually a website, th

RE: Maven2+Jboss support(what's the future of jboss with maven2)

2008-07-01 Thread Renu Gupta
Unfortunately even after adding the tags I m getting following error: [INFO] [stalledLocalDeployer] Deploying [F:\Documents and Settings\rvgupta\MavenProjects\Cargo+JBOSS-Trial\simple-webapp\target\simple-webapp.war] to [E:\Softwares\jboss-4.0.5.GA\s erver\default/deploy]... [INFO] [talledLoca

Re: How to emulate the concept of an Ant target?

2008-07-01 Thread Stephen Connolly
On Tue, Jul 1, 2008 at 9:07 AM, Andrei Ivanov <[EMAIL PROTECTED]> wrote: > On 7/1/08, Stephen Connolly <[EMAIL PROTECTED]> wrote: >> Option 1. >> >> a shell script/batch file that just does >> >> mvn plugin1:goalA plugin2:goalB plugin3:gaolC >> >> This is especially handy if some of the goals

Re: Toc macro doesn't work

2008-07-01 Thread Lukas Theussl
Two remarks: - the tag doesn't have a name attribute, it should be: SUB SUB TITLE 1.3.1 bla bla... - the should enclose the whole block it contains, just like section: bla bla... SUB SUB TITLE 2.3.1 SUB SUB TITLE 2.3.2 SU

Antwort: specify more than one loadrule in SCM:clearcase (Auto-generated config spec)?

2008-07-01 Thread torsten . reinhard
Hi, if there´s someone who´s using Base ClearCase with Maven: How do you release your multi-module Builds with all the actually given limitations like - only one loadrule in Auto-generated configSpec - checking out from a tag is currently not supported - branch types aren´t supported - http://j

Multiple executions of compile goal

2008-07-01 Thread Venkat Reddy
I have a need to run the compile goal multiple time during the compile phase. Also each of this run has to use different dependencies. Is this doable? I couldn't find documentation on this topic. I need something like this - maven-compiler-plugin

Toc macro doesn't work

2008-07-01 Thread olivier.beyler
Hello, The indentation of the result of toc macro doesn't work I create a simple example and if you look the result you can see that has soon the h4 tag is reach the toc doesn't indent correctly. Any Idea ? Olivier me title

Debugging why Maven is using a particular repository

2008-07-01 Thread Martin Gilday
Hi, I have just added the Clover 2 plugin to my POM and now Maven keeps attempting to download Doxia jars from http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/doxia/doxia-site-renderer/1.0-alpha-7/doxia-site-renderer-1.0-alpha-7.jar. I already have an internal Nexus repository whi

m2 eclipse plug installation problem

2008-07-01 Thread Kent Tong
Hi, I am trying to install the m2 eclipse plug into Eclipse 3.4 (Ganymede), but it fails and says that there are unmet dependencies. I've selected only the minimal maven eclipse integration. Any idea? Thanks in advance! - -- Kent Tong Wicket tutorials freely available at http://www.agilesk

how to upgrade the version of transitive dependency?!

2008-07-01 Thread oliver.maven
hi,all my Maven libraries container found a dependency ,which is asm-1.5.3.jar,it is automatically added by other dependency transitivly. but the version is to low caused a ClassNotFound exception at runtime, i can not add a new asm dependency by using m2eclipse,because the asm dependency alr

Re: Maven2+Jboss support(what's the future of jboss with maven2)

2008-07-01 Thread Stefan Seidel
You're welcome. You need to add the start and stop executions to the plugin definition: start-container generate-test-resources start sto

Re: fatal dependency management flaw in maven?

2008-07-01 Thread Ishaaq Chandy
doh! I should have thought of that. :) Thanks 2008/7/1 Minto van der Sluis <[EMAIL PROTECTED]>: > > Hi Ishaaq, > > I am not sure but it seems like the dependency plugin is a good candidate > to > look at. Looking at the output of dependency:tree it shows scope informatie > as well. > > regards,

Re: fatal dependency management flaw in maven?

2008-07-01 Thread Minto van der Sluis
Hi Ishaaq, I am not sure but it seems like the dependency plugin is a good candidate to look at. Looking at the output of dependency:tree it shows scope informatie as well. regards, Minto van der Sluis Ishaaq Chandy wrote: > > ok, will give it a go - any pointers on the API I should be looki

Re: How to emulate the concept of an Ant target?

2008-07-01 Thread Andrei Ivanov
On 7/1/08, Stephen Connolly <[EMAIL PROTECTED]> wrote: > Option 1. > > a shell script/batch file that just does > > mvn plugin1:goalA plugin2:goalB plugin3:gaolC > > This is especially handy if some of the goals should only be run on > the local directory while others need to run throughout

Re: fatal dependency management flaw in maven?

2008-07-01 Thread Ishaaq Chandy
ok, will give it a go - any pointers on the API I should be looking at in order to determine an artifact's scope? I'm not scared of trawling through maven's source code myself, but a helpful pointer in the general direction would be appreciated. Thanks, Ishaaq 2008/7/1 Stephen Connolly <[EMAIL PR

Re: How to emulate the concept of an Ant target?

2008-07-01 Thread Stephen Connolly
Option 1. a shell script/batch file that just does mvn plugin1:goalA plugin2:goalB plugin3:gaolC This is especially handy if some of the goals should only be run on the local directory while others need to run throughout the tree, the script can invoke maven multiple times with and without t

Re: fatal dependency management flaw in maven?

2008-07-01 Thread Stephen Connolly
I would think that you should be able to do that from an enforcer rule... Of course I have not tried... But if you need those kind of changes in enforcer, that would be a lot quicker to get than changes to Maven's core... Plus, such a custom rule would be of use to not just commercial projects,

Re: fatal dependency management flaw in maven?

2008-07-01 Thread Ishaaq Chandy
that would possibly work if there is a way for the enforcer to retrieve scope information from the artifact - is this possible? Is it also possible for transitive dependencies, i.e., will the enforcer let me allow the same artifact to go through when using it as a transitive dep of a test-scope ar

How to emulate the concept of an Ant target?

2008-07-01 Thread Andrei Ivanov
Hello, I'm a Maven newbie and I'm having some difficulties understanding some concepts, so I hope you can help me... In an Ant build.xml, I could create a target in which I could call tasks: I've read about the lifecycle concepts of Maven, and I know that a plugin has one or more goals a