Resources inclusion/exclusion patterns

2011-06-27 Thread Guillaume Polet
Hi All, I am working on a project were I would like to exclude all resources except the ones located within META-INF. After reading carefuly the documentation, it appears that excludes always beats includes, so doing what would only be natural, does not work: build resources

Re: Resources inclusion/exclusion patterns

2011-06-27 Thread Stephen Connolly
Please stop reposting the same question in a different thread. This is not the way to get attention... even just replying to your initial question would be better. Includes are applied first followed by excludes to trim out the stuff you added in the includes... If you don't specify includes,

Re: Resources inclusion/exclusion patterns

2011-06-27 Thread Guillaume Polet
Ok, sorry about that but I did not see my e-mails coming back to my posting address so I thought the e-mails had been blacklisted for some reason; I didn't know that we don't receive the e-mails we send to the ML. For the second part, I do want my files within META-INF to be embedded in my

Re: Resources inclusion/exclusion patterns

2011-06-27 Thread Stephen Connolly
If they are files that are not needed in the final package, don't keep them in src/main/resources On 27 June 2011 09:56, Guillaume Polet guillaume.po...@gmail.com wrote: Ok, sorry about that but I did not see my e-mails coming back to my posting address so I thought the e-mails had been

Relesa a project and all its snapshot dependencies, without an aggregator

2011-06-27 Thread maxime.lem
Hi all, We are looking for a way to perform maven releases (via maven-release-plugin for example) on a project, and all its dependencies which are in a snapshot version (internal dependencies). Using a pom aggregator and ${project.version} in dependencyMgmt for all internal dependencies allows

Re: Relesa a project and all its snapshot dependencies, without an aggregator

2011-06-27 Thread Stephen Connolly
What I would like to see is that when a project explicitly specifies it's scm information, that m-release-p would treat that as a separately releasable item... so that if you have an aggregator project with no scm information, m-r-p would (perhaps with some hinting) see that as not requiring a

Re: Relesa a project and all its snapshot dependencies, without an aggregator

2011-06-27 Thread maxime.lem
Problems with aggregator is that it imposes the structure of your projects. I would like to put my projects sources as I want and not as Maven aggregator wants. Another problem with aggregator is when a project is used within several others projects (common dependencies). In this case, under which

Re: Relesa a project and all its snapshot dependencies, without an aggregator

2011-06-27 Thread Stephen Connolly
I think you mis-understand how I am suggesting you use the aggregator pom I am suggesting that you have a local aggregator pom one level up... you don't need to check that pom out at all. You just use that pom locally to group all the source you have checked out and construct a reactor from

Re: Relesa a project and all its snapshot dependencies, without an aggregator

2011-06-27 Thread maxime.lem
I am suggesting that you have a local aggregator pom one level up... you don't need to check that pom out at all. You just use that pom locally to group all the source you have checked out and construct a reactor from the checkout... OK, but you have to write a pom just for the current

Re: Resources inclusion/exclusion patterns

2011-06-27 Thread Guillaume Polet
Indeed, this is probably what we should do, but yet (for some probably poor reason) I would like to keep everything in the same folder (actually the other resources will be embedded in an additional artifact created with Maven assembly). My only question is why do I get everything when I use

Re: Resources inclusion/exclusion patterns

2011-06-27 Thread Stephen Connolly
?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; modelVersion4.0.0/modelVersion

Problems with maven war plugin

2011-06-27 Thread Manuel Ramirez Velasco
Hello!!! I have a problem with the generation of wars with maven. The problem is when I have no changes in java files or resources on my war, the war is being built again. This is the normal behavior?. I'm doing an automatic deployment to the application server and do not want to make this

emma-maven-plugin - filter excludes

2011-06-27 Thread penmetsa
Hi All I would like to have your helping hand in resolving a problem in maven emma code coverage reporting,All that I want is to eliminate some classes from final emma report generated,I have tried using plugin (emma-maven-plugin) in my POM file but it doesn't work out for me - the filtered

emma-maven-plugin - filter excludes

2011-06-27 Thread penmetsa
Hi All I have got a problem in maven emma code coverage reporting,All that I want is to eliminate some classes from final emma report generated,I have tried using plugin (emma-maven-plugin) in my POM file but it doesn't work out for me,still the filtered classes appear in emma report 4.0.0

emma-maven-plugin - filter excludes

2011-06-27 Thread penmetsa
Hi All I have got a problem in maven emma code coverage reporting,All that I want is to eliminate some classes from final emma report generated,I have tried using plugin in my POM file but it doesn't work out for me project xmlns=http://maven.apache.org/POM/4.0.0;

[ANN] build-helper-maven-plugin 1.6 Released

2011-06-27 Thread Robert Scholte
Hi, The Mojo team is pleased to announce the release of the build-helper-maven-plugin version 1.6. This plugin contains various small independent goals to assist with the Maven build lifecycle. http://mojo.codehaus.org/build-helper-maven-plugin/ To get this update, simply specify

Re: Native JNI libs and Maven dependencies

2011-06-27 Thread Tonté
Did you ever figure this out. I am using a macbook pro, too and want to test drive Berkeley DB XML; but I don't want to install the complete software. I would rather start up Berkeley DB XML in memory right before maven's test phase. Any help and advance would be greatful. Thank you. -- View

Re: Windows/Maven and Role of Archiva

2011-06-27 Thread wasi_shez
*First of all Thank you very much for your acknowledgement.* *Can you explain what you want to do? Maven doesn't need to understand your code, it just compiles it.* Maven always download its Repository Structure and Contains standard Folder Structure for this.In my scenario ; My project Code's

Re: Can't resolve libraries.

2011-06-27 Thread samsam9988
Hello, I have uploaded liferay portal jar files to Sonatype using Artifacts Upload. When I execute command mvn compile war:war, it stiill can't find the liferay files I uploaded. Here is the error: [INFO] BUILD FAILURE [INFO]

Re: Windows/Maven and Role of Archiva

2011-06-27 Thread Wendy Smoak
On Fri, Jun 24, 2011 at 1:33 AM, wasi_shez wasi_s...@hotmail.com wrote: *First of all Thank you very much for your acknowledgement.* Suppose: Maven Downloaded Folder Structure-- A  --- B         C and My Project's Source Code Structure is:- A  --- B and Z         C and Y    

Re: Can't resolve libraries.

2011-06-27 Thread Wayne Fay
http://localhost:8081/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced - [Help 1] Try mvn -U to force Maven to check for updates in your repo. Wayne

mvn assembly:single with distribution child module

2011-06-27 Thread Jean-Pierre Bergamin
Hello maven users We are using the maven assembly plugin to copy all generated modules and dependencies to one central folder. For this we created a dedicated child module that used the assembly plugin as desribed in the FAQ

Re: mvn assembly:single with distribution child module

2011-06-27 Thread Guillaume Polet
Could'nt you use a profile for that purpose? http://maven.apache.org/guides/introduction/introduction-to-profiles.html Cheers, Guillaume Le 27/06/2011 16:23, Jean-Pierre Bergamin a écrit : Hello maven users We are using the maven assembly plugin to copy all generated modules and

Re: maven-assembly-plugin StackOverflowError

2011-06-27 Thread john.vint
The best I could do was to exclude the dependency itself (this works for me because I needed a subset of the code that was not effected by the exclusion) exclusion groupIdorg.apache.poi/groupId artifactIdpoi-ooxml-schemas/artifactId /exclusion Not sure if this would help you.

Re: mvn assembly:single with distribution child module

2011-06-27 Thread Jean-Pierre Bergamin
Good point, thanks. I tried to only add the distribution child module for a given profile like this: profiles profile iddist/id modules moduledistribution_project/module /modules /profile /profiles So the

hidden.org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:1018) FAILS on OpenVMS

2011-06-27 Thread Stadelmann Josef
I reported what I see some time agoe. What ever I do with maven-2.2.1 and co It fails when it has no reason to fail. The greate thing is to say; when ever this copy full content error or any similarcopy full content errors occur, the copy took place perfect and diff doesn't show any diffs. So

Exclude all dependencies

2011-06-27 Thread Phillip Hellewell
Is there any syntax for excluding all (transitive) dependencies? For example, I would like to be able to write something like this: dependencies dependency groupIdmygroup/groupId artifactIdmycomp/artifactId version1.0/version exclusions*/exclusions /dependency

Re: mvn assembly:single with distribution child module

2011-06-27 Thread Guillaume Polet
From what I undesrtand of Maven (I am not completely new but I never read the code and other insights of it), when you call mvn some-goal on a multi-module project, it is equivalent to calling this goal on every module of the project (in the reactor order of course). Hence, when you call

Re: Exclude all dependencies

2011-06-27 Thread Stephen Connolly
sadly not yet On 27 June 2011 15:53, Phillip Hellewell ssh...@gmail.com wrote: Is there any syntax for excluding all (transitive) dependencies? For example, I would like to be able to write something like this:  dependencies    dependency      groupIdmygroup/groupId      

simple maven 2 report plugin example

2011-06-27 Thread Frers,Michael
Hi can anyone help me out and sent me a simple Hello World maven report plugin example that works? I dont get a clue out of the documentation and I cant find a working example in the web. Thanks Michael - To unsubscribe,

Re: simple maven 2 report plugin example

2011-06-27 Thread Benson Margulies
Read the source of one. http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-changes-plugin On Mon, Jun 27, 2011 at 12:37 PM, Frers,Michael michael.fr...@oclc.org wrote: Hi can anyone help me out and sent me a simple Hello World maven report plugin example that works? I dont get a

Re: hidden.org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:1018) FAILS on OpenVMS

2011-06-27 Thread Hervé BOUTEMY
after the source, if ( source.length() != destination.length() ) { final String message = Failed to copy full contents from + source + to + destination; throw new IOException( message ); } did you try to write a unit test? Regards, Hervé Le

Maven3 release:update-versions performance

2011-06-27 Thread Zilvinas Vilutis
Hi maven users! Today before I tried to migrate to maven3 from maven2 - I wanted to update all pom versions using the update-versions goal from the release plugin. It used to take ~15 seconds to update versions for ~140 modules in our project with maven2, but with maven 3 it updated the first 10

Re: Maven3 release:update-versions performance

2011-06-27 Thread Stephen Connolly
How does mvn versions:set -DnewVersion=... fair in benchmarking between m2 and m3 On 27 June 2011 23:02, Zilvinas Vilutis cika...@gmail.com wrote: Hi maven users! Today before I tried to migrate to maven3 from maven2 - I wanted to update all pom versions using the update-versions goal from

Re: mvn assembly:single with distribution child module

2011-06-27 Thread Anders Hammar
No, you shouldn't be doing that in the parent project. As the parent project needs to be built before the children, it will not work (or will require some workaround). The profile you have is what I would suggest. Or, maybe even keep this module outside of the build all together as a separate

Re: Maven3 release:update-versions performance

2011-06-27 Thread Zilvinas Vilutis
Thanks for suggestion - the mvn versions:set took 15s on m3, the same as mvn release:update-versions on m2 Regards Žilvinas Vilutis Mobile:   (+1) 623 330 6048 E-mail:   cika...@gmail.com On Mon, Jun 27, 2011 at 3:44 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: How does mvn