maven-assembly-plugin and file filter.properties problem

2007-05-03 Thread houzecl
With maven-assembly-plugin I can't filter files using a filter.properties file (note that it works with pom built-in properties e.g. ${project.groupId} or toto) I've created a small project using mvn archetype:create and inserted the assembly configuration (see below) Everything works fine, excep

Re: dependency management problems...

2007-05-03 Thread Wayne Fay
If anyone actually wants this to happen, you probably need to file a JIRA issue so this can be considered in 2.0.x (or 2.1). William, your idea could perhaps even be implemented in 2.0.x. Discussions like this, esp on the Users list, generally do not result in new functionality as there are simpl

RE: dependency management problems...

2007-05-03 Thread William Ferguson
I was actually thinking that the "validate" phase would only compile a list of dependencies up to the furthermost lifecycle phase required by the list of goals specified. But I guess it amounts to the same thing. William -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent:

Re: Maven Community news @ blog.octo.com

2007-05-03 Thread Wendy Smoak
On 5/2/07, Stephane Nicoll <[EMAIL PROTECTED]> wrote: We're busy configuring the projects to deploy the site in a separate space per version. Not sure how far we are, Wendy might answer that. It was temporarily pre-empted by work and school, I should get back to it next week. The plugin docs

Re: trouble with file paths and maven packaging

2007-05-03 Thread Wayne Fay
This was recently discussed in the following thread: Subject: How to access a file that's inside an executable jar assembly From: Ed Young Date: Fri, Apr 27, 2007 at 11:51 AM To: Maven Users List Check the archive or Nabble. Wayne On 5/3/07, sudhakar <[EMAIL PROTECTED]> wrote: I'm using Ecl

trouble with file paths and maven packaging

2007-05-03 Thread sudhakar
I'm using Eclipse with the Eclipse maven 2 plugin to develop a Java EE application. My code reads in a properties file located in the src/main/resources/ directory. FileInputStream in = new FileInputStream("src/main/resources/META-INF/config.properties"); I can run "mvn package" from with Eclips

Re: RequireMavenVersion failed

2007-05-03 Thread A. Kevin Baynes
Brian, you're right : there's a comment in the POM.xml also (found it later), so the developers did a good job of trying to warn me... No besmirchment of the Apache FTP team intended. Thanks! ~Kevin On 5/3/07, Brian E. Fox <[EMAIL PROTECTED]> wrote: That's correct and according to the commit m

RE: RequireMavenVersion failed

2007-05-03 Thread Brian E. Fox
I will try to add some code to convert the range into english because many times the person getting this message doesn't know maven ranges. (ie users of the build) -Original Message- From: A. Kevin Baynes [mailto:[EMAIL PROTECTED] Sent: Thursday, May 03, 2007 2:54 PM To: Maven Users Li

Re: RequireMavenVersion failed

2007-05-03 Thread A. Kevin Baynes
Installing 2.0.5 fixed it. :-) Thanks so much for the quick reply! ~Kevin Ramblings follow : Now I see where I was confused. The error message says 'not in the allowed range [2.0.5,2.0.6)'. I think of a range as the upper and lower bounds of an array (including the maximum and minimum), so I a

RE: RequireMavenVersion failed

2007-05-03 Thread Brian E. Fox
That's correct and according to the commit message, it was intended to be 2.0.5: http://svn.apache.org/viewvc/incubator/ftpserver/ -Original Message- From: Max Bowsher [mailto:[EMAIL PROTECTED] Sent: Thursday, May 03, 2007 2:11 PM To: Maven Users List Subject: Re: RequireMavenVersion fa

Re: RequireMavenVersion failed

2007-05-03 Thread Max Bowsher
A. Kevin Baynes wrote: > I recently installed Maven 2.0.6 and downloaded the Apache FTP project. > > After running 'mvn clean install' in the main directory I get this > strange error : > > [INFO] [enforcer:enforce {execution: default}] > [WARNING] Rule 0: org.apache.maven.plugin.enforcer.Require

Re: RequireMavenVersion failed

2007-05-03 Thread Roland Asmann
The range [2.0.5, 2.0.6) means, anything from and including 2.0.5, up until but excluding 2.0.6. This means, you need to install 2.0.5 to run it! On Thursday 03 May 2007 19:58, A. Kevin Baynes wrote: > I recently installed Maven 2.0.6 and downloaded the Apache FTP project. > > After running 'mvn

RequireMavenVersion failed

2007-05-03 Thread A. Kevin Baynes
I recently installed Maven 2.0.6 and downloaded the Apache FTP project. After running 'mvn clean install' in the main directory I get this strange error : [INFO] [enforcer:enforce {execution: default}] [WARNING] Rule 0: org.apache.maven.plugin.enforcer.RequireMavenVersion failed with message: De

Re: M2-Plugin Development: Reading POM programmatically

2007-05-03 Thread Mark Hobson
On 03/05/07, Martin Bengl <[EMAIL PROTECTED]> wrote: hello folks, I use following solution (with maven 2.0.4) to create a MavenProject at runtime to extract informations like artifactId and groupid - this could be also done by manually parsing the xml file - but i think its a better way to use t

Re: Multi-module not picking up modules

2007-05-03 Thread Wayne Fay
First off... I think you're confused about some things... modules are not dependencies! Module is simply a source code way to specify children of a given parent module, to simplify the build process. I'm surprised (and almost don't believe you) that your WAR is getting packaged with all of the ax

Re: [m2] Dependency Ordering Headache

2007-05-03 Thread Jose Alberto Fernandez
Yes indeed, you could repackage the libraries by hand. But then WL can blame you for any further problem as you are hand crafting the libraries as oppose to using them as provided. Never mind if the library involves signed classes of any sort. I am not trying to defend WL or anyone else. But whe

Re: Manage Maven Classpath

2007-05-03 Thread Wayne Fay
Not that I am aware of, at least, not without hacking some internal Maven classes. Wayne On 5/3/07, GreJ <[EMAIL PROTECTED]> wrote: Hi, it's a simple question, and i think that the answer is "no", but i need a confirmation ;) Is it possible to manage manually the MavenClasspath ? Thanks. -

Re: dependency management problems...

2007-05-03 Thread Wayne Fay
So essentially you'd break up and move the monolithic "validate" phase into a series of "mini-validates" that fire immediately before every other lifecycle phase, to validate the artifacts necessary for (only) that phase are available. I think it would complicate things a bit, but it doesn't soun

NYC Maven/Ant Build Engineer position...

2007-05-03 Thread Bob Aiello
I am looking to hire build engineer/junior java developer to help me with Unix/Linux based Maven/Ant Java builds for a number of exciting large financial systems (www.accelortrading.com). If you are interested please contact me directly. Bob Aiello Manager, Process FXall LLC (www.fxall.com) 646

eclipse:eclipse

2007-05-03 Thread Borut Bolčina
Hello, checking out svn checkout https://svn.sourceforge.net/svnroot/tacos/tacos-4.1/trunk/ tacos-project and then mvn eclipse:eclipse inside tacos-project directory gives me: [INFO] [ERROR] FATAL ERROR [INFO]

Re: [m2] Dependency Ordering Headache

2007-05-03 Thread Wayne Fay
I work in the corporate world every day, friend. As for incorporating a patch like this, if it is a fairly trivial patch (many are just a couple fixed class files), I would personally just unpack the affected jars, copy the patched files in, and repack them with adjusted version numbers. I'm not

Re: Multi-module not picking up modules

2007-05-03 Thread lightbulb432
I have a question about the artifacts under http://repo1.maven.org/maven2/org/apache/axis2, and the .pom at http://repo1.maven.org/maven2/org/apache/axis2/axis2/1.2/axis2-1.2.pom/ My project depends on the axis2 artifact. When I do a mvn deploy, the deployed WAR gets packaged including all of its

Re: Guide to creating archetypes...

2007-05-03 Thread nicolas de loof
I allready tried this, but the generated archetype does not include modules (only parent pom). 2007/5/3, Raphaël Piéroni <[EMAIL PROTECTED]>: Try mvn -N archetypeng:create-from-project Raphaël 2007/5/3, nicolas de loof <[EMAIL PROTECTED]>: > I'm trying to use the archetypeNG plugin from an ex

Re: Archiva on Tomcat Problems

2007-05-03 Thread Alexey Kakunin
Hello! I followed this instruction: http://docs.codehaus.org/display/MAVENUSER/Archiva+on+Tomcat Initially, I also has problem with INFO | jvm 1| 2007/03/10 01:20:26 | Missing "/security" package namespace in xwork.xml But after creation conf/archiva.xml with specified context (read docum

Re: Guide to creating archetypes...

2007-05-03 Thread Raphaël Piéroni
Try mvn -N archetypeng:create-from-project Raphaël 2007/5/3, nicolas de loof <[EMAIL PROTECTED]>: I'm trying to use the archetypeNG plugin from an existing complex (multi module) project. The plugins ask me for archetype groupId and other properties on every module of the source project. It ge

Re: How to add project specific dependencies

2007-05-03 Thread John Patrick
Kiran, Project level defined repositories can be specified within the pom: e.g. [Extract from http://maven.apache.org/pom.html] ... central Maven Repository Switchboard default http://repo1.maven.org/maven2 false ... ... I've not used that

Re: Cleaning before assembly

2007-05-03 Thread Steven Rowe
Hi Jose, maven-clean-plugin's "clean" goal can clean other directories besides the default - see Steve Jose Alberto Fernandez wrote: > Hi, > > Can someone point me at the correct way to tell Maven's assem

Re: Guide to creating archetypes...

2007-05-03 Thread nicolas de loof
I'm trying to use the archetypeNG plugin from an existing complex (multi module) project. The plugins ask me for archetype groupId and other properties on every module of the source project. It generates an archetype for every module. I'd like to generate the complete project with modules from a

Re: [m2] Dependency Ordering Headache

2007-05-03 Thread Jose Alberto Fernandez
When I read things like this, I think some of the Maven people have never been working in the real corporate world. You cannot expect a project to stop for 6 month waiting for the next full release of Weblogic or any other product, just because there is no way on Maven to take a product patch into

How do I get a list of all available properties?

2007-05-03 Thread Steinhauer, Frank
Hi, How do I get a list of all available properties? I already found a static list (http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide), but there should be a way to create a list of all available properties and their values during the build , e.g. by using a Properties-Plugin. Is th

How to add project specific dependencies

2007-05-03 Thread Kiran Kodlady
Hello, I got struck while doing migration of maven 1.0.2 to maven 2.0.6. In maven 1.0.2 we had a file called build.properties, which consists of paths for both remote as well as local repositories. But in maven 2.0.6 i am unable to find any corresponding file which holds these values. Can anyon

AW: Cleaning before assembly

2007-05-03 Thread Steinhauer, Frank
Just look into the description of the clean plugin http://maven.apache.org/plugins/maven-clean-plugin/examples/delete_additional_files.html Frank -Ursprüngliche Nachricht- Von: Jose Alberto Fernandez [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 3. Mai 2007 14:22 An: users@maven.apa

Re: Cleaning before assembly

2007-05-03 Thread Jose Alberto Fernandez
For reasons of our configuration, we cannot really assembly inside the target directory, but on an staging area pointed by an environment variable and where we can start or server for manual testing. This is why I would like having a way to tell either the cleaning plug-in or assembly itself to c

AW: OT: JAXWS Maven2 plugin

2007-05-03 Thread Gonne Martens
Hi, I took the JAXWS maven2 plugin (current version 1.2) from the following repository: maven2-repository.dev.java.net Java.net Repository for Maven http://download.java.net/maven/2/ This is e.g. my plugin entry to run wsimpo

Re: Cleaning before assembly

2007-05-03 Thread Roland Asmann
If you use a directory under 'target', it should be cleaned by the clean-plugin... Maybe the answer lies in configuring the assembly-plugin to use anothe dir, instead of telling the clean-plugin to clean up other dirs? On Thursday 03 May 2007 13:46, Jose Alberto Fernandez wrote: > Hi, > > Can s

Cleaning before assembly

2007-05-03 Thread Jose Alberto Fernandez
Hi, Can someone point me at the correct way to tell Maven's assembly or cleaning plug-in to clean the assembly area before assembling a new. Currently as the assembly area is not cleaned up we finish with old jars still there from older builds. Any hints will be appreciated. Jose Alberto -- Vi

Manage Maven Classpath

2007-05-03 Thread GreJ
Hi, it's a simple question, and i think that the answer is "no", but i need a confirmation ;) Is it possible to manage manually the MavenClasspath ? Thanks. -- View this message in context: http://www.nabble.com/Manage-Maven-Classpath-tf3685869s177.html#a10302892 Sent from the Maven - Use

M2-Plugin Development: Reading POM programmatically

2007-05-03 Thread Martin Bengl
hello folks, I use following solution (with maven 2.0.4) to create a MavenProject at runtime to extract informations like artifactId and groupid - this could be also done by manually parsing the xml file - but i think its a better way to use the maven classes. File pomFile = new File("pom.xm

Access file resources from ant based plugin

2007-05-03 Thread Marcel Schutte
Hello, I've written an ant based plugin that needs access to file based resources. For example, an xslt task needs a file path to the stylesheet it applies. Simply putting this stylesheet in src/main/resources won't work, because it will end up in the plugin's jar file. The only way around it

Re: how to disable a profile ?

2007-05-03 Thread nicolas de loof
Thanks ! 2007/5/3, Jörg Schaible <[EMAIL PROTECTED]>: mvn -s alternate-settings.xml :) nicolas de loof wrote on Thursday, May 03, 2007 12:02 PM: > In fact, I was wrong, the settings descriptor doesn't allow to set > in a profile. I'll have to comment the XML block any time I > want to disa

RE: how to disable a profile ?

2007-05-03 Thread Jörg Schaible
mvn -s alternate-settings.xml :) nicolas de loof wrote on Thursday, May 03, 2007 12:02 PM: > In fact, I was wrong, the settings descriptor doesn't allow to set > in a profile. I'll have to comment the XML block any time I > want to disable mirrors... > > 2007/5/3, nicolas de loof <[EMAIL PROT

Re: how to disable a profile ?

2007-05-03 Thread nicolas de loof
In fact, I was wrong, the settings descriptor doesn't allow to set in a profile. I'll have to comment the XML block any time I want to disable mirrors... 2007/5/3, nicolas de loof <[EMAIL PROTECTED]>: Hello, my settings.xml contain a set of . In some circunstances I'd like to disable them. To

how to disable a profile ?

2007-05-03 Thread nicolas de loof
Hello, my settings.xml contain a set of . In some circunstances I'd like to disable them. To do this, I've set them in a profile that is enabled by default. How can I disable this profile from the command line ? Nico.

Re: Guide to creating archetypes...

2007-05-03 Thread Raphaël Piéroni
2007/5/3, Rémy Sanlaville <[EMAIL PROTECTED]>: > > > what's the difference ? > Mainly > - the descriptor is changed > - user is prompted for selecting the archetype and configuration > (unless using -B) > - any file can be resolved as packaged (using package in the directory > resolution) > - any

memory settings for site generation

2007-05-03 Thread emerson cargnin
Hi I'm using the latest maven-1.1-RC1-SNAPSHOT. I ended up with the following memory OPTS that enabled the site for one quite big multiproject to be run without getting out of memory errors: export MAVEN_OPTS="-Xmx2600m -XX:MaxPermSize=512m" The think is that, using top, it reaches 80% Then w

TestNG documentation

2007-05-03 Thread Martin Gilday
The TestNG docs have been updated to cover the current state of play in getting Maven, Surefire and TestNG working together. http://testng.org/doc/maven.html Thanks, Martin. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: Guide to creating archetypes...

2007-05-03 Thread Rémy Sanlaville
> what's the difference ? Mainly - the descriptor is changed - user is prompted for selecting the archetype and configuration (unless using -B) - any file can be resolved as packaged (using package in the directory resolution) - any file can be resolved as binary (copied instead of velocity templ

Re: Multi-module passing properties to children

2007-05-03 Thread Roland Asmann
If you include a -tag for your parent-POM, your project automatically inherits its version (unless you set it manually). In case you need to reference it in other places as well, try using ${parent.version} On Thursday 03 May 2007 01:04, Jared Blitzstein wrote: > Does using the parent tag requi

Re: Guide to creating archetypes...

2007-05-03 Thread Raphaël Piéroni
2007/5/3, Rémy Sanlaville <[EMAIL PROTECTED]>: Hi, If I want to create an archetype, which one is better to use ? If you want to create it right now, i would say the actual archetype If you can wait for the archetypeng to have a first release (i would say the archetype ng - but i'm obviously bi

Re: Guide to creating archetypes...

2007-05-03 Thread Rémy Sanlaville
Hi, If I want to create an archetype, which one is better to use ? what's the difference ? http://mojo.codehaus.org/maven-archetypeng/ or mvn archetype:create -DgroupId=[your project's group id] -DartifactId=[your project's artifact id] -DarchetypeArtifactId=maven-archetype-archetype (cf.

RE: dependency management problems...

2007-05-03 Thread William Ferguson
Interesting point. Aren't dependencies just compile time dependencies? So there is no need to resolve them unless your build includes the compile:compile goal. Plugin dependencies are only resolved if that plugin is required as part of the current build. So why do the (compile) dependencies need