Re: [m1] Removing dependencies from classpath
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 you can use the ant pathconvert task. The following fragment is from the Ant manual page for the task. When the ant reference is converted to a property, echo will display its value. Converts a nested path or reference to a Path, FileSet, DirSet, or FileList into a path form for a particular platform, and stores the result in a given property. It can also be used when you need to convert a Path, FileSet, or DirSet into a list, separated by a given character, such as a comma or space, or, conversely, to convert a list of files in a FileList into a path. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Test plugins and xerces 2.7.1
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] wrote: Hi, I experienced the following trouble: I'm using XInclude in my application with latest Xerces (2.7.1) via dom4j on jdk1.4.2_08. While the junit tests (in fork mode) I have the following exception : org.xml.sax.SAXNotRecognizedException: Feature 'http://apache.org/xml/features/xinclude' is not recognized. at org.apache.xerces.parsers.AbstractSAXParser.getFeature(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.setFeature(Unknown Source) at org.dom4j.io.SAXReader.setFeature(SAXReader.java:218) at com.sharedvalue.hrtransfert.configuration.ConfigurationHolder.init( ConfigurationHolder.java:324) ... In my test I write the version of Xerces with org.apache.xerces.impl.Version.getVersion() that returns 2.7.1. But after a long research, I notice (running maven -X) that test-plugin had xerces-2.4.0.jar at the end of the classpath when forking. Unfortunately, it seems that it's this jar that cause all troubles (and as getVersion() does not exist in xerces-2.4.0, my test show the wrong version). Is there a solution to this problem ? Thanks in advance, -eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] How to invoke ant scripts from maven
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 maven-antrun-plugin POM : groupIdant/groupId artifactIdant-apache-regexp/artifactId version1.6.3/version scoperuntime/scope ... which solved nothing. Searching into the archive, I saw that adding a propertiesclassloaderroot/classloader/properties to the dependency would solve the problem (which links to what you were dealing with below) but it's not possible any more in Maven 2. Is there another way ? Yann Kenney Westerhof wrote: On Fri, 26 Aug 2005, Scokart Gilles wrote: You would indeed need a classloader with tools.jar in it. However, the location is jdk specific (there's no artifact in ibiblio for it), so maven can't provide it. You could add it to the classpath yourself: UrlClassLoader cl = new UrlClassLoader( Thread.currentThread().getContextClassLoader() ); cl.addUrl( new File( System.getProperty( java.home ), ../lib/tools.jar ) ).toURL() ); (or something very similar) and use that new classloader. Not sure this is the way to go, though.. -- Kenney I have a project that build an ant task, and I would like to use maven to build this project :-) During my tests, I would like to invoke an ANT script that use my task, in order to validate that it works as expected. How can I make this. I have first tried to write a JUnit test that call this script, but when I do that, the ant script is not executed in the correct environment (it doesn't have tools.jar in the classpath). It's probably possible to work around, but it will not be easy. I guess a simpler solution would be to have a maven plugin that setup the correct classloader, and call the ant script. Does such a plugin already exist ? Or do you see other alternatives ? SCOKART Gilles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] How to invoke ant scripts from maven
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 I added this dependency to maven-antrun-plugin POM : groupIdant/groupId artifactIdant-apache-regexp/artifactId version1.6.3/version scoperuntime/scope ... which solved nothing. Searching into the archive, I saw that adding a propertiesclassloaderroot/classloader/properties to the dependency would solve the problem (which links to what you were dealing with below) but it's not possible any more in Maven 2. Is there another way ? Yes there is; but adding it to the pom should work. However, since you're not the author of the pom it'll get overwritten in newer versions :) The correct way currently is to use extensions in the pom (a child to build). It's the same as a dependencies section, except replace 'dependencies' with 'extensions' and 'dependency' with 'extension'. Those deps are loaded in the root classloader. Btw, I think, since the above went wrong, you're supposed to use jakarta-regexp 1.3 instead. -- Kenney Yann Kenney Westerhof wrote: On Fri, 26 Aug 2005, Scokart Gilles wrote: You would indeed need a classloader with tools.jar in it. However, the location is jdk specific (there's no artifact in ibiblio for it), so maven can't provide it. You could add it to the classpath yourself: UrlClassLoader cl = new UrlClassLoader( Thread.currentThread().getContextClassLoader() ); cl.addUrl( new File( System.getProperty( java.home ), ../lib/tools.jar ) ).toURL() ); (or something very similar) and use that new classloader. Not sure this is the way to go, though.. -- Kenney I have a project that build an ant task, and I would like to use maven to build this project :-) During my tests, I would like to invoke an ANT script that use my task, in order to validate that it works as expected. How can I make this. I have first tried to write a JUnit test that call this script, but when I do that, the ant script is not executed in the correct environment (it doesn't have tools.jar in the classpath). It's probably possible to work around, but it will not be easy. I guess a simpler solution would be to have a maven plugin that setup the correct classloader, and call the ant script. Does such a plugin already exist ? Or do you see other alternatives ? SCOKART Gilles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jetty Plugin: java.lang.NoClassDefFoundError:sun/tools/javac/Main
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 -Dmaven.repo.remote=http://cvs.apache.org/repository/ Arnaud On 8/31/05, Greg Hall [EMAIL PROTECTED] wrote: Hi Vincent, I've tried the new version of the plugin but unfortunately it doesn't work. I'm still getting the java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException exception when I go to the first JSP. I did notice that Maven downloaded the latest ant.jar file (1.6.5) when I first ran maven jetty:run. I guess ant.jar is not getting added to the classpath for some reason. Regards, Greg. On Wed, 2005-08-31 at 17:24 +0200, Vincent Massol wrote: Hi Greg, -Original Message- From: Greg Hall [mailto:[EMAIL PROTECTED] Sent: mercredi 31 août 2005 10:15 To: Maven Users List Subject: RE: Jetty Plugin: java.lang.NoClassDefFoundError:sun/tools/javac/Main Hi Vincent, I tried the new version of the plugin, and it seems to have fixed the tools.jar problem. However, I now get another error which I think is due to ant.jar not on the classpath (stack trace below). I do have ANT_HOME set correctly i.e. ANT_HOME=/opt/tools/ant I've uploaded a new version on: http://www.apache.org/~vmassol/maven-jetty-plugin-1.2-SNAPSHOT.jar Make sure you delete the old version and remove your ~userhome/.maven/cache directory to be sure there's no mixup with the previous version. Let me if it works [snip] Thanks -Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Gregory Hall MIAP MBCS Chief Software Architect Evolution Technology Services Ltd -- Evolution Technology Services Ltd. PLEASE NOTE: This e-mail is confidential to the ordinary user of the mailbox to which it was addressed. It may be disclosed only for the purposes for which it was sent. If you receive this e-mail in error you should not use, disclose, copy, forward or rely on it, but destroy it and notify the sender. Please visit http://www.evolutionunderwriting.com/home/email.html for the full wording of our disclaimer. Gregory Hall MIAP MBCS Chief Software Architect Evolution Technology Services Ltd -- Evolution Technology Services Ltd. PLEASE NOTE: This e-mail is confidential to the ordinary user of the mailbox to which it was addressed. It may be disclosed only for the purposes for which it was sent. If you receive this e-mail in error you should not use, disclose, copy, forward or rely on it, but destroy it and notify the sender. Please visit http://www.evolutionunderwriting.com/home/email.html for the full wording of our disclaimer.
[m2] ear task problem/bug?
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] | |depends- [spring lib], [hibernate lib], etcs -- pom.xml of ear -- project modelVersion4.0.0/modelVersion groupIdcom.tokuii.serverside.baseapp.ear/groupId artifactIdear/artifactId version1.0-SNAPSHOT/version nameBaseapp - EAR/name packagingear/packaging dependencies dependency groupIdcom.tokuii.serverside.baseapp.flash/groupId artifactIdwar/artifactId version1.0-SNAPSHOT/version typewar/type /dependency dependency groupIdcom.tokuii.serverside.baseapp.flash/groupId artifactIdejb/artifactId version1.0-SNAPSHOT/version typeejb/type /dependency /dependencies /project -- -- pom.xml of war -- project modelVersion4.0.0/modelVersion groupIdcom.tokuii.serverside.baseapp.flash/groupId artifactIdwar/artifactId version1.0-SNAPSHOT/version nameBaseapp - WAR/name packagingwar/packaging dependencies dependency groupIdservletapi/groupId artifactIdservletapi/artifactId version2.3/version scopeprovided/scope /dependency /dependencies /project -- -- pom.xml of ejb -- project modelVersion4.0.0/modelVersion groupIdcom.tokuii.serverside.baseapp.flash/groupId artifactIdejb/artifactId version1.0-SNAPSHOT/version nameBaseapp - ejb/name packagingejb/packaging dependencies dependency groupIdcom.tokuii.serverside.baseapp/groupId artifactIdpersistence/artifactId version1.0-SNAPSHOT/version /dependency dependency groupIdjboss/groupId artifactIdjboss-j2ee/artifactId version3.2.3/version scopeprovided/scope /dependency /dependencies /project -- pom.xml of persistence -- project modelVersion4.0.0/modelVersion groupIdcom.tokuii.serverside.baseapp/groupId artifactIdpersistence/artifactId version1.0-SNAPSHOT/version nameBaseapp - persistence/name packagingjar/packaging dependencies dependency groupIdspringframework/groupId artifactIdspring/artifactId version1.2.4/version /dependency dependency groupIdhibernate/groupId artifactIdhibernate/artifactId version2.1.8/version /dependency /dependencies /project Questions: 1 How do I execute m2 to embed all the dependent artifacts into the ear and update the MANIFEST.MF of ejb project class path that the libraries are inside .ear file? 2 Is this a bug? - The generated application.xml - ?xml version=1.0 encoding=UTF-8? !DOCTYPE application PUBLIC -//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN http://java.sun.com/dtd/application_1_3.dtd; application display-nameear/display-name module ejbejb-1.0-SNAPSHOT.jar/ejb /module module web web-uriwar-1.0-SNAPSHOT.war/web-uri context-root/war/context-root /web /module module javahibernate-2.1.8.jar/java /module module javaspring-1.2.4.jar/java /module module javapersistence-1.0-SNAPSHOT.jar/java /module /application -- Q: 2.1 Why would the dependency all the dependency of persistence is included as ejb-client of ejb? None of hibernate, spring, persistence should be included inside application.xml? 2.2 How do I make the context-root/war/context-root to be any other name without modifying the artifactId? and The ear file contains: -- ejb-1.0-SNAPSHOT.jar war-1.0-SNAPSHOT.war hibernate-2.1.8.jar spring-1.2.4.jar ... -- 2.3 Shouldn't all dependent libraries of hibernate and spring to be included inside ear? If no, how do I configure ear/ejb task to do so? 2.4 According to http://java.sun.com/j2ee/verified/packaging.html#checking end of paragraph. I should be able to configure the classpath inside ejb.jar/META-INF/MANIFEST.MF file. For example: - META-INF/MANIFEST.MF: - Manifest-Version: 1.0 Class-Path: spring-1.2.4.jar hibernate-2.1.8.jar ... Created-By: 1.4.2_05-b04 (Sun Microsystems Inc.) --- 3 How do I setup the existing ejb pom.xml in order for maven to generate Class-Path for all transitive dependency libraries? Note: hibernate-2.1.6.pom, hibernate-2.1.7c.pom, hibernate-3.0.1.pom, hibernate-3.0.3.pom, hibernate-3.0.pom, and hibernate-2.1.8.pom is definitely broken: This is 2.1.4: project modelVersion4.0.0/modelVersion groupIdhibernate/groupId artifactIdhibernate/artifactId version2.1.4/version dependencies dependency artifactIdcommons-lang/artifactId groupIdcommons-lang/groupId
x:parse with absolute filename does not work
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 var=myFile xml=${basedir}/../mydir/myFile.xml/ How can I do this? Thanks Silvio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] How to invoke ant scripts from maven
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 optional yet oftenly used features, do you think it would be good to add it to your plugin POM ? That would also avoid overwriting by newer versions. groupIdant/groupId artifactIdant-nodeps/artifactId version1.6.3/version scoperuntime/scope Thanks for the help, Yann --- Kenney Westerhof [EMAIL PROTECTED] a écrit : 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 I added this dependency to maven-antrun-plugin POM : groupIdant/groupId artifactIdant-apache-regexp/artifactId version1.6.3/version scoperuntime/scope ... which solved nothing. Searching into the archive, I saw that adding a propertiesclassloaderroot/classloader/properties to the dependency would solve the problem (which links to what you were dealing with below) but it's not possible any more in Maven 2. Is there another way ? Yes there is; but adding it to the pom should work. However, since you're not the author of the pom it'll get overwritten in newer versions :) The correct way currently is to use extensions in the pom (a child to build). It's the same as a dependencies section, except replace 'dependencies' with 'extensions' and 'dependency' with 'extension'. Those deps are loaded in the root classloader. Btw, I think, since the above went wrong, you're supposed to use jakarta-regexp 1.3 instead. -- Kenney Yann Kenney Westerhof wrote: On Fri, 26 Aug 2005, Scokart Gilles wrote: You would indeed need a classloader with tools.jar in it. However, the location is jdk specific (there's no artifact in ibiblio for it), so maven can't provide it. You could add it to the classpath yourself: UrlClassLoader cl = new UrlClassLoader( Thread.currentThread().getContextClassLoader() ); cl.addUrl( new File( System.getProperty( java.home ), ../lib/tools.jar ) ).toURL() ); (or something very similar) and use that new classloader. Not sure this is the way to go, though.. -- Kenney I have a project that build an ant task, and I would like to use maven to build this project :-) During my tests, I would like to invoke an ANT script that use my task, in order to validate that it works as expected. How can I make this. I have first tried to write a JUnit test that call this script, but when I do that, the ant script is not executed in the correct environment (it doesn't have tools.jar in the classpath). It's probably possible to work around, but it will not be easy. I guess a simpler solution would be to have a maven plugin that setup the correct classloader, and call the ant script. Does such a plugin already exist ? Or do you see other alternatives ? SCOKART Gilles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] which scope to use
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 good, but when I install the app, I get a copy of the servlet jar in my war file, obviously not what I want since Tomcat is already supplying the library. Then I changed the scope to runtime which worked fine, but now I no longer see the servlet jar in my eclipse project after running eclipse:eclipse. So is there a scope I can use so that I will always see the dependencies in my eclipse project? Or maybe the eclipse:eclipse task could do with a mod? Cheers AW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] which scope to use
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 a dependency to the pom to servletapi (side question: should I be using servletapi or servlet- api). So far so good, but when I install the app, I get a copy of the servlet jar in my war file, obviously not what I want since Tomcat is already supplying the library. Then I changed the scope to runtime which worked fine, but now I no longer see the servlet jar in my eclipse project after running eclipse:eclipse. So is there a scope I can use so that I will always see the dependencies in my eclipse project? Or maybe the eclipse:eclipse task could do with a mod? Cheers AW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] which scope to use
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 ran my eclipse plugin: $ m2 eclipse:eclipse then I checked the war: jar tvf test-web.war ...great, no reference to servlet.jar, but wait a minute I went to eclipse, pressed F5 to refresh the project and watched the servlet api lib disappear before my very eyes. I mean thinking about it, it's probably down to the ecilpse plugin to correctly interpret the scopes which is probably where the failure is. On 1 Sep 2005, at 14:59, Yann Le Du wrote: Hi Ashley, The scope provided should do the trick, see : http://maven.apache.org/maven2/dependency- mechanism.html#dependency_scope servlet-api seems to be the new standard name (see jspapi:jsp-api) - but that's just a guess... HTH, Yann --- Ashley Williams [EMAIL PROTECTED] a écrit : 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 good, but when I install the app, I get a copy of the servlet jar in my war file, obviously not what I want since Tomcat is already supplying the library. Then I changed the scope to runtime which worked fine, but now I no longer see the servlet jar in my eclipse project after running eclipse:eclipse. So is there a scope I can use so that I will always see the dependencies in my eclipse project? Or maybe the eclipse:eclipse task could do with a mod? Cheers AW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yahoo! Mail - Votre e-mail personnel et gratuit qui vous suit partout ! Créez votre Yahoo! Mail sur http://mail.yahoo.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jboss plugin
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 VERSION but if I use jboss:package the genareted jar file is named APP NAME, did I make something wrong? Kind regards, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] which scope to use
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 ran my eclipse plugin: $ m2 eclipse:eclipse then I checked the war: jar tvf test-web.war ...great, no reference to servlet.jar, but wait a minute I went to eclipse, pressed F5 to refresh the project and watched the servlet api lib disappear before my very eyes. I mean thinking about it, it's probably down to the ecilpse plugin to correctly interpret the scopes which is probably where the failure is. On 1 Sep 2005, at 14:59, Yann Le Du wrote: Hi Ashley, The scope provided should do the trick, see : http://maven.apache.org/maven2/dependency- mechanism.html#dependency_scope servlet-api seems to be the new standard name (see jspapi:jsp-api) - but that's just a guess... HTH, Yann --- Ashley Williams [EMAIL PROTECTED] a écrit : 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 good, but when I install the app, I get a copy of the servlet jar in my war file, obviously not what I want since Tomcat is already supplying the library. Then I changed the scope to runtime which worked fine, but now I no longer see the servlet jar in my eclipse project after running eclipse:eclipse. So is there a scope I can use so that I will always see the dependencies in my eclipse project? Or maybe the eclipse:eclipse task could do with a mod? Cheers AW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yahoo! Mail - Votre e-mail personnel et gratuit qui vous suit partout ! Créez votre Yahoo! Mail sur http://mail.yahoo.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] one source tree many artifacts?
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 into 2 maven project source trees but I won't always be able to use this approach, especially if a company already has an investment in a large single source tree. Just to be clear I don't want to produce 2 artifacts from the same Maven project - the docs say that's a bad idea and I agree - I'm quite happy to have 2 Maven projects. Thanks -AW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] one source tree many artifacts?
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 into 2 maven project source trees but I won't always be able to use this approach, especially if a company already has an investment in a large single source tree. Just to be clear I don't want to produce 2 artifacts from the same Maven project - the docs say that's a bad idea and I agree - I'm quite happy to have 2 Maven projects. Thanks -AW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] which scope to use
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 artifactIdservletapi/artifactId version2.4/version scopeprovided/scope /dependency then I ran my build: $ m2 clean:clean install -Dpwd=admin then I ran my eclipse plugin: $ m2 eclipse:eclipse then I checked the war: jar tvf test-web.war ...great, no reference to servlet.jar, but wait a minute I went to eclipse, pressed F5 to refresh the project and watched the servlet api lib disappear before my very eyes. I mean thinking about it, it's probably down to the ecilpse plugin to correctly interpret the scopes which is probably where the failure is. On 1 Sep 2005, at 14:59, Yann Le Du wrote: Hi Ashley, The scope provided should do the trick, see : http://maven.apache.org/maven2/dependency- mechanism.html#dependency_scope servlet-api seems to be the new standard name (see jspapi:jsp-api) - but that's just a guess... HTH, Yann --- Ashley Williams [EMAIL PROTECTED] a écrit : 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 good, but when I install the app, I get a copy of the servlet jar in my war file, obviously not what I want since Tomcat is already supplying the library. Then I changed the scope to runtime which worked fine, but now I no longer see the servlet jar in my eclipse project after running eclipse:eclipse. So is there a scope I can use so that I will always see the dependencies in my eclipse project? Or maybe the eclipse:eclipse task could do with a mod? Cheers AW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yahoo! Mail - Votre e-mail personnel et gratuit qui vous suit partout ! Créez votre Yahoo! Mail sur http://mail.yahoo.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WIX plugin ?
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 privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Ear Plugin problem... Generating EAR from two WARs (subprojects)
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 - pom.xml - src/main/java/ - src/test/java - target/proj1.war (WAR file generated by the build) - proj2 - pom.xml - src/main/java/ - src/test/java - target/proj2.war (WAR file generated by the build) This is where I am a little lost... The 2 WAR files are successfully generated and installed into my local repository by running the command: m2 clean:clean install(from the directory earbuilderproj) When I try to create the EAR file I do so using the following command: m2 ear:ear(from the directory earbuilderproj) I receive an error: Deployment descriptor: C:\tmp\earbuilderproj\target\earbuilderproj-1.0\META-INF\application.xml does not exist. Three Questions: 1 - Is my directory structure correct? 2 - I thought that the application.xml file was supposed to be generated. Do you know why it's not being generated? 3 - What else am I missing to generate the EAR? Any help will be appreciated. Eric Starr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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 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 file(s) goggle found was the version of the jar (quite often in a Maven repository somewhere). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Ear Plugin problem... Generating EAR from two WARs (subprojects)
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 application.xml gets generated automatically. 1 - Is my directory structure correct? Seems fine. 2 - I thought that the application.xml file was supposed to be generated. Do you know why it's not being generated? see above. 3 - What else am I missing to generate the EAR? See above. :) -- Kenney Any help will be appreciated. Eric Starr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: x:parse with absolute filename does not work
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 xml=file://${basedir}/../mydir/myFile.xml/ and the path resolved looks similar too: file://c:\myProject\component/../mydir/myFile.xml Cheers Silvio -Original Message- From: Kenney Westerhof [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 1. September 2005 16:00 To: Maven Users List Subject: Re: x:parse with absolute filename does not work On Thu, 1 Sep 2005, Haldi, Silvio wrote: x:parse expects an URL, so prefix the filename with 'file://'. 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 var=myFile xml=${basedir}/../mydir/myFile.xml/ How can I do this? Thanks Silvio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Web Service with Maven
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 change it to pure maven. If anyone has any links, docs or example xml for this kind of thing I would appreciate it. Dru Devore So many suggestions so little time. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Ear Plugin problem... Generating EAR from two WARs(subprojects)
Having some problems with that... ** C:\tmp\earbuilderprojm2 install [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Reason: Edge between 'Vertex{label='com.myco.apps:proj1'}' and 'Vertex{label='com.myco.apps:proj1'}' introduces to cycle in the graph com.myco.apps:proj1 -- com.myco.apps:proj1 [INFO] [INFO] Total time: 1 second [INFO] Finished at: Thu Sep 01 13:31:46 EDT 2005 [INFO] Final Memory: 1M/2M [INFO] ** Not sure what I am doing wrong... This is the pom.xml file that is within the earbuilderproj directory: project modelVersion4.0.0/modelVersion groupIdcom.myco.apps/groupId artifactIddoctrackbuilder/artifactId packagingear/packaging version1.0/version namesub projects/name modules moduleproj2/module moduleproj1/module /modules dependencies dependency groupIdcom.myco.apps/groupId artifactIdproj2/artifactId version1.0-SNAPSHOT/version typewar/type /dependency dependency groupIdcom.myco.apps/groupId artifactIdproj1/artifactId version1.0-SNAPSHOT/version typewar/type /dependency /dependencies /project Does that look right? Eric Starr Kenney Westerhof [EMAIL PROTECTED] 09/01/2005 12:02 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: [m2] Ear Plugin problem... Generating EAR from two WARs(subprojects) 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 application.xml gets generated automatically. SourceID:NT32BA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Ear Plugin problem... Generating EAR from two WARs(subprojects)
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 version1.0/version namesub projects/name modules moduleproj2/module moduleproj1/module /modules dependencies dependency groupIdcom.myco.apps/groupId artifactIdproj2/artifactId version1.0-SNAPSHOT/version typewar/type /dependency dependency groupIdcom.myco.apps/groupId artifactIdproj1/artifactId version1.0-SNAPSHOT/version typewar/type /dependency /dependencies /project - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Problems with m2 site:site
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] [INFO] maven-site-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] Setting property: classpath.resource.loader.class = 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] ** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : messages on : VM system will output logging messages [INFO] Velocimacro : autoload off : VM system will not automatically reload global library macros [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] [site:site] [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 1 second [INFO] Finished at: Thu Sep 01 10:48:15 PDT 2005 [INFO] Final Memory: 3M/7M [INFO] Additionally, I've installed a site.xml and created subdirectories/content for xdoc and apt. An executed m2 site:deploy successfully deploys my application but no generated site. Lastly, my platform is Win2k, although I've also verified the problem on RHEL3. Are there any thoughts/ideas regarding what's going wrong? Thanks for any assistance John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Ear Plugin problem... Generating EAR from two WARs (subprojects)
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 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 - pom.xml - src/main/java/ - src/test/java - target/proj1.war (WAR file generated by the build) - proj2 - pom.xml - src/main/java/ - src/test/java - target/proj2.war (WAR file generated by the build) This is where I am a little lost... The 2 WAR files are successfully generated and installed into my local repository by running the command: m2 clean:clean install(from the directory earbuilderproj) When I try to create the EAR file I do so using the following command: m2 ear:ear(from the directory earbuilderproj) I receive an error: Deployment descriptor: C:\tmp\earbuilderproj\target\earbuilderproj-1.0\META-INF\application.xml does not exist. Three Questions: 1 - Is my directory structure correct? 2 - I thought that the application.xml file was supposed to be generated. Do you know why it's not being generated? 3 - What else am I missing to generate the EAR? Any help will be appreciated. Eric Starr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Problems with m2 site:site
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, I'm trying to generate a site from an installed/deployable application, and receive the following: [INFO] [INFO] Building Maven Quick Start Archetype [INFO] [INFO] maven-site-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] Setting property: classpath.resource.loader.class = ' org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] ** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : messages on : VM system will output logging messages [INFO] Velocimacro : autoload off : VM system will not automatically reload global library macros [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] [site:site] [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 1 second [INFO] Finished at: Thu Sep 01 10:48:15 PDT 2005 [INFO] Final Memory: 3M/7M [INFO] Additionally, I've installed a site.xml and created subdirectories/content for xdoc and apt. An executed m2 site:deploy successfully deploys my application but no generated site. Lastly, my platform is Win2k, although I've also verified the problem on RHEL3. Are there any thoughts/ideas regarding what's going wrong? Thanks for any assistance John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jesse mcconnell
Re: [M2] Problems with m2 site:site
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 correct moment and examined the contents. However it appears that the scp stage failed, as I ended up with a zip file on the server that unzipped to no contents. I notice there is an unusual -t switch on the scp - anybody know what that's for? On 1 Sep 2005, at 19:39, Jesse McConnell wrote: 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, I'm trying to generate a site from an installed/deployable application, and receive the following: [INFO] - --- [INFO] Building Maven Quick Start Archetype [INFO] - --- [INFO] maven-site-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] Setting property: classpath.resource.loader.class = ' org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] ** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : messages on : VM system will output logging messages [INFO] Velocimacro : autoload off : VM system will not automatically reload global library macros [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] [site:site] [INFO] - --- [INFO] BUILD SUCCESSFUL [INFO] - --- [INFO] Total time: 1 second [INFO] Finished at: Thu Sep 01 10:48:15 PDT 2005 [INFO] Final Memory: 3M/7M [INFO] - --- Additionally, I've installed a site.xml and created subdirectories/ content for xdoc and apt. An executed m2 site:deploy successfully deploys my application but no generated site. Lastly, my platform is Win2k, although I've also verified the problem on RHEL3. Are there any thoughts/ideas regarding what's going wrong? Thanks for any assistance John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jesse mcconnell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Problems with m2 site:site
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 problem witht he unzip, if you do this then it ought to work :) On 9/1/05, Ashley Williams [EMAIL PROTECTED] wrote: 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 correct moment and examined the contents. However it appears that the scp stage failed, as I ended up with a zip file on the server that unzipped to no contents. I notice there is an unusual -t switch on the scp - anybody know what that's for? On 1 Sep 2005, at 19:39, Jesse McConnell wrote: 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, I'm trying to generate a site from an installed/deployable application, and receive the following: [INFO] - --- [INFO] Building Maven Quick Start Archetype [INFO] - --- [INFO] maven-site-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] Setting property: classpath.resource.loader.class = ' org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] ** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : messages on : VM system will output logging messages [INFO] Velocimacro : autoload off : VM system will not automatically reload global library macros [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] [site:site] [INFO] - --- [INFO] BUILD SUCCESSFUL [INFO] - --- [INFO] Total time: 1 second [INFO] Finished at: Thu Sep 01 10:48:15 PDT 2005 [INFO] Final Memory: 3M/7M [INFO] - --- Additionally, I've installed a site.xml and created subdirectories/ content for xdoc and apt. An executed m2 site:deploy successfully deploys my application but no generated site. Lastly, my platform is Win2k, although I've also verified the problem on RHEL3. Are there any thoughts/ideas regarding what's going wrong? Thanks for
RE: How to tell the version of jar.
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 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 file(s) goggle found was the version of the jar (quite often in a Maven repository somewhere). A very nice tip. I've taken the liberty to post it on mavenbook.org: http://mavenbook.xwiki.com/xwiki/bin/view/Main/FindingVersionOfJar (I hope you don't mind) Thanks -Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] fileset
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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Problems with m2 site:site
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 artifactIdmaven-site-plugin/artifactId configuration unzipCommand/usr/bin/unzip -o err.txt/unzipCommand /configuration /plugin /plugins /pluginManagement /build there is some problem witht he unzip, if you do this then it ought to work :) On 9/1/05, Ashley Williams [EMAIL PROTECTED] wrote: 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 correct moment and examined the contents. However it appears that the scp stage failed, as I ended up with a zip file on the server that unzipped to no contents. I notice there is an unusual -t switch on the scp - anybody know what that's for? On 1 Sep 2005, at 19:39, Jesse McConnell wrote: 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, I'm trying to generate a site from an installed/deployable application, and receive the following: [INFO] --- -- --- [INFO] Building Maven Quick Start Archetype [INFO] --- -- --- [INFO] maven-site-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] Setting property: classpath.resource.loader.class = ' org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] ** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : messages on : VM system will output logging messages [INFO] Velocimacro : autoload off : VM system will not automatically reload global library macros [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] [site:site] [INFO] --- -- --- [INFO] BUILD SUCCESSFUL [INFO] --- -- --- [INFO] Total time: 1 second [INFO] Finished at: Thu Sep 01 10:48:15 PDT 2005 [INFO] Final Memory: 3M/7M [INFO] --- -- --- Additionally, I've installed a site.xml and created subdirectories/ content for xdoc and apt. An executed m2 site:deploy successfully deploys my application but no generated site. Lastly, my platform is Win2k, although I've also verified the problem on RHEL3. Are there any thoughts/ideas regarding what's going wrong? Thanks for any assistance John
Re: [M2] Problems with m2 site:site
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: /repository site idtest/id nametest/name urlscp://webserver.com/workspace//url /site downloadUrl/ /distributionManagement and in my settings.xml: server idtest/id usernamesystem username/username passwordsystem password/password /server Also, fyi, an application deploy seems to work ok. Thanks for any help! John On 9/1/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 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] [INFO] maven-site-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] Setting property: classpath.resource.loader.class = ' org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] ** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : messages on : VM system will output logging messages [INFO] Velocimacro : autoload off : VM system will not automatically reload global library macros [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] [site:site] [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 1 second [INFO] Finished at: Thu Sep 01 10:48:15 PDT 2005 [INFO] Final Memory: 3M/7M [INFO] Additionally, I've installed a site.xml and created subdirectories/content for xdoc and apt. An executed m2 site:deploy successfully deploys my application but no generated site. Lastly, my platform is Win2k, although I've also verified the problem on RHEL3. Are there any thoughts/ideas regarding what's going wrong? Thanks for any assistance John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jesse mcconnell ---BeginMessage--- Hi! This is the ezmlm program. I'm managing the users@maven.apache.org mailing list. I'm working for my owner, who can be reached at [EMAIL PROTECTED] Acknowledgment: I have added the address [EMAIL PROTECTED] to the users mailing list. Welcome to [EMAIL PROTECTED] Please save this message so that you know the address you are subscribed under, in case you later want to unsubscribe or change your subscription address. --- Administrative
Re: [m2] fileset
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 so that each project will only see the relevant files for compiling and jaring etc? Thanks - AW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m1] Conditional dependencies
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 same name but different contents. If you haven't already, you might consider using the same property in the artifact ID: artfactIdmyproject-${maven.shale.jsf.impl}/artifactId. You could also manipulate maven.final.name, I guess, but I think SNAPSHOT builds already do this, so you could end up with conflicts if you did it in the wrong place. Similarly, you could sprinkle that property around in other places to cause, for example, the site to deploy to a different location with a different title and slightly different description. Effectively you end up with two different object models that just happen to share the same codebase. Good luck, Jay -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Thursday, September 01, 2005 10:40 AM To: Maven Users List Subject: Re: [m1] Conditional dependencies From: Jay H. Hartley [EMAIL PROTECTED] 2) Create two different parent project files, and have the extends parameter depend on a property: project extends${jsf.project.file}/extends Jay, this turned out to work *perfectly*! project.properties: maven.shale.jsf.impl.default=myfaces -project.xml extend${maven.shale.jsf.impl.default}-project.xml/extend project.xml: extend${maven.shale.jsf.impl}-project.xml/extend And jsfri-project.xml or myfaces-project.xml declares dependencies on one JSF implementation or the other. So you can either set maven.shale.jsf.impl = [myfaces | jsfri ] or leave it out and let it default. -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] fileset
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 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] fileset, how to work on large projects
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 in thinking that Maven tries to get you to define multiple source trees, one for each artifact?? If so then that seems counter intuitive to me: surely there should be just the one source tree with many maven projects applying their own masks. To see where I'm coming from imagine a database of source code rather than a file system, so that the only structure you have is on package names in that database and not some added notion of there being entirely separate areas both beginning with com.. I understand that Eclipse uses some sort of source code database and would love to know Maven is bending in that direction also. Also maybe it's already in the works, but I think there should be a practical document on how to set up a large project using Maven as I'm sure that would speed up its adoption. Just a few thoughts anyway. - AW On 1 Sep 2005, at 22:06, dan tran wrote: 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 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] fileset, how to work on large projects
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 developers all working on many source files. Am I mistaken in thinking that Maven tries to get you to define multiple source trees, one for each artifact?? If so then that seems counter intuitive to me: surely there should be just the one source tree with many maven projects applying their own masks. The filters are there to help out with the transition from legacy build system to Maven. Occational we may want to do some filtering even within a maven project. Once source tree for many maven projects sound dangerous, basically you have the potential of a maven project depends on every other projects indirectly via the central source. To see where I'm coming from imagine a database of source code rather than a file system, so that the only structure you have is on package names in that database and not some added notion of there being entirely separate areas both beginning with com.. I understand that Eclipse uses some sort of source code database and would love to know Maven is bending in that direction also. Also maybe it's already in the works, but I think there should be a practical document on how to set up a large project using Maven as I'm sure that would speed up its adoption. I doubt eclipse is doing that. Just a few thoughts anyway. - AW On 1 Sep 2005, at 22:06, dan tran wrote: 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 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m1]No dependencies get resolved
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 C:\projects\esf\container\src\java\esf\agents\JdmkAgent.java:3: package org.mule.management.agents does not exist public class JdmkAgent extends org.mule.management.agents.JdmkAgent{ Please help me out I see that everything is added into [DEBUG] Adding reference: maven.dependency.classpath but when it finally compiles is like no jar has been added to the Classpath. Hope you can help on this because I'm helpless. Using JDK 1.5.0, Maven 1.0.2, Windows 2000 SP4 Regards, Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
downloading Maven source code from SVN
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 get errors (below); am I doing something wrong? svn co http://svn.apache.org/repos/asf/maven/maven-1/core/trunk maven-1/core/trunk svn: PROPFIND request failed on '/repos/asf/maven/maven-1/core/trunk' svn: PROPFIND of '/repos/asf/maven/maven-1/core/trunk': 500 Server Error (http://svn.apache.org) svn co http://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk maven-1/plugins/trunk svn: PROPFIND request failed on '/repos/asf/maven/maven-1/plugins/trunk' svn: PROPFIND of '/repos/asf/maven/maven-1/plugins/trunk': 500 Server Error (http://svn.apache.org) NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] site:site has errors
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 copy of repository metadata for group: 'org.apache.maven.plugins' from: C:\Documents and Settings\Matthew Smalley\.m2\repository\org\apache\maven\plugins\maven-metadata.xml [INFO] maven-site-plugin: using locally installed snapshot [INFO] maven-plugin-parent: using locally installed snapshot [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [site:site] [INFO] [INFO] plexus-site-renderer: resolved to version 1.0-alpha-2-20050817.212022-1 from local repository [INFO] plexus-components: resolved to version 1.1.1-20050803.041918-2 from local repository [INFO] plexus-velocity: resolved to version 1.2-20050801.19-2 from local repository [INFO] doxia-core: resolved to version 1.0-alpha-4-20050818.065945-3 from local repository [INFO] Setting property: classpath.resource.loader.class = 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on = 'false'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] Setting property: resource.manager.logwhenfound = 'false'. [INFO] ** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] [site:site] [INFO] Generate an index file for the Default version. [ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0 [ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0 [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 1 second [INFO] Finished at: Thu Sep 01 23:11:15 BST 2005 [INFO] Final Memory: 3M/7M [INFO] Note the errors around VM_global_library.vm. Any ideas? Thanks in advance. Matthew.
Re: [m2] site:site has errors
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] Note the errors around VM_global_library.vm. Those can be ignored, Velocity is just extremly verbose and is using the wrong level for that kind of output. -- Trygve signature.asc Description: Digital signature
Re: [m2] maven, how to work on large projects
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 example you checked in class com.acme.model.MyModel.java that had an import to com.acme.ui.MyUI.java, it literally wouldn't compile as the Ant script would let your particular code see that package and cruise control would report an error. In other words we solved dependency issues using java package based rules, enforcing them with ant scripts. Believe me compared to many projects I've been on it was a godsend seeing all the code in one directory. We even used clearcase config specs so that we could see just the code we were interested in so that our machines wouldn't fall over with the strain. With regards to eclipse read the following url http://mindprod.com/ jgloss/eclipse.html. For those that can't be bothered it explains how Eclipse is essentially a structured database which shouldn't surprise anybody who has previously used VisualAge when it wasn't ... well, dead. In fact with VisualAge we never ever used to export the source code to the filing system, we would just generate the customer release jars direct onto CD ready for customer updates every couple of months. Cheers - AW On 1 Sep 2005, at 22:57, dan tran wrote: 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 developers all working on many source files. Am I mistaken in thinking that Maven tries to get you to define multiple source trees, one for each artifact?? If so then that seems counter intuitive to me: surely there should be just the one source tree with many maven projects applying their own masks. The filters are there to help out with the transition from legacy build system to Maven. Occational we may want to do some filtering even within a maven project. Once source tree for many maven projects sound dangerous, basically you have the potential of a maven project depends on every other projects indirectly via the central source. To see where I'm coming from imagine a database of source code rather than a file system, so that the only structure you have is on package names in that database and not some added notion of there being entirely separate areas both beginning with com.. I understand that Eclipse uses some sort of source code database and would love to know Maven is bending in that direction also. Also maybe it's already in the works, but I think there should be a practical document on how to set up a large project using Maven as I'm sure that would speed up its adoption. I doubt eclipse is doing that. Just a few thoughts anyway. - AW On 1 Sep 2005, at 22:06, dan tran wrote: 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 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 -- -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] site:site has errors
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 PROTECTED] Sent: 01 September 2005 23:20 To: Maven Users List Subject: Re: [m2] site:site has errors 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] Note the errors around VM_global_library.vm. Those can be ignored, Velocity is just extremly verbose and is using the wrong level for that kind of output. -- Trygve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
exclude example
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 doing this correctly? sourceModifications sourceModification excludes excludecom/abc/*/exclude excludecom/cdf/*/exclude /excludes /sourceModification /sourceModifications Brandon Goodin
Re: [m2] maven, how to work on large projects
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 package was using various Ant masks, so that if for example you checked in class com.acme.model.MyModel.java that had an import to com.acme.ui.MyUI.java, it literally wouldn't compile as the Ant script would let your particular code see that package and cruise control would report an error. If you are able to move the package to its own source tree under a maven project , there is no need to set up any mask right? Second, the developer only needs to download the minimal source to work with rather then the whole source tree. In other words we solved dependency issues using java package based rules, enforcing them with ant scripts. Believe me compared to many projects I've been on it was a godsend seeing all the code in one directory. We even used clearcase config specs so that we could see just the code we were interested in so that our machines wouldn't fall over with the strain. With regards to eclipse read the following url http://mindprod.com/ jgloss/eclipse.html. For those that can't be bothered it explains how Eclipse is essentially a structured database which shouldn't surprise anybody who has previously used VisualAge when it wasn't ... well, dead. In fact with VisualAge we never ever used to export the source code to the filing system, we would just generate the customer release jars direct onto CD ready for customer updates every couple of months. Cheers - AW On 1 Sep 2005, at 22:57, dan tran wrote: 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 developers all working on many source files. Am I mistaken in thinking that Maven tries to get you to define multiple source trees, one for each artifact?? If so then that seems counter intuitive to me: surely there should be just the one source tree with many maven projects applying their own masks. The filters are there to help out with the transition from legacy build system to Maven. Occational we may want to do some filtering even within a maven project. Once source tree for many maven projects sound dangerous, basically you have the potential of a maven project depends on every other projects indirectly via the central source. To see where I'm coming from imagine a database of source code rather than a file system, so that the only structure you have is on package names in that database and not some added notion of there being entirely separate areas both beginning with com.. I understand that Eclipse uses some sort of source code database and would love to know Maven is bending in that direction also. Also maybe it's already in the works, but I think there should be a practical document on how to set up a large project using Maven as I'm sure that would speed up its adoption. I doubt eclipse is doing that. Just a few thoughts anyway. - AW On 1 Sep 2005, at 22:06, dan tran wrote: 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 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 -- -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: exclude example
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 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 doing this correctly? sourceModifications sourceModification excludes excludecom/abc/*/exclude excludecom/cdf/*/exclude /excludes /sourceModification /sourceModifications Brandon Goodin
Re: [m2] Ear Plugin problem... Generating EAR from two WARs(subprojects)
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 | | | | \|/ | |-module--[proj1]| |\|/ |-module--[proj2] apps.pom project modelVersion4.0.0/modelVersion groupIdcom.myco/groupId artifactIdapps/artifactId packagingpom/packaging !-- Notice that this is pom -- version1.0/version namesub projects/name modules moduleearbuilderproj/module moduleproj1/module moduleproj2/module /modules /project And for each of child project (earbuilderproj, proj1 and proj2) will have an additional parent xml node: project modelVersion4.0.0/modelVersion ... parent groupIdcom.myco/groupId artifactIdapps/artifactId version1.0/version /parent /project Regards, Edward - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: downloading Maven source code from SVN
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: 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 get errors (below); am I doing something wrong? svn co http://svn.apache.org/repos/asf/maven/maven-1/core/trunk maven-1/core/trunk svn: PROPFIND request failed on '/repos/asf/maven/maven-1/core/trunk' svn: PROPFIND of '/repos/asf/maven/maven-1/core/trunk': 500 Server Error (http://svn.apache.org) svn co http://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk maven-1/plugins/trunk svn: PROPFIND request failed on '/repos/asf/maven/maven-1/plugins/trunk' svn: PROPFIND of '/repos/asf/maven/maven-1/plugins/trunk': 500 Server Error (http://svn.apache.org) Seems like the repository has some internal errors, it's been known to happen from time to time. Please try again later. -- Trygve NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: downloading Maven source code from SVN
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 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: 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 get errors (below); am I doing something wrong? svn co http://svn.apache.org/repos/asf/maven/maven-1/core/trunk maven-1/core/trunk svn: PROPFIND request failed on '/repos/asf/maven/maven-1/core/trunk' svn: PROPFIND of '/repos/asf/maven/maven-1/core/trunk': 500 Server Error (http://svn.apache.org) svn co http://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk maven-1/plugins/trunk svn: PROPFIND request failed on '/repos/asf/maven/maven-1/plugins/trunk' svn: PROPFIND of '/repos/asf/maven/maven-1/plugins/trunk': 500 Server Error (http://svn.apache.org) Seems like the repository has some internal errors, it's been known to happen from time to time. Please try again later. -- Trygve NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: downloading Maven source code from SVN
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 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 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: 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 get errors (below); am I doing something wrong? svn co http://svn.apache.org/repos/asf/maven/maven-1/core/trunk maven-1/core/trunk svn: PROPFIND request failed on '/repos/asf/maven/maven-1/core/trunk' svn: PROPFIND of '/repos/asf/maven/maven-1/core/trunk': 500 Server Error (http://svn.apache.org) svn co http://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk maven-1/plugins/trunk svn: PROPFIND request failed on '/repos/asf/maven/maven-1/plugins/trunk' svn: PROPFIND of '/repos/asf/maven/maven-1/plugins/trunk': 500 Server Error (http://svn.apache.org) Seems like the repository has some internal errors, it's been known to happen from time to time. Please try again later. -- Trygve NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hot to set the prefix for a plugin
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 repo/com/intervoice/maven/plugins directory with the following content: metadata groupIdcom.intervoice.maven.plugins/groupId plugins plugin prefixhello/prefix artifactIdmaven-hello-plugin/artifactId /plugin /plugins /metadata Since I didn't create it, m2 must have, however I have not found a way to actually use the prefix 'hello' with my goals. Also I use to have a settings.xml file, but since I wiped everything out and started fresh by building 2.0-beta-1, I no longer have a settings.xmlauto-generated. In its place I now have a plugin-registry.xml file. Somewhere, can't find the message at the moment, I saw an email that said I needed to add an xml fragment to my settings.xml, however the settings descriptor document doesn't show where to any prefix/ element. So in a nutshell, how do I make this work? Wendell
Re: downloading Maven source code from SVN
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 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 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 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: 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 get errors (below); am I doing something wrong? svn co http://svn.apache.org/repos/asf/maven/maven-1/core/trunk maven-1/core/trunk svn: PROPFIND request failed on '/repos/asf/maven/maven-1/core/trunk' svn: PROPFIND of '/repos/asf/maven/maven-1/core/trunk': 500 Server Error (http://svn.apache.org) svn co http://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk maven-1/plugins/trunk svn: PROPFIND request failed on '/repos/asf/maven/maven-1/plugins/trunk' svn: PROPFIND of '/repos/asf/maven/maven-1/plugins/trunk': 500 Server Error (http://svn.apache.org) Seems like the repository has some internal errors, it's been known to happen from time to time. Please try again later. -- Trygve NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven beta 1.1 artifact plugin
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} / /goal I have setup the repository in the build.properties. When I run this I get: __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.1-beta-1 build:start: toRepository: [echo] Deploying... BUILD FAILED java.lang.NoSuchMethodError: org.apache.maven.project.Dependency.setProperties(Ljava/util/List;)V at org.apache.maven.artifact.PomRewriter.getRewrittenModel(PomRewriter.java:124) at org.apache.maven.artifact.PomRewriter.getRewrittenPom(PomRewriter.java:57) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.handleDeploy(DefaultArtifactDeployer.java:1 at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:102) at org.apache.maven.artifact.deployer.DeployBean.deploy(DeployBean.java:142) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java:180) at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:102) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:79) at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:102) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:78) at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:109) at org.apache.maven.werkz.Goal.fire(Goal.java:656) at org.apache.maven.werkz.Goal.attain(Goal.java:592) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:693) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263) at org.apache.maven.cli.App.doMain(App.java:511) at org.apache.maven.cli.App.main(App.java:1258) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) File.. c:\maven_local\cache\maven-artifact-plugin-1.5.2\plugin.jelly Element... artifact:artifact-deploy Line.. 90 Column -1 org.apache.maven.project.Dependency.setProperties(Ljava/util/List;)V Total time : 3 seconds Finished at : Friday, 2 September 2005 10:50:24 NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank.
Re: Maven beta 1.1 artifact plugin
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 goal in my project's maven.xml: goal name=toRepository artifact:deploy artifact=${maven.build.dir}/transact.war type=war project=${pom} / /goal I have setup the repository in the build.properties. When I run this I get: __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.1-beta-1 build:start: toRepository: [echo] Deploying... BUILD FAILED java.lang.NoSuchMethodError: org.apache.maven.project.Dependency.setProperties(Ljava/util/List;)V at org.apache.maven.artifact.PomRewriter.getRewrittenModel( PomRewriter.java:124) at org.apache.maven.artifact.PomRewriter.getRewrittenPom(PomRewriter.java :57) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.handleDeploy (DefaultArtifactDeployer.java:1 at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy( DefaultArtifactDeployer.java:102) at org.apache.maven.artifact.deployer.DeployBean.deploy(DeployBean.java :142) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java :180) at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java :102) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:79) at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java :102) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag( MavenGoalTag.java:78) at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction (MavenGoalTag.java:109) at org.apache.maven.werkz.Goal.fire(Goal.java:656) at org.apache.maven.werkz.Goal.attain(Goal.java:592) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java :693) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263) at org.apache.maven.cli.App.doMain(App.java:511) at org.apache.maven.cli.App.main(App.java:1258) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) File.. c:\maven_local\cache\maven-artifact-plugin-1.5.2\plugin.jelly Element... artifact:artifact-deploy Line.. 90 Column -1 org.apache.maven.project.Dependency.setProperties(Ljava/util/List;)V Total time : 3 seconds Finished at : Friday, 2 September 2005 10:50:24 NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank.
Re: Hot to set the prefix for a plugin
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 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 repo/com/intervoice/maven/plugins directory with the following content: metadata groupIdcom.intervoice.maven.plugins/groupId plugins plugin prefixhello/prefix artifactIdmaven-hello-plugin/artifactId /plugin /plugins /metadata Since I didn't create it, m2 must have, however I have not found a way to actually use the prefix 'hello' with my goals. Also I use to have a settings.xml file, but since I wiped everything out and started fresh by building 2.0-beta-1, I no longer have a settings.xmlauto-generated. In its place I now have a plugin-registry.xml file. Somewhere, can't find the message at the moment, I saw an email that said I needed to add an xml fragment to my settings.xml, however the settings descriptor document doesn't show where to any prefix/ element. So in a nutshell, how do I make this work? Wendell