Re: Combining profile activation parameters doesn't work

2012-01-19 Thread gorgophol
If anybody is interested. This Bug can be found here ... And it seems nobody really wants to fix it. http://jira.codehaus.org/browse/MNG-4565 http://jira.codehaus.org/browse/MNG-4516 http://jira.codehaus.org/browse/MNG-3328 -- View this message in context:

fail-safe plugin does not see test

2012-01-19 Thread kooper
Hi, I'm using fail-safe plugin for integration tests but it seems that plugin does not see the tests. I have DeviceResourceIT.java that uses junit in it it has test method IsRegisteredTest() but fail-safe says 0 test run: @Test public void IsRegisteredTest(){

Re: fail-safe plugin does not see test

2012-01-19 Thread Stephen Connolly
where is that test? is it in src/test/java? it should be somewhere in src/test/java or it will not be picked up On 19 January 2012 10:04, kooper sergeysach...@list.ru wrote: Hi, I'm using fail-safe plugin for integration tests but it seems that plugin does not see the tests. I have

Re: fail-safe plugin does not see test

2012-01-19 Thread kooper
The test is in src/test/java-functional, I've added this dir to test sources. Tried with surfire plugin renaming it to DeviceResourceTest and it sees it. I also tried it in src/test/java, but still the same result. So I'm not sure why fail-safe does not see it. -- View this message in context:

Dependency scope precedence?

2012-01-19 Thread Mickael Marrache
Hi, I have a project A that uses library L v1.0.0 with test scope. Project A also depends on project B (with scope compile), with B transitively depending on the library L v1.0.0 (with scope compile). So, according to the documentation (Introduction to dependency mechanism), project A depends

Re: fail-safe plugin does not see test

2012-01-19 Thread kooper
hm, I've tried moving class to src/test/java folder once more and it works now. Not sure why it wasn't previously, so thank you very much for advice. BTW can I configure fail-safe to check my directory also? -- View this message in context:

Re: fail-safe plugin does not see test

2012-01-19 Thread Stephen Connolly
On 19 January 2012 11:31, kooper sergeysach...@list.ru wrote: hm, I've tried moving class to src/test/java folder once more and it works now. Not sure why it wasn't previously, so thank you very much for advice. BTW can I configure fail-safe to check my directory also? failsafe looks for

Re: fail-safe plugin does not see test

2012-01-19 Thread kooper
Thank you very much for help. I've found build-helper-maven-plugin, it adds test location to maven build and now it seems to work as I want it to. Thanks again for help. -- View this message in context: http://maven.40175.n5.nabble.com/fail-safe-plugin-does-not-see-test-tp5157259p5157441.html

Dependency scope precedence?

2012-01-19 Thread Mickael Marrache
Hi, I have a project A that uses library L v1.0.0 with test scope. Project A also depends on project B (with scope compile), with B transitively depending on the library L v1.0.0 (with scope compile). So, according to the documentation (Introduction to dependency mechanism), project A depends

plugin dependency

2012-01-19 Thread Julien Ruaux
Hi, I'm trying to get my plugin to automatically call another one (the JAXB XJC Maven plugin). Here is what users of my plugin currently have to write: project build plugins plugin

Re: plugin dependency

2012-01-19 Thread Stephen Connolly
On 19 January 2012 11:53, Julien Ruaux jru...@gmail.com wrote: Hi, I'm trying to get my plugin to automatically call another one (the JAXB XJC Maven plugin). Here is what users of my plugin currently have to write: project        build                plugins                        

Re: Combining profile activation parameters doesn't work

2012-01-19 Thread Ron Wheeler
It appears that profiles are intrinsically evil and more people misuse profiles than any other part of Maven. I suspect that there are valid use cases for profiles but most of the time, they seem to cause people a lot more problems than they fix and they seem to encourage software development

Re: Dependency scope precedence?

2012-01-19 Thread Ron Wheeler
Not sure why you would need the dependency on L with test scope. It appears that project A always has project B which always needs L. L has to be there regardless of whether you are in test or production. It appears that you could just a)remove the reference from A to L or b) make it compile

Re: Combining profile activation parameters doesn't work

2012-01-19 Thread gorgophol
Well my builds are working on every machine ;-) That's why I used profiles, the way it was described in the settings reference, to simplify testing on several different machines (Windows, Linux, 32bit, 64bit ...) And they work fine as long as I use only one condition for every profile. The

RE: Dependency scope precedence?

2012-01-19 Thread Mickael Marrache
On the contrary, I would need the dependency on L with compile scope. The first solution you propose ( a) ) is what I use for now, but I don't understand why Maven can't decide that here the final scope has to be compile and not test. This solution seems to be temporary and by removing the

Re: Dependency scope precedence?

2012-01-19 Thread Ron Wheeler
It appears that the second solution will get you what you want and make it much more explicit so that when/if you remove B, you will see the dependency on L and just have to change its scope. I am not too excited about extra libraries in production since they are only loaded when required and

Re: Dependency scope precedence?

2012-01-19 Thread Wayne Fay
What's wrong here? My project A only uses L for unit tests so I define the dependency with 'test' scope. But, at the end, I want L to be on my classpath since project A depends on project B for production, and B needs (transitively) library L also for production. (By production, OK so in

alternate path settings-security.xml

2012-01-19 Thread Sebastien Gueissaz
Hello everybody, I would like to know how I can specify an alternate path for the file settings-security.xml. On the project where I work, we specify our own global and user settings and for the same reason we would like to specify our own path for settings-security. Have anybody have already

RE: alternate path settings-security.xml

2012-01-19 Thread Matt Walsh
http://maven.apache.org/guides/mini/guide-encryption.html#How_to_keep_the_master_password_on_removable_drive -Original Message- From: Sebastien Gueissaz [mailto:xsi...@gmail.com] Sent: Thursday, January 19, 2012 9:31 AM To: users@maven.apache.org Subject: alternate path

Using Maven Assembly plugin to create tar file with absolute paths

2012-01-19 Thread Kevin Smathers
I would like to be able to create an assembly descriptor that will allow me to create a tar file of my project resources with an absolute path in the file name. I have tried something like the following: assembly iddeployment/id formats formattar/format

Overriding default deploy plugin version in standalone invocation

2012-01-19 Thread sebb
I've got Maven 2.2.1 and 3.0.3 installed. I'm trying to use deploy:deploy-files to upload a jar with associated sig file. For this I think I need to use the files/types/classifiers settings which are @since 2.7. However the default deploy plugin versions are 2.4/2.5. How do I tell Maven to use

Re: Overriding default deploy plugin version in standalone invocation

2012-01-19 Thread Ansgar Konermann
Copy the fully qualified goal coordinates string from the manual page of the desired goal. It includes a version number. Use it instead of the abbreviated deploy:deploy-file goal specifier. Regards, Ansgar Am 19.01.2012 19:22 schrieb sebb seb...@gmail.com: I've got Maven 2.2.1 and 3.0.3

Re: Overriding default deploy plugin version in standalone invocation

2012-01-19 Thread sebb
On 19 January 2012 18:26, Ansgar Konermann ansgar.konerm...@googlemail.com wrote: Copy the fully qualified goal coordinates string from the manual page of the desired goal. It includes a version number. Use it instead of the abbreviated deploy:deploy-file goal specifier. Thanks! That works

Release perform met exception because of strange project structure.

2012-01-19 Thread Tim Wu T
Hi there, I met a tricky problem about release. I used jenkins release plug in to do the release, in the past, everything is ok. However, yesterday, there is a new project, the project structure like this: Project -.git --myproject pom.xml

Error deploying artifact: Resource to deploy not found: File

2012-01-19 Thread dodge
Hi, when whenever i m trying to deploy through release:perform or through deploy goal my snapshots or release i get the following: [INFO] [INFO] Error deploying artifact: Resource to deploy not found: File: http ://host:8081/artifactory/GroupId/myBinary-1.0.jar does not exist i dont

Nullpointer exception while executing assembly plugin

2012-01-19 Thread Martin Schaub
Hi I'm getting the following error while executing maven 3.0.3 on Windows and Linux. The maven command was mvn clean install. I guess it is not a bug, because it worked until Yesterday. It also works sometimes, when I delete the whole local repository beforehand. But with a non-empty local

Skip surefire but run failsafe?

2012-01-19 Thread Nord, James
Hi all, Is there a way to run failsafe base integration tests but not surefire based unit tests? (using the lifecycle as I still need to generate a lot of sources etc...) I tried mvn -DskipTests=true -DskipITs=false verify but also this is skipping both surefire and failsafe [INFO] ---

[ANN] Maven FindBugs Plugin version 2.4.0 Released

2012-01-19 Thread LeClaire Garvin
Hi, The Mojo team is pleased to announce the release of the Maven FindBugs Plugin version 2.4.0. FindBugs uses static analysis to inspect Java bytecode for occurrences of bug patterns. You can see more about the plugin at: http://mojo.codehaus.org/findbugs-maven-plugin/ To get this

Re: Skip surefire but run failsafe?

2012-01-19 Thread Ansgar Konermann
Am 19.01.2012 22:39, schrieb Nord, James: I tried mvn -DskipTests=true -DskipITs=false verify but also this is skipping both surefire and failsafe It does so because both plugins support a property named skipTests. If you set it to false on the command line, both will assume they should not

Re: Error deploying artifact: Resource to deploy not found: File

2012-01-19 Thread Wayne Fay
[INFO] [INFO] Error deploying artifact: Resource to deploy not found: File: http ://host:8081/artifactory/GroupId/myBinary-1.0.jar does not exist This is INFO level logging. If it was a real error, I'd expect it to be ERROR level. Are you sure this is a problem? Or merely concerned about some