Re: Skip copying resources

2014-01-08 Thread Anders Hammar
I'm pretty sure it works for the binding (execution) you have configured. Look for the id 'copy-xxx' in the console output and for the execution it should say that it is skipping. (Unless you have the plugin config in pluginManagement). At the same time the config you should doesn't make sense. Wh

Re: Need advice automating a Java test suite.

2014-01-08 Thread Anders Hammar
It's little bit hard understanding all of the magic with your profiles and why you can''t combine them. But if I assume that you want to test your application with different configuration (different db, different configuration/properties, etc.) I suggest that you create a separate multi-module proj

Re: Skip copying resources

2014-01-08 Thread Paul Benedict
Your problem is that, I think, you attached the execution to the "compile" phase. However, the "process-resources" phase already happened so you're not getting the right behavior. Attach to the correct phase. On Wed, Jan 8, 2014 at 4:05 PM, Kuo, Joncheng (HP Storage - MSDU) < joncheng@hp.com>

Skip copying resources

2014-01-08 Thread Kuo, Joncheng (HP Storage - MSDU)
How do I skip copying resources? I try in but it does not work. maven-resources-plugin copy-xxx compile copy-resources true ${webapp.dir}/example/resources

RE: Need advice automating a Java test suite.

2014-01-08 Thread Martin Gainty
> Date: Wed, 8 Jan 2014 17:08:53 -0500 > Subject: Need advice automating a Java test suite. > From: t...@chaka.net > To: users@maven.apache.org > > Hello, > > We have a java multi-module project that has a somewhat painful to run test > suite that I would like to get under control using Ma

Re: Maven install phase - Access is denied

2014-01-08 Thread Barrie Treloar
On 9 January 2014 06:56, andre999 wrote: > [del] > > org.apache.maven.plugins > maven-install-plugin > 2.5.1 > > certloader-custom-acti

Re: Need advice automating a Java test suite.

2014-01-08 Thread Stephen Connolly
Profiles are the path to madness. There are two ways I can see to tackle this: 1. Use the invoker plugin to fork maven builds for each of your test steps Or 2. Use a multi-module project so that the separate modules do the separate parts. The second is likely the more "maven way" but the 1st i

Re: Maven install phase - Access is denied

2014-01-08 Thread Russell Gold
I suspect it has to do with your customization of the install goal: > > org.apache.maven.plugins > maven-install-plugin > 2.5.1 > > certloader-custo

Re: Maven install phase - Access is denied

2014-01-08 Thread Thomas Broyer
I'd rather say the question is why does it even tries to install it? There must be some plugin that attaches it. Le 8 janv. 2014 22:34, "andre999" a écrit : > That's the problem. I do not know how to order maven install NOT to read > the > directory and not to create repository. Maven install rea

Need advice automating a Java test suite.

2014-01-08 Thread Todd Chapman
Hello, We have a java multi-module project that has a somewhat painful to run test suite that I would like to get under control using Maven. Currently it takes 5 separate Maven commands to setup, run, and teardown all the tests and test databases. I'd like to get this down to one command. Also I

release-plugin non-interactive release and system properties

2014-01-08 Thread Weston, Steve
I'm confused as to how the version number in a pom file and the system properties like -DdevelopmentVersion=2.0-SNAPSHOT and -DreleaseVersion=1.2 interact. When I run a mvn -B release:prepare -DdryRun=true -Dtag=1.2 -DdevelopmentVersion=2.0-SNAPSHOT -DreleaseVersion=1.2 for a pom.xml where 1.0

Re: Maven install phase - Access is denied

2014-01-08 Thread andre999
That's the problem. I do not know how to order maven install NOT to read the directory and not to create repository. Maven install reads the "install4j\certImport" folder and this is where it fails. How can I make maven not to read (skip) this "install4j\certImport" folder? Thanks -- View this

Re: Maven install phase - Access is denied

2014-01-08 Thread Thomas Broyer
Le 8 janv. 2014 20:39, "andre999" a écrit : > > Caused by: java.io.FileNotFoundException: > P:\Projects\HlkProjects\CertLoader\hlk-certloader\trunk\target\install4j\certImport > (Access is denied) > at java.io.FileInputStream.open(Native Method) Isn't the problem that you're trying to ins

Re: Maven install phase - Access is denied

2014-01-08 Thread andre999
I have run the cmd and there is no issue with right to create or delete folders. Here are the build in pom.xml certloader-custom-action ${basedir}/src/main/resources

Re: Maven install phase - Access is denied

2014-01-08 Thread Wayne Fay
> [INFO] Error installing artifact: > P:\Projects\HlkProjects\CertLoader\hlk-certloader\trunk\target\install4j\certImport > (Access is denied) I hate to point out the obvious, but did you confirm that the user executing Maven has write/create directory privileges in this location? Assuming you are

Re: Maven install phase - Access is denied

2014-01-08 Thread andre999
I have included the result with the actual filenames and folders in use. Here are the result; [DEBUG] -- end configuration -- [INFO] [install:install {execution: default-install}] [INFO] Installing P:\Projects\HlkProjects\CertLoader\hlk-certloader\trunk\target\certloader-custom-action.jar to P:\.m

Re: Maven2/Maven3 plugin development: Ensuring only the available parameters are allowed

2014-01-08 Thread Stephen Connolly
There are valid reasons why a configuration having "invalid" elements may be "valid". Consider the case where xpath:/project/build/pluginManagement/plugins/plugin/version specifies the *default* version and xpath:/project/build/plugins/plugin/version is absent... In this case xpath:/project/build/

Re: Maven2/Maven3 plugin development: Ensuring only the available parameters are allowed

2014-01-08 Thread Anders Hammar
AFAIK there is no support for this. If you think there should be, please file a ticket [1]. /Anders [1] http://jira.codehaus.org/browse/MNG/ On Tue, Jan 7, 2014 at 7:38 PM, S. Ali Tokmen wrote: > Dear Maven users > > I am one of the owners of Codehaus CARGO, which has a Maven2/Maven3 > plugin;

During plugin development, what is the context classloader set to?

2014-01-08 Thread Laird Nelson
I have a plugin that I'm writing that needs to do two things during the course of its execution: Load a resource from the current project's classpath Load a resource from its own guts This is a fallback kind of thing: if the plugin can't find anything appropriate on the project classpath, then and

Re: Maven install phase - Access is denied

2014-01-08 Thread Russell Gold
Hi Andrew, can you show us the result of doing this when you run the -X switch? It is likely to provide more information about what is going on; a copy of your pom.xml would also be very helpful. Thanks, Russ On Jan 7, 2014, at 11:29 PM, andre999 wrote: > Hi all, > > I have a project which m

Re: Depend on a jar via another pom file

2014-01-08 Thread Nick Stolwijk
That's called a transitive dependency and this blog[1] explains nicely why you shouldn't use those. [1] http://uglycoder.blogspot.nl/2008/04/flaw-with-mavens-transitive.html Hth, Nick Stolwijk ~~~ Try to leave this world a little better than you found it and, when your turn comes to die, you ca

Depend on a jar via another pom file

2014-01-08 Thread Omar@Gmail
I have a maven module (lets call it M) that requires aspectjrt but M already depends on another pom file that has aspectjrt within its dependency tree like so: M -> middle pom -> aspectjrt The problem is M would not compile unless I express the aspectjrt dependency directly in the M pom file, w