Re: A couple of application deployment questions

2005-06-15 Thread Eric Black
Hi, I'm not sure if this will be helpful, but for crossplatform applications we have some goals that can create scripts for the different os's. These are java specific, but you could have your own scripts do whatever you wanted: goal name=ccdist:make-run-script description=Create

Error initialising plugin context for maven-scm-plugin

2005-02-11 Thread Eric Black
Hi, I'm trying to set a property within a goal in maven.xml file like this: maven:set plugin=maven-scm-plugin property=maven.scm.cvs.module value=Test / I've done this before with other plugins with out a problem, but with this one I get an Error initialising plugin context error. When I

Re: Error initialising plugin context for maven-scm-plugin

2005-02-11 Thread Eric Black
I was able to get rid of the error by setting a dependency to commons-jelly-tags-log-1.0.jar in my project.xml file(it was downloaded and installed), but the maven.scm.cvs.module property isn't getting set. Eric Maven Users List users@maven.apache.org on Friday, February 11, 2005 at 3:06 PM

Re: Error initialising plugin context for maven-scm-plugin

2005-02-11 Thread Eric Black
Sorry for the multiple posts, but maybe someone else might have the same problem. This is what I was doing: goal name=projectco !-- Check the input required variables -- attainGoal name=ccscm:checkvars / j:set var=module value=${pom.name} / ant:echo message=MODULE: ${module}/

maven:set doesn't seem to be exported in pregoal

2005-02-10 Thread Eric Black
Hi, Below is a pregoal code snippet that is supposed to set the maven.multiproject.includes property. When I run it, it echos the correct value but doesn't get passed to the multiproject plugin. If I set the property on the command line with the -D switch it works fine. Anyone have any idea what

Re: simple if-then-else ??

2005-02-10 Thread Eric Black
No Else, have to do j:if test=${empty(foo.property)} /j:if j:if test=${! empty(foo.property)} /j:if Word of warning: Don't use 'dotted' variables. There is a bug where foo.property can't be resolved but if you set a single word variable like fooProperty ther is no problem. Someone else might

Re: Dependcies related question

2005-02-08 Thread Eric Black
Your second solution is what I would normally do, but for testing, you can build the UTILS jar file and then set the maven.jar.override property. See http://maven.apache.org/reference/user-guide.html and search for maven.jar.override and you'll see how it is used. Eric

os and arch specific jnlp resources

2005-01-27 Thread Eric Black
Has anyone modified the jnlp plugin to support os and arch specific resources? I need to write a block of jnlp that looks like this: resources os=Windows arch=x86 nativelib href=jug-native/win-jug-native.jar/ /resource resources os=Linux arch=i386 nativelib

Re: Change a property in a property file

2005-01-10 Thread Eric Black
Hi, I was looking for similar methods but wasn't able to find any way to do what you (and I) are looking for. I've been creating a plugin to handle it, but it is kindof specific for my company's needs. Basically, it does(or will do) the following: 1. uses cvs to get the status(version) of all

Re: Jelly xml:parse use

2005-01-04 Thread Eric Black
Thanks, Dion. Your info at multitask has already been helping me for the past two weeks writing plugins. Maven Users List users@maven.apache.org on Monday, January 3, 2005 at 8:35 PM + wrote: And I'm usually lurking somewhere if you need help with something in particular.

Jelly xml:parse use

2005-01-03 Thread Eric Black
Hi, Could someone point me to an example of using the jelly xml tag library, specifically xml:parse? I'm trying to read in an xml file and read the elements and their properties in a foreach loop. Any ideas? Thanks, Eric

Re: Jelly xml:parse use

2005-01-03 Thread Eric Black
Thanks, just what I was looking for. Eric Maven Users List users@maven.apache.org on Monday, January 3, 2005 at 3:18 PM + wrote: You can also check out the xdoc and ear plugins, among others. On Mon, 03 Jan 2005, at 11:46:19 [GMT -0800] dan tran wrote: googled Jely xml:parse and found

Re: Dependencies with a Multiproject

2004-12-16 Thread Eric Black
Hi, I think it depends how modular you'd like to have your subprojects. If you want to be able to pull out your individual projects and be able to build them, then you might not want the dependencies in the main project file. On the other hand, you reduce redundancy by placing as much info as

How to use versions/version project descriptor

2004-12-15 Thread Eric Black
Hi, I'm trying to use the versions/version tags in the project descriptor, but I have no idea how to specify it when building. The user docs say it is used byt the dist plugin, but none of the properties for that plugin seem to reference the versions. 'maven dist version doesn't work. Can anyone

Re: How to use versions/version project descriptor

2004-12-15 Thread Eric Black
Ok, thanks. I'll check it out. Eric

Re: Trying to create developer group plugin

2004-12-10 Thread Eric Black
If I run 'maven plugin:download' in a project that has the plugin dependency but not the plugin source itself, maven asks what plugin I want with a prompt for the groupId, artifactId, and version. Maybe I'm missing a step that would make the dependency updating easier. This is what I understand:

Re: Executing a java class file

2004-12-09 Thread Eric Black
Hi, You can put that in a maven.xml file with some goal name and it will execute: project xmlns:j=jelly:core xmlns:ant=jelly:ant goal name=runabc ant:java classname=a.b.c fork=true failonerror=true ant:arg value=abc/ ant:classpath refid=my.classpath/ /ant:java /goal /project then in your

jelly if test tag

2004-12-09 Thread Eric Black
Hi, I'm trying to use the following code: ant:available property=mainplugin file=${maven.plugin.dir}/${pluginname}.jar / ant:echo message=MAINPLUGIN ${mainplugin} / j:if test={$mainplugin == 'true'} ant:echo message=${maven.plugin.dir}/${pluginname}.jar is in the main

Re: jelly if test tag

2004-12-09 Thread Eric Black
Thank you!! I'll slap myself later.

Re: Trying to create developer group plugin

2004-12-09 Thread Eric Black
Thanks for all of your help everyone. I used the dependency method, which I found to be much superior to plugin:download or plugin:install since a user may not have permissions to install a plugin into the MAVEN_HOME/plugins directory. With the dependency method, I found it difficult to upgrade

Re: Trying to create developer group plugin

2004-12-09 Thread Eric Black
I meant the plugin:install method, meaning everyone who wanted to build a project would need to run plugin:install to get the plugin on their system with the plugin source as you mentioned. The reason I did this is because if a developer downloads the source of a project and wants to build it and

Re: Need some help with maven.xml...

2004-12-08 Thread Eric Black
Hi, I was just writing my first maven.xml file yesterday, so I may not be 100% correct in the following: The xmlns seems to be the namespacing so tasks/methods/whatever are mapped to the correct engine if there are more than one task with the same name, so you just specify the namespaces with

Trying to create developer group plugin

2004-12-08 Thread Eric Black
Hi, I've created a plugin that I need to be able to distribute to our group's developers in an automatic way. We have our own repository of company specific jar files, so I want to put it in the same repository and have it get automatically downloaded and installed just like a standard maven

Re: Getting the value of a maven property at the command prop

2004-12-08 Thread Eric Black
Hi, If you know the name of the property, you could use the ant:echo task in a maven.xml file to print it out. Like: project xmlns:j=jelly:core xmlns:ant=jelly:ant ant:echo message=PROPERTY ${maven.build.dir} / /project just put the file in your project directory and run any maven task and

Re: Trying to create developer group plugin

2004-12-08 Thread Eric Black
Maven Users List [EMAIL PROTECTED] on Wednesday, December 8, 2004 at 2:58 PM + wrote: If your newly published jar can be refered by another maven project (with a dependency entry in project.xml) and that the developpers build this project, the file will get automatically downloaded from the

Re: dependency without version - is it possible?

2004-11-05 Thread Eric Black
Maven Users List [EMAIL PROTECTED] on Friday, November 5, 2004 at 12:29 PM + wrote: How can I include a dependency in my project.xml without specify the version? Hi, Use the jar override in the project.properties file: maven.jar.override=on maven.jar.{jarname}=../thirdparty/{jarname}.jar

Re: dependency without version - is it possible?

2004-11-05 Thread Eric Black
Maven Users List [EMAIL PROTECTED] on Friday, November 5, 2004 at 12:29 PM + wrote: example: I need a framework dependency but I donĀ“t matter which version - in fact I prefer to use the last release of the such framework. How can I define it? snapshot? Actually, if you can use SNAPSHOT,

How to modify the generated website

2004-10-29 Thread Eric Black
Hi, I would like to know how to modify the project site pages, specifically I want to modify the pages to have a download link for the jars on the left hand column like the main maven website. Can anyone point me in the right direction? I haven't found any docs of how to do this. Thanks, Eric

Re: distributionDirectory and siteDirectory tags

2004-10-15 Thread Eric Black
Thanks Thomas and Brett, I was omitting the distributionSite tag in project.xml. Once I specified that, it worked fine.

distributionDirectory and siteDirectory tags

2004-10-14 Thread Eric Black
Hi, I am using the siteDirectory tag and the destributionDirectory tags in project.xml to siteDirectory/var/www/maven/security/siteDirectory distributionDirectory/var/www/maven/builds/security/distributionDirectory and maven.repo.central.directory in projects.properties to