Re: Maven and Properties

2010-03-01 Thread Wayne Fay
     code.versionmain/code.version version${code.version}/version If you're seriously using a version value of main then I think you need to rethink your artifact versioning... Wayne - To unsubscribe, e-mail:

Re: Maven and Properties

2010-03-01 Thread yodee
Its okay. We have development environment always called as main. If this is successful we will roll out this to other versions where we will call it out as 1.0, 2.0, etc... Wayne Fay wrote:      code.versionmain/code.version version${code.version}/version If you're seriously using a

Re: Developing maven plugin. How can I manage artifacts?

2010-03-01 Thread boraldo
Please tell about all known ways. I will choose then. nicolas de loof-2 wrote: Do you want to use current project artifact or a project dependency ? 2010/2/28 boraldo bora...@hotbox.ru I want to develop plugin that will do something with jar files in a local repository. Example:

Re: Maven and Properties

2010-03-01 Thread Stephen Connolly
OK, I think you need to rethink your artifact versioning... especially w.r.t. how maven treats non-SNAPSHOT versions On 1 March 2010 10:02, yodee mmu...@yodlee.com wrote: Its okay. We have development environment always called as main. If this is successful we will roll out this to other

Re: How to check badly formed pom.xml

2010-03-01 Thread Ron Wheeler
amaresh mourya wrote: Hi All, How should i check whether or not a particular POM (pom.xml) is syntactically correct. Is there any apache API for that? for example, if one of the tag is missing or say is wrong. Then which method I should use so that I got exception thrown, so that I can handle

Re: Developing maven plugin. How can I manage artifacts?

2010-03-01 Thread Wendy Smoak
On Mon, Mar 1, 2010 at 6:02 AM, boraldo bora...@hotbox.ru wrote: Please tell about all known ways. I will choose then. You already said that existing plugins don't satisfy your requirements. Which ones are those, and why? With that info, perhaps someone here can point out an alternative. --

Configure Proxy based on location

2010-03-01 Thread Nick Klauer
More or less i've asked this on StackOverflow, but I was totally unaware of the users mailing list, so I'm reposting here since it's *probably* more appropriate: http://stackoverflow.com/questions/2354001/make-maven-proxy-server-settings-configurable-based-on-location What my issue boils down to

Re: Developing maven plugin. How can I manage artifacts?

2010-03-01 Thread boraldo
I tried to use glassfish-plugin but it has very simple goals whereas I need to implement a huge and complex workflow. Wendy Smoak-3 wrote: On Mon, Mar 1, 2010 at 6:02 AM, boraldo bora...@hotbox.ru wrote: Please tell about all known ways. I will choose then. You already said that existing

Re: Maven and Properties

2010-03-01 Thread yodee
Ok. Thanks for the information. Stephen Connolly-2 wrote: OK, I think you need to rethink your artifact versioning... especially w.r.t. how maven treats non-SNAPSHOT versions On 1 March 2010 10:02, yodee mmu...@yodlee.com wrote: Its okay. We have development environment always

Re: Configure Proxy based on location

2010-03-01 Thread Brett Porter
Generally you have two options, you can have different settings files for the locations, or run an instance of nexus on your own machine that proxies from your work environment. That way you always use the one on your local machine, and when you need the other artifacts they'll be checked for

Re: Configure Proxy based on location

2010-03-01 Thread Patrick Turcotte
How about installing and running Nexus on your own computer, pointing to your office first, and the world as a mirror? Patrick On 10-03-01 08:22 AM, Nick Klauer wrote: More or less i've asked this on StackOverflow, but I was totally unaware of the users mailing list, so I'm reposting here

site navigation broken in maven-site-plugin-2.1?

2010-03-01 Thread David Roussel
Hi, I've got a multi-module project with no site customization (no site.xml or stylesheets etc). If I build my site with maven-site-plugin 2.0.1 it works. But if I use maven-site-plugin 2.1 then the naviagtion block is missing from all the pages, normally I'd see links to Project

Re: How to check badly formed pom.xml

2010-03-01 Thread Patrick Turcotte
Hi, Why don't you use an XML editor, (Eclipse can do the trick)? It will show you where your xml doesn't comply to a schema. If you're using linux, try xmllint. Patrick On 10-03-01 02:31 AM, amaresh mourya wrote: Hi Anders, Thanks for your reply. but i was asking for, is there any method

Re: Configure Proxy based on location

2010-03-01 Thread Stephen Connolly
How about modifying your mvn script to check what your network is and launch maven with a property defined and configure your proxies pased on said property using profile activation? -Stephen On 1 March 2010 13:44, Patrick Turcotte pat...@revolutionlinux.com wrote: How about installing and

Re: How to check badly formed pom.xml

2010-03-01 Thread Nick Klauer
Maybe i'm off the mark, but what about mvn verify or mvn validate since those are built-ins to Maven itself... Also, I've never really been able to get a Maven build to work if the pom was incorrect, so I would assume you are either trying something that is too subtle to verify, or you

Re: mvn grails:run-war starts server but gives a 404 error

2010-03-01 Thread Mick Knutson
Is there anyone that is using the maven grails plugin? Should I submit a JIRA for Maven, or Grails? --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website:

Re: site navigation broken in maven-site-plugin-2.1?

2010-03-01 Thread Lukas Theussl
Could it be that? http://jira.codehaus.org/browse/MSITE-456 If not please open another issue with a test case. Thanks, -Lukas David Roussel wrote: Hi, I've got a multi-module project with no site customization (no site.xml or stylesheets etc). If I build my site with maven-site-plugin

assembly descriptor include tag - which version of an artifact will be used?

2010-03-01 Thread pubudu gunawardena
If an artifact is included in the dependencySet section without specifying the exact version and if there are many versions of that artifact in the local repository, which version would get included in the assembly? Thanks, Pubudu

Re: mvn grails:run-war starts server but gives a 404 error

2010-03-01 Thread Justin Edelson
Grails. On 3/1/10 9:16 AM, Mick Knutson wrote: Is there anyone that is using the maven grails plugin? Should I submit a JIRA for Maven, or Grails? --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866)

Re: Developing maven plugin. How can I manage artifacts?

2010-03-01 Thread Wayne Fay
I tried to use glassfish-plugin but it has very simple goals whereas I need to implement a huge and complex workflow. Be more specific. Why do you need a huge and complex workflow? Wayne - To unsubscribe, e-mail:

Re: Maven and Properties

2010-03-01 Thread Wayne Fay
Its okay. We have development environment always called as main. If this is successful we will roll out this to other versions where we will call it out as 1.0, 2.0, etc... This will cause spectacular failures in your builds in a rather short period of time that will be challenging to deal

Purging local repository

2010-03-01 Thread Wim Deblauwe
Hi, what is the best way if I want to erase all the artifacts from my local repo of the thing i am about to build using Maven? I tried the dependency plugin, but that only seems to remove the _dependencies_ of my artifact, not the current artifact. regards, Wim

Re: Purging local repository

2010-03-01 Thread Nick Klauer
You mean besides simply deleting the ${user.home}/.m2/repository directory? On Mon, Mar 1, 2010 at 12:41 PM, Wim Deblauwe wim.debla...@gmail.comwrote: Hi, what is the best way if I want to erase all the artifacts from my local repo of the thing i am about to build using Maven? I tried the

Re: Purging local repository

2010-03-01 Thread Jesse Farinacci
Hi Wim, On Mon, Mar 1, 2010 at 1:41 PM, Wim Deblauwe wim.debla...@gmail.com wrote: what is the best way if I want to erase all the artifacts from my local repo of the thing i am about to build using Maven? I tried the dependency plugin, but that only seems to remove the _dependencies_ of my

Maven 2.2.1 Dependency Resolution Issues

2010-03-01 Thread GALLAGHER, RON (ATTSI)
I have a rather complex project which pulls together a large number of artifacts from other internal projects. The full dependency graph for this project contains numerous situations where different versions of the same component are referenced throughout the dependency graph. Here is a

RE: Maven 2.2.1 Dependency Resolution Issues

2010-03-01 Thread Ludwig Magnusson
Isn't it enough to just let A depend on X(3.0)? It would solve this particular problem but perhaps there are other more complex? /Ludwig -Original Message- From: GALLAGHER, RON (ATTSI) [mailto:rg7...@att.com] Sent: den 1 mars 2010 21:19 To: Mailing List - Maven Users Subject: Maven 2.2.1

Windows versus maven-eclipse-plugin versus file: url

2010-03-01 Thread Benson Margulies
I'm on Windows, running mvn from cygwin, using the maven-eclipse-plugin. I construct a file URL that works fine in IE and firefox, but fails in maven: [INFO] Unable to read file: file://C:/cygwin2/home/benson/wst/BasisCodeFormatter.xml Anyone have a suggestion?

Re: Maven 2.2.1 Dependency Resolution Issues

2010-03-01 Thread Stephen Connolly
You could alwas se depenencyMnagement setion to lock down the version On 1 March 2010 20:26, Ludwig Magnusson lud...@itcatapult.com wrote: Isn't it enough to just let A depend on X(3.0)? It would solve this particular problem but perhaps there are other more complex? /Ludwig -Original

RE: Maven 2.2.1 Dependency Resolution Issues

2010-03-01 Thread GALLAGHER, RON (ATTSI)
Yes, that would solve this problem. However, that approach is not an option. I also know that I could add an entry to the dependencyManagement section of project A to address this situation. However, due to other requirements of this project, the use of a dependencyManagement entry is not a

RE: Maven 2.2.1 Dependency Resolution Issues

2010-03-01 Thread GALLAGHER, RON (ATTSI)
I know that the dependencyManagement section could solve this. However, there are other requirements of this project that make that solution unsuitable. The main requirement is that the final packaging of the components of this application is configurable by users. Users select the components

Including sibling module attachment inside another module artifact

2010-03-01 Thread Thomas Harris
Maven Users: I have been searching for examples of how to make this work, but I must be missing something. We have a multimodule project, along these lines: proj-parent |- modules |- module1 |- target |- module1-1.0.0-classifiername.jar |- module2 |-

RE: Including sibling module attachment inside another module artifact

2010-03-01 Thread Thomas Harris
Correction: The assembly file should have actually said: outputDirectorymodule2/WebRoot/XXX/outputDirectory Typing error in the email... Still need help getting this to work. Thanks. Tom Harris -Original Message- From: Thomas Harris Sent: Monday, March 01, 2010 5:56 PM To:

Re: Maven 2.2.1 Dependency Resolution Issues

2010-03-01 Thread Ron Wheeler
If you are willing to force B and C to use X (3.0) anyway if they are packaged with D, then why not just settle on version 3.0 as the supported version of X. It seems that X has to be upwards compatible anyway and if it is not going to be upwards compatible then you need to create a new

Re: Windows versus maven-eclipse-plugin versus file: url

2010-03-01 Thread Barrie Treloar
On Tue, Mar 2, 2010 at 7:05 AM, Benson Margulies bimargul...@gmail.com wrote: I'm on Windows, running mvn from cygwin, using the maven-eclipse-plugin. I construct a file URL that works fine in IE and firefox, but fails in maven: [INFO] Unable to read file:

CSS Colour Constants

2010-03-01 Thread Hilco Wijbenga
Hi all, I have a list of colours in colours.properties. These should be applied to all my CSS files so that the colours I use are centralized. I need to access colours.properties in multiple projects so I put it in its own project and generated a very simple JAR consisting of just

Maven for J2EE - Beginner question

2010-03-01 Thread Partha Venkatavaradhan (pavenkat)
Hi, I have a resources folder that contains a dynamic set of XML's (file names not known during development time, known only during build time). I would like to place this resources folder under the 'EAR' directly so that multiple EJB;s can share the resources. Can someone please help me with

Re: Maven for J2EE - Beginner question

2010-03-01 Thread Anders Hammar
I think there are two parts of this question. First, what the Java EE spec says about what you want to do and then how to package with Maven. Regarding the Java EE spec, I'm not sure if you can put the resources folder in the ear. Possibly you can, but I've never done that. What I would do is to