Re: [m1] Removing dependencies from classpath

2005-09-01 Thread Andy Glick
Wendy Smoak wrote: Where does 'maven.dependency.classpath' get created? I only see it referenced from the Maven Java Plugin, yet if I try ant:echo${maven.dependency.classpath}/ant:echo in a preGoal to java:compile, it's blank. To see the value of an ant path, fileset, dirset or filelist

Re: Test plugins and xerces 2.7.1

2005-09-01 Thread Eric Hartmann
Thanks Brett, I've filled a bug http://jira.codehaus.org/browse/MPTEST-55 and I attached a small patch to fix this issue. -eric Brett Porter wrote: It would require a fix in the test plugin, which is passing along xerces to the tests. - Brett On 8/31/05, Eric Hartmann [EMAIL PROTECTED]

Re: [m2] How to invoke ant scripts from maven

2005-09-01 Thread Yann Le Du
How about this maven-antrun-plugin of yours, Kenney ? I tried it on a hello-world-example, and it's working good. Though, I encounter problems when I use a regexpmapper tag in my build.xml. I figured that ant-apache-regexp.jar or something is needed, so I added this dependency to

Re: [m2] How to invoke ant scripts from maven

2005-09-01 Thread Kenney Westerhof
On Thu, 1 Sep 2005, Yann Le Du wrote: How about this maven-antrun-plugin of yours, Kenney ? I tried it on a hello-world-example, and it's working good. Though, I encounter problems when I use a regexpmapper tag in my build.xml. I figured that ant-apache-regexp.jar or something is needed, so

Re: Jetty Plugin: java.lang.NoClassDefFoundError:sun/tools/javac/Main

2005-09-01 Thread Greg Hall
Hi Arnaud, The new version works. Thanks for your help with this. Regards, Greg. On Wed, 2005-08-31 at 18:32 +0200, Arnaud HERITIER wrote: I added ant to the jetty classpath can you try it : maven plugin:download -DgroupId=maven -DartifactId=maven-jetty-plugin -Dversion=1.2-SNAPSHOT

[m2] ear task problem/bug?

2005-09-01 Thread Edward Yakop
Maven version: 2.0-beta-1-SNAPSHOT svn revision: 265679 Hi, I am attempting to migrate an ear project from ant style to m2 project style. In the high level project dependencies: [ear] -depends- [war] | |depends- [ejb] -depends- [persistence] |

x:parse with absolute filename does not work

2005-09-01 Thread Haldi, Silvio
Hi I wan't to parse an XML document on my filesystem using the parse tag from the XML Jelly-library. If I specify the source XML file by an absolute Path it does not work. It seems that the parse tag is expecting a relative (to ${basedir}) path. I want to to something like this: x:parse

Re: [m2] How to invoke ant scripts from maven

2005-09-01 Thread Yann Le Du
I tried the extensions thing and am not really sure about it, since it granted me with a : Cannot find mojo descriptor for: 'antrun:run' - Treating as non-aggregator. I didn't find it in the POM XSD either. Actually, the missing lib was ant-nodeps. BTW, since it seems to contain a bunch of

[m2] which scope to use

2005-09-01 Thread Ashley Williams
Hi I'm new to Maven 2 and enjoying it very much thankyou for asking ;) I'm trying to create a servlet project for eclipse using the eclipse:eclipse task and therefore have added a dependency to the pom to servletapi (side question: should I be using servletapi or servlet- api). So far so

Re: [m2] which scope to use

2005-09-01 Thread Kenney Westerhof
On Thu, 1 Sep 2005, Ashley Williams wrote: Use scope 'provided', it's meant precicely for this case! -- Kenney Hi I'm new to Maven 2 and enjoying it very much thankyou for asking ;) I'm trying to create a servlet project for eclipse using the eclipse:eclipse task and therefore have added

Re: [m2] which scope to use

2005-09-01 Thread Ashley Williams
Didn't work! Changed my dependency like so: dependency groupIdservletapi/groupId artifactIdservletapi/artifactId version2.4/version scopeprovided/scope /dependency then I ran my build: $ m2 clean:clean install -Dpwd=admin then I

jboss plugin

2005-09-01 Thread Michel Erard
hello, I've testet the jboss plugin and have to questions to this. What is exactly the function of the goals jboss:deploy-ejb and jboss:undeploy-ejb? I've output on the console but don't know what the goals are changing. And the two goals are working with a jar file named APP NAME-APP

Re: [m2] which scope to use

2005-09-01 Thread Ashley Williams
Didn't work! Changed my dependency like so: dependency groupIdservletapi/groupId artifactIdservletapi/artifactId version2.4/version scopeprovided/scope /dependency then I ran my build: $ m2 clean:clean install -Dpwd=admin then I

[m2] one source tree many artifacts?

2005-09-01 Thread Ashley Williams
My next problem is that I wish to produce several artifacts from the same source tree. I've experimenting with mbeans and one of the sun samples has a Client and a Server class each with a main method in the same package - therefore I will need two artifacts. I could always refactor them

[m2] one source tree many artifacts?

2005-09-01 Thread Ashley Williams
My next problem is that I wish to produce several artifacts from the same source tree. I've experimenting with mbeans and one of the sun samples has a Client and a Server class each with a main method in the same package - therefore I will need two artifacts. I could always refactor them

Re: [m2] which scope to use

2005-09-01 Thread Kenney Westerhof
On Thu, 1 Sep 2005, Ashley Williams wrote: That problem has been fixed a while back in the eclipse plugin. It's fixed in svn and will come with the beta-1 release. -- Kenney Didn't work! Changed my dependency like so: dependency groupIdservletapi/groupId

WIX plugin ?

2005-09-01 Thread Nicolas De Loof
Hello, I'd like to build a windows installer. I've fond the maven NSIS plugin and will try it. I also have found that Microsoft MSI tool is opensource (!!!) http://sourceforge.net/projects/wix. Is they're any maven plugin for it ? Nico. This message contains information that may be

[m2] Ear Plugin problem... Generating EAR from two WARs (subprojects)

2005-09-01 Thread eric . starr
Having a problem understanding the directory structure for the master project which contains multiple subprojects. I am trying to create an ear from two wars which are generated from two subprojects. earbuilderproj - pom.xml (I want this to generate an EAR) - proj1 -

How to tell the version of jar.

2005-09-01 Thread Jon Strayer
I'm trying to integrate an existing project into our build cycle. None of the jars had version numbers in their names. The solution I came up with was to download md5.exe from http://www.fourmilab.ch/md5/ and use google to look up the digests it printed out. In each case, the name of the

Re: [m2] Ear Plugin problem... Generating EAR from two WARs (subprojects)

2005-09-01 Thread Kenney Westerhof
On Thu, 1 Sep 2005 [EMAIL PROTECTED] wrote: Hi, In your root project (earbuilder) you need to specify: - two dependencies on the two war projects, with typewar/type - specify packagingear/packaging - use m2 install. That way the lifecycle assosiated with packaging ear kicks in and your

RE: x:parse with absolute filename does not work

2005-09-01 Thread Haldi, Silvio
If I do this I receive the following message: BUILD FAILED File.. c:\myProject\component\maven.xml Element... x:parse Line.. 62 Column 110 c Nested exception: c Please note that I'm using windows. The statement in maven.xml is now: x:parse var=myFile

Web Service with Maven

2005-09-01 Thread Dru Devore
I am looking to create a web service project with maven as the build tool. I need to: Create and deploy the service including generating the xml for it. Create a Java client Modify the build number in a properties file before the build Currently we are doing this with ant scripts but I want to

Re: [m2] Ear Plugin problem... Generating EAR from two WARs(subprojects)

2005-09-01 Thread eric . starr
Having some problems with that... ** C:\tmp\earbuilderprojm2 install [INFO] [INFO]

Re: [m2] Ear Plugin problem... Generating EAR from two WARs(subprojects)

2005-09-01 Thread eric . starr
I had a copy/paste error in the last email... here is the pom.xml file that i am using... I'm still having the issues as described in the previous email. project modelVersion4.0.0/modelVersion groupIdcom.myco.apps/groupId artifactIdearbuilderproj/artifactId packagingear/packaging

[M2] Problems with m2 site:site

2005-09-01 Thread john_harrison
Hi All, I'm trying to generate a site from an installed/deployable application, and receive the following: [INFO] [INFO] Building Maven Quick Start Archetype [INFO]

Re: [m2] Ear Plugin problem... Generating EAR from two WARs (subprojects)

2005-09-01 Thread Manuel G. Chacon
Eric, there is a property that you have to set in your build.properties in order for maven to create the application.xml file for you. http://maven.apache.org/reference/plugins/ear/properties.html maven.ear.appxml.generate = true Manuel At 08:41 AM 9/1/2005, you wrote: Having a problem

Re: [M2] Problems with m2 site:site

2005-09-01 Thread Jesse McConnell
do you have distributionManagement site idsite/id nameGallup Plugins/name urlscp://host/devel/websites/site/url /site /distributionManagement specified in a pom and the corresponding info in a setting.xml in your .m2 directory? On 9/1/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi All,

Re: [M2] Problems with m2 site:site

2005-09-01 Thread Ashley Williams
I get exactly the same error when I run site:site and I'm running on the Mac OS X platform, and it seemed including a site.xml file didn't cause any extra content to be generated. Also the site:deploy goal fails for me. It did manage to zip up the site directory, as I stopped it at the

Re: [M2] Problems with m2 site:site

2005-09-01 Thread Jesse McConnell
there is a known bug in on that issue build pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId configuration unzipCommand/usr/bin/unzip -o err.txt/unzipCommand /configuration /plugin /plugins /pluginManagement /build there is some

RE: How to tell the version of jar.

2005-09-01 Thread Vincent Massol
Hi Jon, -Original Message- From: Jon Strayer [mailto:[EMAIL PROTECTED] Sent: jeudi 1 septembre 2005 17:46 To: Maven Users List Subject: How to tell the version of jar. I'm trying to integrate an existing project into our build cycle. None of the jars had version numbers in their

[m2] fileset

2005-09-01 Thread Ashley Williams
I have my source code on a single tree but wish to build two artifacts out of it with two different poms. Is there some concept such as a file set so that each project will only see the relevant files for compiling and jaring etc? Thanks - AW

Re: [M2] Problems with m2 site:site

2005-09-01 Thread Ashley Williams
Thanks for confirming the bug. Methinks I will wait until the beta - should be there any day now ;) On 1 Sep 2005, at 20:28, Jesse McConnell wrote: there is a known bug in on that issue build pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId

Re: [M2] Problems with m2 site:site

2005-09-01 Thread john_harrison
do you have distributionManagement site idsite/id nameGallup Plugins/name urlscp://host/devel/websites/site/url /site /distributionManagement specified in a pom and the corresponding info in a setting.xml in your .m2 directory? Hi Jesse, I currently have the following in my pom.xml:

Re: [m2] fileset

2005-09-01 Thread dan tran
in Maven 1, you use sourceModifications in Maven 2, you use compiler plugin filter set -D On 9/1/05, Ashley Williams [EMAIL PROTECTED] wrote: I have my source code on a single tree but wish to build two artifacts out of it with two different poms. Is there some concept such as a file set

RE: [m1] Conditional dependencies

2005-09-01 Thread Jay H. Hartley
Wendy, Jay, this turned out to work *perfectly*! Glad to hear it, though I agree with Brett that it doesn't necessarily fall in the category of Best Practice. I'm glad to hear Maven 2 will do a better job of dealing with this kind of issue. One concern was having duplicate artifacts with the

Re: [m2] fileset

2005-09-01 Thread dan tran
btw, this feature is not in alpha 3 thou, but the latest trunk -D On 9/1/05, dan tran [EMAIL PROTECTED] wrote: in Maven 1, you use sourceModifications in Maven 2, you use compiler plugin filter set -D On 9/1/05, Ashley Williams [EMAIL PROTECTED] wrote: I have my source code on

Re: [m2] fileset, how to work on large projects

2005-09-01 Thread Ashley Williams
Thanks, that should get me going for now, at least for the compile lifecycle (still need to think about recources etc). I'm actually trying to figure out a much broader way of working, i.e. imagine starting a project with a dozen developers all working on many source files. Am I mistaken

Re: [m2] fileset, how to work on large projects

2005-09-01 Thread dan tran
On 9/1/05, Ashley Williams [EMAIL PROTECTED] wrote: Thanks, that should get me going for now, at least for the compile lifecycle (still need to think about recources etc). I'm actually trying to figure out a much broader way of working, i.e. imagine starting a project with a dozen

[m1]No dependencies get resolved

2005-09-01 Thread Mayorgaadame, Alex [IT]
Hello there community. New to Maven so this may be very foolish. I've added all needed jars as dependencies. But when I try to attain java:compaile it keeps throwing me a bunch of: [javac] Compiling 33 source files to C:\projects\esf\target\classes

downloading Maven source code from SVN

2005-09-01 Thread Michael McCrann
I am trying to download the Maven source code from SVN. To do this, I am using the commands on the Maven website: svn co http://svn.apache.org/repos/asf/maven/maven-1/core/trunk maven-1/core/trunk svn co http://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk maven-1/plugins/trunk But I

[m2] site:site has errors

2005-09-01 Thread Matthew Smalley
Hi, I've got the latest version of maven2 (actually tried both alpha 3 and the latest from svn), but I can't seem to run site:site properly. If I run it from a blank dir (ie no POM exists) I get the following output: [INFO] Searching repository for plugin with prefix: 'site'. [INFO] Using local

Re: [m2] site:site has errors

2005-09-01 Thread Trygve Laugstøl
On Thu, Sep 01, 2005 at 11:11:49PM +0100, Matthew Smalley wrote: Hi, I've got the latest version of maven2 (actually tried both alpha 3 and the latest from svn), but I can't seem to run site:site properly. If I run it from a blank dir (ie no POM exists) I get the following output: [snip]

Re: [m2] maven, how to work on large projects

2005-09-01 Thread Ashley Williams
Definitely exposing my newbie status with Maven! However I worked on a HUGE project with Ant and we did exactly that, ie had one source tree for all work. The way we stopped any particular class from one package using one from an illegal package was using various Ant masks, so that if for

RE: [m2] site:site has errors

2005-09-01 Thread Matthew Smalley
Cheers for the Trygve, I don't know why but the first time I tried site:site, nothing came out (presumably a bad POM). I've always assumed since then the errors meant something was wrong. Back to building the site eh? :) Matthew. -Original Message- From: Trygve Laugstøl [mailto:[EMAIL

exclude example

2005-09-01 Thread Goodin, Brandon
Is there an exclude example that someone can share with me. I have a couple packages that I do not want to be included in my compile. I tried using sourceModifications but it errors out with the following comment At least one of (classname|file|resource) is required. See my example below... Am I

Re: [m2] maven, how to work on large projects

2005-09-01 Thread dan tran
On 9/1/05, Ashley Williams [EMAIL PROTECTED] wrote: Definitely exposing my newbie status with Maven! However I worked on a HUGE project with Ant and we did exactly that, ie had one source tree for all work. The way we stopped any particular class from one package using one from an illegal

Re: exclude example

2005-09-01 Thread dan tran
Hey brando, this is Dan from the old Struts channel ;-) For your case, add classNamefakeClass/className !-- see maven doc -- -D On 9/1/05, Goodin, Brandon [EMAIL PROTECTED] wrote: Is there an exclude example that someone can share with me. I have a couple packages that I do not want

Re: [m2] Ear Plugin problem... Generating EAR from two WARs(subprojects)

2005-09-01 Thread Edward Yakop
Hi eric, The way I solved this is by creating a pom porject that includes all three modules and make ear to contain only the dependency. I.e. [apps] |-module--[earBuilderProj] | | | | depend depend |

Re: downloading Maven source code from SVN

2005-09-01 Thread Edward Yakop
Hi, How about using https protocol (svn co https://svn.apache.org ...). Regards, Edward Trygve Laugstøl wrote: On Fri, Sep 02, 2005 at 08:03:50AM +1000, Michael McCrann wrote: I am trying to download the Maven source code from SVN. To do this, I am using the commands on the Maven website:

RE: downloading Maven source code from SVN

2005-09-01 Thread Michael McCrann
Edward, Fantastic, that worked. Out of curiosity, do you know why HTTPS works but HTTP doesn't? Michael -Original Message- From: Edward Yakop [mailto:[EMAIL PROTECTED] Sent: Friday, 2 September 2005 10:11 AM To: Maven Users List Subject: Re: downloading Maven source code from SVN

Re: downloading Maven source code from SVN

2005-09-01 Thread Edward Yakop
Hi, To be honest, I have no idea. I only suggest that because my company svn+apache server often has exactly the same issue. Regards, Edward Michael McCrann wrote: Edward, Fantastic, that worked. Out of curiosity, do you know why HTTPS works but HTTP doesn't? Michael -Original

Hot to set the prefix for a plugin

2005-09-01 Thread Wendell Beckwith
Thanks to help from Brett and the ability to hit my head against the wall without giving up, I now have my plugin at least installing and working. However it only works when I execute it with the groupId:artifactId:goal formula. How do I set the prefix for it? I noticed a plugin.xml in my

Re: downloading Maven source code from SVN

2005-09-01 Thread andrew
Sounds like you are using a transparent HTTP proxy. svn doesn't play well with transparent HTTP proxies. HTTPS is not transparently proxied so doesn't have this issue. http://subversion.tigris.org/faq.html#proxy Cheers, ...andrew Edward Yakop wrote: Hi, To be honest, I have no idea. I

Maven beta 1.1 artifact plugin

2005-09-01 Thread Michael McCrann
Any ideas with this problem. I am trying to use the artifact plugin (Maven 1.1 beta). I have a simple goal in my project's maven.xml: goal name=toRepository artifact:deploy artifact=${maven.build.dir}/transact.war type=war project=${pom} /

Re: Maven beta 1.1 artifact plugin

2005-09-01 Thread Brett Porter
Please upgrade to the artifact 1.6 plugin. I will update the download page. A second beta will be out soon to address this. - Brett On 9/2/05, Michael McCrann [EMAIL PROTECTED] wrote: Any ideas with this problem. I am trying to use the artifact plugin (Maven 1.1 beta). I have a simple

Re: Hot to set the prefix for a plugin

2005-09-01 Thread Brett Porter
settings pluginGroups pluginGroupcom.intervoice.maven.plugins/pluginGroup /pluginGroups /settings - Brett On 9/2/05, Wendell Beckwith [EMAIL PROTECTED] wrote: Thanks to help from Brett and the ability to hit my head against the wall without giving up, I now have my plugin at least installing