Re: properties in archetypes?

2008-06-18 Thread Chris_Graham
[EMAIL PROTECTED] wrote on 18/06/2008 16:50:05: > Can we make use of our own properties/variables in archetypes? > > The m2eclipse plugin allows us to define properties to be used at arcetype > generation time. > > The problem is, I've not see a single references as to _how_ to do > this!???

Antwort: Archiva and -DdownloadSource

2008-06-18 Thread torsten . reinhard
which version are you using? I´m using Archiva 1.0.2 and it does download sources, sure. In my pom.xml i have: org.apache.maven.plugins maven-eclipse-plugin 2.4 bin true

Re: executing a profile

2008-06-18 Thread Martin Höller
Hi! Did you try specifying the property in your pom.xml or settings.xml like this: whatever.value hth, - martin On Wednesday 18 June 2008 Karan Malhi wrote: > Thanks for the response Martin, > > I did look at that documentation and added the downloadSources and > downloadJavadocs elements

How to filter Test case?

2008-06-18 Thread youhaodeyi
I put test case in the src/test/java directory also some demo code there. Is there a way to skip the demo code when doing test? thanks. -- View this message in context: http://www.nabble.com/How-to-filter-Test-case--tp17996149p17996149.html Sent from the Maven - Users mailing list archive at Na

Re: Release plugin does not change version of plugin's dependency even though it is in reactor

2008-06-18 Thread Kalle Korhonen
(If I understand your problem correctly) by default release:prepare doesn't run install goal which can cause issues like this, but you can configure which preparation goals need to be run (also see my comment below from our build why we need it): org.apache.maven.plugin

RE: Release plugin does not change version of plugin's dependency even though it is in reactor

2008-06-18 Thread Hayes, Peter
Wendy wrote: > Generally when I have plugins or tools that I use during the build, I > release them separately and in advance of the project build. (And, > how often are the checkstyle rules going to change?) Yes, this is probably the workaround I'd use. > If you're going to leave this as a modu

Re: Release plugin does not change version of plugin's dependency even though it is in reactor

2008-06-18 Thread Wendy Smoak
On Wed, Jun 18, 2008 at 5:46 PM, Hayes, Peter <[EMAIL PROTECTED]> wrote: > I am using the checkstyle plugin for a multi-module build. As directed > in the checkstyle documentation, I configured the checkstyle plugin to > include a dependency on one of my sub projects like this : Generally when I

Release plugin does not change version of plugin's dependency even though it is in reactor

2008-06-18 Thread Hayes, Peter
I am using the checkstyle plugin for a multi-module build. As directed in the checkstyle documentation, I configured the checkstyle plugin to include a dependency on one of my sub projects like this : ... org.apache.maven.plugins maven-checkstyle-plugin

RE: location of application.xml?

2008-06-18 Thread Chris_Graham
"Bernhard David" <[EMAIL PROTECTED]> wrote on 18/06/2008 16:21:06: > Hello, > > I think you just need to declare src/main/application as a resource > folder in your pom - > > > > src/main/application > > > and it should work exactly as src/main/resources does. Hi David.

Running all tests ignoring failures

2008-06-18 Thread Balasubramanian, Ravi Shankar
Hi all, I need a way in maven (using the surefire-plugin) to run all tests in a project ignoring any test failures that might occur. All my tests are independent of each other and i want all the tests to be run ignoring any failures that might happen in the middle. Note: 1. I tried using

RE: How to have two poms on the same project to generate WAR/EAR?

2008-06-18 Thread Jeudy, Guillaume
Nestor, You will have to create a top level aggregator project of packaging: pom. Then you can have 2 sub modules with 1 of the EAR and the other WAR packaging. At least that is how I setup the maven project on my end. The format is 1 archive for 1 pom file, you cannot really work around this

deploy site using ftp?

2008-06-18 Thread David Delbecq
Hello, i try to deploy my maven site using ftp. I followed instruction there http://maven.apache.org/guides/mini/guide-deploy-ftp.html to activate ftp support and i added myproject-site ftp://myserver/myproject However, i got [INFO] Wagon protocol 'ftp' doesn't support directory copying

How to have two poms on the same project to generate WAR/EAR?

2008-06-18 Thread Néstor Boscán
Hi I need to generate ear files from web applications. So what I understood is that I need to pom.xml files. One for the project that generates the war file an another one for the ear files that includes the war files. Is there a way to have this two pom.xml on the same project and not create two

RE: Use Maven2 to build from a CVS tag

2008-06-18 Thread Jeudy, Guillaume
I suggest you read up on maven release plugin: http://maven.apache.org/plugins/maven-release-plugin/introduction.html I don't use it any differently then the official usage. The plugin doesn't generate a pom file but rather modifies the existing pom file with a new version and checks in CVS wi

use highest version available ? Version Ranges ?

2008-06-18 Thread SlinnHawkins, Jon (ELS-CAM)
Hi, Is there any way of forcing a dependency to use the highest version available ? For example : Does "[4.0,)" grab the highest version above 4.0, or does it still use a “best fit” with the other dependencies in the tree I’ve tried it and it appears to go for the highest versio

Skip Verify on Sub-Module

2008-06-18 Thread Hart, Leo
Hello, I have a multi-module project that looks a little something like this: app-aggregate --app-parent --app-domain --app-dal --app-web --app-external app-aggregate's pom specifies the sub-projects as sub-modules. domain, dal, web and external all specify app-parent as their parent pom.

Re: Archiva Problem.

2008-06-18 Thread Brett Porter
Are you using the latest version? A problem with this was fixed in 1.0.2. If so, you'll need to provide more information (and clarify "no proxy" - I assume this means no HTTP proxy, not that you've turned off Archiva proxying of repo1 which will definitely stop updates :) - Brett 2008/6/18 Alexa

Re: executing a profile

2008-06-18 Thread Karan Malhi
Thanks for the response Martin, I did look at that documentation and added the downloadSources and downloadJavadocs elements in the pom for the eclipse plugin. However, I have a profile named "assemble". This profile depends on a property named "assemble". So when I run maven like mvn eclipse:ecl

Re: Use Maven2 to build from a CVS tag

2008-06-18 Thread Mikel Cármenes Cavia
I'm developing a tool that among other things, allows for the user to pick a CVS version and build it with maven (this is part of the process anyways). While I have not got as far as you seem to be yet, I do not know of any automated way to do this. Could you elaborate on how you use the maven rel

Use Maven2 to build from a CVS tag

2008-06-18 Thread Jeudy, Guillaume
Hi maven savvy developers, Is there an automated way to trigger a maven build from a cvs tagged version ? Basically I want to check out the source code for a given tag and trigger the maven build. So far I need to do these steps separately (checkout with cvs then build with maven). I use t

Re: Incorporating DLL's into Maven Project.

2008-06-18 Thread Mikel Cármenes Cavia
I'm lost with this DLL business... What pains me the most is that I'm sure it's quite the trivial thing to do, but I can't seem to figure it out... Mikel On Tue, Jun 17, 2008 at 15:31, Mikel Cármenes Cavia <[EMAIL PROTECTED]> wrote: > Kalle, > I have made sure to carefully deploy the dll's to my

RE: Maven plugins - why some of them must be declared in pom.xml and some others not?

2008-06-18 Thread Brian E. Fox
>the jetty plugin (for v6) is something.mortbay.something:maven-jetty-plugin >so you need to specify it... for v7 they renamed to jetty-maven-plugin so as >long as the something.mortbay.something is in your plugin search list you >can just use jetty: without declaring in your pom Unless they chan

RE: Maven plugins - why some of them must be declared in pom.xml and some others not?

2008-06-18 Thread Brian E. Fox
Because Maven tries to resolve the "short" name by looking at the maven-metadata.xml file stored in org.apache.maven and then org.codehaus.mojo (you may also define a pluginGroup in your settings). The jetty plugin is not in one of those groups, so it's not found...unless it's in your pom or there'

RE: Failing the build on dep convergence problems

2008-06-18 Thread Brian E. Fox
I have a plugin that was donated to me from a customer that needs to be turned into an enforcer rule...it does exactly what you're looking for. -Original Message- From: Dan Fabulich [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 12:18 AM To: Maven Users List Subject: Failing the

Package resolving in MOJO hierarchy bug

2008-06-18 Thread Mike Ahlers
Hi, Just going to post a message here about what I found out recently. It affects maven 2.0.9. I think this is a bug, and tried creating a Jira issue but couldn't... so here goes: During development of a MOJO I was in need of a custom class (with getters and setters) so that the pom configuratio

List of profiles

2008-06-18 Thread fma-001
Hi, I would like to have a list of all profiles of our project. Since there are many profiles in child-poms, it would really help, if I could get a list of all available profiles (not only active ones). Either by console with sth like mvn help:profiles or by report-plugin. I know that there were

hibernate3-maven-plugin

2008-06-18 Thread kace
How can I get the plugin to pick up multiple hibernate.cfg.xml files? I've added the moduleA in my moduleB as a dependency and if use classpath:/src/main/resources/hibernate.cfg.xml it only picks up the hibernate.cfg.xml file from moduleA jar and if I use /src/main/resources/hibernate.cfg.xml

Re: Maven plugins - why some of them must be declared in pom.xml and some others not?

2008-06-18 Thread Stephen Connolly
There are default group Ids that are searched for plugins that are named with the correct artifact Ids. if the groupId is org.apache.maven.plugin and the artifactId is maven-xyz-plugin and then xyz:goal will work otherwise if the groupId is in the list of plugin group ids specified in your settin

Re: Disabling a plugin bound to a phase

2008-06-18 Thread ben.gidley
Wayne Fay wrote: > > I would probably set that up as follows: > Default profile (in parent pom) only specifies which are jars > War profile specifies all modules, jars and wars > > I have a similar set up already for some projects - but in this case I do > want to build (and especially compi

Re: location of application.xml?

2008-06-18 Thread Andrew Madu
Chris, you may find the following information of help: http://maven.apache.org/plugins/maven-ear-plugin/tests.html Regards Andrew I'm not sure when you put META-INF\application.xml. Does it go under src\main\resources or src\main\application? mvn eclipse:eclipse generates a source dir refere

Maven plugins - why some of them must be declared in pom.xml and some others not?

2008-06-18 Thread teo.danciu
Hi, I'm really confused about the declaration of maven plugins in pom.xml. What is the rule? Why must jetty for instance be declared (otherwise, the call "mvn jetty:run" results into a build failure) and tomcat can be run without appearing in pom.xml, while both of them are not core plugins?

Profile activation in modules

2008-06-18 Thread SlinnHawkins, Jon (ELS-CAM)
Hi All, I have 3 profiles defined in the Parent Pom. The parent pom has 30 modules. Is there any way I can specify to run any combination of the 3 profiles (somehow defined in the module pom) as part of a reactor build from the parent. The activation by property does not work if the

vote for xerces deployment

2008-06-18 Thread twolff
Perhaps if enough of us vote, the xerces folks will resume deploying their released artifacts to the central repository. The issue is logged here: https://issues.apache.org/jira/browse/XERCESJ-1304 The current version is 2.9.1. That last impl artifact deployed was version 2.8.1 in January of 20

Problem with mvn scm:diff.Help me with its correct usage.

2008-06-18 Thread nehal vyas
Hello everyone, I am trying to use mvn scm:diff command.I have set the connection connectionin the configuration for the mvn scm plugin too.But the command fails :(:-(..The output stack trace I am getting is Provider message: The cvs command failed. Command output:

Re: executing a profile

2008-06-18 Thread Martin Höller
On Monday 16 June 2008 Karan Malhi wrote: > Hi, > > I have a requirement to configure the eclipse plugin within the pom so > that I can replace the following > > mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true > -DsomeProperty > > with something in the pom so that I should be abl

Archiva Problem.

2008-06-18 Thread Alexander Vaysberg
Hi, I have a Problem with Archiva. On the repo1 are new plugins, but the Archiva getn't it from repo1. I have no proxy. Alexander Vaysberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL