Re: exclude folders during mvn assembly

2012-04-18 Thread Ryan Wexler
I am deploying artifacts with configuration files as well. I have different config files for each production server, so I am creating a different artifact for each production server with the proper config files. I create a generic war and then overlay it, adding the config files for each producti

Re: Re-Releasing Configured Artifacts, how?

2012-04-18 Thread Ron Wheeler
I am not sure that these were the options suggested by Wayne. It appears that you are building a very common type of application that hundreds of people build with Maven. A lot of people use Spring which has dynamic configuration. Web services have endpoint definitions. Most applications have s

Re: resolver-status.properties read/write warnings

2012-04-18 Thread Jason van Zyl
Separate repos work. If you absolutely needed a concurrent safe local repo there's one here: https://github.com/etesla/tesla-concurrent-localrepo On Apr 18, 2012, at 10:03 PM, Bracewell, Robert wrote: > I wasn't aware that a shared local repo wasn't supported. I just switched > over all nodes t

Re: resolver-status.properties read/write warnings

2012-04-18 Thread Bracewell, Robert
I wasn't aware that a shared local repo wasn't supported. I just switched over all nodes to a local repo throughout the build farm and the warnings did indeed disappear. Version of Java used on this particular OSX node is java version "1.6.0_31" Java(TM) SE Runtime Environment (build 1.6.0_31-b04-4

Re: Re-Releasing Configured Artifacts, how?

2012-04-18 Thread Andrew Hughes
I have looked into several options. Assembly with Qualifiers (new module): Looks good because I can run multiple , each with a unique somefile.property. However I can't re-use the same assembly description because the classifier is now obatined from the in the assembly descriptor :'( . That kinda

Re: resolver-status.properties read/write warnings

2012-04-18 Thread Wayne Fay
>> farm. The Maven repo is hosted on a net app box that is visible to all my >> Redhat, Windows and now OSX build nodes via an NFS mount. The build ... > It seems you are using a shared local repository which is not supported Agreed on this point. You must use a local repo cache on each machine. A

Re: exclude folders during mvn assembly

2012-04-18 Thread Barrie Treloar
On Thu, Apr 19, 2012 at 6:44 AM, S Ahmed wrote: > The problem I was having was, when on the production server, I had a > properties file in my /resources folder, and I modified in on the server > but noticed it was still returning the old values. > > I then realized that the class loader was loadi

Re: The Maven Way

2012-04-18 Thread Eric Kolotyluk
Thanks - it has been one of the more interesting adventures in my professional life :-) Cheers, Eric On 2012-04-18 4:37 PM, Ron Wheeler wrote: Eric, I remember when you first started visiting the forum. As you described, you came with some pretty strong views about how Maven should work. I

Re: resolver-status.properties read/write warnings

2012-04-18 Thread Jeff MAURY
It seems you are using a shared local repository which is not supported Jeff Le 18 avr. 2012 23:56, "Bracewell, Robert" a écrit : > When running any mvn command (tried 3.0.3 and 3.0.4) on OSX Lion I see > numerous lines of output similar to below. I added a mac box to my build > farm. The Maven

Re: The Maven Way

2012-04-18 Thread Ron Wheeler
Eric, I remember when you first started visiting the forum. As you described, you came with some pretty strong views about how Maven should work. I do remember how carefully and well, you sought out advice from the people here. In spite of your strong feelings that you were an experienced deve

Re: The Maven Way

2012-04-18 Thread Barrie Treloar
On Thu, Apr 19, 2012 at 9:02 AM, Barrie Treloar wrote: >> Part of the reason, I believe, is because those "conventions" are not carved >> in stone.  There often isn't a hard and fast convention that says when to >> make a profile or when to make a module or when to use a classifier to store >>

Re: The Maven Way

2012-04-18 Thread Barrie Treloar
> Part of the reason, I believe, is because those "conventions" are not carved > in stone.  There often isn't a hard and fast convention that says when to > make a profile or when to make a module or when to use a classifier to store > a second artifact alongside the primary And over time these

Re: The Maven Way

2012-04-18 Thread Eric Kolotyluk
On 2012-04-18 1:03 PM, Curtis Rueden wrote: Hi everyone, Thanks to all for the robust discussion! To Ron, I apologize if my comments sounded overly critical of you in particular. I get that you are trying to help guide people in the right direction, and it is certainly good for them to questi

resolver-status.properties read/write warnings

2012-04-18 Thread Bracewell, Robert
When running any mvn command (tried 3.0.3 and 3.0.4) on OSX Lion I see numerous lines of output similar to below. I added a mac box to my build farm. The Maven repo is hosted on a net app box that is visible to all my Redhat, Windows and now OSX build nodes via an NFS mount. The build doesn't fa

Re: exclude folders during mvn assembly

2012-04-18 Thread S Ahmed
The problem I was having was, when on the production server, I had a properties file in my /resources folder, and I modified in on the server but noticed it was still returning the old values. I then realized that the class loader was loading the file from the .jar itself, and not reading from the

Re: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact - when using mvn 3.0.4 (works with mvn 3.0.3!)

2012-04-18 Thread Wayne Fay
> Plugin org.codehaus.mojo:gwt-maven-plugin:1.3.2.google or one of its > dependencies could not be resolved: Could not find artifact > dom4j:dom4j:jar:1.6.1 in gwt-plugin-repo I'm not sure... but could this be related to one of these JIRAs? http://jira.codehaus.org/browse/MNG-5029 http://jira.code

Re: The Maven Way

2012-04-18 Thread Ron Wheeler
On 18/04/2012 4:03 PM, Curtis Rueden wrote: Hi everyone, Thanks to all for the robust discussion! To Ron, I apologize if my comments sounded overly critical of you in particular. I get that you are trying to help guide people in the right direction, and it is certainly good for them to question

Re: The Maven Way

2012-04-18 Thread Curtis Rueden
Hi everyone, Thanks to all for the robust discussion! To Ron, I apologize if my comments sounded overly critical of you in particular. I get that you are trying to help guide people in the right direction, and it is certainly good for them to question their assumptions, and to understand the Mave

Re: exclude folders during mvn assembly

2012-04-18 Thread Barrie Treloar
On Thu, Apr 19, 2012 at 1:09 AM, S Ahmed wrote: > Yeah they are config files, I just wanted a simple way to reference them in > my code, i.e: > > ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); > InputStream is = classLoader.getResourceAsStream("config.properties"); > > I

Re: Maven 2 to 3 migration problem

2012-04-18 Thread martin.eisengardt
Yes, this will solve some of the warnings. But maybe there is an issue with php-maven too. I am wondering why php-maven complains to understand "apache-httpclient" dependency. Is one of your dependencies a java project? Maybe this is an issue with php-maven too that it behaves wrong with some type

Re: Maven 2 to 3 migration problem

2012-04-18 Thread dandart
I'm more concerned with the parts below the snip - it appears there are two problems. -- View this message in context: http://maven.40175.n5.nabble.com/Maven-2-to-3-migration-problem-tp5649678p5649780.html Sent from the Maven - Users mailing list archive at Nabble.com.

Re: The Maven Way

2012-04-18 Thread Wayne Fay
> The Maven site is not the most friendly place to start as a new Maven > user but it is not the only resource. > > Perhaps the community should try to come to a consensus about the books > and recommend one as the "best" starting point for a new user and one as > the best place to find "Best Pract

[ANN] Maven Doxia Sitetools 1.3 Released

2012-04-18 Thread Dennis Lundberg
The Doxia Sitetools team is pleased to announce the doxia-sitetools-1.3 release! Doxia Sitetools generates sites, consisting of static and dynamic content that was generated by Doxia. http://maven.apache.org/doxia/doxia-sitetools/ Release Notes - Maven Doxia Sitetools - Version 1.3 ** Bug

Re: Maven 2 to 3 migration problem

2012-04-18 Thread Wayne Fay
> However I'm getting the following errors: > > https://gist.github.com/2414962 ... > Does anyone know a solution? You pom looks like: and similar situation with m-exec-p. This is not supported and will make M3 complain. You need to change that into a SINGLE declaration of each plugin, and th

RE: Maven 2 to 3 migration problem

2012-04-18 Thread Matt Walsh
I can help get rid of the warnings. You have the maven-antrun-plugin declared 4 times. I think what you want is 4 executions within 1 declaration. You have the maven-releases-plugin declared 2 times in your pluginManagement. As far as the error is concerned, your build doesn't seem to like the de

Re: Re-Releasing Configured Artifacts, how?

2012-04-18 Thread Wayne Fay
> I will read up some more. But, I was more wondering in regards to > classifiers if I could release x3 (or more) builds of the same module (at > the moment I have one module per conf, each is a war overlay). I am not a huge fan of producing multiple artifacts (thus, your suggestion of classifiers

Re: Question about Maven Assembly Plugin

2012-04-18 Thread Curtis Rueden
Hi QL, Could you please supply me with an example of a executable > jar-with-dependencies? > We build an executable JAR-with-dependencies using the assembly plugin. There are two issues: 1) Including all the dependencies in the JAR. In your assembly descriptor, use: / true

Maven 2 to 3 migration problem

2012-04-18 Thread dandart
Hi, I'm moving our project from maven2 to maven3. However I'm getting the following errors: https://gist.github.com/2414962 My pom.xml looks like this: https://gist.github.com/2414936 & this confuses me. I was told to put versions into it everywhere but it still didn't help. Does anyone know a

Re: exclude folders during mvn assembly

2012-04-18 Thread Ron Wheeler
JNDI? On 18/04/2012 11:39 AM, S Ahmed wrote: Yeah they are config files, I just wanted a simple way to reference them in my code, i.e: ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); InputStream is = classLoader.getResourceAsStream("config.properties"); I think what I

questions about Apache parent pom (and Commons parent pom)

2012-04-18 Thread Michael Heuer
Hello, We have adapted the Commons parent pom (and by extension the Apache parent pom) with some changes for our internal parent pom. We are running into an issue with a combination of maven release plugin + maven bundle plugin + maven jar plugin for pom packaging projects. Is this the right mai

Re: variable to reference parent pom path?

2012-04-18 Thread Wayne Fay
> In a sub-module, I have a assembly.xml file (maven-assembly-plugin) that I >> am using to build this module. How can I reference the parent pom's path? > > You can do this using the expression "${project.basedir}/../.." or however > many directory levels up you need to go. Curtis is right about

Re: variable to reference parent pom path?

2012-04-18 Thread Curtis Rueden
Hi Ahmed, In a sub-module, I have a assembly.xml file (maven-assembly-plugin) that I > am using to build this module. How can I reference the parent pom's path? > You can do this using the expression "${project.basedir}/../.." or however many directory levels up you need to go. Something like

Re: exclude folders during mvn assembly

2012-04-18 Thread S Ahmed
Yeah they are config files, I just wanted a simple way to reference them in my code, i.e: ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); InputStream is = classLoader.getResourceAsStream("config.properties"); I think what I should do is reference the file based on an env

Re: The Maven Way

2012-04-18 Thread Ron Wheeler
On 18/04/2012 9:52 AM, Mark H. Wood wrote: On Tue, Apr 17, 2012 at 02:40:53PM -0400, Thiessen, Todd (Todd) wrote: Good read. Documentation can be much better, but I suppose it is up to us as community members to make that happen. Maven isn't owned by anyone. The guys at Sonatype have done a

Re: Deploy issue

2012-04-18 Thread Ron Wheeler
If you control the repos, can you deploy to "private" hosted repos and then construct proxies or repo groups from which people download, so that the artifacts appear to be in multiple repos? Just a thought. Ron On 18/04/2012 8:10 AM, maciejm wrote: Hi When building a project maven create t

Deploy issue

2012-04-18 Thread maciejm
Hi When building a project maven create three types of archives - bin, source, javadoc. I have two remote repositories. Is there any way to configure maven so they deploy "bin + source + javadoc" to first repository and "bin + javadoc" to seckond repository ? Best regards -- View this message in

Large artifact is truncated at 2GB

2012-04-18 Thread Tony DeBat
Hello, I've got a 6GB artifact. When I include it as a dependency in a pom.xml file and run 'mvn install' it downloads exactly 2GB. Maven then tells me that the checksum has failed. ... Downloading: http://localhost:8080/artifactory/ext-release-local/data-noarch-novoindex-hg19/nix/data-noarch-novo

Re: The Maven Way

2012-04-18 Thread Mark H. Wood
On Tue, Apr 17, 2012 at 02:40:53PM -0400, Thiessen, Todd (Todd) wrote: > Good read. > > Documentation can be much better, but I suppose it is up to us as community > members to make that happen. Maven isn't owned by anyone. The guys at > Sonatype have done a good job of posting various blogs.

Re: Maven for both java and zend

2012-04-18 Thread martin.eisengardt
There is no book available yet. I am writing on a German book (related to "maven for php") that will cover some scenarios. Maybe someone wants to translate it ;-) I do not think that anyone covered your scenario via maven. I did not find any scenarios related to apache httpd (which would the prefe

RE: The Maven Way

2012-04-18 Thread Thiessen, Todd (Todd)
> But yes, documentation about this could be much better. But as someone > very correctly pointed out, there is very likely is a reason for the > lack of this. It's all open source and contributions are gladly > accepted. Even the Sonatype's book are open source (well, "Creative > Commons Attributi

Re: The Maven Way

2012-04-18 Thread Ron Wheeler
I hope that my comments are not taken as being critical of the person asking for help. Our team was in their position when we started and had to learn the "Maven way". We received a lot of help and got a lot of benefit from the free resources provided by the community. We also were working clo

Re: Maven for both java and zend

2012-04-18 Thread priya hulekal
hey one last thing need to ask you told that 3) A third artifact is used to tie frontend and backend together. It contains information how to download/extract/setup the frontend and the backend. And it contains some test cases to ensure the frontend is working with a non-mocked backend. what kin

Re: Maven for both java and zend

2012-04-18 Thread priya hulekal
Thanks Martin for your reply..Its bit confusing but i will try out what you suggested otherwise get back to you again :)Finally can you suggest some good book or some link on maven where i could find all these stuffs ..Information related to maven php as well as java. -- View this message in

Re: Maven for both java and zend

2012-04-18 Thread martin.eisengardt
As far as I understood your scenario the one and only call between your php code and java code is some kind of request (maybe via soap?). So the php code does not become part of the java servlet and the java servlet does not know anything of the php code. You can use ear for the java artifact. The

Re: Maven for both java and zend

2012-04-18 Thread priya hulekal
Ok so you want to tell that i can use same settings.xml and same repository for both java and php code.Java and PHP should be considered as 2 different module.I will have a parent pom where i will list these sub modules.I will have a war file for java and zip/phar file for php and they should be d

Re: The Maven Way

2012-04-18 Thread Martin Höller
On 17 Apr 2012, Markku Saarela wrote: > Hi, > > I recommend two "books" from Sonatype, Maven by Example 1) and Maven > Cookbook 2) > > 1) http://www.sonatype.com/index.php/Support/Books/Maven-By-Example > 2) http://www.sonatype.com/index.php/Support/Books/The-Maven-Cookbook There is also "Apac

Re: Maven for both java and zend

2012-04-18 Thread martin.eisengardt
If it is not part of the java servlet and thus not part of the war file you should devide php code from java code. For example you have the following scenario: web browser connects to web server (apache) and php files. php file connects to tomcat/java servlet via SoapClient In this scenario you m

Re: Question about Maven Assembly Plugin

2012-04-18 Thread Anders Hammar
OK. If you post your project somewhere I could give it a spin and see what's wrong. /Anders On Wed, Apr 18, 2012 at 11:43, QL 983 wrote: > Hi, Anders. > Thank you again. > > I think this example works with older plugin's versions, because it is very > like the one I used with Maven 2.2.1. I sear

Re: Re-Releasing Configured Artifacts, how?

2012-04-18 Thread Andrew Hughes
Thanks very much :) I will read up some more. But, I was more wondering in regards to classifiers if I could release x3 (or more) builds of the same module (at the moment I have one module per conf, each is a war overlay). Cheers On 18/04/2012 4:51 PM, "Barrie Treloar" wrote: > On Wed, Apr 18,

Re: Question about Maven Assembly Plugin

2012-04-18 Thread QL 983
Hi, Anders. Thank you again. I think this example works with older plugin's versions, because it is very like the one I used with Maven 2.2.1. I searched google and read all documentation in the plugin's site before asking, and, as I could not resolve the issue, I am trying the mailing list. Kind

Re: Maven for both java and zend

2012-04-18 Thread priya hulekal
And also in what pattern it will be deployed...Like for example web app it will be war files,php it will be .php ..finally what will be the form. -- View this message in context: http://maven-users.828.n2.nabble.com/Maven-for-both-java-and-zend-tp7476161p7476336.html Sent from the maven users mai

Re: Maven for both java and zend

2012-04-18 Thread priya hulekal
No php code is not a part of java servlet..It will be used for front end to display that is UI. -- View this message in context: http://maven-users.828.n2.nabble.com/Maven-for-both-java-and-zend-tp7476161p7476323.html Sent from the maven users mailing list archive at Nabble.com.

Maven for both java and zend

2012-04-18 Thread priya hulekal
Hi, I have product that is being developed in both java and PHP(using zend framework).I wanted to know if i could use same settings.xml file for both and also if i could use same repository for both java and php.How the assembling would be done for both so that its in deployable format. Rega

Re: Maven for both java and zend

2012-04-18 Thread martin.eisengardt
Hi. First of all: You can of course use the same repository for multiple artifacts, packagings and project types. And yes, you can use the same settings.xml file for both. However that depends on the question what is inside the settings.xml. If there is anything inside it that is incompatible you

Re: Assembly plugin plugin

2012-04-18 Thread Jörg Schaible
Hi Robert, Robert Egan wrote: > The latter. There is indeed a 'root' module with a pluginManagement > section. I do not control its content directly, I can ask that the my > assembly plugin be added there. that's actually the only working solution in M2. Just declare the plugin there in the plu

Re: Assembly plugin plugin

2012-04-18 Thread Robert Egan
The latter. There is indeed a 'root' module with a pluginManagement section. I do not control its content directly, I can ask that the my assembly plugin be added there. Thanks On Tue, Apr 17, 2012 at 11:39 PM, Wayne Fay wrote: > > I suppose I will have to figure out a way to make sure mine ge

Maven for both java and zend

2012-04-18 Thread priya hulekal
Hi, I have product that is being developed in both java and PHP(using zend framework).I wanted to know if i could use same settings.xml file for both and also if i could use same repository for both java and php.How the assembling would be done for both so that its in deployable format. Than

Re: Question about Maven Assembly Plugin

2012-04-18 Thread Anders Hammar
I get several hits with Google. For example: http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/ (this one does not talk about useProjectArtifact=false, so I guess it is not necessary) If someone has a real example with a link, please provide. I don't. /Anders On Wed,

Re: The Maven Way

2012-04-18 Thread Anders Hammar
One thing I would like to add to this discussion is that, in my experience, a lot of "Maven users" don't understand that Maven is not only about building but also about producing something that can be consumed from a repository. One part of what we often call "Maven" is the build tool, but a much m

Re: Re-Releasing Configured Artifacts, how?

2012-04-18 Thread Barrie Treloar
On Wed, Apr 18, 2012 at 4:33 PM, Andrew Hughes wrote: > Hi All, > > > We have decided that we would like to release configured artifacts from our > scm. I am looking at the most suitable way to do this with maven3. > > Use Case: > We have released v2.5.1.0 or our webapp. We would like to take v2.5

Re-Releasing Configured Artifacts, how?

2012-04-18 Thread Andrew Hughes
Hi All, We have decided that we would like to release configured artifacts from our scm. I am looking at the most suitable way to do this with maven3. Use Case: We have released v2.5.1.0 or our webapp. We would like to take v2.5.1.0, make a change to the configuration (i.e. a ), check that into