Re: Expected behavior of the -f command line flag and working directories

2011-10-25 Thread Johan Lindquist
Ok, thanks! On Tue, 25 Oct 2011 11:15:49 +0200, Olivier Lamy wrote: 2011/10/24 Johan Lindquist jo...@kawoo.co.uk: Hi All, I am curious what the expected behavior with is when using the -f alternate-pom-file command line option with respect to the working directory. I am running 'mvn -f sub

Expected behavior of the -f command line flag and working directories

2011-10-24 Thread Johan Lindquist
Hi All, I am curious what the expected behavior with is when using the -f alternate-pom-file command line option with respect to the working directory. I am running 'mvn -f sub-dir/pom.xml' and it seems Maven will change the working directory to 'sub-dir' before executing the actual build.

Plugins and snapshot dependency updates

2010-02-15 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All, Using Maven 3.0-alpha6, I have a project which contains snapshot dependencies of my local artifacts in both the dependency section of the pom in the ant-run plugin. In addition, I am pointing Maven to a local artifactory repository (using

Re: how to cope all jars from all modules to some top level project directory?

2009-06-19 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Agree with Stephen - this is then one (the latter) that worked for me. Cheers, Johan Stephen Connolly wrote: you'll want to set inherited to false, or else create a special module which has the config On Friday, June 19, 2009, Dmitry

Re: Maven Clean Plugin exclude target folder

2009-04-06 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Not sure what you are generating the sources from, but for generated SOAP client code, we usually build this as a separate module (jar) and have our code depend on it - saves us generating code all the time. For other generated code (from the

Re: deploy multipe file to one directory

2009-04-06 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, The deploy plugin accepts a classifier parameter (-Dclassifier=) - use this with the values 'tests', 'test-sources' and 'sources' and it should work. See also [1]. Cheers, Johan [1]

Re: deploy multipe file to one directory

2009-04-06 Thread Johan Lindquist
already tried the -Dclassifier parameter but maybe i did it wrong... When just appending the -Dclassifier=tests parameter to the command it still just deploys one file. So is it right that i have to deloy the classifier with a second deploy-cmd after deploying the artifact-file? Johan

Re: help enabling assertions in the compiler plugin.

2009-02-05 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The compilerArguments are passed directly to javac executable as far as I can tell and javac does not support these flags. Could you use the MAVEN_OPTS environment variable to enable assertions in within the Maven code perhaps? Cheers, Johan Mick

Re: help enabling assertions in the compiler plugin.

2009-02-05 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Of course they are - I wasn't stating otherwise ... Johan Jochen Wiedmann wrote: On Thu, Feb 5, 2009 at 3:59 PM, Johan Lindquist jo...@kawoo.co.uk wrote: The compilerArguments are passed directly to javac executable as far as I can tell

Re: help enabling assertions in the compiler plugin.

2009-02-05 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 that should of course be 'of course they are not supported' ... opps ;) Johan Lindquist wrote: Of course they are - I wasn't stating otherwise ... Johan Jochen Wiedmann wrote: On Thu, Feb 5, 2009 at 3:59 PM, Johan Lindquist jo...@kawoo.co.uk

Re: How to do sftp without getting passwd or connection prompt?

2009-01-23 Thread Johan Lindquist
Hi Ray, I may be well off, but this usually works for me - the only thing different is that I use the scpexe protocol. Cheers, Johan Tang, Ray wrote: Can someone please advise how this can get done without entering password or yes? I am enclosing the settings.xml for reference.

Re: Maven Parameters

2009-01-12 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Add list of the objects to your mojo /** * List of Orders * * @parameter */ private ListOrder orders = new ArrayListOrder(); and in your pom.xml (within the config section of your mojo), specify the following: orders order

Re: Installing assembled zip of a multi-module project

2008-12-30 Thread Johan Lindquist
moduleSets moduleSet includes include*:Api/include include*:Common/include includes /moduleSet /moduleSets /assembly On Mon, Dec 29, 2008 at 5:48 PM, Johan Lindquist jo...@kawoo.co.uk wrote: Hi Bahri, My assembly

Re: Installing assembled zip of a multi-module project

2008-12-29 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Bahri, The assembly plugin should install it's artifacts by default - not sure why it is not doing so in this case. Could you try running it without the output directory specified? If not working, try adding the the following (just after your

Re: Installing assembled zip of a multi-module project

2008-12-29 Thread Johan Lindquist
was: mvn clean install package assembly:assembly i.e, I was explicitly calling assembly after package. I am not sure why this approach was fit for me, probably was because of inter dependencies of sub modules. Bahri On Mon, Dec 29, 2008 at 4:39 PM, Johan Lindquist jo...@kawoo.co.uk wrote

Re: Build Failure

2008-12-22 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Works for me - are you using a proxy? Cheers, Johan Mo Mal wrote: Sorry for the general question. I am trying to build something using Maven, running mvn in the directory gives a build failure, because the following link is not available. (

Re: Advice on version conventions for parallel, multi-team development

2008-11-16 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 My thought as well - Hudson would have each branch (as well as trunk) using a separate repository (config option). Johan Dan Tran wrote: My team is about to venture into this situation, my plan is to have each team should have its own internal

Activating proxy from command line

2008-10-16 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have looked around but fail to find any docs on how to activate a certain proxy (configured in my settings.xml) from the command line. The docs for settings.xml hints that this could (should?) be possible. Anyone used this or know if it is

Re: can't rev the version of multi-module project

2008-10-16 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have a similar setup, only I declare the dependency versions in the parent pom (using dependency management). Of course, not tried to use a property there (define the versions explicitly), but maven happily updates the dependency management

Re: can't rev the version of multi-module project

2008-10-16 Thread Johan Lindquist
That rings a bell - and that would explain why it works for me - my root pom (not the project root pom - declared a long while back) defines this for the release plugin. Apologies for the misleading post ... Cheers, Johan Kalle Korhonen wrote: Why don't you just run install during

Re: Is it possible to make some delaying between surefire plugin executions?

2008-02-24 Thread Johan Lindquist
For 1) also check that you shutting down the db in the tearDown (if you don't already do this of course). Found hsqldb to require a clean shutdown and it fixed things for me. Cheers, Johan Dan Fabulich wrote: vetalok wrote: 1. Is it possible to add some delaying between few execution

Re: Protection of Already Deploy Artifacts

2007-10-24 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I don't think this is currently possible; I would investigate using the release plugin though, as this ensures that versions are always incremented. Cheers, Johan Leder, Leslie (NSN - DE/Greifswald) wrote: Hello, assume there is a module A

Maven Release Plugin and autoVersionSubmodules

2007-10-19 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All, I am having an issue with the release plugin. I am getting an assertion failure just after the plugin asks for the release version to be built (see below for stack trace). Debugging it, it seems the plugin adds the root project id to the

Re: Overriding the local repository

2007-08-25 Thread Johan Lindquist
Hi, You can do that through your settings.xml file (using the localRepository/ tag) but of course that won't help if you are looking at a runtime option. Johan Howard Lewis Ship wrote: Is there a way to control what the local repository is? I've done some searching found -Dmaven.repo.local,

Re: ${project.version} is not being resolved

2007-06-26 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Stefan, I don't think you are allowed to have a property in the parent reference. I tried this before and it would work in most other places of the pom apart from the parent reference. If I remember correctly, the rationale behind it is that

Re: How to hook into the package goal

2007-05-28 Thread Johan Lindquist
Hi Marcos, Check out the assembly plugin (see [1]), which should be able to help you with you what you want. Cheers, Johan [1] http://maven.apache.org/plugins/maven-assembly-plugin/ Marcos wrote: Hi all :-) I've been using Maven to build my application and it's structured in the

Re: Overriding the plugin depencies

2007-05-25 Thread Johan Lindquist
Hi Alexandre, You should be able to specify a plugin's dependancies within the plugin definition in your pom (build/plugins/plugin). I am not fully sure, but this may also be possible using a profile, which would allow you to not make this visibile to those who *dont* activate the profile in

Maven 2.X and classifiers

2007-05-02 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All, I have a war file which I can build to include either MySQL or Oracle database configurations and I was wondering how I can get the classifier into the final name of the artifact created? In a dependency, I can specify which classifier to

Re: Maven 2.X and classifiers

2007-05-02 Thread Johan Lindquist
plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration classifiermyclassifierclassifier/ /configuration /plugin /plugins /build [...] /project -Tim Johan Lindquist

Re: Problems with implementing clover with m2

2007-04-07 Thread Johan Lindquist
Hi Baz, Try to specify the JDK in the Clover config. I believe the jdk property described in [1] defines this. Cheers, Johan [1] http://maven.apache.org/plugins/maven-clover-plugin/instrument-mojo.html Baz wrote: Wayne, read the link you sent. Are you saying that i should use different

Re: Problems with implementing clover with m2

2007-04-07 Thread Johan Lindquist
: http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi ler-source-and-target.html Is that mean i need a proper version of 1.5? or other version? B. On 4/7/07, Johan Lindquist [EMAIL PROTECTED] wrote: Hi Baz, Try to specify the JDK in the Clover config. I believe the jdk

Re: Enable Assertions

2007-04-05 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Mac, Do you want them enabled when simply running maven or in (for example) surefire? To enable when running maven, you should be able to use the environment variable MAVEN_OPTS and set it to include '-ea' (without the quotes) For enabling (for

Re: Using containing project's classpath within mojo...

2007-04-04 Thread Johan Lindquist
. Are you on every mailing list? :-) On 4/3/07, Johan Lindquist [EMAIL PROTECTED] wrote: Hi James, Try using the following property in you Mojo. /** * The classpath elements of the project. * * @parameter expression=${project.runtimeClasspathElements} * @required

Re: Using containing project's classpath within mojo...

2007-04-04 Thread Johan Lindquist
? Shouldn't the dependencies show up too? James On 4/4/07, James Carman [EMAIL PROTECTED] wrote: Johan, I think I see what you mean. I'll give it a whirl when I get to work today. Thanks for your help! James On 4/4/07, Johan Lindquist [EMAIL PROTECTED] wrote: Hi James James

Re: Using containing project's classpath within mojo...

2007-04-03 Thread Johan Lindquist
Hi James, Try using the following property in you Mojo. /** * The classpath elements of the project. * * @parameter expression=${project.runtimeClasspathElements} * @required * @readonly */ private List classpathElements; I think in this case, you would

Re: Using containing project's classpath within mojo...

2007-04-03 Thread Johan Lindquist
? James p.s. Are you on every mailing list? :-) On 4/3/07, Johan Lindquist [EMAIL PROTECTED] wrote: Hi James, Try using the following property in you Mojo. /** * The classpath elements of the project. * * @parameter expression=${project.runtimeClasspathElements

Re: Does the maven cache get cleaned out on each build?

2007-03-09 Thread Johan Lindquist
to be sure all your snapshots are in your remote repository. Without them, your builds will fail Emmanuel Johan Lindquist a écrit : Do you mean the local repository? If so, no, i pretty sure it doesn't. But have a look at the maven dependancy purge-local-repository plugin [1], which can clear

Re: Does the maven cache get cleaned out on each build?

2007-03-08 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Do you mean the local repository? If so, no, i pretty sure it doesn't. But have a look at the maven dependancy purge-local-repository plugin [1], which can clear out all depdencies for the project. Cheers, Johan [1]

Re: Continuum hangs while building a maven 2 project

2007-03-05 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Gregory, Is it Continuum or Maven that hangs? I found that if the Maven process was not given enough memory (on windows) the build process would hang without any indication what was wrong. By giving the process more memory (in particular, the

Re: How to build offline??

2007-02-10 Thread Johan Lindquist
Hi, Looks like you are running with snapshots enabled (surefire plugin uses v2.3-SNAPSHOT) - not sure how exactly maven behaves when snapshot versions of plugins are enabled, but it may be that it requires to be online all the time. Regards, Johan Marilyn Sander -X (marilysa - Digital-X, Inc.

Re: [m2] Configuring m2 for a corporate environment

2007-01-04 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Alexander, I like this idea, and if I may, I'd like to add one suggestion. How about allowing the users settings.xml to 'include' a settings.xml from a different location (file, url, whatever). This would allow developers to customize the

Re: Unable to test code that sends message to JMS queue

2006-11-24 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Out of curiosity - you running on Windows? I had problems with JBoss JNDI lookups because there were spaces in the classpath (repository is in Documents and Settings. Fixed the problems by moving my repository to a directory without spaces.

Re: [M2] Mirror

2006-09-26 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Remy, Try rsync -rlHtSv [EMAIL PROTECTED]::maven2 /var/www/maven2 where /var/www/maven2 is the location where you want to put the files. You would then have to make the location available over HTTP. Cheers, Johan Rémy Sanlaville wrote: Hi,

Re: Clearing out builds in Continuum

2006-09-22 Thread Johan Lindquist
Emmanuel Venisse wrote: Already answered on this list ;) Click on Show projects link, then click on Build all button. Emmanuel Johan Lindquist a écrit : Hi all, For some reason I am getting builds that are stuck in the building mode even though the build process has long gone away

Clearing out builds in Continuum

2006-09-20 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, For some reason I am getting builds that are stuck in the building mode even though the build process has long gone away. is there a quick way of clearing these out of the status screens? Thanks, Johan - -- you too? -BEGIN PGP

Surefire plugin

2006-08-02 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I was wondering what the status of the surefire plugin is - was hoping to be able to take advantage of the new redirect stdout to file. Planning to release a new version soon? Thanks, Joahn - -- you too? -BEGIN PGP SIGNATURE-

Dependancy declaration for Maven 2.0 libraries

2006-02-07 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All, Are the Maven 2.0 core jars not in the repository or have I missed something? I need to depend on the maven-artifact-ant-X-dep.jar and I can't find it anywhere. Thanks, Johan - -- you too? -BEGIN PGP SIGNATURE- Version: GnuPG