Re : Re: Maven JET
You tried using xdoc2? http://xdoclet.codehaus.org/ As powerful if not more than JET and doesn't need Eclipse. Eric. - Message d'origine - De: nicolas de loof [EMAIL PROTECTED] Date: Mardi, 27 Mai 2008, 11:36 Objet: Re: Maven JET À: Maven Users List users@maven.apache.org I made some experiments on my side to use JET for an incremental code generator (generated code is merged with user changes), but this requiresthe full eclipse AJT... this CAN work with an headless eclipse (eclipse without UI), but require an installed eclipse (not just Jars). Nico. 2008/5/27 John Coleman [EMAIL PROTECTED]: Hi, I'd like to compile JET templates in Maven so I don't need to use Eclipse. I just wondered if anyone else has done this or would like to do it and has ideas to contribute? Best regards, John Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E- Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail. Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error, please notify us immediately, and then delete this E-mail. Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments. Eurobase Systems Limited is the main trading company in the Eurobase International Group; registered in England and Wales as company number 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, UK. --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re : Passing System Variables to Maven
Hi DavidThose are all already available in the Java environment running Maven. If the property your are looking for is not in the system default, you pass them in the command line using the -D option.Hope it helps.Eric.- Message d'origine -De: David Williams [EMAIL PROTECTED]Date: Lundi, Juillet 30, 2007 1:04 pmObjet: Passing System Variables to MavenÀ: Maven Users List users@maven.apache.org Hi Everyone, How do you pass system environment variables like system date or system time to maven. I'm running maven on a windows machine. Thanks, David
Re: .cvspass file not found on windows.
Try running: changelog:create-cvspass Hope it helps Eric. Mick Knutson wrote: I am trying to setup scm in maven, and I am using wincvs to access my cvs server. I have searched, and do not find a .cvspass file and maven is also complaining about this. How do I fix this issue? Create a .cvspas file? How with WinCvs? Thank You Mick Knutson Sr. Java/J2EE Consultant BASE logic, inc. (415) 648-1804 (S.F., CA) http://www.BASELogic.com HP Consulting Services (Walnut Creek, CA) - 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: A couple of application deployment questions
Hello Chriss Chris Rose wrote: First, we're making a home-user sort of application. Ideally, we want os-native executables to be launching this app. We can generate the executables using ant tasks, for the most part, but I'm not sure how to integrate this into our build. Using a custom goal you will write in the maven.xml that will call you ant task to complete do the trick. Second, and as a consequence of that, we want to create cross-platform installers that will perform a seamless installation of our application, along with its dependencies. To this end, we need some way of toting all of our dependencies with us in the distribution jar file, or something equivalent. Check out what the uber-dist plugin offers. This guy lets you build a custom distribution then zip (tar/gzip) it. It offers also ways to copy dependencies in custom publish directories. You can find the plugin and its doc at: http://uber-dist.sourceforge.net/ Hope it helps Eric. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Excluding dependencies from the runtime classpath
Hello guys I would have a suggestion concerning this. Right now, my uber-dist plugin allows that. In fact, its implemented the other way around. You specify using dependencies properties if this dependency must be deployed or not. If it is, you can override the deployment directory (so that it can be put in a sub-directory) and using another property, you can override its deployment name. The use case... When we have a project that is deployed on an existing framework, usually, your project will need the framework libraries to compile, but of course, you won't have to deploy those libraries since they are usually part of the framework uppon which your services will get installed. The frameword installation program takes care of putting all necessary files where they belong, and it will also (most of the time) indicate exactly where you must put your own libraries that extends its functionnalities. There must be other situations but this one describes in the first place why I needed the new plugin. Cheers! Eric. Jason van Zyl wrote: On Thu, 2005-06-02 at 07:46 -0400, McGarr, Joseph M. wrote: Hi all, I have used Maven 1 in my free time and have been trying to migrate my client to the product as well. I have just started using M2 and like what I see but I have a few questions, the first of which is, how do I tell M2 to include a dependency only in the compile scope and not the runtime scope. The details of the problem are I am building a war, but I do not want dependencies like the Servlet API to be bundled in the jar, since the application server will already provide this. Any suggestions? I am assuming that I have missed something. What's your specific use case? Does it happen to be a case where a container provides the dependency at runtime? We're trying to collect these use cases now as we're doing design and implementing in this phase of development i.e. for the alpha-3 release. Thanks, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disable Automatic Plugin Updates in Maven ? + Config management question in [m2]
That's excellent! You're right, I didn't got the answer, there seems to be a small problem with the list today. Got a failed delivery message. Great, impressive work Brett! Eric. Brett Porter wrote: On 5/20/05, Eric Giguere [EMAIL PROTECTED] wrote: Hey guys! So here is the question: Was that thought of in Maven 2.0? Will it be possible to save the configuration used to build and dig it out when its needed? Yes (I think this was in my response to Jamie, but the mail has been slow arriving, so not sure if you got it). You can put the plugin versions in your POM to ensure it always behaves the same. The release plugin will help you populate them at the point you cut a release. - Brett - 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: Disable Automatic Plugin Updates in Maven ? + Config management question in [m2]
Hey guys! How convenient... I just wanted to ask a question for Maven 2.0 concerning this topic: configuration management. It's not only a matter of corporate procedures. but rather a general configuration mangement issue. When you release a software product, if you want to have a reproducible build, you must save the complete configuration and that includes you build system. With standard IDEs or languages like C or C++, its pretty straight forward. You save the compiler's version and options you used, same thing with all external libraries. You may have to check in also the compiler itself or any other tool you require to build your system, you tag all your sources and you're almost done. With Maven, its may be a little more complicated. Not only the engine itself is evoluting but all plugins are constantly changing to. I myself wrote a plugin and I know that if I checkout an old version of my project (lets say one from last year), I will have to modify the build script that was savec in CVS because there is something missing that is now required by new version of the plugin. In other words, what was building without problems a year agon with Maven 1.0 and some plugins won't build today. So here is the question: Was that thought of in Maven 2.0? Will it be possible to save the configuration used to build and dig it out when its needed? Without going in the very specific details, I think that if we can tell maven to use a specific version of a plugin even if newer versions are available and installed, it'll fix most config. management issues. A specialize maven plugin could do that save and load config, as long as the core engine accepts overrides on which plugin version to use instead of always picking up the latest. thx! Eric. Jamie Bisotti wrote: Even though a plug-in update should be checked, tested and harmless, lots of corporations have a lot of processes in place regarding build reproducability. Doing a build with the updated v1.1 maven-foo-plugin could cause the build to look ever so slightly different than the build previously done with the orignial v1.0. This could cause red flags to go flying. I'd think an easy flag for disabling automatic plug-in updating is a must. On 5/19/05, Brett Porter [EMAIL PROTECTED] wrote: A couple of ways presently: - use -o on the command line (it can be in MAVEN_OPTS), but this disables all downloads - ad a pluginRepository to your project (or one you inherit from) with id = central and snapshotPolicynever/snapshotPolicy - explicitly list all plugins you use in pom.xml with their versions. We intend to improve this in the next release: http://jira.codehaus.org/browse/MNG-379 Note that plugin updates should only be checked, and published after sufficient testing so there should be no harm in leaving it enabled at the moment. Regards, Brett On 5/19/05, Malcolm Wong Ho [EMAIL PROTECTED] wrote: How do i disable the Automatic Maven Plugin Updates in Maven2 ? -- Malcolm Wong Ho May you live in uninteresting times. -- Chinese proverb - 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: Need advice on deploying compoent software
Hello How did you build your Maven project for it? Do you have 5 projects (one per component) or 1 project that does it all? There is no universal way of deploying a multi-component system. It all depends first if these components can be deployed stand-alone or not. If not, I fail to see why they should be packaged seperately. I play with a pretty large project at work, based on a commercial framework over which we add new services. The services, even if they can be seen as components since we can add or remove them even without restarting the system, are all part of THE big project, no sub-projects for them and not deployed packages. Its been in production for nearly 2 years now and never did we upgraded only a single service as a component upgrade Each time, marketing and product management and ISO isssues lead us to issue either minor upgrades (when we add new functionalities) or patches if we correct major bugs. In another project, we patch some of the framework jars with some internal fixes. These are built and published with a different maven project and part of our internal library repository. Along with this, we also have some minor utilities to perform specific jobs. For that kind of project, I use 1 maven project per component. These projects do depends on some jars of the big one and since we didn't feel it was necessary to publish all the system's jars (over 100!) as libraries, I've build the maven projects for those as sub-projects of the master maven project. Doing this allowed me that have access to the master project's sources and share the target directory so that when we compile the big one, the small ones could use the same class files thus speeding up the build. The packaging and deployement is seperate for all projects though. If you have a distribution that goes beyond what the dist plugin offers, I suggest you take a look at the distribution plugin I wrote. You can find it on Source Forge, its called uber dist : http://sourceforge.net/projects/uber-dist Just updated the plugin today :). Hope it helps Eric. Helck, Christopher wrote: I know this could be a huge topic, but I have to start somewhere and I suspect that this issue is common for maven users. We've successfully migrated a project from Ant to Maven. In the process we've broken a large application into 5 components. Currently we deploy and install the entire thing as one entity using InstallShield. All the jar files go under one application directory. Upgrading to the next release means creating another application directory and adjusting a symbolic link to point to it. In the past if we needed to make a patch we'd create (by hand) a patch.jar that had the changes and placed it at the front of the classpath. I'd like to get away from this. Instead I'd like to just release a new version of the changed component. The question is how should my production environment be setup to make this easy/possible? Thanks, Christopher The information contained in this e-mail is confidential. This e-mail is intended only for the stated addressee. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. if you have received this e-mail in error, please inform us immediately and delete it and all copies from your system. EBS Dealing Resources International Limited. Registered address: 10 Paternoster Square, London EC4M 7DY, United Kingdom. Registered number 2669861. EBS Dealing Resources, Inc, registered in Delaware. Address: 535 Madison Avenue, 24th Floor, New York, NY 10022, USA, and One upper Pond road, Building F - Floor 3, Parsippany, NJ 07054, USA. EBS Dealing Resources Japan Limited, a Japanese Corporation. Address: Asteer Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku, Tokyo 104-0033, Japan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generate manifest classpath entry?
Yes it is Take a look at the jar plugin properties: http://maven.apache.org/reference/plugins/jar/properties.html In short, you must set the property: maven.jar.manifest.classpath.add=true And in your project.xml, in each dependency, add the following property: properties jar.manifest.classpathtrue/jar.manifest.classpath /properties That should do the trick. Hope it helps. Eric. Wim Deblauwe wrote: Hi, is it possible to generate a Class-Path entry in the generated manifest file that includes all dependend jars? See http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#Main%20Attributes for more info regards, Wim - 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: Howto add a menu after development process?
Hello Took a long time to answer but had to try it first :). You have to modify the navigation.jelly file from the plugin-resources of the xdoc plugin. Near the end of the file, you will see the code that acutally add the Development process item. Add your item there. But of course, this addition will affect every project you have since the plugin's code is modified. Hope it helps Eric. Thomas Michel wrote: Hi, i would like to add a menu after the item development process in the navigation menu. How can i do this? All menu items defined in my navigation.xml are arranged above the project documentation area. Thanks for answer and sorry for my english. Bye Thomas - 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: OS-conditional report generation
Hey Alex! Ok, I lead you in the wrong direction, well, partially. The tag cannot be used by itself :(, was not designed after all to be used like this. The problem is that the pom object is the one holding the list of reports to be genrated and then based on this list, the registers are called. Made it work a little differently :). Take a look: In project.xml: reports/ (or nothing at all is ok too tried it and it works). In your maven.xml preGoal name=xdoc:register-reports echo message=registering my reports.../ j:expr value=${pom.addReport('maven-javadoc-plugin');}/ j:expr value=${pom.addReport('maven-checkstyle-plugin');}/ /preGoal This works perfectly here with Maven 1.0. I guess it also will with other more recent version. Eric. Alex Borchers wrote: Hi Eric, In trying to implement your suggestion, from reports in project.xml I've eliminated all but maven-junit-report-plugin and created a new goal in maven.xml. I've searched the archives but have been figure out the syntax to manually register reports with the xdoc plug-in via its registerReports tag. Here is the relevant section from the maven.xml (in this case register the checkstyle report if OS is Linux): goal name=regReports j:when test=${systemScope['os.name'].startsWith('Linux')} [register checkstyle report here] /j:when /goal Thanks so much, Alex -Original Message- From: Eric Giguere [mailto:[EMAIL PROTECTED] Sent: Thursday, February 17, 2005 5:55 AM To: Maven Users List Subject: Re: OS-conditional report generation Hello Alex Maybe creating a goal in your maven.xml that will manually register the reports you want to run instead of using the built-in mechanism offered by the reports tag in you project.xml? Note that you still have to supply at least 1 report in the project.xml otherwise, default behavior of the xdoc plugin will fill the report list with a bunch of default report. I guess that registering your reports before the plugin gets invoke would also do the trick. There is a registerReport tag in the doc taglib declared by the xdoc plugin that can be used to do so. Hope it helps Eric. Alex Borchers wrote: I am new to Maven and would like some guidance as to how to best achieve the following: I have a project that needs to be each compiled/tested on osx, win, and linux platforms and the results published to a project web site. In searching these archives, I've determined how to detect the OS within maven.xml, and would like to now use that information to specify which reports get executed during site:generate on each platform. What I'm aiming for is to have all reports generated when site:generate is run on linux, but on mac and windows, just have the junit report created as junit-report-mac.html and junit-report-win.html. If possible I'd like to do something cleaner than create OS-specific cleans as a post-goal (i.e. have only the reports generated as a function of the OS). Thank you. - 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: is there a way to force maven to always download a dependency?
Hi No, cannot. But I would suggest to version all your jars and maybe remove the versions at deployment if it is an issue. We are using this technique and the jar compatibility nightmare (jars in cvs, versions clashing, etc) ended and never came back! HTH. Eric. [EMAIL PROTECTED] wrote: What if some jar files are not versioned (and maybe will never be versioned). Is there a way to force Maven to always go to the remote repositories to resolve dependencies? I've tried SNAPSHOT, but that does not reload a dependency every time a build is executed. Thanks for your help. Tom This message is intended for the recipient only and is not meant to be forwarded or distributed in any other format. This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument, or security, or as an official confirmation of any transaction. Putnam does not accept purchase or redemptions of securities, instructions, or authorizations that are sent via e-mail. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of Putnam, LLC (DBA Putnam Investments) and its subsidiaries and affiliates. If you are not the intended recipient of this e-mail, please delete the e-mail. - 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: is there a way to force maven to always download a dependency?
Hi Thomas. Ah, got the wrong guy ;) I'm not a Maven way zealot.. I create and modify plugins so that maven fits my needs and not the other way around. Maven is an integration/building tool, (and a great one) not a religion.. not for me anyway. I have no problems at all twisting it and making it more adapted to real life (pronounce: typical-not-so-organized-company-produced-software-projects...) projects. Take a look at my plugin then: named uber-dist. It resides on sourceforge. Maybe it can help you. This guy introduced properties for dependency for automatic dependency publishing with renaming capabilities (to eliminate the version for instance). I am a team leader in a company that didn't have any clue about maven before me. I did though versionned the jars when I migrated the project from Ant to Maven. It was a little pain at the beginning but now, we rely on the central repository and the team never messes up now since all is driven though the project.xml. Our main project is not at all the perfect Maven project template. The main project builds I don't know how many artifacts, I have multiple sub-projects that uses the parent's sources as well as the parent's target. But everything works just perfectly now. Most of those projects were alive before Maven came in. Here, take a look, an example on an extended dependency definition we use with the plugin: dependency groupIdcommons-digester/groupId artifactIdcommons-digester/artifactId version1.5/version urlhttp://jakarta.apache.org/commons/digester//url properties CMS.deploytrue/CMS.deploy jar.dependency.dist.dirlib/3rdparty/catalina/jar.dependency.dist.dir jar.dependency.dist.namecommons-digester.jar/jar.dependency.dist.name !-- NOTE: Required by struts.jar -- /properties /dependency With these, you can deploy, in the subdirectory you want and the jar gets renamed. But, in terms of configuration management, you always know what exact version you need by looking at project.xml... not at the actual distribution since nearly all the jars gets renamed. Legacy stuff... GLuck with your project then Eric. The CMS.deploy tells upber [EMAIL PROTECTED] wrote: ok, I understand that it goes against all that Maven stands for :-) But I wish there were some property that could be added on a per-dependency basis that would force Maven to download the dependency every build. Just for weird situations, like teams working on company projects don't want to get into versioning their jars. Thanks again. Tom Eric Giguere [EMAIL PROTECTED] eotron.ca To Maven Users List 02/02/2005 12:54 users@maven.apache.org PM cc Subject Please respond to Re: is there a way to force maven Maven Usersto always download a dependency? List [EMAIL PROTECTED] he.org Hi No, cannot. But I would suggest to version all your jars and maybe remove the versions at deployment if it is an issue. We are using this technique and the jar compatibility nightmare (jars in cvs, versions clashing, etc) ended and never came back! HTH. Eric. [EMAIL PROTECTED] wrote: What if some jar files are not versioned (and maybe will never be versioned). Is there a way to force Maven to always go to the remote repositories to resolve dependencies? I've tried SNAPSHOT, but that does not reload a dependency every time a build is executed. Thanks for your help. Tom This message is intended for the recipient only and is not meant to be forwarded or distributed in any other format. This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument, or security, or as an official confirmation of any transaction. Putnam does not accept purchase or redemptions of securities, instructions, or authorizations that are sent via e-mail. All market prices, data
Re: Download jars (newbie)
Hi there Not that I know of but if you tried to run site:generate with all known reports generated in your project, you will get a lot of jars that could suite your needs for many project types. Hope it helps Eric. Treviño De la Garza, Isidoro wrote: Hi, Is there a goal in maven so you can download all the jar dependencies of ALL the plugins you have installed? I ask this because I have a modem connection and would like to download all the jars during the night so I don't have to connect from time to time Regards Isidoro Treviño - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Adding to the classpath
Hi No, and yes, explanations. No, you cannot add anything in the classpath of java:compile goal unless its a dependency declared in the project.xml and it does not support directories. But I have a solution that involved modifying (a single line) in the java plugin. If you are not afraid of producing your own plugin (very easy believe me), here is the diff between version maven-java-plugin 1.5 (official) and 1.5.1 (my custom version of java plugin): RCS file: /home/cvs/cvsroot/utilities/maven-plugins/maven-java-plugin/plugin.jelly,v retrieving revision 1.1 retrieving revision 1.2 diff -w -b -i -r1.1 -r1.2 100a101 ant:pathelement path=${maven.compile.cp.extra.dir}/ So basically, in the java:compile goal, you add this new element in the classpath element of the javac ant:javac ant:classpath ant:path refid=maven.dependency.classpath/ ant:pathelement path=${maven.build.dest}/ there it is--ant:pathelement path=${maven.compile.cp.extra.dir}/ /ant:classpath ... /ant:javac Then set this property to your directory and you're done. I've proposed this way of solving and also creating a new dependency type: directory! But no news whatsoever and by looking at the original java plugin code, you'll se that there is absolutely no other way to add an entry in the cp. Hope it helps Eric. Litton, Tom - CEPM wrote: Is there any way to add additional directories to the classpath maven uses for compiling? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: classpath in manifest file
Hi You also need to add an attribute in each dependency you want to see in your class-path entry in the jar: Here's an exemple: dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.1.3/version properties jar.manifest.classpathtrue/jar.manifest.classpath /properties /dependency Hope it helps Eric. wqi wrote: Hi, I want to add the classpath information in the jar manifest file, I set both maven.jar.manifest.classpath.add property and maven.dependency.classpath to true. However, the classpath information still wasn't added to the manifest file. Is there any step that I missed? Please help. Thanks, -Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: calling multiproject:goal launches default goal instead
Hi Randy Yes, got an idea. I have personnaly been playing with the multiproject plugin and got tired of trying to control it from a maven script. If you want to do that kind of processing, you better call the reactor yourself instead of going through the multiproject. From what I understand of this plugin, its just a facade in front of the reactor. It offers a couple of predefined goal to launch plus the capability of specifying one on the command line. But, as far as I know, we cannot pass parameters to a goal we call. So, the be sure to have to right goal called, in your maven xml, insert a reactor tag and from there call the goal you want. Building the project list is very easy with the reactor tag, you have the includes and excludes property that allows full control on sub-projects filtering. Take a look there : http://maven.apache.org/reference/maven-jelly-tags/tags.html#maven:reactor Hope it helps Eric. Randy Xu wrote: Hi, I've been getting this a lot on my multiproject. From my multiproject root - I set a goal and run multiproject:goal like so: j:set var=goal value=move-ejb-descriptors scope=parent / attainGoal name=multiproject:goal / Then I define the goal name, also in my multiproject root (should be inherited): goal name=move-ejb-descriptors blah /goal Instead of running move-ejb-descriptors, it runs the default goal of multiproject:install. I stopped setting a default goal and it runs multiproject:artifact (which I assume is the default default goal). Any ideas here? -Randy - 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: [ANN] Maven uber-dist Plugin 1.0.10 released on Sourceforge
Absolutely Vincent I'll move the plugin then Brett. I'll start the process of getting in the other project's members. Next announcement will be like it should, thx Vincent! ;) Eric. Vincent Massol wrote: Hi guys, The latest version of the Announcement plugin has changed this in last November (there was already a JIRA issue on this). We're now saying: We are pleased to announce the ${pom.name} ${versionVariable} release![...] And it is signed with: Have fun! -The ${pom.name} development team Please note that the plugin also supports custom stylesheets. Would that do? Thanks -Vincent -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: jeudi 6 janvier 2005 23:50 To: Maven Users List Subject: Re: [ANN] Maven uber-dist Plugin 1.0.10 released on Sourceforge Since all plugins are in the maven group... and must be to be downloadable right? I took its output and removed the part for download. What should I put there then? That's not correct though. The maven group is for the Maven project - you should use your own group. Other than that it is fine. Really, the announcement should quote organization instead of pom.groupId though, anyway. Move the project? Ok, I guess I need to be registered in this other project on SF i guess? And that would help me how to get the plugin on the maven repote repos? There is an auotmatic sync. set up from their website to ibiblio. There would be too much overhead in doing this for every single sourceforge project, but I'm sure the plugin would be welcome to join that project. - Brett thx Eric. Brett Porter wrote: Can you please fix your announcements so it isn't from the maven team? Thanks. If you need better infrastructure such as a maven repository to deploy to that is sync'd to ibiblio, it might be worth moving this to maven-plugins.sf.net, and you could participate in the other plugins there too. Regards, Brett On Wed, 05 Jan 2005 16:21:40 -0500, Eric Giguere [EMAIL PROTECTED] wrote: The maven team is pleased to announce the Maven Uberdist plugin 1.0.10 release! Although it is now version 1.0.10, this is the first public release of the plugin. More info can be found at: http://sourceforge.net/projects/uber-dist/ This plugin provides a mechanism to build what we may call a complex distributions of both maven and non-maven projects or components. Automatic installation is not possible since the plugin is not on any maven public repositories. For a manual installation, you can download the plugin here: http://prdownloads.sourceforge.net/uber-dist/maven-uberdist-plugin- 1.0.10.jar?download Have fun! -The maven team - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Classpath issue
Hi all I have a small issue. I'm building some Eclipse plugins but the PDE environment build fails so I'm now writing a maven to fix the problem. To acheive the build, I need to reference some external directories in the classpath when I compile. Is there a way to do this using jelly code in a maven.xml? I manage to make this work by making a small change in the java plugin to support this, added a property that becomes a path element so we can add paths to the cp of the java compiler but if its not already in there.. it must be for a reason. But, by checking the jelly/java code of the plugin and from maven, it occured to me that this could be resolved by defining a new type of dependency, a path dependency. Does this make sense? If not, what would be the more maven-friendly way to go in those cases? Of course the classes could be packaged in a jar (they are in fact later on but inside another jar...) but since the jar holding the code is not the deliverable, it seems way overkill to jar it, deploy it so that it could be refered as a dependency. In some other projects, I've combine the target/classes directory to overcome but in this perticular case, I cannot use this approach. Any suggestions / comments? Eric. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Overriding src and test directories
Hi Doug Add this in your project.xml build ... sourceDirectory${basedir}/src/sourceDirectory unitTestSourceDirectory${basedir}/test/unitTestSourceDirectory ... /build Hope it helps Eric. Doug Knesek wrote: I want to override where maven looks for project source code. So, rather than this: |-- project.properties |-- project.xml `-- src |-- java | `-- com `-- test `-- com I want this: |-- project.properties |-- project.xml `-- src | `-- com `-- test `-- com Thanks - Doug - 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: [ANN] Maven uber-dist Plugin 1.0.10 released on Sourceforge
Sorry about that but its the default behavior of the announcement plugin isn't it? j:set var=header trim=true The ${pom.groupId} team is pleased to announce the ${pom.name} ${versionVariable} release! /j:set Since all plugins are in the maven group... and must be to be downloadable right? I took its output and removed the part for download. What should I put there then? Move the project? Ok, I guess I need to be registered in this other project on SF i guess? And that would help me how to get the plugin on the maven repote repos? thx Eric. Brett Porter wrote: Can you please fix your announcements so it isn't from the maven team? Thanks. If you need better infrastructure such as a maven repository to deploy to that is sync'd to ibiblio, it might be worth moving this to maven-plugins.sf.net, and you could participate in the other plugins there too. Regards, Brett On Wed, 05 Jan 2005 16:21:40 -0500, Eric Giguere [EMAIL PROTECTED] wrote: The maven team is pleased to announce the Maven Uberdist plugin 1.0.10 release! Although it is now version 1.0.10, this is the first public release of the plugin. More info can be found at: http://sourceforge.net/projects/uber-dist/ This plugin provides a mechanism to build what we may call a complex distributions of both maven and non-maven projects or components. Automatic installation is not possible since the plugin is not on any maven public repositories. For a manual installation, you can download the plugin here: http://prdownloads.sourceforge.net/uber-dist/maven-uberdist-plugin-1.0.10.jar?download Have fun! -The maven team - 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]
[ANN] Maven uber-dist Plugin 1.0.10 released on Sourceforge
The maven team is pleased to announce the Maven Uberdist plugin 1.0.10 release! Although it is now version 1.0.10, this is the first public release of the plugin. More info can be found at: http://sourceforge.net/projects/uber-dist/ This plugin provides a mechanism to build what we may call a complex distributions of both maven and non-maven projects or components. Automatic installation is not possible since the plugin is not on any maven public repositories. For a manual installation, you can download the plugin here: http://prdownloads.sourceforge.net/uber-dist/maven-uberdist-plugin-1.0.10.jar?download Have fun! -The maven team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trying to create developer group plugin
Hi If your newly published jar can be refered by another maven project (with a dependency entry in project.xml) and that the developpers build this project, the file will get automatically downloaded from the remote repo. Eric. Haile, Mussie wrote: I am not aware of doing this using Maven but you might want to take a look at AntFlow which has a function to monitor a specific folder where if their is a new version of file(s)you can in act another action etc.. -Original Message- From: Eric Black [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 2:35 PM To: [EMAIL PROTECTED] Subject: Trying to create developer group plugin Hi, I've created a plugin that I need to be able to distribute to our group's developers in an automatic way. We have our own repository of company specific jar files, so I want to put it in the same repository and have it get automatically downloaded and installed just like a standard maven plugin. Is there a way to do this, or will every user need to download the plugin and install it? 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: Distribution process [please ...]
Hello Sure, take a look at the XML taglib of jelly, could help you do it in jelly, so in a maven goal. Otherwise, there is always the possibility of calling a custom written Java class using again jelly tags like new, invoke, and so on. Hope it helps. Eric Michael Niemaz wrote: Could someone please give me a hint? Michael Niemaz wrote: Hi all, Is it possible to ask maven to modify/create/update download.xml so that I could add gzip links. Thanx, --mike - 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: Checkstyle: Running Very Slow
Hello Yes, edit your own starting from the sun_check.xml. For your config tweaks to be effective, try first locating the most common errors (and least significant in your case) and remove them from the checks that Checkstyle does. Then, make the checkstyle plugin use that new config file by setting this property in your project.properties: maven.checkstyle.format=custom Note that for this to work, you must put your custom_checks.xml file in the user_root/.maven/cache/maven-checkstyle-plugin-2.5-SNAPSHOT\plugin-resources Hope it helps Eric. Haile, Mussie wrote: Hej et al - Have you guys noticed that Checkstyle is very slow? I am running a multiproject which I need to run Checkstyle, PMD, JCaverage etc. to collect different metric and make sure every one is following the Sun Java Coding standards etc. I have found that it is averaging between 20-55 min per project to just run Checkstyle. I wanted to know if their is any configuration other than the Sun_check.xml I can do to make run faster? Thank You. -M- - 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: Checkstyle: Running Very Slow
Ah, thx for the info. Didn't knew that :) Eric. Ryan Sonnek wrote: you actually don't have to put your custom checks in the plugin resources directory. I place my checks directly in the project root and everything works fine for me. -Original Message- From: Eric Giguere [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 01, 2004 11:04 AM To: Maven Users List Subject: Re: Checkstyle: Running Very Slow Hello Yes, edit your own starting from the sun_check.xml. For your config tweaks to be effective, try first locating the most common errors (and least significant in your case) and remove them from the checks that Checkstyle does. Then, make the checkstyle plugin use that new config file by setting this property in your project.properties: maven.checkstyle.format=custom Note that for this to work, you must put your custom_checks.xml file in the user_root/.maven/cache/maven-checkstyle-plugin-2.5-SNAPSHOT\plugin-res ources Hope it helps Eric. Haile, Mussie wrote: Hej et al - Have you guys noticed that Checkstyle is very slow? I am running a multiproject which I need to run Checkstyle, PMD, JCaverage etc. to collect different metric and make sure every one is following the Sun Java Coding standards etc. I have found that it is averaging between 20-55 min per project to just run Checkstyle. I wanted to know if their is any configuration other than the Sun_check.xml I can do to make run faster? Thank You. -M- - 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: maven.jar.includes could not work?
Hello I think that the support for the include property in the jar plugin was lost during a merge for version 1.6 of the plugin, its a feature I've submitted earlier and it got lost. Check in the plugin.jelly file around the use of the jar tag, you should see in the jar:jar goal: ant:jar jarfile=${maven.build.dir}/${maven.final.name}.jar basedir=${maven.build.dest} index=${maven.jar.index} compress=${maven.jar.compress} excludes=${maven.jar.excludes} Replace this by: ant:jar jarfile=${maven.build.dir}/${maven.final.name}.jar basedir=${maven.build.dest} index=${maven.jar.index} compress=${maven.jar.compress} excludes=${maven.jar.excludes} includes=${maven.jar.includes} This will fix the problem. Hope it helps Eric. Adrian Tarau wrote: Hmmm, it doesn't work. I use it like this: in a postGoal jar:jar I want to call again the jar:jar goal with some properties changed to create another jar. For that I must changed maven.jar.includes and maven.jar.excludes to put a different classes in this second jar. postGoal name=jar:jar j:if test=${jar_second_loop != 'true'} j:set var=oldMavenFinalName value=${maven.final.name} / j:set var=maven.final.name value=${pom.artifactId}-j2ee-${pom.currentVersion}/ echoBuilding J2EE Notification JAR: ${maven.final.name}/echo attainGoal name=j2ee-jar:prepare-jar-filters/ j:set var=jar_second_loop value=true/ attainGoal name=jar:jar/ j:set var=maven.final.name value=${oldMavenFinalName}/ /j:if /postGoal and goal name=j2ee-jar:prepare-jar-filters maven:set plugin=maven-jar-plugin property=maven.jar.includes value=${notification.j2ee.includes}/ j:set var=maven.jar.excludes value=${oldJarExcludes}/ /goal -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Monday, November 22, 2004 5:25 PM To: Maven Users List Subject: Re: maven.jar.includes could not work? Depending on when you are calling that, you may need to use maven:set plugin=maven-jar-plugin property=maven.jar.includes value=com/xxx/yyy/** / - Brett On Mon, 22 Nov 2004 17:21:46 -0500, Adrian Tarau [EMAIL PROTECTED] wrote: Hi, I want to change maven.jar.includes from build.xml and I set the include pattern but the jar doesn't have any class inside(only the manifest). The pattern is j:set var=maven.jar.includes value=com/xxx/yyy/**/ Thanks. - 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: Put 30 legacy jars in a Maven repository?
Hi I also had to cope with the same number of foreign jars and a legacy Ant script to build everything. In my case, there was also a number of known jars like log4j, commons-beanutils and other like that but unknown version. Instead of having them all under an internal group id, this is what I did: 1- try to find what is the real verison of the jar if its a known one (like log4j for instace, was part of it) and rename then with the right version in the name. The manifest file in the jar can be helpfull. 2- for those of unknown source and/or version, deploy them on your internal repository and give them whatever version number you feel giving it. 3- for those that we build, I'm still using the Ant code initially written but its part of a single maven project. I use the main project version that I then use to produce the jars. These jars and then deployed on the local repository. The original Ant code was copied in the maven.xml and some jelly code was added to rename jars using maven supplied version number. Its definitely overkill to produce a maven project for them all IMHO. Hope it helps Eric. M. Sean Gilligan wrote: Hi, I have about 30 jars that came from different places that I'm using in a complex built that we are migrating to maven. What I'd like to do is build a list/database/xml-doc that lists the 30 jars by pathname, gives a groupId, artifactId, and version for each, then have a maven.xml goal that uploads them all to my private maven repository. I would rather not create 30 maven subproject directories with POMs in them. What is the best way to do this? Thanks, Sean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Create 2 jars for a project
Sure it is, but not wihout some extra jelly code. Do it with the Ant Jar tag in your maven.xml or you can make one project as a subproject of the other using the reactor component. But be aware that if you do, you will loose the maven.artifact. The artifact of a maven project is, by default, unique. A single jar. We have a project here that builds over 30 jars and its not really an issue. The product we build is not a simple artifact anyway so nowhere in our build is the unique artifact refered. Hope it helps. Eric. Adrian Tarau wrote: Hi, It is possible to create 2 jars in the same maven project? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Create 2 jars for a project
Yes, I gues it can be done if you program this accordingly with a flag. But instead of doing this and having to cope with some maybe unwanted behavior from calling jar:jar twice and trying to fool the plugin, you could take the jelly code in the jar plugin and use it directly in your project? You know what, maybe my approach I took with the legacy project could fit you more. Create a master project that is responsible for compiling all you sources. Then, pass control to 2 sub-projects that will take care of producing the jars on the classes build by the master project. It involves setting this in the sub-projects: parent.base.dir=${basedir}/../..-- depends on where you put you sub-project # # maven default source directory override to get parent's instead # maven.build.dir=${parent.base.dir}/target maven.src.dir=${parent.base.dir}/src/java With this, all projects will use the same sources and same classes. So your master compiles, sub-projects jar using all maven built in mechanism. What do you think? Eric. Adrian Tarau wrote: I can use the ant:jar but I want to use the code behind the jar:jar goal which add to Manifest.MF a lots o useful information extracted from POM. One solution it will be to add it also in maven.xml but is not so beautiful. Do you know if I can make a postGoal fro jar:jar, change the jar plugin properties, call again jar:jar goal but skiping the postGoal the second time?. Can be a pre or post goal skipped programmatic? -Original Message- From: Eric Giguere [mailto:[EMAIL PROTECTED] Sent: Monday, November 22, 2004 3:56 PM To: Maven Users List Subject: Re: Create 2 jars for a project Sure it is, but not wihout some extra jelly code. Do it with the Ant Jar tag in your maven.xml or you can make one project as a subproject of the other using the reactor component. But be aware that if you do, you will loose the maven.artifact. The artifact of a maven project is, by default, unique. A single jar. We have a project here that builds over 30 jars and its not really an issue. The product we build is not a simple artifact anyway so nowhere in our build is the unique artifact refered. Hope it helps. Eric. Adrian Tarau wrote: Hi, It is possible to create 2 jars in the same maven project? Thanks. - 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: building a complex file hierarchy
Hello guys I've created a plugin to handle building complex distributions. I called it uber-dist. My setup on source forge is almost complete. I'll send a message in the list as the download is ready. In a nutshell, my plugin calls a goal you write in your maven.xml file. It also offers a couple of automatic features including deployment of dependencies with name override (to get rid of version numbers for instance), deploy directory override, launch script copy with filtering, etc. But in the end, if you don't produce the standard maven artifact, you will have to write some Ant / jelly code in maven.xml but, at least, you'll be doing it in a maven friendly approach. The project from which I've created this plugin for in the first place holds many hundreds lines of Ant code and creates a lot of artifacts. First phase was to make the Ant code callable in a maven project... embed the Ant calls in a maven.xml and phase 2 was to get rid of useless Ant code (like calls to javac for instance) To be more like a real maven project. Based on this architecture, I've created the plugin that build, under target, completely new distribution file-system that gets tarred and/or zipped. Later! Eric. dan tran wrote: I wonder the same thing!!! My guess here is to have IA6 project to depend on all other artifacts, then use ant:copy tag to populate your IA6 foot print -D On Mon, 08 Nov 2004 16:11:40 -0500, Christopher L Merrill [EMAIL PROTECTED] wrote: Rather than building a single artifact, our project builds many small artifacts and them puts them together, along with many other file resources, into a complex hierarchy. This is then used by our installer (IA6) to create our installed images. I'm new to Maven, so I'm probably still approaching this problem with an ANT mindset, rather than Maven. Is there some Maven task to help in this final step of our process (assembling the hierarchy), or is this the right place to drop back to ANT scripting to finish the job? TIA, C -- - Chris Merrill | http://www.webperformanceinc.com Web Performance Inc. | http://www.webperformancemonitoring.net Website Load Testing, Stress Testing, and Performance Monitoring Software - - 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: how can I use an ANT task inside my maven.xml
Hey Feilpe Yes, you can, as long as they are ant 1.5 compatible, no problem. I personnaly migrated a lot of Ant legacy code to a new maven.xml and it did workout nicely. Hope it helps. Eric. Feilpe Vieira Silva wrote: Dear members, I have an ANT build.xml files, with several well tested tasks and now I´m trying to migrate to maven. can I just copy these tasks inside of the maven.xml? and how can I call them? if not, what I must do instead? regards, Felipe Gaúcho Schoolbus owner https://schoolbus.dev.java.net - 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: deploy custom artifact's type
Hi Stéphane I've develop a completely new distribution plugin that I called uber-dist. Its goal is to allow maven users to build complex distributions. At work here, we build a server application based on a commercial framework. Distribution mechanism currently in maven are not suited for that kind of project...well...not for its deployment anyway. The new distribution plugin works more or less like the xdoc plugin, that is based on a registration. You project must register with the plugin and then the plugin will call a custom goal that you write in your project to perform all imaginable operations required to build your distribution. I will maybe submit this plugin through someday, to source-forge or somewhere else but if you (or anybody that is) are interested, I can send it directly to you and you can play with it. Regards, Eric. Stéphane Nicoll wrote: Hello list, We are using the listfoot compare tool to compare changed files between two releases. Is there an easy way to deploy custom arfiacts in maven (I am thinking about the CSV file generated by listfoot). Typically, I would have a dependency on the previously CSV file to compare it with the current one. Is there something about this in the deploy/artifact plugin? Thanks, Stéphane Stéphane Nicoll Business Solutions Builders Place de l'Université 25/10 B-1348 Louvain-La-Neuve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dynamic property access
Hello Ben Yep, try this: j:set var=color value=red/ j:set var=colorKey value=${color}/ ant:echo ${colorKey} /ant:echo Hope it helps Eric. Ben Anderson wrote: Hi, I want to dynamically set which property I access. Is this possible? Obviously the below code won't work, but you get the idea. I thought maybe that the j:expr tag might help, but it doesn't seem to do anything. j:set var=color value=red/ j:set var=colorKey value=color/ ant:echo ${${colorKey}} /ant:echo Any ideas? Thanks, Ben - 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: dynamic property access
Ah, I see I'm not sure if this is feasible... One thing sure, you cannot put an expression in an expression ( ${...${}}. It just does not work with jelly. I've done a couple of tests with dynamic property names without success. Eric. Ben Anderson wrote: yes, that's a solution for the example I gave, but not what I'm looking for. Let me give the real example: config.properties - servername.qa=qaServer servername.prod=prodServer maven.xml - u:properties var=props file=config.properties/ j:forEach var=prop items=${props} ant:copy file=${basedir}/WEB-INF/web.xml tofile=${build.dir}/WEB-INF/web.xml overwrite=true ant:filterset ant:filter token=servername value=${servername.${env}}/ actually, this is probably a bit much. Is there a way to solve the original example w/out modifying the j:set tags? Thanks, Ben Quoting Eric Giguere [EMAIL PROTECTED]: Hello Ben Yep, try this: j:set var=color value=red/ j:set var=colorKey value=${color}/ ant:echo ${colorKey} /ant:echo Hope it helps Eric. Ben Anderson wrote: Hi, I want to dynamically set which property I access. Is this possible? Obviously the below code won't work, but you get the idea. I thought maybe that the j:expr tag might help, but it doesn't seem to do anything. j:set var=color value=red/ j:set var=colorKey value=color/ ant:echo ${${colorKey}} /ant:echo Any ideas? Thanks, Ben - 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: Change config file content using maven plugin
Hi The Ant copy tag can be used with its built in filtering mechanism. You put in tokens that get replaced by values you specify in tag itself. When this is done in a maven.xml file, you can vitually replace these tokens with anything, including artifact ids, complete jar names version included you can get out of the project dependencies and etc. Here is an example. ant:copy todir=${dist.assembly.dir} flatten=true filtering=true ant:filterset id=content.filter ant:filter token=batchfile-artifact value=${maven.final.name}.jar/ ant:filter token=log4j:log4j value=${pom.getDependency('log4j:log4j').artifact}/ ant:filter token=commons-logging:commons-logging value=${pom.getDependency('commons-logging:commons-logging').artifact}/ /ant:filterset /ant:copy By defaut, tokens in the files must be enclosed in @ characters (ex. @batchfile-artifact@ that will get replaced by the maven.final.name value) Hope it helps Eric. Ian Neruda wrote: I need to change config file parameters depending on targeted environment(test or production). Is there a plugin that could do something like this? Files I need to change are web.xml and my custom xml config file. Thanks, Ian. ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: where is default.properties?
Hello You have to create a build.properties files that you put in your home directory (/home/whatever under unix, Document And Settings/whatever under Window$). That will become the default for you only but for ALL your Maven projects. Otherwise, if you want to share a common set of properties for a specific project and between all project members, you create a project.properties file and put it in the basedir of your project. This process is described in details in the Maven User guide available online on maven home site. Hope it helps. Eric. phillip rhodes wrote: I am trying to change the location of the local repository so that everyone in our group could use the same repo... The FAQ points me to a default.properties file , but there is no such file in maven. I do not want to have to create a default.properties file in every project... Is this where the default.properties file goes, or is there another location? Thanks. - 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: creating jar files with excludes and includes
Or some code like this in your project.properties? # # maven jar plugins configuration properties # maven.jar.includes=com/nhc/cms/client/MappingPortClient.class\ ,port_mapping_strings*.properties\ ,com/nhc/cms/i18n/I18nUtil.class\ ,com/nhc/cms/business/data/PortMappingTO.class\ ,com/nhc/cms/business/*Exception.class\ ,com/nhc/cms/business/equipment/EquipementType.class\ ,com/nhc/cms/business/data/equipement/*.class\ ,com/nhc/cms/business/data/*.class This lists what will be included in your jar when running the jar:jar goal. Eric Ashutosh Kumar wrote: Yes I am trying to use maven jar plugin only. But how to use includes , excludes etc I am not getting. Can u send me a sample code. Regds Ashutosh -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Friday, September 17, 2004 2:09 AM To: Maven Users List Subject: Re: creating jar files with excludes and includes Have you given maven-jar-plugin doc a look? http://maven.apache.org/reference/plugins/jar/ -cheers -D On Fri, 17 Sep 2004 21:12:59 +0530, Ashutosh Kumar [EMAIL PROTECTED] wrote: Hi I want to know how to make jar files in maven . I use to do in ant this way(see below). How same thing I should do in Maven? Thanx Regds Ashutosh goal name=compile_pcmejb !-- javac srcdir=${src.root} destdir=${build.temp.dir} -- javac srcdir=${src.root} destdir=${build.pcm.classes.dir} includes=com/**/pcm/people/**,com/**/pcm/services/**,com/**/pcm/admin/* *,com/**/pcm/dataobjects/** failonerror=true verbose=off debug=true debuglevel=lines,vars,source classpathref=project.classpath /javac attainGoal name=create_temp_pcmejbjar/ /goal preGoal name=compile_pcmejb attainGoal name=compile_cfmcore/ /preGoal goal name=create_temp_pcmejbjar !-- KRM probably need to rename this to pcmejb_wl81.jar in the future to support different versions of Weblogic as we go further along-- jar jarfile=${build.lib.dir}/pcmejb.jar !-- Include all the Remote,Home Interfaces and Beans for PCM application -- fileset dir=${build.pcm.classes.dir} include name=com/cfm/pcm/**/CFM*Session.class/ include name=com/cfm/pcm/**/CFM*SessionBean.class/ include name=com/cfm/pcm/**/CFM*SessionHome.class/ include name=com/cfm/pcm/**/CFM*Bean.class/ !-- just to eliminate web bean classes-- exclude name=com/cfm/pcm/web/**/*/ exclude name=com/cfm/pcm/**/CFMSession.class/ /fileset metainf dir=${build.temp.dir}/META-INF /metainf /jar /goal preGoal name=create_temp_pcmejbjar attainGoal name=create_tempdir_copyejbxml/ /preGoal - 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]
Getting plugin version
Hi all Anybody knows if there is a way to print out on the console the active version of a plugin? Could usefull when environment checks are required. Ex.: one of my team members have a problem building, first check to do the version of the plugin used to see if its up to date. thx Eric. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting plugin version
:) How nice. thx Brett! Eric. Brett Porter wrote: maven --info On Tue, 14 Sep 2004 09:17:20 -0400, Eric Giguere [EMAIL PROTECTED] wrote: Hi all Anybody knows if there is a way to print out on the console the active version of a plugin? Could usefull when environment checks are required. Ex.: one of my team members have a problem building, first check to do the version of the plugin used to see if its up to date. thx 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven - specify SSH password
Hi Presented this way, no, its not. But, to get around this, we're using here ssh-rsa keys (ssh2). From the client computer (deployment platform), you supply you private key to some ssh agent. On the server, you add your key footprint in the authorized_keys file. Using this scheme, you can log to the remote computer only by supplying the username. Maven may have to be configured on the deployment machine, depending on the OS. The default ssh client used is ssh. On M$ Win plateforms, you may have to specify another client to be used link plink that comes with the Putty package. Hope it helps. Eric. Dinko Hadzic wrote: Hi Is it possible to specify a SSH password to Maven? I try to execute maven site:deploy, but the process fails because the remote SSH server requires a password authentication. Screen dump: ... [exec] The server's host key is not cached in the registry. You [exec] have no guarantee that the server is the computer you [exec] think it is. [exec] The server's rsa key fingerprint is: [exec] 1024 4a:a6:63:50:8f:5f:94:c2:5f:68:67:28:43:48:67:ac [exec] Connection abandoned. [exec] [ERROR] Result: 1 BUILD FAILED ... Regards Dinko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting the goal name from jelly
Hi all Anybody knows where to get the goal name (the one to attain.. usually supplied in the command line) that maven is currently trying to attain? thx. Eric. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to populate a property files with information from the POM?
Hi Paul Check out the Ant task called PropertyFile. Its an optionnal task. With this one, you can create new property files or modify existing ones. So with a clever mix of jelly code, the pom object and this tag you should be able to do it. Hope it helps. Eric. Paul Spencer wrote: I would like to populate a properties file with information from the POM. What is the best way to accomplish this objective? As an example I would like Maven to create a and populate ${maven.build.dest}version.properties. This file would contain: application.name=MyApplication application.version=1.0 Paul Spencer - 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: [ANN] Maven 1.0 Released
Excellent!!! Good work all. A question, what's the CVS tag to check out? Eric. Brett Porter wrote: The Apache Maven team is pleased to announce the release of Maven 1.0. http://maven.apache.org/start/download.html (please be patient as the release may not have propogated to all mirrors yet) Maven is a project management and project comprehension tool. Maven is based on the concept of a project object model: builds, documentation creation, site publication, and distribution publication are all controlled from the project object model. Maven also provides tools to create source metrics, change logs based directly on source repository, and source cross-references. New Features * Bundle the Jelly XML tag library for build and for plugin's convenience * Add different types of download progress meters. Fixed bugs * Fix property inheritence under some circumstances Issue: MAVEN-1296. Thanks to Eric Lapierre. * maven:get/ now initialises the plugin if it has not already been loaded, removing the need for dependency handles * Check last modified timestamp as well as conditional GET in case the server time is behind the local time Issue: MAVEN-1188. * Bugfixes for new httpclient based downloading (incorrect timestamps) Issue: MAVEN-1343. * Handle cross site redirects Issue: MAVEN-1353. * Correct absolute paths with no drive designator on windows Issue: MAVEN-1290. * Amend bootstrap to create directories that might not exist Issue: MAVEN-1341. * If artifact is not a snapshot, don't continue checking for newer downloads once one is successful Issue: MAVEN-1344. Plugin Highlights The latest plugin releases are also included, with bug fixes and some new features. We hope you enjoy using Maven! If you have any questions, please consult: * the FAQ: http://maven.apache.org/faq.html * the Wiki: http://wiki.codehaus.org/maven/ * the maven-user mailing list: http://maven.apache.org/mail-lists.html For news and information, see: * Maven Blogs: http://www.mavenblogs.com/ - The Apache Maven Team - 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: deploying plugin jars
repository-deploy... that's it! Thx a lot Brett I know why I didn't see it before, I don't have the latest from the plugin:plugin. thx again Eric. Brett Porter wrote: Dan, Not quite :) maven plugin:install is used from a plugin source tree to build and install a plugin into your maven installation. maven plugin:download (with the artifact ID etc params you gave) is used to get a plugin from a remote repository and install into your maven installation maven plugin:repository-deploy (like jar:deploy) builds a plugin and puts it into your remote repository. You probably want to do a plugin:repository-deploy on the plugin code, then run plugin:download on all Maven installations. - Brett On Tue, 22 Jun 2004 12:39:56 +1000, Washusen, Dan [EMAIL PROTECTED] wrote: Put the downloaded jar file in your $MAVEN_HOME/plugins dir (not the $HOME/.maven/plugins) and then call 'maven plugin:install' with the appropriate properties. So for example one of the sf.net maven-plugins could be installed, after downloading, with: maven -DgroupId=maven-plugins -DartifactId=maven-dbunit-plugin -Dversion=1.1 plugin:install That's from memory but it should be right, hope that helps... Cheers, Dan -Original Message- From: Eric Giguere [mailto:[EMAIL PROTECTED] Sent: Tuesday, 22 June 2004 6:35 AM To: Maven User List Subject: deploying plugin jars Hi Got a small problem. I'm trying to deploy a custom plugin jar in our internal remote repository. I've tried using the jar:deploy command but I couldn't get the guy to put my jar in the right place (maven/plugins/). No matter how I play with directories (using the propeties), I never could get the jar in the maven/plugins dir. So, the plugin:download goal cannot be executed to retreive it. Is there a way to do so without copying them by hand in the maven/plugin dir of the repository ? thx. Eric. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] www.sensis.com.au A leading Australian advertising, information and directories business. www.yellowpages.com.au www.whitepages.com.au www.citysearch.com.au www.whereis.com.au www.telstra.com.au www.tradingpost.com.au This email and any attachments are intended only for the use of the recipient and may be confidential and/or legally privileged. Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, loss and/or damage arising from using, opening or transmitting this email. If you are not the intended recipient you must not use, interfere with, disclose, copy or retain this email and you should notify the sender immediately by return email or by contacting Sensis Pty Ltd by telephone on [+61 3 9201 4888] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem running an ant bu
Hi It is compatible but, before using ant tags, you should add in your maven xml these lines: project default=whatevergoal... * xmlns:ant=jelly:ant* xmlns:license=license xmlns:maven=jelly:maven And then, if you want to call ant on a file, you would do it like this: ant:ant antfile=build.xml target=properties / Hope it helps Eric. [EMAIL PROTECTED] wrote: I have a project which is almost cloned from Turbine 2.2.1 TDK sample. I tried to convert the build from ant to maven. The quickest way as I perceived is, besides creating a project.xml, to call build.xml from maven.xml as follows: project default=run-ant goal name=run-ant ant antfile=build.xml target=init/ /goal /project When I run ant init it works, but when I run maven it gives following error: BUILD FAILED File.. C:\Documents and Settings\FWen\jbproject\turbine\webapps\testproj\WEB-INF \build\maven.xml Element... ant Line.. 3 Column 45 C:\webapps\testproj\WEB-INF\lib not found. Total time: 6 seconds Finished at: Tue Jun 22 10:12:37 PDT 2004 Apparently there is a path mis-config in maven. But I don't understand why the error only happens in maven, not in ant. Isn't maven supposed to be compatible with ant? Fred Wen 604-609-6491
Re: Getting links to work in the Download report
Hello No clear idea on how to make the report work, never tried that one. For night build, check the Cruise Control engine, accessed in maven through its plugin (maven-cruisecontrol-plugin). Hope it helps Eric. Bent Andre Solheim wrote: Hello Maven users, I have been working with Maven the last few days in hopes of using as part of the development process in the company I work. Yesterday I tried to get the Download Report into my project page - with limited luck. I discovered that to make it appear in the first place, I had to set the maven.xdoc.distributionUrl in my project.properties file. So far, so good - but there are no download links in the report. My question is; how do I make my releases and distributions appear in this page? I would also like to have a link to a nightly build. Is this possible? I realize a similar question was posted by J. B. Rainsberger some two weeks ago, but I am unable to get to the bottom of this with the information in that thread. Any pointers, links, tips or walk-throughs are greatly appreciated! :) Best regards Bent André Solheim By the way; really enjoy Maven! It's probably only a question of time before we all use it around here! :) - 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]
deploying plugin jars
Hi Got a small problem. I'm trying to deploy a custom plugin jar in our internal remote repository. I've tried using the jar:deploy command but I couldn't get the guy to put my jar in the right place (maven/plugins/). No matter how I play with directories (using the propeties), I never could get the jar in the maven/plugins dir. So, the plugin:download goal cannot be executed to retreive it. Is there a way to do so without copying them by hand in the maven/plugin dir of the repository ? thx. Eric. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jelly variables
Hi Chuck Chuck Daniels wrote: This leads me to another question, as I am relatively new to Maven. I have also noticed expressions like ${context.getVariable('some.variable')}. I assume this retrieves the value of the variable in the current context versus what ${pom.getPluginContext('plugin-context').getVariable('some.variable')} does. However, how does ${context.getVariable('some.variable')} differ from the simpler expression ${some.variable}? I would say (not 100% sure though) that the same principle applies. If you call this from one of your project goals, it shouldn't do a difference at all. If you write some jelly code in a plugin though, that may be a different issue. And even then, I'm not 100% sure that it will change something since the plugin context get initialized (for maven variables anyway) with values that are supplied by the project itself (like basedir, maven.build.dest and others). Context resolution is more an issue if you to play with plugin's variables or properties in you project or even in another plugin. The issue can become even more interesting in a multi-project build. When running a maven build on multiple projects, all standard maven properties and variables get new values (new contexts) for every single project, even if its built in one shot. Quite powerfull indeed. Eric. -Original Message- From: Eric Giguere [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 7:22 AM To: Maven Users List Subject: Re: Jelly variables Hi Chuck Daniels wrote: I see ${pom.getPluginContext('plugin-name').getVariable('variable')} used frequently. However, I also see that Project.getPluginContext is deprecated. I believe that the pom bean is a Project, right? Right, pom is the Project bean. If so, what should be used in place of pom.getPluginContext? Yep, you're absolutely right. The new tag is : maven:pluginVar / But it seems that this will also be deprecated (maybe already is) and replace by :get/:set type. This replacement was suppose to take effect in RC3... The javadoc for the method says to use the tag instead, but doesn't say which tag. Further, there are cases where using a tag is not possible because an expression is required. Anybody know what should be done or should we simply continue using pom.getPluginContext? I personnaly continue to use it until the tag issue is resolved once and for all. Deprecation should live for at least one version, so I think we may be ok for a while. Eric. -Original Message- From: Eric Giguere [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 01, 2004 2:03 PM To: Maven Users List Subject: Re: Jelly variables Hi Jon I'll give a try to explain the behavior. Plugins.. When executing, all of them have a context that is built up live on a specific project. For every property or variable that a plugin declares, you must call a method of the pom bean to get the actual value for the property (or variable) that the plugin uses while executing. My guess with maven.final.name, since its a project variable, is set to snapshotSignature only in the plugin's context. So its never really set back to the original value, it just didn't ever change, in your project's context anyway. Did you try using this snapshotSignature value directly in your project? If its empty, ask the plugin for its value, maybe it'll be available in your post goal using this call: ${pom.getPluginContext('plugin-name').getVariable('variable') just guessing here... Hope it helps Eric. STRAYER, JON (SBCSI) wrote: I have a deploy goal in my maven.xml that uses the artifact plugin. When I use it to deploy the results of a jar:jar everything works fine. When I use it to deploy a snapshot jar it tries to deploy the normal jar. My goal is here: goal name=deploy artifact:deploy artifact=${maven.build.dir}/${maven.final.name}.jar type=jar project=${pom} / /goal As you can see, I'm using maven.final.name for the name of the jar. The jar:snapshot goal sets this varaiable to ${snapshotSignature}. But by the time my postGoal executes it's back to the name of the normal jar. My questions are: 1. Is there a variable that will be available during the post goal that contains the name of the jar? 2. What is setting maven.final.name back to the default value? - 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: Jelly variables
Hi Chuck Daniels wrote: I see ${pom.getPluginContext('plugin-name').getVariable('variable')} used frequently. However, I also see that Project.getPluginContext is deprecated. I believe that the pom bean is a Project, right? Right, pom is the Project bean. If so, what should be used in place of pom.getPluginContext? Yep, you're absolutely right. The new tag is : maven:pluginVar / But it seems that this will also be deprecated (maybe already is) and replace by :get/:set type. This replacement was suppose to take effect in RC3... The javadoc for the method says to use the tag instead, but doesn't say which tag. Further, there are cases where using a tag is not possible because an expression is required. Anybody know what should be done or should we simply continue using pom.getPluginContext? I personnaly continue to use it until the tag issue is resolved once and for all. Deprecation should live for at least one version, so I think we may be ok for a while. Eric. -Original Message- From: Eric Giguere [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 01, 2004 2:03 PM To: Maven Users List Subject: Re: Jelly variables Hi Jon I'll give a try to explain the behavior. Plugins.. When executing, all of them have a context that is built up live on a specific project. For every property or variable that a plugin declares, you must call a method of the pom bean to get the actual value for the property (or variable) that the plugin uses while executing. My guess with maven.final.name, since its a project variable, is set to snapshotSignature only in the plugin's context. So its never really set back to the original value, it just didn't ever change, in your project's context anyway. Did you try using this snapshotSignature value directly in your project? If its empty, ask the plugin for its value, maybe it'll be available in your post goal using this call: ${pom.getPluginContext('plugin-name').getVariable('variable') just guessing here... Hope it helps Eric. STRAYER, JON (SBCSI) wrote: I have a deploy goal in my maven.xml that uses the artifact plugin. When I use it to deploy the results of a jar:jar everything works fine. When I use it to deploy a snapshot jar it tries to deploy the normal jar. My goal is here: goal name=deploy artifact:deploy artifact=${maven.build.dir}/${maven.final.name}.jar type=jar project=${pom} / /goal As you can see, I'm using maven.final.name for the name of the jar. The jar:snapshot goal sets this varaiable to ${snapshotSignature}. But by the time my postGoal executes it's back to the name of the normal jar. My questions are: 1. Is there a variable that will be available during the post goal that contains the name of the jar? 2. What is setting maven.final.name back to the default value? - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error with cvs / scm and multiple cvs related plugins
Hi all I have here a pretty strange error that has been bugging me for a while and would really appreciate some hints, if any. It concerns CVS and the plugins... Right now, I'm trying to use the cvsstat plugin on my project but everytime I try to generate the report, it complains about an error in the ant:cvs tag. [cvs] Caught exception: CreateProcess: cvs -d:pserver:[EMAIL PROTECTED]:/home/cvs/cvsroot -z3 log error=2 If I try to run the scm plugin, then, something very similar happens: Using SCM method: cvs Using CVSROOT: :pserver:[EMAIL PROTECTED]:/home/cvs/cvsroot Using module: software BUILD FAILED File.. file:/C:/Documents and Settings/Eric/.maven/plugins/maven-scm-plugin-1.2-S NAPSHOT/ Element... ant:cvs Line.. 199 Column 9 java.io.IOException: CreateProcess: cvs -d:pserver:[EMAIL PROTECTED]:/home/cvs/cvsroot -q update -Pd error=2 Total time: 5 seconds Finished at: Thu May 27 11:25:45 EDT 2004 Strange... My cvs executable is in the path. And if for instance I run the cvs command shown up in the command line, it works perfectly. Any clue? thx a lot Eric. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOLVED: Re: Error with cvs / scm and multiple cvs related plugins
Hi all A very good friend of mine pointed me out the problem... the CVS client itself. Was using the CVS client supplied with WinCVS...ERROR! With the one from CVSNT, it works perfectly. Eric. Eric Giguere wrote: Hi all I have here a pretty strange error that has been bugging me for a while and would really appreciate some hints, if any. It concerns CVS and the plugins... Right now, I'm trying to use the cvsstat plugin on my project but everytime I try to generate the report, it complains about an error in the ant:cvs tag. [cvs] Caught exception: CreateProcess: cvs -d:pserver:[EMAIL PROTECTED]:/home/cvs/cvsroot -z3 log error=2 If I try to run the scm plugin, then, something very similar happens: Using SCM method: cvs Using CVSROOT: :pserver:[EMAIL PROTECTED]:/home/cvs/cvsroot Using module: software BUILD FAILED File.. file:/C:/Documents and Settings/Eric/.maven/plugins/maven-scm-plugin-1.2-S NAPSHOT/ Element... ant:cvs Line.. 199 Column 9 java.io.IOException: CreateProcess: cvs -d:pserver:[EMAIL PROTECTED]:/home/cvs/cvsroot -q update -Pd error=2 Total time: 5 seconds Finished at: Thu May 27 11:25:45 EDT 2004 Strange... My cvs executable is in the path. And if for instance I run the cvs command shown up in the command line, it works perfectly. Any clue? thx a lot 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: Version numbers
Hi Try the ant buildnumber tag. It doesn't provide support for full version number but appending a build value to your version number does the trick in many circumstances. An example : buildnumber file=mybuild.number/ This tag will locate the specified file, read the value in it and rewrite after adding 1. I guess by combining multiple files and the call to the right one when incrementing your version could also be a possible solution. Hope it helps. Eric T8, JON STRAYER wrote: Does anyone have a jelly tag that will take a version number like 1.2.3.4 and increment a given portion of it? - 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: Source for new Plugin release
Hi Arnaud In the MAVEN-1_0-BRANCH... is there some code that was merged from the main trunk? Explanations. We're running here a maven 1.1 snapshot that was taken out of CVS about a month ago. Do you think there may be issues with the plugins if we take the latests running with this snapshot? Eric. Arnaud Heritier wrote: You must checkout the MAVEN-1_0-BRANCH for maven and the HEAD for maven-plugins. Arnaud. -Message d'origine- De : Eric Giguere [mailto:[EMAIL PROTECTED] Envoyé : mardi 18 mai 2004 15:28 À : Maven Users List Objet : Re: Source for new Plugin release Thx guys I had some problem with HEAD but on the maven project.. Didn't even check if there were branches in the plugins. Eric. Arnaud Heritier wrote: There's no branch in maven-plugins. You must get the HEAD one. Arnaud -Message d'origine- De : Eric Giguere [mailto:[EMAIL PROTECTED] Envoyé : lundi 17 mai 2004 16:04 À : Maven User List Objet : Source for new Plugin release Hi In which branch can we get the sources of all the newly released plugins from the apache CVS? thx 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Source for new Plugin release
Thx guys I had some problem with HEAD but on the maven project.. Didn't even check if there were branches in the plugins. Eric. Arnaud Heritier wrote: There's no branch in maven-plugins. You must get the HEAD one. Arnaud -Message d'origine- De : Eric Giguere [mailto:[EMAIL PROTECTED] Envoyé : lundi 17 mai 2004 16:04 À : Maven User List Objet : Source for new Plugin release Hi In which branch can we get the sources of all the newly released plugins from the apache CVS? thx 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]
Source for new Plugin release
Hi In which branch can we get the sources of all the newly released plugins from the apache CVS? thx Eric. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven night-build integration
Hi all Just wondering... Is there such a thing as a night-built plugin for maven or any other code base that is ready to be used? I mean by that some scheduled mechanism that could execute a maven build but that will also trap all outputs and make a nice HTML report out of this? thx Eric. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie prereqs questions
Hi The plugin properties in can be seen as variable declaration. In order to get the values during execution, you must get it from the plugin's context. You can do this with such a line in your maven.xml (anywhere... not required to be in a goal): j:set var=aVariable value=${pom.getPluginContext('maven-scm-plugin').getVariable('maven.scm.cvs.root)}/ Hope it helps. Eric. Menetrieux Remy wrote: For my goal I needs to get the cvs root and the cvs module. For this I call scm:parse-connection in the prereqs section. But when I read the maven.scm.cvs.root or maven.scm.cvs.module they are empty. How can I get this variable? thanks goal name=truc:report prereqs=xdoc:init,scm:parse-connection description=Generate file change report beetween release echorepository : ${maven.scm.cvs.root}/echo echorepository : ${maven.scm.cvs.module}/echo /goal The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be a violation of law. If you received this transmission in error, please contact the sender by reply e-mail and delete and destroy all copies of the material, including all copies stored in the recipient's computer, printed or saved to disk. Thank you. Software virus: Europcar has taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. Europcar cannot accept liability for any loss or damage caused by software viruses. Intellectual Property: Europcar has built up a significant reputation in the name Europcar and has a number of trademark applications and registrations in many countries. No trademarks, service marks, and trade names owned or licensed by Europcar or its affiliates may be copied, reproduced, republished, uploaded, posted, transmitted, or distributed in any way, without the prior written consent of Europcar. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie prereqs questions
Hey! That's what I was about to suggest :). NP, my pleasure Eric. Menetrieux Remy wrote: Ok i just do a attainGoal name=scm:validate / Before your code thanks Eric. -Message d'origine- De : Menetrieux Remy Envoyé : mercredi 7 avril 2004 16:32 À : Maven Users List Objet : RE: Newbie prereqs questions Re-hi, Thank's for the answer, but my variable is initialize in a the goal scm:parse-connection on the scm plugin. Have you any idea ? Thank's.. -Message d'origine- De : Eric Giguere [mailto:[EMAIL PROTECTED] Envoyé : mercredi 7 avril 2004 15:23 À : Maven Users List Objet : Re: Newbie prereqs questions Hi The plugin properties in can be seen as variable declaration. In order to get the values during execution, you must get it from the plugin's context. You can do this with such a line in your maven.xml (anywhere... not required to be in a goal): j:set var=aVariable value=${pom.getPluginContext('maven-scm-plugin').getVariable('maven.scm.cvs .root)}/ Hope it helps. Eric. Menetrieux Remy wrote: For my goal I needs to get the cvs root and the cvs module. For this I call scm:parse-connection in the prereqs section. But when I read the maven.scm.cvs.root or maven.scm.cvs.module they are empty. How can I get this variable? thanks goal name=truc:report prereqs=xdoc:init,scm:parse-connection description=Generate file change report beetween release echorepository : ${maven.scm.cvs.root}/echo echorepository : ${maven.scm.cvs.module}/echo /goal The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be a violation of law. If you received this transmission in error, please contact the sender by reply e-mail and delete and destroy all copies of the material, including all copies stored in the recipient's computer, printed or saved to disk. Thank you. Software virus: Europcar has taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. Europcar cannot accept liability for any loss or damage caused by software viruses. Intellectual Property: Europcar has built up a significant reputation in the name Europcar and has a number of trademark applications and registrations in many countries. No trademarks, service marks, and trade names owned or licensed by Europcar or its affiliates may be copied, reproduced, republished, uploaded, posted, transmitted, or distributed in any way, without the prior written consent of Europcar. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be a violation of law. If you received this transmission in error, please contact the sender by reply e-mail and delete and destroy all copies of the material, including all copies stored in the recipient's computer, printed or saved to disk. Thank you. Software virus: Europcar has taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. Europcar cannot accept liability for any loss or damage caused by software viruses. Intellectual Property: Europcar has built up a significant reputation in the name Europcar and has a number of trademark applications and registrations in many countries. No trademarks, service marks, and trade names owned or licensed by Europcar or its affiliates may be copied, reproduced, republished, uploaded, posted, transmitted, or distributed in any way, without the prior written consent of Europcar. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be a violation of law. If you received this transmission in error, please contact the sender by reply e-mail and delete and destroy all copies of the material, including all copies stored
Re: Checking from a plugin for the existance of a goal
Solved :) So for all to see if that can help someone else. Here is some modified jelly code extracted from the maven-shell plugin : !-- Get all maven goals -- j:set var=mavenSession value=${context.getMavenSession()}/ j:set var=allGoals value=${mavenSession.getAllGoalNames()}/ j:new var=modList className=java.util.ArrayList/ j:set var=dummy value=${modList.addAll(allGoals)}/ !-- Sort them -- j:invokeStatic method=sort className=java.util.Collections var=dummy j:arg type=java.util.List value=${modList} / /j:invokeStatic !-- Print them for me to see -- j:forEach var=goal items=${modList.iterator()} echogoal: ${goal}/echo /j:forEach context is a quite nice bean, once you know it exists in the first place. On the subject, is there anywhere we can look to get a list of all build-in beans that exists and that we can use in our code? Eric. Eric Giguere wrote: Hi all A quick one, is there a way using jelly scripting to check for the existance of a goal in a project or a plugin? Some context information... Lets say I'm building a plugin that acts a little like the xdoc plugin, that is based on registration from either other plugins or projects. At some point, the generic plugin will call a goal in those that registered with the plugin. But what if I want to include in the generic plugin some placeholder code that can be executed if the registree doesn't provide specific functionnality? In xdoc context, that would mean providing some jelly code for a report plugin that doen't provide the report goal. Right now, if we call a non existing goal, we'll have a build failure, and that's perfectly normal. But it would be nice to check for the goal existance before calling it. Any idea on how to do this, if its possible in the first place? thx 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: Can I set the classpath for a plugin?
Hi David From your message, I'm not sure if this solution may apply but I'll give it a try. You can, if you can use the Ant classpath element in your plugin. If you need to refer to the classpath of the project (dependencies for instance), you still can access it and insert those entries in your new Ant classpath element using a call like : ... ant:path id=project.class.path pathelement location=${maven.build.dest}/ pathelement path=${plugin:getDependencyPath(groupId:artifactId)}/ /ant:path ... Instead of using the complete depencies path, you can add some smart jelly code to pick what you need from the complete classpath of the whole project. There is a good example of using multiple dependancy path to configure the classpath of an ant:java call in the AspectWerkz plugin jelly script. Hope it helps Eric. David Jencks wrote: I'm working on a maven plugin for xmlbeans. I need to be able to specify for each use of the plugin which dependencies are in the classloader that loads the java class used by the plugin (which is included in the plugin) or what is in the thread context classloader (I think). Before I go off and spend hours investigating this I thought I'd ask if this is possible and how to do it. Many thanks, david jencks - 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: ANT Namespace?
Hi xmlns:ant=jelly:ant But basically, I'm not even sure that you need this to call ant task in your maven.xml...just safer to use the namespace to prevent possibl name clashes with plugins. Eric. [EMAIL PROTECTED] wrote: Hi, could someone tell me which namespace to add to call ANT tasks? Thanks in advance, -Conrad - 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]
Checkstyle report glitch
Hi all I've got a small problem. I can run the goal : checkstyle:report from the command line. Using this command, I get the checkstyle report in xml format and in text format generated correctly. But, if I add the reportmaven-checkstyle-plugin/report in the reports section of my project file, then the generation of the report fails with tons of errors like this one : Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST. The final result is an html report full of ClassCastExceptions Any clue what's happening? And maybe an easier one, By running the plugin directly ( maven checkstyle:generate ), how can we get the resulting xml to be transformed in an html report? thx for the help Eric. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Checkstyle report glitch
Sorry Not maven checkstyle:generate command... but maven checkstyle:report. Eric. Eric Giguere wrote: Hi all I've got a small problem. I can run the goal : checkstyle:report from the command line. Using this command, I get the checkstyle report in xml format and in text format generated correctly. But, if I add the reportmaven-checkstyle-plugin/report in the reports section of my project file, then the generation of the report fails with tons of errors like this one : Can't find/access AST Node typecom.puppycrawl.tools.checkstyle.api.DetailAST. The final result is an html report full of ClassCastExceptions Any clue what's happening? And maybe an easier one, By running the plugin directly ( maven checkstyle:generate ), how can we get the resulting xml to be transformed in an html report? thx for the help 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]
Changelog + cvs password
Hi all Been browsing through the list history and found some entries concerning CVS passwords and the changelog plugin. I'm not sure I understand well though :(. To make this work, we need to define a pregoal in maven.xml for the maven-changelog-plugin:report. That pregoal will use ant:cvspass tag to generate a password file: (from the archive) cvspass cvsroot=${itag.jakarta.cvs.root} password=${itag.jakarta.cvs.pass} passfile=${itag.cvs.passfile}/ But then, this password file needs to be passed to CVS. How exactly do we achieve this? The rest of the message found in the archive was calling CVS checkout using the ant:cvs tag... But generating the changelog report doesn't require checking out but running log command. From the jelly script, I can't see this parameter passed in any way. How exactly will that work? And do we really have to redefine the cvs root? After all, it is defined in the project.xml file. True it must be parsed but... thx for the help Eric. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: file activity plugin problem on windows
Hi Emmanuel You were right. I took a while for me to be able to finally build maven from a cvs snapshot (1.1 version) and this time, it does work perfectly. Thx. for the advices. Eric. Emmanuel Venisse wrote: Could you test with changelog plugin in cvs? I have no problem with it on windows. Emmanuel - Original Message - From: Eric Giguere [EMAIL PROTECTED] To: Maven Users List [EMAIL PROTECTED] Sent: Thursday, January 29, 2004 10:03 PM Subject: Re: file activity plugin problem on windows Hi again. Positive, my connect string is ok. But, if I run the same exact command from the prompt, that is: cvs -d :pserver:[EMAIL PROTECTED]:/home/cvs/cvsroot log -d 2003-12-302004-01-30 I get this error : The system cannot find the file specified On the other hand, if i run this command : cvs -d :pserver:[EMAIL PROTECTED]:/home/cvs/cvsroot log -d 2003-12-302004-01-30 then I get a lot of output... I wonder if the double quotes are important... It seems that the sign is interpreted by the OS like a file redirection...Maybe I'm totally in the left field too (expression here to stay completely wrong ;) ) But if so... even Linux gives me the same kind of error so I guess I am wrong... I don't know... Any other idea? Oh, thx the the -X, can be usefull but not now, can't see anything more on the issue. Eric. I've run the same exact command in the prompt Emmanuel Venisse wrote: Are you sure that your connection string is correct? Your module is in /home/cvs/cvsroot? Apparently, cvs is find on your os (you don't have error) but your have no modification between 2003-12-30 and 2004-01-30 If your want, you can run maven with -X option for debugging and/or -e for trace error (if you have it). Emmanuel - Original Message - From: Eric Giguere [EMAIL PROTECTED] To: Maven Users List [EMAIL PROTECTED] Sent: Thursday, January 29, 2004 9:21 PM Subject: Re: file activity plugin problem on windows Hi Emmanuel Thx for the advice, but still my problem remains.. :( I still get a message saying : Unable to find CVS executable... Here's the message: maven-changelog-plugin:report: [echo] Generating the changelog report SCM Working Directory: C:\Work\maintrunk\software\projects\hydra\source SCM Command Line[0]: cvs SCM Command Line[1]: -d SCM Command Line[2]: :pserver:[EMAIL PROTECTED]:/home/cvs/cvsroot SCM Command Line[3]: log SCM Command Line[4]: -d 2003-12-302004-01-30 Unable to find cvs executable. Changelog will be empty ChangeLog found: 0 entries BUILD SUCCESSFUL Total time: 6 seconds Finished at: Thu Jan 29 15:16:16 EST 2004 But cvs executable IS in my machine's path variable. I've put the entry myself and if I type cvs at the prompt, I get the usage message... Bit puzzled ... Anyone saw that problem before? thx Eric. Emmanuel Venisse wrote: You can use the changelog plugin in cvs head. We use a java cvs client and not the cvs command line. Emmanuel - Original Message - From: Eric Giguere [EMAIL PROTECTED] To: Maven User List [EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 7:34 PM Subject: file activity plugin problem on windows Hi all Got a small problem here with the file activity plugin on my W2K workstation. Running under Windos, the command line fails the the plugin reports that the cvs executable cannot be found but the diagnostic is not accurate. I've run the command that the engine try to run and the problem seems to be with the date rage specification. We have someting like : cvs -d :pserver... log -d 2003-12-222004-01-22 The problem is with the date range. This command line fails even when you type it. To make it valid, we must include the date range in double quotes so that the won't be interpreted as a file output redirection. Am I doing something wrong? Any workaround? Eric. Eric Giguere, ing. Software Team Leader NHC Communications Inc. http://www.nhc.com/ 5450 Cote de Liesse Mont-Royal (Quebec) Canada H4P 1A5 Tel.: Direct (514) 735-2741 x262 Fax.: (514) 735-8057 Toll Free: 1-800-361-1965 This message is intended for the use of the addressee and may contain information that is privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of the information contained in this message is strictly unauthorized and prohibited. If you have received this message in error, please notify the sender by reply e-mail and delete the message from your system. Opinions, conclusions, or other statements in this message which do not relate to the business of NHC Communications Inc., its subsidiaries or affiliates, are neither given nor endorsed by NHC Communications Inc
Re: file activity plugin problem on windows
Hi Dion Euh, check this: Executed at the command from: cvs -d :pserver:[EMAIL PROTECTED]:/home/cvs/cvsroot log -d 2003-12-302004-01-30 I get this error : The system cannot find the file specified On the other hand, if i run this command : cvs -d :pserver:[EMAIL PROTECTED]:/home/cvs/cvsroot log -d 2003-12-302004-01-30 then I get a lot of output... Notice the double quotes surrounding the sign and the dates. From Emanuelle's advice, I'm currently building (after quite a bit of tweeking) maven and its plugins from the CVS snapshot of yesterday night. Maybe there was an issue with scm ...??? You think so? And a note, the maven-changelog-plugin gives me the exact same error that the file-activity... cannot find CVS executable :( thx Eric. [EMAIL PROTECTED] wrote: Eric Giguere [EMAIL PROTECTED] wrote on 30/01/2004 07:21:23 AM: Hi Emmanuel Thx for the advice, but still my problem remains.. :( I still get a message saying : Unable to find CVS executable... Here's the message: maven-changelog-plugin:report: [echo] Generating the changelog report SCM Working Directory: C:\Work\maintrunk\software\projects\hydra\source SCM Command Line[0]: cvs SCM Command Line[1]: -d SCM Command Line[2]: :pserver:[EMAIL PROTECTED]:/home/cvs/cvsroot SCM Command Line[3]: log SCM Command Line[4]: -d 2003-12-302004-01-30 Unable to find cvs executable. Changelog will be empty ChangeLog found: 0 entries BUILD SUCCESSFUL Total time: 6 seconds Finished at: Thu Jan 29 15:16:16 EST 2004 But cvs executable IS in my machine's path variable. I've put the entry myself and if I type cvs at the prompt, I get the usage message... Bit puzzled ... What do you get if you type the command line as detailed above? -- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/ - 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: file activity plugin problem on windows
Hi Emmanuel Thx for the advice, but still my problem remains.. :( I still get a message saying : Unable to find CVS executable... Here's the message: maven-changelog-plugin:report: [echo] Generating the changelog report SCM Working Directory: C:\Work\maintrunk\software\projects\hydra\source SCM Command Line[0]: cvs SCM Command Line[1]: -d SCM Command Line[2]: :pserver:[EMAIL PROTECTED]:/home/cvs/cvsroot SCM Command Line[3]: log SCM Command Line[4]: -d 2003-12-302004-01-30 Unable to find cvs executable. Changelog will be empty ChangeLog found: 0 entries BUILD SUCCESSFUL Total time: 6 seconds Finished at: Thu Jan 29 15:16:16 EST 2004 But cvs executable IS in my machine's path variable. I've put the entry myself and if I type cvs at the prompt, I get the usage message... Bit puzzled ... Anyone saw that problem before? thx Eric. Emmanuel Venisse wrote: You can use the changelog plugin in cvs head. We use a java cvs client and not the cvs command line. Emmanuel - Original Message - From: Eric Giguere [EMAIL PROTECTED] To: Maven User List [EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 7:34 PM Subject: file activity plugin problem on windows Hi all Got a small problem here with the file activity plugin on my W2K workstation. Running under Windos, the command line fails the the plugin reports that the cvs executable cannot be found but the diagnostic is not accurate. I've run the command that the engine try to run and the problem seems to be with the date rage specification. We have someting like : cvs -d :pserver... log -d 2003-12-222004-01-22 The problem is with the date range. This command line fails even when you type it. To make it valid, we must include the date range in double quotes so that the won't be interpreted as a file output redirection. Am I doing something wrong? Any workaround? Eric. Eric Giguere, ing. Software Team Leader NHC Communications Inc. http://www.nhc.com/ 5450 Cote de Liesse Mont-Royal (Quebec) Canada H4P 1A5 Tel.: Direct (514) 735-2741 x262 Fax.: (514) 735-8057 Toll Free: 1-800-361-1965 This message is intended for the use of the addressee and may contain information that is privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of the information contained in this message is strictly unauthorized and prohibited. If you have received this message in error, please notify the sender by reply e-mail and delete the message from your system. Opinions, conclusions, or other statements in this message which do not relate to the business of NHC Communications Inc., its subsidiaries or affiliates, are neither given nor endorsed by NHC Communications Inc. - 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: Classpath within a plugin?
Hi Alex Did you try using this call : pom.getDependencyClasspath() ? By embedding this in an ant tag, you can pass it classpath info. ... ant:path id=project.class.path pathelement location=${maven.build.dest}/ pathelement path=${pom.getDependencyClasspath()}/ /ant:path ... Hope it helps, I'm not sure though. My example is made in a maven.xml file of a project, not from a plugin but still... should work. Eric. Alex Vollmer wrote: I have a Java executable class I need to run and I am unable to determine how to run the java task with a classpath that points to the classes packaged within my plugin. Is there any way to access this? Alex Vollmer [EMAIL PROTECTED] Software Engineer Tenzing Communications, Inc. 705 Fifth Avenue South, Suite 700 Seattle, WA 98104 USA T: +1 206.607.2869 Bring your laptop and try inflight email on your next United, Continental or Cathay Pacific flight. All you need is your laptop, user ID, password, and email server URL. Tenzing Communications, Inc. provides inflight email systems that help airborne travelers stay in touch. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Classpath within a plugin?
hehe, nice. thx Chad. I'm currently writing a plugin and I'll also need to execute a class with the dependency classpath. Very helpfull :) Eric. Chad Brandon wrote: Alex, Eric almost got it right, but it should be plugin.getDependencyClasspath() instead of pom.getDependencyClasspath() if you're within a plugin. Or you can include a single dependency at a time: plugin:getDependencyPath(groupId:artifactId). Chad - Original Message - From: Eric Giguere [EMAIL PROTECTED] To: Maven Users List [EMAIL PROTECTED] Sent: Tuesday, January 27, 2004 1:26 PM Subject: Re: Classpath within a plugin? Hi Alex Did you try using this call : pom.getDependencyClasspath() ? By embedding this in an ant tag, you can pass it classpath info. ... ant:path id=project.class.path pathelement location=${maven.build.dest}/ pathelement path=${pom.getDependencyClasspath()}/ /ant:path ... Alex Vollmer wrote: I have a Java executable class I need to run and I am unable to determine how to run the java task with a classpath that points to the Hope it helps, I'm not sure though. My example is made in a maven.xml file of a project, not from a plugin but still... should work. Eric. classes packaged within my plugin. Is there any way to access this? Alex Vollmer [EMAIL PROTECTED] Software Engineer Tenzing Communications, Inc. 705 Fifth Avenue South, Suite 700 Seattle, WA 98104 USA T: +1 206.607.2869 Bring your laptop and try inflight email on your next United, Continental or Cathay Pacific flight. All you need is your laptop, user ID, password, and email server URL. Tenzing Communications, Inc. provides inflight email systems that help airborne travelers stay in touch. - 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]
file activity plugin problem on windows
Hi all Got a small problem here with the file activity plugin on my W2K workstation. Running under Windos, the command line fails the the plugin reports that the cvs executable cannot be found but the diagnostic is not accurate. I've run the command that the engine try to run and the problem seems to be with the date rage specification. We have someting like : cvs -d :pserver... log -d 2003-12-222004-01-22 The problem is with the date range. This command line fails even when you type it. To make it valid, we must include the date range in double quotes so that the won't be interpreted as a file output redirection. Am I doing something wrong? Any workaround? Eric. Eric Giguere, ing. Software Team Leader NHC Communications Inc. http://www.nhc.com/ 5450 Cote de Liesse Mont-Royal (Quebec) Canada H4P 1A5 Tel.: Direct (514) 735-2741 x262 Fax.: (514) 735-8057 Toll Free: 1-800-361-1965 This message is intended for the use of the addressee and may contain information that is privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of the information contained in this message is strictly unauthorized and prohibited. If you have received this message in error, please notify the sender by reply e-mail and delete the message from your system. Opinions, conclusions, or other statements in this message which do not relate to the business of NHC Communications Inc., its subsidiaries or affiliates, are neither given nor endorsed by NHC Communications Inc.
problems overriding source dir
Hi all A small prob, wonder if I'm doing something wrong. I'm migrating from an Ant based build system to maven. I've define a sub projects to build all our jars (one projet, multiple jars in the distribution). By defining some overrides in the build.properties, I've manage to build the jar using an ant call and by pointing to the master project target dir so that all sub projects uses the same list of class files. Not to mention that the coupling level is pretty high but correcting this for another day. Anyway, override the source dir should be done by the project.xml file using the sourceDirectory element but for a reason, it doesn't work. In the maven.xml, I echo the maven.src.dir and it always give me the default... ${basedir}/src/java Here is the project.xml snippit. Anything wrong? Or do I get something wrong. I think that this sourceDirectory element would reflect its value in the mavan.src.dir? Or must we override this property in the build.properties. ... currentVersion3.1.1/currentVersion build !--sourceDirectory${basedir}/../../java/sourceDirectory -- sourceDirectory${basedir}/../../sourceDirectory /build /project My subprojet resides in : [master_projet_base_dir]/src/sub-projects/jar_project_1/project.xml thx for any advice Eric. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Proposed enhancement to jar plugin.jelly
Hi Jason Got ya, I'll do that next time (codehaus) Sure, a couple of reasons: flexibility, ability to use to power of the tool shelled by the plugin (Ant jar tag), and in my particular situation, write shorter lists of patterns. This happens mainly in projects that deals with not so well source layout scheme, like the one I'm on. We build jars from a single code base, and at some point, I had an exlude list of 8 items, that can be replaced by 1 include. The base dir for the jar task holds 9 sub-directories but only one goes in the target jar. Its obvious that such things doesn't happen with well defined project / sub project structure or those having one source base, one artifact generated, but unfortunetly, we don't always deal with those situations, not me in the recent years anyway (corporate world isn't always as clean as it shoud...;)). We have one project producing many jars from a single source base. In that sense, adding the possibility in the jar plugin seems reasonable since it doesn't prevent it from executing in its default mode and allowed me to shorten the list. If I find a way to manipulate some more the ant:jar tag using jelly (I'm kinda new to this), maybe I'll have some more enhancements to propose. After all, the ant:jar tag is way more flexible than what is currently exposed with the jar extension. Exposing already existing functionnality does seem desirable to me, as long as it doesn't compromise the purpose and behavior of the shell itself. IMHO Eric. Jason van Zyl wrote: On Fri, 2004-01-16 at 15:24, Eric Giguere wrote: Hi all A simple modification proposed for the pluggin.jelly for the jar plugin. As it is now, it calls ant:jar but only with the exclusions. Listing exclusions is sometime longer than inclusions. By adding a property in the build.properties (maven.jar.includes) and modifying plugin.jelly like this: cvs diff plugin.jelly (in directory F:\java\apache-public-cvs\maven-plugins\jar\) Index: plugin.jelly === RCS file: /home/cvspublic/maven-plugins/jar/plugin.jelly,v retrieving revision 1.27 diff -r1.27 plugin.jelly 32c32,33 excludes=${maven.jar.excludes} --- excludes=${maven.jar.excludes} includes=${maven.jar.includes} allows usage of both includes and excludes which can be very usefull in certain circumptances. Do you have some examples? We definitely appreciate the patch but reasons are always helpful :-) Jira is also a more appropriate place for patches and suggested enhancements: http://jira.codehaus.org My first enhancement proposal, is it the right place to do it? If not, sorry for the unwanted traffic. Didn't call it a patch either, neither did I open a bug for this since its not a bug ;) 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: Multiple remote repsitories + proxy settings
Hi Gilles Works perfectly, that is exactly what I wanted to setup. Merci ;) Eric. -Original Message- From: Gilles Dodinet [mailto:[EMAIL PROTECTED] Sent: January 13, 2004 7:49 PM To: Maven Users List Subject: Re: Multiple remote repsitories + proxy settings Eric, you might want to look at MavenProxy. Ive never used it but it seems you can specify proxy policies per repository. http://wiki.codehaus.org/maven/MavenProxy -- gd Eric Giguere wrote: Hi all A quick one. We're behind a firewall and use a proxy server to go on the Net. And we have a remote repository for jars that is on our internal network. Lets say I want to still use the one at ibiblio.org as a fallback repository. I know how to configure multiple remote repositories but, is it possible to specify proxy settings for lets say only the second remote repository in the list? I ask because if I set proxy settings, I can access the default repository, but not our local one. If I don't set proxy properties, then its the fallback (ibiblio.org) that becomes innaccessible because of our proxy server. Is there a work around? thx for any help - 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]
Child project using parent sources
Hi all Is there a property somewhere in the projet that can be set to tell a sub project to use the parents directories? I'm trying to build multiple jars using multiple maven projects but each uses its own sources and targets. The class files are in the parent's target. thx for any advice Eric. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Child project using parent sources
Sure can, thx for that one :) But since maven builds most of its properties on {basedir}, i guess then that the clean way to change maven.build.dir would be to override in the same manner this property in the build.properties of that sub-project? Eric. Sonnek, Ryan wrote: Couldn't you just change the child's sourceDirectory to point to the parent? sourceDirectory${basedir}/../src/java/sourceDirectory -Original Message- From: Eric Giguere [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 2:58 PM To: Maven Users List Subject: Child project using parent sources Hi all Is there a property somewhere in the projet that can be set to tell a sub project to use the parents directories? I'm trying to build multiple jars using multiple maven projects but each uses its own sources and targets. The class files are in the parent's target. thx for any advice 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple remote repository + proxy settings
Hi all A quick one. We're behind a firewall and use a proxy server to go on the Net. And we have a remote repository for jars that is on our internal network. Lets say I want to still use the one at ibiblio.org as a fallback repository. I know how to configure multiple remote repositories but, is it possible to specify proxy settings for lets say only the second remote repository in the list? I ask because if I set proxy settings, I can access the default repository, but not our local one. If I don't set proxy properties, then its the fallback (ibiblio.org) that becomes innaccessible because of our proxy server. Is there a work around? thx for any help Eric. Eric Giguere, ing. Software Team Leader NHC Communications Inc. http://www.nhc.com/ 5450 Cote de Liesse Mont-Royal (Quebec) Canada H4P 1A5
Multiple remote repsitories + proxy settings
Hi all A quick one. We're behind a firewall and use a proxy server to go on the Net. And we have a remote repository for jars that is on our internal network. Lets say I want to still use the one at ibiblio.org as a fallback repository. I know how to configure multiple remote repositories but, is it possible to specify proxy settings for lets say only the second remote repository in the list? I ask because if I set proxy settings, I can access the default repository, but not our local one. If I don't set proxy properties, then its the fallback (ibiblio.org) that becomes innaccessible because of our proxy server. Is there a work around? thx for any help Eric. Eric Giguere, ing. Software Team Leader NHC Communications Inc. http://www.nhc.com/ 5450 Cote de Liesse Mont-Royal (Quebec) Canada H4P 1A5
RE: Maven and java version
Hi Steven Yep. I had an issue with the javadoc plugin that wouldn't work with jdk 1.4 unless you specify its parameter (in the plugin.properties file in the javadoc plugin directory) : maven.javadoc.useexternalfile = true Hope it helps Eric. -Original Message- From: Ebersole, Steven [mailto:[EMAIL PROTECTED] Sent: January 12, 2004 3:58 PM To: Maven Users List Subject: Maven and java version The majority of our projects utilize java 1.3.x, however we have begun migrating some over to 1.4.x. Is there a way I can specify this distinction to maven (something like maven.java.home) per-project? Or is setting JAVA_HOME prior to running the maven command the only way? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven repositories?
Hi Jonathan Sure, using a web browser ;) http://www.ibiblio.org/maven/ Or by adding your jar description and version in your project file. By calling maven java:compile, you'll get the error message if the desired jar is missing. Eric. -Original Message- From: Jonathan Hawkes [mailto:[EMAIL PROTECTED] Sent: December 23, 2003 12:18 PM To: [EMAIL PROTECTED] Subject: Maven repositories? Hey, Is there any way to browse the repository at ibiblio.org to see if a particular component/library is installed there? What about alternative repositories? Thanks! Jonathan Hawkes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven.repo.remote as a local filesystem
Hi Amnon I'm a Maven newbie (but also a fast learner ;) ), but have also setup a repository on a LAN. Used Apache to make the doc public and accessible easily by the download engine. Works perfectly and Apache is quite easy to install / configure both on Windows and Linux boxes. file protocol is handy for a real local repository (same machine) but on a LAN, especially if you mix Win and Linux machines, refering to file using the UNC notation becomes quite tricky, and is not browser independant to add up :(. hope it helps Eric. Amnon Khen wrote: Hi Maven folk, Is it possible to add a directory on the company LAN to maven.repo.remote using the file:// protocol? I need to do it because we haven't yet completely migrated to Maven, and we have a central built artifacts reposaitory on our LAN, in which I wanna search for and retrieve to maven.repo.local my project's dependencies. Is it possible at all? Am I doing something wrong? I'm trying to configure maven.repo.remote = http://www.ibiblio.org/maven/, file:///build_pps/public/repo, file:///ilfss/data/products I'm getting the following error: -- 8 - 8 -- Attempting to download PECAN-3.50.0.9.zip. Error retrieving artifact from [file://build_pps/public/repo/pecan/zips/PECAN-3.50.0.9.zip]: java.ne t.ConnectException: Connection refused: connect Error retrieving artifact from [file://ilfss/data/products/pecan/zips/PECAN-3.50.0.9.zip]: java.net. ConnectException: Connection refused: connect WARNING: Failed to download PECAN-3.50.0.9.zip. -- 8 - 8 -- Thanks, Amnon __ Amnon Khen, Configuration Management, Cash-U Mobile Technologies LTD. Mobile: +972-(0)54-922394 / Office: +972-(0)9-8920815 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] / http://www.cash-u.com http://www.cash-u.com/ Israel - 45 Hamelacha St., P.O. Box 8617, New Industrial Zone, Netanya 36880, Israel / Tel: +972 9 8920888 Europe - Argentum, 2 Queen Caroline St., Hammersmith, London W6 9DT, UK / Tel: +44 20 8323 8066 Asia-Pacific - 47A Duxton Road, Singapore 089511 / Tel: +65 67322440 __ This e-mail message and its attachments are for the sole use of the intended recipient(s), may contain confidential and/or privileged information and are to be regarded as confidential information under any non disclosure agreement. Any review, use, disclosure or distribution by persons or entities other than the intended recipient(s) is prohibited. If you are not the intended recipient, please contact the sender by reply and destroy all copies of the original message and its attachments. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]