RE: Project build order for multiple Maven 2 projects - Alphabetical by Project Name?
Hi Emmanual et al, After a few hours migrating our 15 plus projects to Continuum 1.1 we now have everything up and running. I've been impressed with 1.1 (great work). 2 issues thus far: Issue 1 - Do we delete Project sub-modules? Consider the scenario: Project Group MyBigProject Project A pom.xml Module 1 pom.xml Module 2 pom.xml Project B ... Project C * in Continuum 1.0.3 if you had a project of the above format when adding each Maven 2 project you would have to delete Module 1 and Module 2 to leave a single Project A. You then delete the -no-recurse option on the Maven build line so it builds the whole project. In Continuum 1.1 it uses the dependencies to determine the build order. Given that the root pom of each projects do not have any of their 'own' dependencies (they just define dependencies used by sub-modules) should we still be deleting Module 1, Module 2 etc? Issue 2 - Performance -- Out of the box Continuum 1.1 appears much, much slower than 1.0.3. For example, it takes 30 secs+ after I click MyBigProject to display the contents of the Project Group which has 10 Projects. Are there any logging settings/go faster buttons that would help improve performance? Regards, Shaun. -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: 21 May 2007 18:00 To: continuum-users@maven.apache.org Subject: Re: Project build order for multiple Maven 2 projects - Alphabetical by Project Name? You must readd all projects Emmanuel Shaun Barriball a écrit : We're just trying the upgrade to 1.1 now from 1.0.3. Is there an upgrade path for this which preserves the database or do we have to re-install all projects from scratch? 1.1 isn't mentioned on http://maven.apache.org/continuum/upgrade.html. Regards, Shaun. -Original Message- From: Jeffery, Mark [mailto:[EMAIL PROTECTED] Sent: 21 May 2007 11:38 To: continuum-users@maven.apache.org Subject: RE: Project build order for multiple Maven 2 projects - Alphabetical by Project Name? Yeah.I am battling with the same thing http://jira.codehaus.org/browse/CONTINUUM-998 Should be fixed in 1.1-alpha-# Jeff -Original Message- From: Shaun Barriball [mailto:[EMAIL PROTECTED] Sent: 21 May 2007 11:41 To: continuum-users@maven.apache.org Subject: Project build order for multiple Maven 2 projects - Alphabetical by Project Name? Hi all, We've been using Continuum (1.0.3) successfully as part of our automated build and deploy for 6 months or so. We have one big issue which I'd appreciate input on. We have a large software system with 15 or so separate Maven 2 projects (assume for simplicity Project A, Project B and Project C) which each have sub-modules. Assume the dependency tree is: A - depends on C - depends on B (for example). These dependencies are expressed using Maven 2 dependency hierarchy. The Build All function on Continuum appears to ignore any Maven 2 dependency hierarchy and simply builds them in alphabetical order of the Project Name. This therefore builds the above example out of order - often resulting in build failures. * Should continuum 'understand' the dependency tree? I've read some material which implies this should potentially be the case (http://jira.codehaus.org/browse/CONTINUUM-39). * If not, is there a way to organise the build order for Build All above and beyond altering the project names with 1., 2. etc (which is obviously undesirable)? All help appreciated. Regards, Shaun. To read FirstRand Bank's Disclaimer for this email click on the following address or copy into your Internet browser: https://www.fnb.co.za/disclaimer.html If you are unable to access the Disclaimer, send a blank e-mail to [EMAIL PROTECTED] and we will send you a copy of the Disclaimer.
Re: Project build order for multiple Maven 2 projects - Alphabetical by Project Name?
On 21/05/07, Emmanuel Venisse [EMAIL PROTECTED] wrote: You must readd all projects Is there no planned upgrade path from 1.0.3? We have 400+ projects in 1.0.3 and would like to upgrade to 1.1 - obviously this will take a few man years if done manually.. Cheers, Mark
Re: Project build order for multiple Maven 2 projects - Alphabetical by Project Name?
On 22/05/07, Emmanuel Venisse [EMAIL PROTECTED] wrote: We'll probably do one but not for 1.1-alpha-* Okay cool, we'll wait until then thanks. Mark
Continuum 1.1 Alpha 1 and SCM : Build fresh option
Hi all, Where can I find Build fresh option description ? Another question is how can I configure continuum to make CVS update before building (as deafult in 1.0.3 version) ? regards, Christophe
Re: Project build order for multiple Maven 2 projects - Alphabetical by Project Name?
It's better to keep modules in continuum for build order resolution. Later, we'll add the possibility to add new dependencies on projects, so modules will can be removed. Emmanuel Shaun Barriball a écrit : Hi Emmanual et al, After a few hours migrating our 15 plus projects to Continuum 1.1 we now have everything up and running. I've been impressed with 1.1 (great work). 2 issues thus far: Issue 1 - Do we delete Project sub-modules? Consider the scenario: Project Group MyBigProject Project A pom.xml Module 1 pom.xml Module 2 pom.xml Project B ... Project C * in Continuum 1.0.3 if you had a project of the above format when adding each Maven 2 project you would have to delete Module 1 and Module 2 to leave a single Project A. You then delete the -no-recurse option on the Maven build line so it builds the whole project. In Continuum 1.1 it uses the dependencies to determine the build order. Given that the root pom of each projects do not have any of their 'own' dependencies (they just define dependencies used by sub-modules) should we still be deleting Module 1, Module 2 etc? Issue 2 - Performance -- Out of the box Continuum 1.1 appears much, much slower than 1.0.3. For example, it takes 30 secs+ after I click MyBigProject to display the contents of the Project Group which has 10 Projects. Are there any logging settings/go faster buttons that would help improve performance? Regards, Shaun. -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: 21 May 2007 18:00 To: continuum-users@maven.apache.org Subject: Re: Project build order for multiple Maven 2 projects - Alphabetical by Project Name? You must readd all projects Emmanuel Shaun Barriball a écrit : We're just trying the upgrade to 1.1 now from 1.0.3. Is there an upgrade path for this which preserves the database or do we have to re-install all projects from scratch? 1.1 isn't mentioned on http://maven.apache.org/continuum/upgrade.html. Regards, Shaun. -Original Message- From: Jeffery, Mark [mailto:[EMAIL PROTECTED] Sent: 21 May 2007 11:38 To: continuum-users@maven.apache.org Subject: RE: Project build order for multiple Maven 2 projects - Alphabetical by Project Name? Yeah.I am battling with the same thing http://jira.codehaus.org/browse/CONTINUUM-998 Should be fixed in 1.1-alpha-# Jeff -Original Message- From: Shaun Barriball [mailto:[EMAIL PROTECTED] Sent: 21 May 2007 11:41 To: continuum-users@maven.apache.org Subject: Project build order for multiple Maven 2 projects - Alphabetical by Project Name? Hi all, We've been using Continuum (1.0.3) successfully as part of our automated build and deploy for 6 months or so. We have one big issue which I'd appreciate input on. We have a large software system with 15 or so separate Maven 2 projects (assume for simplicity Project A, Project B and Project C) which each have sub-modules. Assume the dependency tree is: A - depends on C - depends on B (for example). These dependencies are expressed using Maven 2 dependency hierarchy. The Build All function on Continuum appears to ignore any Maven 2 dependency hierarchy and simply builds them in alphabetical order of the Project Name. This therefore builds the above example out of order - often resulting in build failures. * Should continuum 'understand' the dependency tree? I've read some material which implies this should potentially be the case (http://jira.codehaus.org/browse/CONTINUUM-39). * If not, is there a way to organise the build order for Build All above and beyond altering the project names with 1., 2. etc (which is obviously undesirable)? All help appreciated. Regards, Shaun. To read FirstRand Bank's Disclaimer for this email click on the following address or copy into your Internet browser: https://www.fnb.co.za/disclaimer.html If you are unable to access the Disclaimer, send a blank e-mail to [EMAIL PROTECTED] and we will send you a copy of the Disclaimer.
RE: User Interface Performance of 1.1
We're using the default db. -Original Message- From: Jesse McConnell [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 12:29 PM To: continuum-users@maven.apache.org Subject: Re: User Interface Performance of 1.1 what kinda database are you using for it? if its the embedded one you'll have to copy the right stuff around, if its postgres or mysql it should just be a matter of pointing it at the db.. jesse On 5/22/07, McNaught, Ewen [EMAIL PROTECTED] wrote: I've been running on continuum-20070502.03.tar Will I be able to upgrade to the alpha-2 for the performance improvements without having to re-add my projects? (We have over 70) --Duncan -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 12:17 PM To: continuum-users@maven.apache.org Subject: Re: User Interface Performance of 1.1 Performance are fixed in alpha-2 that will be available in few days. Emmanuel Shaun Barriball a écrit : Are there any known ways to improve the performance of Continuum - as per the issue below? Issue 2 - Performance -- Out of the box Continuum 1.1 appears much, much slower than 1.0.3. For example, it takes 30 secs+ after I click MyBigProject to display the contents of the Project Group which has 10 Projects. Are there any logging settings/go faster buttons that would help improve performance? Regards, Shaun. -- jesse mcconnell [EMAIL PROTECTED]
Re: towards continuum 1.1 alpha 2
fyi once the maven-scm release is out, I'll be preparing this alpha-2 release.. just wanted to let everyone know jesse On 5/14/07, Emmanuel Venisse [EMAIL PROTECTED] wrote: Trygve Laugstøl a écrit : Jesse McConnell wrote: May 21 is fast approaching and that when I want to get the alpha-2 release of continuum out. The advances we have made since alpha-1 are mostly in the area of a few more bug fixes, redback integration and shifting off of the plexus-security-rbac-profile artifact for role management to the different implementation of role management that has an easier api into client applications like continuum. Will Emmanuel's XML-RPC work be included? Yes, it will be included. - New xml-rpc server included as a servlet so don't need a specific port - New xmlrpc client API that don't need all the Hashtable conversions - A maven continuum plugin. The first version will be to add projects in continuum load up continuum trunk and take a look the following url to see the roles and role templates and what operations they grant access to, etc. http://localhost:9090/security/roleModel.action (you will need to log in and manually visit this url atm) Also on continuum trunk at the moment is some work from emmanual with regard to the xmlrpc bits and pieces of continuum. They are now authn an (increasing authz as its implemented) protected. The clients are pretty simple and its looking pretty nice. anyway, that is a little update on things as they stand. Thanks for keeping up. -- Trygve -- jesse mcconnell [EMAIL PROTECTED]
Maven 2 - POM Hookup Question
Hello, Sorry if this has been asked before, but here goes... When providing Continuum with a Maven POM via URL, what URL? POM's sitting on a local Maven repository? The pom which is located in/on the projects website (i.e. website generated by site goal in maven)? Where is this POM located? Also, how does this work for multi-module POMs? Assuming they'd have their own maven project and you can point to the pom there? If there is an online reference to this subject a pointer to it would be outstanding. Thanks, Randall
Re: Maven 2 - POM Hookup Question
On 5/22/07, Randall Fidler [EMAIL PROTECTED] wrote: When providing Continuum with a Maven POM via URL, what URL? POM's sitting on a local Maven repository? The pom which is located in/on the projects website (i.e. website generated by site goal in maven)? Where is this POM located? Also, how does this work for multi-module POMs? Assuming they'd have their own maven project and you can point to the pom there? Usually, it's the pom sitting in the project's source control repository, which is often visible via a http or https url. Is that an option for your project? Once Continuum retrieves the pom, it uses the (different) url in the scm element to check out the source code. When the pom has modules, they will get added to the project group as individual projects. I'm not sure at which step that happens, but it does happen. -- Wendy
RE: Maven 2 - POM Hookup Question
Hi Wendy, Projects are sitting inside Perforce - would you use the Perforce web interface to expose the pom? The Perforce web setup is basically the normal p4 client but web implementation (from my little experience with it). Thanks for the reply. Regards, Randall -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 9:22 PM To: continuum-users@maven.apache.org Subject: Re: Maven 2 - POM Hookup Question On 5/22/07, Randall Fidler [EMAIL PROTECTED] wrote: When providing Continuum with a Maven POM via URL, what URL? POM's sitting on a local Maven repository? The pom which is located in/on the projects website (i.e. website generated by site goal in maven)? Where is this POM located? Also, how does this work for multi-module POMs? Assuming they'd have their own maven project and you can point to the pom there? Usually, it's the pom sitting in the project's source control repository, which is often visible via a http or https url. Is that an option for your project? Once Continuum retrieves the pom, it uses the (different) url in the scm element to check out the source code. When the pom has modules, they will get added to the project group as individual projects. I'm not sure at which step that happens, but it does happen. -- Wendy
Adding a phase to maven-release-plugin
Hi, I have a plugin that needs to be executed either 1) after the maven-release-plugin's scm-tag phase but before the scm-commit-development phase OR 2) after maven-release-plugin:prepare Option 1 is preferred as it would mean just 2 commits to the trunk during release. Option 2 would generate an extra commit. I think I can see how to do option 1, but it requires modifying the maven-release-manager. I believe just adding a phase in components.xml and the impl for it. But then I need to consider managing such a mod if it can't be folded back into the plugin. I'll probably push on this front in any case. But in the meantime, how do I couple 2 plugin's together to achieve option 2. Is there some way to specify that the release-plugin should always run before my plugin? William - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
automatically download dependecies
I have a POM containing dependencies. I run some plugin goals which are not bound to any lifecycle phase from this directory. Maven does not download dependencies specified in POM. My requirement is to download all dependencies specified in POM at this time. I understand that invoking mvn install from this directory will download all the dependencies. But I don't want to do that. I also tried antlib, but that too downloads only when I invoke mvn install. Is there a possible solution? Thanks Regards, Advait Trivedi, Sr. Software Engineer, Mphasis Ltd.
POMs for Third Party Libraries
What is the best way to deal with third party libraries that are not released as maven 2 projects? I know about the install and deploy plug-ins, but I am worried about dependency management. A lot of the third party libraries we use have the following problems: 1) Some of the library's dependencies are only needed for specific functionality (ie a db library only needs the postgres jars when used with postgres) 2) The library is distributed with unversioned jars 3) The library is distributed with nightly or dev build jars So far, our solution has been to create a custom pom with all the dependencies marked as optional dependencies. This negates the benefit of transitive dependencies, but since these are third party libraries it is very hard for us to tell what is truly required. At least with optional dependencies, the pom file itself contains clues about the dependencies. For unversioned and nightly or dev build jars, we have been adding them with the groupId of the third party library and appending the name and version of the third party library to the dependency. Does this sound like a good solution or does anybody have a better one? We are trying to avoid losing the original jars distributed with the library. Thanks, Joon Chuah
MOJO question
Hi, In Maven 1 we had a 'wrapper' plugin that executed standard maven goals and an executable and also executed goals from our own custom made plugins through the plugin.jelly. Our projects executed Maven 1 with the goal 'custom:buildAll' and it was very easily changed. What is the best way of writing the same type of 'wrapper' plugin for Maven 2? Thanks, Maarten The fish are biting. Get more visitors on your site using Yahoo! Search Marketing. http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configure the time in metainf file
Hi, I want to add an entry in the manifest that contains the date in a format of: mmdd Can you give me an example of how to do it? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Issue with dependency plugin, unpack goal
You are right Brian. Maven by itself takes care of uninstalled reactor projects dependencies. But some of the plugins dont. Installing projects in the local repo will ensure that all plugins will resolve their dependency. Hypothetically speaking, wont there be cases where installation / deployment (in the local/remote repo) of the parent project its modules depends on the successful compile, test, package of all the sub-modules? ie a all or nothing senario - If Project A v1 and its modules must be installed only if all the modules compile, test package correctly. If this was possible one could do a multi-module package first and then if that was successful do a multi-module install. But I guess installing the plugins in the local repo before deploying it to the remote repo is mavens way of doing things. But there should be some consistency and guidelines. Either include reactor projects completely or exclude them completely. 'Convention over configuration'. This would ensure that there is only one way of doing things. A penny for your thoughts :). Kind Regards Varghese C V Brian E. Fox wrote: In some cases, Maven will look in the reactor projects and find artifacts that haven't been installed. In my opinion, it shouldn't do this. Things should have to be located in the local repo to be shared amongst projects. The dependency plugin specifically does not look in the reactors (at least for copy/unpack) but someone recently wrote an issue for this. -Original Message- From: Varghese C V [mailto:[EMAIL PROTECTED] Sent: Monday, May 21, 2007 8:26 AM To: Maven Users List Subject: Re: Issue with dependency plugin, unpack goal Thank you, Maria for your reply. I was just trying various variations of the dependency. First I tried putting the version in the dependency-plugin configuration and no dependency elements defined. That didnt work. Specifying my-app:1.0-SNAPSHOT in dependency dependencyManagement elements did not work either. I have noticed that it works when I do the 'mvn install'. It does not work with I try with 'mvn package'. dependencies before the dependency-plugin can find it. Here is another issue report that seems to suggest the same. http://jira.codehaus.org/browse/MNG-740. Lesson learnt : Only install and above life cycle phases works in multi-module maven builds if you have inter-project dependencies. I am not sure why though. Reactor artifacts are not 'seen' by other artifacts during a multi-module package. Install works cause the artifacts are now in the local repository. What do you think? regards Varghese Maria Odea Ching wrote: Hi, I think what you have here is just a configuration problem. The dependencyManagement that you have in your my-dep-app module should be on the parent pom, not in the my-dep-app pom. That's why the dependency's version here -- [INFO] Configured Artifact: com.mycomp.app:my-app:?:jar cannot be resolved, no version can be found on the parent pom when it looked there. -Deng Varghese C V wrote: (Sorry, my earlier mail had a Re: in the subject by mistake, hence 'am reposting the issue with the correct subject title.) I have a parent project which has two modules 'my-app' and 'my-dep-app' (both created by the archetype-create example). The 'my-dep-app' project wants the 'my-app' dependency to be unpacked into its target\classes folder. I am trying to merge the classes of multiple model projects before I can run the jibx xml binding compiler on them. This way I need only one jibx binding factory for a group of related models. The error 'Failed to resolve artifact' and the fact that it works when installed in the local repository suggests that reactor artifacts are not checked to resolve the dependency. Is this a multi-module problem? I would like to point out that looks very similar to a resolved dependency plugin issue (http://jira.codehaus.org/browse/MDEP-44), except that I dont use the assembly plugin as shown in the test case. Any help is appreciated. Maven : 2.0.6 Maven dependency plugin : 2.0 alpha 4 This is the output I get. PFA the poms(Zip attachments are getting rejected) * [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] my-app [INFO] my-dep-app [INFO] My-apps parent pom [INFO] - --- [INFO] Building my-app [INFO]task-segment: [package] [INFO] - --- ... [INFO] [jar:jar] [INFO] Building jar: C:\test\mvn\dependency-unpack-test\my-app\target\my-app-1.0-SNAPSHOT. jar [INFO] - --- [INFO] Building my-dep-app [INFO]task-segment: [package] [INFO] - --- [INFO]
RE: Integration tests in a separate moule
And you were perfectly right, my integration tests compile now !! Thanks a lot for your help. For the record, I did as you advised me, that is : - I added a foojar module and moved the source code from foowar there - I made foowar depend on foojar (the war is now built with a foojar.jar in WEB-INF/lib, rather than compiled classes in WEB-INF/classes) - I made integtesttomcat depend on foojar Thanks again, Arnaud -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: lundi 21 mai 2007 18:49 To: Maven Users List Subject: Re: Integration tests in a separate moule On 5/21/07, Arnaud Jeansen [EMAIL PROTECTED] wrote: My problem is that I can't make these integration tests compile in the test phase of the integtesttomcat module. These tests depend on the classes from foowar/src/main/java (to compile test classes looking like web services clients, I need the classes defining my model). When I run the mvn install, the tests will not compile because they will fail to see the main classes (lots of Symbol not found) ... If anyone can take some time to pitch in some suggestions, I would be very grateful I'd move the java code out of the webapp into a separate module, and have both the webapp and the integration tests module depend on it. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Ce message et ses pièces jointes (le message) est destiné à l'usage exclusif de son destinataire. Si vous recevez ce message par erreur, merci d'en aviser immédiatement l'expéditeur et de le détruire ensuite. Le présent message pouvant être altéré à notre insu, CALYON Crédit Agricole CIB ne peut pas être engagé par son contenu. Tous droits réservés. This message and/or any attachments (the message) is intended for the sole use of its addressee. If you are not the addressee, please immediately notify the sender and then destroy the message. As this message and/or any attachments may have been altered without our knowledge, its content is not legally binding on CALYON Crédit Agricole CIB. All rights reserved. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CVS parameters
On 5/21/07, Wayne Fay [EMAIL PROTECTED] wrote: I'm not clear -- is this response not sufficient and you're asking for more help, or do you have things working? If you still need help, I'd suggest looking at example pom.xml files for some open source projects to see how they have configured their SCM. Here's a few links: http://svn.plexus.codehaus.org/browse/plexus/trunk/pom.xml?r=1500 http://vmgump.apache.org/gump/public/jline/jline/gump_file/pom.xml.html http://fisheye1.cenqua.com/browse/wsmo4j/ext/pom.xml?r=1.4 If you're having specific problems, tell us what you've done, what specifically isn't working, what error messages you're receiving, etc. Wayne This is my scm section: scm connection scm:cvs:pserver:js6285:[EMAIL PROTECTED]:12310 :/appl/pkg1/cvs/reps/theteam/cvs:CSPCookieFilter /connection developerConnection scm:cvs:pserver:js6285:[EMAIL PROTECTED]:12310 :/appl/pkg1/cvs/reps/theteam/cvs:CSPCookieFilter /developerConnection tagHEAD/tag url/url /scm This is the command I'm executing: $ mvn -e scm:update This is the error message: [ERROR] No CVS root is set. Check your repository information in the POM. [ERROR] Provider message: [ERROR] The cvs command failed. [ERROR] Command output: [ERROR] Nothing I've read says anything about cvsroot in the POM. Slightly more interesting is that if I execute the same command with the same POM in a directory where I've already checked out the code I get this error: [ERROR] Didn't find password for CVSROOT ': pserver:[EMAIL PROTECTED]:12310/appl/pkg1/cvs/reps/theteam/cvs'. The user ID in the error message is always the one I used to check out the code, not the one in the POM (when they are different). The password is in the POM but it's not being used. Also, there seems to be a colon missing between the port number and the path to the repository. -- Esse Quam Videre To Be, rather than to Seem
A bit offtopic: How to Configure CC to run with maven 2 ?
Hello, i already have CC running but actually my build seems not to start as CC says that the Build is Broken after 2-3 seconds. I have mvn on the shell so I can invoke mvn install for example, after that I start ./cruisecontrol.sh and it starts with no failures. I already made an initial checkout of the sources. Also my CC config.xml seems ok. Maybe someone can point me to some link or give me a hint what wrong ? SVN is also available on commandline! Thanks, Jens
Re: CVS parameters
Jon Strayer a écrit : On 5/21/07, Wayne Fay [EMAIL PROTECTED] wrote: I'm not clear -- is this response not sufficient and you're asking for more help, or do you have things working? If you still need help, I'd suggest looking at example pom.xml files for some open source projects to see how they have configured their SCM. Here's a few links: http://svn.plexus.codehaus.org/browse/plexus/trunk/pom.xml?r=1500 http://vmgump.apache.org/gump/public/jline/jline/gump_file/pom.xml.html http://fisheye1.cenqua.com/browse/wsmo4j/ext/pom.xml?r=1.4 If you're having specific problems, tell us what you've done, what specifically isn't working, what error messages you're receiving, etc. Wayne This is my scm section: scm connection scm:cvs:pserver:js6285:[EMAIL PROTECTED]:12310 :/appl/pkg1/cvs/reps/theteam/cvs:CSPCookieFilter /connection developerConnection scm:cvs:pserver:js6285:[EMAIL PROTECTED]:12310 :/appl/pkg1/cvs/reps/theteam/cvs:CSPCookieFilter /developerConnection tagHEAD/tag url/url /scm This is the command I'm executing: $ mvn -e scm:update This is the error message: [ERROR] No CVS root is set. Check your repository information in the POM. [ERROR] Provider message: [ERROR] The cvs command failed. [ERROR] Command output: [ERROR] Do you use this command in a CVS working copy directory? Nothing I've read says anything about cvsroot in the POM. Slightly more interesting is that if I execute the same command with the same POM in a directory where I've already checked out the code I get this error: [ERROR] Didn't find password for CVSROOT ': pserver:[EMAIL PROTECTED]:12310/appl/pkg1/cvs/reps/theteam/cvs'. The user ID in the error message is always the one I used to check out the code, not the one in the POM (when they are different). The password is in the POM but it's not being used. Also, there seems to be a colon missing between the port number and the path to the repository. colon isn't missing, it's the format used in .cvspass how did you checked out your project? What is the version of your scm plugin? Emmanuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
install:install - POM isn't filtered when installed in repo
Hello, In my POMs the version numbers are set according to local settings and given CLI parameters. This works fine e.g. in the effective pom, but not when installing or deploying the POM to the repository, the pom file is just copied 1:1 to the repo, without any filtering. Why? Any suggestions? I'm glad for any assistence, since it cost me already two days figuring that out Cheers, Frank Example POM: ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdaaa/groupId artifactIdbbb/artifactId version${buildVersion}/version !-- used throughout all of our projects/modules -- packagingpom/packaging properties versionNo1.2/versionNo buildVersion${versionNo}${label}/buildVersion !-- label is set differently in a local build and in the CruiseControl build -- /properties ... repositories.../repositories dependencies.../dependencies build.../build ... /project - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven2 compiler out of memory error
Hi, I've a problem when I'm trying to compile a new version of my application. fooApp_1.0 has 1905 files, and Maven compiles it right dooApp_1.1 has 1985 files, and whenI try to compile it with Maven (btw, when compiling with Eclipse works fine), I'm receive the following error: org.apache.maven.BuildFailureException : Compilation failure Failure executing javac, but could not parse the error: The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:5 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExe or.java :480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:45 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycl ecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments (DefaultLifecycleExecutor va:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java :143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke ( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java :315) at org.codehaus.classworlds.Launcher.launch (Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java :430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) In my pom.xml I'd configured the JDK as: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version 2.1-SNAPSHOT/version configuration executable${JAVA_1_4_HOME}/bin/javac/executable forktrue/fork source 1.4/source target1.4/target meminitial128m/meminitial maxmem1024m/maxmem verbosefalse/verbose /configuration /plugin (I got the same error with version 2.0.2 and 2.0.1) I've also an drt watson file, with # An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x080c15d5, pid=896, tid=3920 # # Java VM: Java HotSpot(TM) Client VM (1.4.2_12-b03 mixed mode) # Problematic frame: # V [jvm.dll+0xc15d5] # .. VM Arguments: jvm_args: -Dapplication.home=C:\Java\1.4.2_12 -Xms8m -Xmx1224m -Xms512m java_command: [EMAIL PROTECTED]:/Temp/org.codehaus.plexus.compiler.javac.JavacCompiler54296arguments Launcher Type: SUN_STANDARD . Any idea ? Regards Pier.
RE: Maven2 compiler out of memory error
Hi Pier, The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError not sure about the mem settings for the compiler plugin, but my OutOfMemoryError problems disappeared when I set the MAVEN_OPTS environment variable. eg. MAVEN_OPTS=-Xmx1024m -Xms512m export MAVEN_OPTS regards, Bram -Original Message- From: Pier Mauro Vignati [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 3:36 PM To: users@maven.apache.org Subject: Maven2 compiler out of memory error Hi, I've a problem when I'm trying to compile a new version of my application. fooApp_1.0 has 1905 files, and Maven compiles it right dooApp_1.1 has 1985 files, and whenI try to compile it with Maven (btw, when compiling with Eclipse works fine), I'm receive the following error: org.apache.maven.BuildFailureException : Compilation failure Failure executing javac, but could not parse the error: The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:5 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa lWithLifecycle (DefaultLifecycleExe or.java :480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:45 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa lAndHandleFailures(DefaultLifecycl ecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTas kSegments (DefaultLifecycleExecutor va:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java :143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke ( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java :315) at org.codehaus.classworlds.Launcher.launch (Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java :430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) In my pom.xml I'd configured the JDK as: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version 2.1-SNAPSHOT/version configuration executable${JAVA_1_4_HOME}/bin/javac/executable forktrue/fork source 1.4/source target1.4/target meminitial128m/meminitial maxmem1024m/maxmem verbosefalse/verbose /configuration /plugin (I got the same error with version 2.0.2 and 2.0.1) I've also an drt watson file, with # An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x080c15d5, pid=896, tid=3920 # # Java VM: Java HotSpot(TM) Client VM (1.4.2_12-b03 mixed mode) # Problematic frame: # V [jvm.dll+0xc15d5] # .. VM Arguments: jvm_args: -Dapplication.home=C:\Java\1.4.2_12 -Xms8m -Xmx1224m -Xms512m java_command: [EMAIL PROTECTED]:/Temp/org.codehaus.plexus.compiler. javac.JavacCompiler54296arguments Launcher Type: SUN_STANDARD . Any idea ? Regards Pier. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jboss maven plugin doubt
I have one doubt regarding remote deployment : 1) I am using cargo-maven2 plugin. plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId version0.3-SNAPSHOT/version configuration container containerIdjboss4x/containerId typeremote/type /container configuration typeruntime/type properties cargo.hostname1.2.3.5/cargo.hostname cargo.servlet.port8085/cargo.servlet.port /properties /configuration deployer typeremote/type deployables deployable groupIdCSA_CS/groupId artifactId2.4-SNAPSHOT/artifactId location/root/csacore/CSA_CS/target/csa24.war/location /deployable /deployables /deployer /configuration /plugin I have following doubt : 1) By using this remote deployment war gets deployed in tmp dir of jboss not in deploy dir of jboss. Hence if we restart jboss it won't contain particular war file. 2) Some times it try to find the file (war file) in same location as that of local machine from where we have given mvn deploy command even if we have given location tag with war file path?? Is their any other way so that I can deploy my war on remote jboss and jetty server?? I am ready to use another plugin also not just cargo plugin. Thanks, Shilpa
Re: How to create site with just jar files?
The project that I want to create consists of a single application library relay-mailer.0.0.1.jar and several supporting libraries: log4j, commons-logging, mail, activation, etc. There a couple of launch scripts too. I have two goals that I am trying to reach. First is to copy the all the files (libraries and scripts) to a specified local directory for staging and local testing. Second is to deploy the contents of the local staging directory to a remote host using scp. My current pom.xml content is: ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdrelay-mailer/groupId artifactIdrelay-mailer/artifactId version0.0.1/version packagingjar/packaging dependencies dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.14/version /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId version1.0.4/version /dependency dependency groupIdjavax.mail/groupId artifactIdmail/artifactId version1.4/version /dependency dependency groupIddnsjava/groupId artifactIddnsjava/artifactId version2.0.1/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.2/version /dependency /dependencies !--distributionManagement site idmojo.website/id nameMojo Website/name urlfile:/test//url /site /distributionManagement-- /project Wayne Fay [EMAIL PROTECTED] wrote: Please describe (specifically) what you are trying to do, what end results you are hoping to achieve, and someone on this list will most likely reply back with information that may prove helpful. Wayne On 5/22/07, Dennis Cook wrote: Okay, so adding the element to the POM helped get past the error message, but the result was did not provide what I was looking for. I got a staging directory containing some template html files. Neither the application library nor any of the supporting libraries were present. How do I get all of the libraries that make up the application into one location? Dennis Cook wrote: I am new to maven2 and trying to convert a project that is using a makefile to maven2. This is a simple java application, one main jar with 3 dependent libraries. I have gotten the build process to work up to the install goal. But I need to progress to the point that the application jar and its supporting libraries are delivered to another directory on the local (and eventually remote) host. From the information I can find in the doc I think the site:stage goal is the one I need, but I hit an error from in this goal that I do not understand: From the command mvn site:stage The error: [INFO] Error during site generation Embedded error: C:\development\nethaggler\relay-mail\target\staging\Unnamed - relay-mailer:relay-mailer:jar:0.0.1\integration.html (The filename, directory name, or volume label syntax is incorrect) My project has has no html files so why is it looking for this integration.html file? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to use the same jar in the maven repository but in another java version?
thanks Jo, but it's not a maven 2 feature? On 21/05/07, Jo Vandermeeren [EMAIL PROTECTED] wrote: Hi, If you are making multiple artifacts from one module, you should definitely use classifiers for the build artifacts. Otherwise, they get mixed up and you end up with garbage. You can configure the maven-jar-plugin or the maven-assembly-plugin to add classifiers to the artifacts when their profiles are active. There's some decent material on the sonatype website that explains it: http://www.sonatype.com/book/profiles.html#Classifiers Cheers Jo On 5/21/07, emerson cargnin [EMAIL PROTECTED] wrote: Hi all I'm using maven 1.1. I have two multi-build projects that depend on same jars. But one is to be compiled in 1.4 and the other in 1.5. The thing is that the 1.4 one tries to dowload from the maven repository, as it has a newer date (as it was run by cruisecontrol) and ends up having incompatibility. Besides disabling cruisecontrol to upload the generated files, how could I manage this sharing of jar in two different versions? thanks emerson - 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: Surefire systemClassLoader option
I can't be sure without seeing more information about the specific tests that are failing with the various options (lines of code that are breaking) and the Surefire/JUnit debug/error logs with more detailed info (from target/surefire-reports). Can you provide that? Then perhaps we can help you solve your problems. Wayne On 5/21/07, Grant Ingersoll [EMAIL PROTECTED] wrote: I am having some trouble with class loading in tests. For some tests in my set of tests, the only way the pass via M2 is if I set useSystemClassLoader to true per http://jira.codehaus.org/browse/ SUREFIRE-106. On the other hand, some other subset of tests only pass if useSystemClassLoader is false. One thing I see that is strange is, when useSystemClassLoader is true, my target/classes directory occurs before target/test-classes in the classpath, meaning the resources in src/main/resources are resolved before the ones in src/test/resources. Has anyone else run into this or have suggestions on what to do? Thanks, Grant -- Grant Ingersoll Center for Natural Language Processing http://www.cnlp.org/tech/lucene.asp Read the Lucene Java FAQ at http://wiki.apache.org/jakarta-lucene/ LuceneFAQ - 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: jboss maven plugin doubt
Have you tried the jboss-maven-plugin from Mojo project? I don't know if it works better/different than Cargo, but perhaps its worth trying out. http://mojo.codehaus.org/jboss-maven-plugin/usage.html Another way you can deploy your project would be to simply use the normal JBoss deployment tools (via command line or web control panel). Cargo simply tries to make things easier for you. If it doesn't work the way you want/need, then you'll need to simply package your WAR/EAR using Maven and then deploy into your container using the JBoss-provided tools. Wayne On 5/22/07, Shilpa Khondre [EMAIL PROTECTED] wrote: I have one doubt regarding remote deployment : 1) I am using cargo-maven2 plugin. plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId version0.3-SNAPSHOT/version configuration container containerIdjboss4x/containerId typeremote/type /container configuration typeruntime/type properties cargo.hostname1.2.3.5/cargo.hostname cargo.servlet.port8085/cargo.servlet.port /properties /configuration deployer typeremote/type deployables deployable groupIdCSA_CS/groupId artifactId2.4-SNAPSHOT/artifactId location/root/csacore/CSA_CS/target/csa24.war/location /deployable /deployables /deployer /configuration /plugin I have following doubt : 1) By using this remote deployment war gets deployed in tmp dir of jboss not in deploy dir of jboss. Hence if we restart jboss it won't contain particular war file. 2) Some times it try to find the file (war file) in same location as that of local machine from where we have given mvn deploy command even if we have given location tag with war file path?? Is their any other way so that I can deploy my war on remote jboss and jetty server?? I am ready to use another plugin also not just cargo plugin. Thanks, Shilpa - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A bit offtopic: How to Configure CC to run with maven 2 ?
I don't use CruiseControl, but surely there is a more detailed log available that says something more than simply build is broken. Find that log and the specific error/problem you're running into, and perhaps someone here can help. But realistically, this is a better question for the CC Users list, right? Wayne On 5/22/07, Jens Hohl [EMAIL PROTECTED] wrote: Hello, i already have CC running but actually my build seems not to start as CC says that the Build is Broken after 2-3 seconds. I have mvn on the shell so I can invoke mvn install for example, after that I start ./cruisecontrol.sh and it starts with no failures. I already made an initial checkout of the sources. Also my CC config.xml seems ok. Maybe someone can point me to some link or give me a hint what wrong ? SVN is also available on commandline! Thanks, Jens - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: parallel building
I have added it as MNG-3004. I had a quick play to see if I could get it to work - I created a POC that could build in parallel, but my threads don't seem to have the requisite plexus gubbins in their classpath, and I'm not sure how all that stuff works. If someone could tell me how to fix that it'd be good - I know supplementary things will need more thought (e.g. interleaved logging from the different threads), but it oughtn't to be insurmountable. On 10/04/07, emerson cargnin [EMAIL PROTECTED] wrote: I had a look on Hudson and I think it just distribute different projects, not the same project build: https://hudson.dev.java.net/masterSlave.html I couldn't found in any of Jira projects any thing regarding to parallel multi module build. Does anyone knows if this search is right? : http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truepid=10500pid=11124pid=11533pid=11123pid=11125pid=11126pid=11191pid=11211pid=11212pid=11127pid=11128pid=11227pid=11129pid=11226pid=11213pid=11130pid=11214pid=11131pid=11310pid=11361pid=11132pid=11133pid=11134pid=11530pid=11341pid=11431pid=11532pid=11141pid=11215pid=11135pid=11136pid=11441pid=11137pid=11216pid=11138pid=11340pid=11217pid=11218pid=11220pid=11221pid=11241pid=11293pid=11139pid=11140pid=11142pid=11143pid=11144pid=11391pid=11250pid=11145pid=11531pid=11390pid=11223pid=11483pid=11540pid=11146pid=11147pid=11224pid=11149pid=11150pid=11362pid=11225pid=11095pid=11481pid=10940pid=0query=parallelsummary=truedescription=truebody=true Thanks a lot Emerson On 10/04/07, Nigel Magnay [EMAIL PROTECTED] wrote: Not as far as I know. The Hudson CI tool claims to be able to parallel build in the correct order, but I don't know how good it is at it. IMHO it'd be a very powerful addition - if you've got something like an 8-core mac, it'd be nice to keep more of it busy. Even farming out builds to separate machines (something I believe XCode can do) would be even nicer... Maybe there's a JIRA issue for this. On 10/04/07, emerson cargnin [EMAIL PROTECTED] wrote: Is there any way to make multi modules (regarding to both maven 1 and maven 2) builds to work in parallel when it detects a project has no dependencies (that need to be built beforehand)? thanks emerson - 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]
Property validation
I would like to verify that certain properties are set in my pom. If the property is not set, I would like the build to fail. Is there a way to do this with the enforcer plugin or with another plugin? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2 compiler out of memory error
Switching to the JDK 1.5, I've got a detailed error ... ssomething really strange: The system is out of resources. Consult the following stack trace for details. java.lang.StackOverflowError at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:297) at com.sun.tools.javac.comp.Attr.visitBinary(Attr.java:1518) at com.sun.tools.javac.tree.Tree$Binary.accept(Tree.java:926) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:275) at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:297) at com.sun.tools.javac.comp.Attr.visitBinary(Attr.java:1518) at com.sun.tools.javac.tree.Tree$Binary.accept(Tree.java:926) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:275) at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:297) at com.sun.tools.javac.comp.Attr.visitBinary(Attr.java:1518) at com.sun.tools.javac.tree.Tree$Binary.accept(Tree.java:926) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:275) at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:297) at com.sun.tools.javac.comp.Attr.visitBinary(Attr.java:1518) at com.sun.tools.javac.tree.Tree$Binary.accept(Tree.java:926) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:275) at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:297) at com.sun.tools.javac.comp.Attr.visitBinary(Attr.java:1518) at com.sun.tools.javac.tree.Tree$Binary.accept(Tree.java:926) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:275) at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:297) at com.sun.tools.javac.comp.Attr.visitBinary(Attr.java:1518) at com.sun.tools.javac.tree.Tree$Binary.accept(Tree.java:926) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:275) at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:297) at com.sun.tools.javac.comp.Attr.visitBinary(Attr.java:1518) at com.sun.tools.javac.tree.Tree$Binary.accept(Tree.java:926) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:275) at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:297) at com.sun.tools.javac.comp.Attr.visitBinary(Attr.java:1518) at com.sun.tools.javac.tree.Tree$Binary.accept(Tree.java:926) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:275) at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:297) at com.sun.tools.javac.comp.Attr.visitBinary(Attr.java:1518) at com.sun.tools.javac.tree.Tree$Binary.accept(Tree.java:926) at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:275) at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:297) Any idea ? is it a JDK bug ?? Regards Pier. On 5/22/07, Pier Mauro Vignati [EMAIL PROTECTED] wrote: Hi Bram, thanks for your reply. Yes, I did. I tried with -Xmx1024m -Xms512m and with -Xmx1024m -Xms512m -XX:PermSize=128m -XX:MaxPermSize=256m as I find in another thread, but it still not work. I set them from command line and I also tried to modify the mvn.bat file too .. still the same error .. Also, to compile the previous version I was using 512m. Now, with only 80 class more it seems that 1gb is not enought :-((. It seems than even if there are these options, the compiler doesn't see .. Regards Pier. On 5/22/07, Bram de Kruijff [EMAIL PROTECTED] wrote: Hi Pier, The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError not sure about the mem settings for the compiler plugin, but my OutOfMemoryError problems disappeared when I set the MAVEN_OPTS environment variable. eg. MAVEN_OPTS=-Xmx1024m -Xms512m export MAVEN_OPTS regards, Bram -Original Message- From: Pier Mauro Vignati [mailto: [EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 3:36 PM To: users@maven.apache.org Subject: Maven2 compiler out of memory error Hi, I've a problem when I'm trying to compile a new version of my application. fooApp_1.0 has 1905 files, and Maven compiles it right dooApp_1.1 has 1985 files, and whenI try to compile it with Maven (btw, when compiling with Eclipse works fine), I'm receive the following error: org.apache.maven.BuildFailureException : Compilation failure Failure executing javac, but could not parse the error: The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals ( DefaultLifecycleExecutor.java:5 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa lWithLifecycle (DefaultLifecycleExe or.java :480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:45 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa lAndHandleFailures(DefaultLifecycl ecutor.java:311) at
Re: Maven2 compiler out of memory error
Hi Bram, thanks for your reply. Yes, I did. I tried with -Xmx1024m -Xms512m and with -Xmx1024m -Xms512m -XX:PermSize=128m -XX:MaxPermSize=256m as I find in another thread, but it still not work. I set them from command line and I also tried to modify the mvn.bat file too .. still the same error .. Also, to compile the previous version I was using 512m. Now, with only 80 class more it seems that 1gb is not enought :-((. It seems than even if there are these options, the compiler doesn't see .. Regards Pier. On 5/22/07, Bram de Kruijff [EMAIL PROTECTED] wrote: Hi Pier, The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError not sure about the mem settings for the compiler plugin, but my OutOfMemoryError problems disappeared when I set the MAVEN_OPTS environment variable. eg. MAVEN_OPTS=-Xmx1024m -Xms512m export MAVEN_OPTS regards, Bram -Original Message- From: Pier Mauro Vignati [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 3:36 PM To: users@maven.apache.org Subject: Maven2 compiler out of memory error Hi, I've a problem when I'm trying to compile a new version of my application. fooApp_1.0 has 1905 files, and Maven compiles it right dooApp_1.1 has 1985 files, and whenI try to compile it with Maven (btw, when compiling with Eclipse works fine), I'm receive the following error: org.apache.maven.BuildFailureException : Compilation failure Failure executing javac, but could not parse the error: The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:5 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa lWithLifecycle (DefaultLifecycleExe or.java :480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:45 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa lAndHandleFailures(DefaultLifecycl ecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTas kSegments (DefaultLifecycleExecutor va:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java :143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke ( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java :315) at org.codehaus.classworlds.Launcher.launch (Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java :430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) In my pom.xml I'd configured the JDK as: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version 2.1-SNAPSHOT/version configuration executable${JAVA_1_4_HOME}/bin/javac/executable forktrue/fork source 1.4/source target1.4/target meminitial128m/meminitial maxmem1024m/maxmem verbosefalse/verbose /configuration /plugin (I got the same error with version 2.0.2 and 2.0.1) I've also an drt watson file, with # An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x080c15d5, pid=896, tid=3920 # # Java VM: Java HotSpot(TM) Client VM (1.4.2_12-b03 mixed mode) # Problematic frame: # V [jvm.dll+0xc15d5] # .. VM Arguments: jvm_args: -Dapplication.home=C:\Java\1.4.2_12 -Xms8m -Xmx1224m -Xms512m java_command: [EMAIL PROTECTED]:/Temp/org.codehaus.plexus.compiler. javac.JavacCompiler54296arguments Launcher Type: SUN_STANDARD . Any idea ? Regards Pier. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CVS parameters
On 5/22/07, Emmanuel Venisse [EMAIL PROTECTED] wrote: Jon Strayer a écrit : On 5/21/07, Wayne Fay [EMAIL PROTECTED] wrote: I'm not clear -- is this response not sufficient and you're asking for more help, or do you have things working? If you still need help, I'd suggest looking at example pom.xml files for some open source projects to see how they have configured their SCM. Here's a few links: http://svn.plexus.codehaus.org/browse/plexus/trunk/pom.xml?r=1500 http://vmgump.apache.org/gump/public/jline/jline/gump_file/pom.xml.html http://fisheye1.cenqua.com/browse/wsmo4j/ext/pom.xml?r=1.4 If you're having specific problems, tell us what you've done, what specifically isn't working, what error messages you're receiving, etc. Wayne This is my scm section: scm connection scm:cvs:pserver:js6285:[EMAIL PROTECTED]:12310 :/appl/pkg1/cvs/reps/theteam/cvs:CSPCookieFilter /connection developerConnection scm:cvs:pserver:js6285:[EMAIL PROTECTED]:12310 :/appl/pkg1/cvs/reps/theteam/cvs:CSPCookieFilter /developerConnection tagHEAD/tag url/url /scm This is the command I'm executing: $ mvn -e scm:update This is the error message: [ERROR] No CVS root is set. Check your repository information in the POM. [ERROR] Provider message: [ERROR] The cvs command failed. [ERROR] Command output: [ERROR] Do you use this command in a CVS working copy directory? Nothing I've read says anything about cvsroot in the POM. Slightly more interesting is that if I execute the same command with the same POM in a directory where I've already checked out the code I get this error: [ERROR] Didn't find password for CVSROOT ': pserver:[EMAIL PROTECTED]:12310/appl/pkg1/cvs/reps/theteam/cvs '. The user ID in the error message is always the one I used to check out the code, not the one in the POM (when they are different). The password is in the POM but it's not being used. Also, there seems to be a colon missing between the port number and the path to the repository. colon isn't missing, it's the format used in .cvspass how did you checked out your project? Eclipse. What is the version of your scm plugin? I take it that there is no way to get it to print out for me? I see 1.0-rc1 in my personal repository (but 1.0-beta-3 is also there). Emmanuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Esse Quam Videre To Be, rather than to Seem
Generating a website for a multi module project
Hi Everyone, I need to create a website for the a mult-module project. The mvn site command creates the html pages. Is there a way to list the modules as links on your parent page? Thanks for your help, David
Re: Generating a website for a multi module project
Yes, there is, see [1] and then the part of Including Generated Content. Hth, Nick S. [1]http://maven.apache.org/plugins/maven-site-plugin/howto.html [EMAIL PROTECTED] wrote: Hi Everyone, I need to create a website for the a mult-module project. The mvn site command creates the html pages. Is there a way to list the modules as links on your parent page? Thanks for your help, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generating a website for a multi module project
Nick, Thanks for you quick answer. When I put menu ref=modules / into the body section of my site.xml, I get that header but none of the actual modules. Do I have to enter them manually or should maven pull them for me? Thanks, David Nick Stolwijk [EMAIL PROTECTED] 05/22/2007 11:00 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Generating a website for a multi module project Yes, there is, see [1] and then the part of Including Generated Content. Hth, Nick S. [1]http://maven.apache.org/plugins/maven-site-plugin/howto.html [EMAIL PROTECTED] wrote: Hi Everyone, I need to create a website for the a mult-module project. The mvn site command creates the html pages. Is there a way to list the modules as links on your parent page? Thanks for your help, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you.
Re: Generating a website for a multi module project
Our (working) situation is as follows: Project/ pom.xml (with modules/modules section) src/ site/ site.xml (With menu ref=modules/) module1/ pom.xml src/ site/ site.xml module2/ pom.xml src/ site/ site.xml At lease, that is the basis of it (missing ofcourse the src/main and src/test directory of the modules). Is your setup somewhat different? Nick S. [EMAIL PROTECTED] wrote: Nick, Thanks for you quick answer. When I put menu ref=modules / into the body section of my site.xml, I get that header but none of the actual modules. Do I have to enter them manually or should maven pull them for me? Thanks, David Nick Stolwijk [EMAIL PROTECTED] 05/22/2007 11:00 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Generating a website for a multi module project Yes, there is, see [1] and then the part of Including Generated Content. Hth, Nick S. [1]http://maven.apache.org/plugins/maven-site-plugin/howto.html [EMAIL PROTECTED] wrote: Hi Everyone, I need to create a website for the a mult-module project. The mvn site command creates the html pages. Is there a way to list the modules as links on your parent page? Thanks for your help, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PMD goes OutOfMemory
Hi All, Any option to individually turn up the amount of memory for the PMD goal during the site generation ? Or should I just boost the whole maven process to use an indecent amount of memory? Thanks regards Jerome Thibaud
RE: Property validation
Not currently with the enforcer, but sounds like a good addition. The enforcer is setup so you can write your own rules, so you should be able to whip it up easily. -Original Message- From: Paul Gier [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 11:16 AM To: Maven Users List Subject: Property validation I would like to verify that certain properties are set in my pom. If the property is not set, I would like the build to fail. Is there a way to do this with the enforcer plugin or with another plugin? 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]
User Interface Performance of 1.1
Are there any known ways to improve the performance of Continuum - as per the issue below? Issue 2 - Performance -- Out of the box Continuum 1.1 appears much, much slower than 1.0.3. For example, it takes 30 secs+ after I click MyBigProject to display the contents of the Project Group which has 10 Projects. Are there any logging settings/go faster buttons that would help improve performance? Regards, Shaun.
Re: Properties files in a WAR artifact...
OK... First off, thank you Alexander for the suggestions. Secondly, I realized what I was trying to do... I am trying to pass in run-time configuration, and just like any consumer of my artifact, I need to send in configuration. So, I created a /src/test/config directory. In that directory I put example/reference files log4j.properties.ref and db.properties.ref. I added instructions in the README.txt file that says the users/builders of this project need to make a copy of those files as log4j.properties and db.properties respectively. Then, if they want to make any changes specific to their run-time setup, they do it in those two files. For Jetty, I then passed in system properties: systemProperties systemProperty namelog4j.configuration/name valuefile:/${basedir}/src/test/config/log4j.properties/value /systemProperty systemProperty namelocalDBProps/name valuefile:/${basedir}/src/test/config/db.properties/value /systemProperty /systemProperties Seems to be running great, and the new users aren't intimidated... I am also thinking of adding some antrun to the validate phase to fail fast and descriptive if the files are not where they are expected. - Nelz On 5/18/07, Alexander Sack [EMAIL PROTECTED] wrote: Hi Nelz, Let me throw some ideas at you and take what you can. Here is what I do for all our internal projects: In the project's parent POM I have this: profiles profile idprofile-db-postgresql/id properties jdbc.driverClassNameorg.postgresql.Driver/jdbc.driverClassName jdbc.usernamesomeusername/jdbc.username jdbc.passwordsomepassword/jdbc.password jdbc.url jdbc:postgresql://localhost:5432/somedatabase?autoReconnect=true/fjdbc.url /properties activation property nameprofile-db-postgresql/name /property /activation /profile /profiles This allows me to activate databases based on a command line switch (I know you don't like this approach). Your class files are probably loading them from some properties files. That properties files can be then included in your WAR or JAR and loaded from the classpath. In the example above, I have a sub project that builds a EJB3 jar. I use the resource substitution via my pom.xml like: build resources resource directorysrc/main/resources/directory filteringtrue/filtering /resource /resources /build So within my project, I have a src/main/resources where I stick my files that I want to be filtered. Btw, the resources directory is the default directory for a JAR to pick up extra files so I know it will be included in my final target output when I launch a build. Obviously the file included in src/main/resources looks like this: someapp.jdbc.ClassName = ${jdbc.driverClassName} someapp.jdbc.userName = ${jdbc.userName} ... etc. You could even have maven filter frame specific files such as an iBatis config or Hibernate file. I actually use the above approach to filter out datasource xml files for JBoss deployments. Your looking for per user username and password I suppose, so as per: http://maven.apache.org/guides/introduction/introduction-to-profiles.html You can EASILY do this via user specific profiles (I'm using the global POM based one, but the same approach applies, just change where the profile file is loaded from). Hopefully some of this helps, -aps On 5/18/07, Nelz [EMAIL PROTECTED] wrote: Hey All... I think I'm hitting one of the biggest problem areas in Maven: Properties. I'll put my requirement first, and the wrinkles I see after that. 1) I need to have a default set of properties for db connection (host, port, username, password) that end up next to my compiled .class files. - Ok: User resource filtering. But where to put the default property values in the POM? 2) I need each user to be able to override the default in their own environment. - My users are new, so I'd rather not make then specify anything extra at the command line. (I'd prefer documenting a changes to settings.xml first.) - Can I have them specify their values in a /settings/profiles/profile (that is meant to be an xpath-ish descriptor for example specification only) section? X-3-X) I also need this to work with the jetty:run (Jetty 6) plugin... (I didn't know if the resource filtering would work, but I just checked and the Jetty6 plugin has /target/classes as the first entry in the classpath... So, I am
Re: User Interface Performance of 1.1
Performance are fixed in alpha-2 that will be available in few days. Emmanuel Shaun Barriball a écrit : Are there any known ways to improve the performance of Continuum - as per the issue below? Issue 2 - Performance -- Out of the box Continuum 1.1 appears much, much slower than 1.0.3. For example, it takes 30 secs+ after I click MyBigProject to display the contents of the Project Group which has 10 Projects. Are there any logging settings/go faster buttons that would help improve performance? Regards, Shaun.
Question: Unit and Integration testing of a WAR
Ok guys... Am I running against best practices here? Is that why this is so hard? I have a simple-ish project. The project artifact is a WAR file. I would like to Unit Test the code before it gets packaged, and I would like to run Integration Tests after it gets packaged. The Sonatype book (http://www.sonatype.com/book/j2ee.html#integration_testing) seems to be advocating the hijacking of the compile:testCompile and surefire:test phases. But, it seems to assume the tests are in the standard /src/test/java directory for the integration tests... (The difference is that they are working on a multi-module EAR artifact, and I am working within a single-module WAR artifact...) I would like to put unit tests in /src/test/java and integration test in /src/itest/java, and have both sets run in my single project, in the correct phases. Does anyone have any insight? - Nelz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: User Interface Performance of 1.1
I've been running on continuum-20070502.03.tar Will I be able to upgrade to the alpha-2 for the performance improvements without having to re-add my projects? (We have over 70) --Duncan -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 12:17 PM To: [EMAIL PROTECTED] Subject: Re: User Interface Performance of 1.1 Performance are fixed in alpha-2 that will be available in few days. Emmanuel Shaun Barriball a écrit : Are there any known ways to improve the performance of Continuum - as per the issue below? Issue 2 - Performance -- Out of the box Continuum 1.1 appears much, much slower than 1.0.3. For example, it takes 30 secs+ after I click MyBigProject to display the contents of the Project Group which has 10 Projects. Are there any logging settings/go faster buttons that would help improve performance? Regards, Shaun.
Re: Generating a website for a multi module project
Nick, I believe it was the way my parent pom was set up. I have them listed now. There urls are incorrect but it's progress. = ) Thanks for your example and help!! David Nick Stolwijk [EMAIL PROTECTED] 05/22/2007 11:34 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Generating a website for a multi module project Our (working) situation is as follows: Project/ pom.xml (with modules/modules section) src/ site/ site.xml (With menu ref=modules/) module1/ pom.xml src/ site/ site.xml module2/ pom.xml src/ site/ site.xml At lease, that is the basis of it (missing ofcourse the src/main and src/test directory of the modules). Is your setup somewhat different? Nick S. [EMAIL PROTECTED] wrote: Nick, Thanks for you quick answer. When I put menu ref=modules / into the body section of my site.xml, I get that header but none of the actual modules. Do I have to enter them manually or should maven pull them for me? Thanks, David Nick Stolwijk [EMAIL PROTECTED] 05/22/2007 11:00 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Generating a website for a multi module project Yes, there is, see [1] and then the part of Including Generated Content. Hth, Nick S. [1]http://maven.apache.org/plugins/maven-site-plugin/howto.html [EMAIL PROTECTED] wrote: Hi Everyone, I need to create a website for the a mult-module project. The mvn site command creates the html pages. Is there a way to list the modules as links on your parent page? Thanks for your help, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you.
Re: automatically download dependecies
Hi Advait, How about: mvn initialize myplugin:mygoal (where you fill in myplugin and mygoal with your specific info) Steve Advait Trivedi wrote: I have a POM containing dependencies. I run some plugin goals which are not bound to any lifecycle phase from this directory. Maven does not download dependencies specified in POM. My requirement is to download all dependencies specified in POM at this time. I understand that invoking mvn install from this directory will download all the dependencies. But I don't want to do that. I also tried antlib, but that too downloads only when I invoke mvn install. Is there a possible solution? Thanks Regards, Advait Trivedi, Sr. Software Engineer, Mphasis Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: User Interface Performance of 1.1
what kinda database are you using for it? if its the embedded one you'll have to copy the right stuff around, if its postgres or mysql it should just be a matter of pointing it at the db.. jesse On 5/22/07, McNaught, Ewen [EMAIL PROTECTED] wrote: I've been running on continuum-20070502.03.tar Will I be able to upgrade to the alpha-2 for the performance improvements without having to re-add my projects? (We have over 70) --Duncan -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 12:17 PM To: [EMAIL PROTECTED] Subject: Re: User Interface Performance of 1.1 Performance are fixed in alpha-2 that will be available in few days. Emmanuel Shaun Barriball a écrit : Are there any known ways to improve the performance of Continuum - as per the issue below? Issue 2 - Performance -- Out of the box Continuum 1.1 appears much, much slower than 1.0.3. For example, it takes 30 secs+ after I click MyBigProject to display the contents of the Project Group which has 10 Projects. Are there any logging settings/go faster buttons that would help improve performance? Regards, Shaun. -- jesse mcconnell [EMAIL PROTECTED]
Re: Question: Unit and Integration testing of a WAR
Maybe this'll work: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.3/version executions execution idsurefire-test/id phasetest/phase /execution execution idsurefire-integration-test/id phaseintegration-test/phase configuration testSourceDirectorysrc/itest/java/testSourceDirectory /configuration /execution /executions /plugin Hth, Nick S. Nelz wrote: Ok guys... Am I running against best practices here? Is that why this is so hard? I have a simple-ish project. The project artifact is a WAR file. I would like to Unit Test the code before it gets packaged, and I would like to run Integration Tests after it gets packaged. The Sonatype book (http://www.sonatype.com/book/j2ee.html#integration_testing) seems to be advocating the hijacking of the compile:testCompile and surefire:test phases. But, it seems to assume the tests are in the standard /src/test/java directory for the integration tests... (The difference is that they are working on a multi-module EAR artifact, and I am working within a single-module WAR artifact...) I would like to put unit tests in /src/test/java and integration test in /src/itest/java, and have both sets run in my single project, in the correct phases. Does anyone have any insight? - Nelz - 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: Generating a website for a multi module project
To give you a hint with the urls: you haven't deployed your site. (mvn site-deploy in combination with pom.xml:/project/distributionManagement/site ) Hth, Nick Stolwijk [EMAIL PROTECTED] wrote: Nick, I believe it was the way my parent pom was set up. I have them listed now. There urls are incorrect but it's progress. = ) Thanks for your example and help!! David Nick Stolwijk [EMAIL PROTECTED] 05/22/2007 11:34 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Generating a website for a multi module project Our (working) situation is as follows: Project/ pom.xml (with modules/modules section) src/ site/ site.xml (With menu ref=modules/) module1/ pom.xml src/ site/ site.xml module2/ pom.xml src/ site/ site.xml At lease, that is the basis of it (missing ofcourse the src/main and src/test directory of the modules). Is your setup somewhat different? Nick S. [EMAIL PROTECTED] wrote: Nick, Thanks for you quick answer. When I put menu ref=modules / into the body section of my site.xml, I get that header but none of the actual modules. Do I have to enter them manually or should maven pull them for me? Thanks, David Nick Stolwijk [EMAIL PROTECTED] 05/22/2007 11:00 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Generating a website for a multi module project Yes, there is, see [1] and then the part of Including Generated Content. Hth, Nick S. [1]http://maven.apache.org/plugins/maven-site-plugin/howto.html [EMAIL PROTECTED] wrote: Hi Everyone, I need to create a website for the a mult-module project. The mvn site command creates the html pages. Is there a way to list the modules as links on your parent page? Thanks for your help, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Specify modules on command line?
We have a good size multi-module build. To reduce the development cycle time I would like to be able to say to Maven only include these modules in the build. That way we could reduce the amount of time it takes to build the project when testing only a single module. Is that possible? Thanks, Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: automatically download dependecies
Hi Advait, Please read http://www.sonatype.com/book/writing-plugins.html and especially the part about @requiresDependencyResolution requiredScope. I guess, that would solve your problem. Hth, Nick Stolwijk Steven Rowe wrote: Hi Advait, How about: mvn initialize myplugin:mygoal (where you fill in myplugin and mygoal with your specific info) Steve Advait Trivedi wrote: I have a POM containing dependencies. I run some plugin goals which are not bound to any lifecycle phase from this directory. Maven does not download dependencies specified in POM. My requirement is to download all dependencies specified in POM at this time. I understand that invoking mvn install from this directory will download all the dependencies. But I don't want to do that. I also tried antlib, but that too downloads only when I invoke mvn install. Is there a possible solution? Thanks Regards, Advait Trivedi, Sr. Software Engineer, Mphasis Ltd. - 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: Surefire systemClassLoader option
I will see if I can put together an example. -Grant On May 22, 2007, at 10:33 AM, Wayne Fay wrote: I can't be sure without seeing more information about the specific tests that are failing with the various options (lines of code that are breaking) and the Surefire/JUnit debug/error logs with more detailed info (from target/surefire-reports). Can you provide that? Then perhaps we can help you solve your problems. Wayne On 5/21/07, Grant Ingersoll [EMAIL PROTECTED] wrote: I am having some trouble with class loading in tests. For some tests in my set of tests, the only way the pass via M2 is if I set useSystemClassLoader to true per http://jira.codehaus.org/browse/ SUREFIRE-106. On the other hand, some other subset of tests only pass if useSystemClassLoader is false. One thing I see that is strange is, when useSystemClassLoader is true, my target/classes directory occurs before target/test-classes in the classpath, meaning the resources in src/main/resources are resolved before the ones in src/test/resources. Has anyone else run into this or have suggestions on what to do? Thanks, Grant -- Grant Ingersoll Center for Natural Language Processing http://www.cnlp.org/tech/lucene.asp Read the Lucene Java FAQ at http://wiki.apache.org/jakarta-lucene/ LuceneFAQ - 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] -- Grant Ingersoll Center for Natural Language Processing http://www.cnlp.org/tech/lucene.asp Read the Lucene Java FAQ at http://wiki.apache.org/jakarta-lucene/ LuceneFAQ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question: Unit and Integration testing of a WAR
Nick, et al... Thanks for the suggestion... But I have to ask a meta-question: how was I supposed to ever find that myself...? It's nowhere in the Surefire plugin documentation... I still don't even know that it will work, nor does the documentation give any hint that it might. And to bring the discussion back to specifics, this suggestion still doesn't answer my compilation problems, nor does it answer if I am going against best practices... Does anyone have any feedback on those points? - Nelz On 5/22/07, Nick Stolwijk [EMAIL PROTECTED] wrote: Maybe this'll work: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.3/version executions execution idsurefire-test/id phasetest/phase /execution execution idsurefire-integration-test/id phaseintegration-test/phase configuration testSourceDirectorysrc/itest/java/testSourceDirectory /configuration /execution /executions /plugin Hth, Nick S. Nelz wrote: Ok guys... Am I running against best practices here? Is that why this is so hard? I have a simple-ish project. The project artifact is a WAR file. I would like to Unit Test the code before it gets packaged, and I would like to run Integration Tests after it gets packaged. The Sonatype book (http://www.sonatype.com/book/j2ee.html#integration_testing) seems to be advocating the hijacking of the compile:testCompile and surefire:test phases. But, it seems to assume the tests are in the standard /src/test/java directory for the integration tests... (The difference is that they are working on a multi-module EAR artifact, and I am working within a single-module WAR artifact...) I would like to put unit tests in /src/test/java and integration test in /src/itest/java, and have both sets run in my single project, in the correct phases. Does anyone have any insight? - Nelz - 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: User Interface Performance of 1.1
Thanks Emmanuel. We're using the embedded database. Is it faster on MySql out of interest? Regards, Shaun. -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: 22 May 2007 19:17 To: [EMAIL PROTECTED] Subject: Re: User Interface Performance of 1.1 Performance are fixed in alpha-2 that will be available in few days. Emmanuel Shaun Barriball a écrit : Are there any known ways to improve the performance of Continuum - as per the issue below? Issue 2 - Performance -- Out of the box Continuum 1.1 appears much, much slower than 1.0.3. For example, it takes 30 secs+ after I click MyBigProject to display the contents of the Project Group which has 10 Projects. Are there any logging settings/go faster buttons that would help improve performance? Regards, Shaun.
Re: Question: Unit and Integration testing of a WAR
With most of my problems with Maven it is a combination of: - Better builds with Maven e-book [1] - Sonatype e-book [2] - The plugin documentation [3] [4] - The Maven 2 IRC channel [5] And offcourse, this userlist, maven 2 and plugins sourcecode Hth, Nick Stolwijk [1] http://www.mergere.com/m2book_download.jsp [2] http://www.sonatype.com/book [3] http://maven.apache.org/plugins/index.html [4] http://mojo.codehaus.org/ [5] irc.codehaus.org#maven Nelz wrote: Nick, et al... Thanks for the suggestion... But I have to ask a meta-question: how was I supposed to ever find that myself...? It's nowhere in the Surefire plugin documentation... I still don't even know that it will work, nor does the documentation give any hint that it might. And to bring the discussion back to specifics, this suggestion still doesn't answer my compilation problems, nor does it answer if I am going against best practices... Does anyone have any feedback on those points? - Nelz On 5/22/07, Nick Stolwijk [EMAIL PROTECTED] wrote: Maybe this'll work: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.3/version executions execution idsurefire-test/id phasetest/phase /execution execution idsurefire-integration-test/id phaseintegration-test/phase configuration testSourceDirectorysrc/itest/java/testSourceDirectory /configuration /execution /executions /plugin Hth, Nick S. Nelz wrote: Ok guys... Am I running against best practices here? Is that why this is so hard? I have a simple-ish project. The project artifact is a WAR file. I would like to Unit Test the code before it gets packaged, and I would like to run Integration Tests after it gets packaged. The Sonatype book (http://www.sonatype.com/book/j2ee.html#integration_testing) seems to be advocating the hijacking of the compile:testCompile and surefire:test phases. But, it seems to assume the tests are in the standard /src/test/java directory for the integration tests... (The difference is that they are working on a multi-module EAR artifact, and I am working within a single-module WAR artifact...) I would like to put unit tests in /src/test/java and integration test in /src/itest/java, and have both sets run in my single project, in the correct phases. Does anyone have any insight? - Nelz - 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]
Re: [m2] Specify modules on command line?
Hi Richard, As far as I know, Maven does not have direct support for what you want. But lots of people have been asking for just this functionality recently. See http://www.nabble.com/Specify-a-dynamic-profile-t3754208s177.html for a discussion of some workarounds. Steve Richard Allen wrote: We have a good size multi-module build. To reduce the development cycle time I would like to be able to say to Maven only include these modules in the build. That way we could reduce the amount of time it takes to build the project when testing only a single module. Is that possible? Thanks, Richard - 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]
Portlet Archetype doesn't work?
I'm trying the portlet archetype for the first time and I'm getting an error when I run it. See below: [ERROR] BUILD ERROR [INFO] [INFO] Error creating from archetype Embedded error: Error reading POM start tag not allowed in epilog but got p (position: END_TAG seen .../dependen ies\n/project\np... @46:3) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Tue May 22 15:59:58 EDT 2007 [INFO] Final Memory: 4M/8M [INFO] Is this archetype not yet ready for prime time or am I doing something wrong -- View this message in context: http://www.nabble.com/Portlet-Archetype-doesn%27t-work--tf3800130s177.html#a10751421 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generating a website for a multi module project
Ok, trying to run mvn site:stage -DstagingDirectory=C:\fullsite and it wants site information in the distribution management section of the pom. Should I put C:\fullsite in there? Thanks, David Nick Stolwijk [EMAIL PROTECTED] 05/22/2007 01:33 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Generating a website for a multi module project To give you a hint with the urls: you haven't deployed your site. (mvn site-deploy in combination with pom.xml:/project/distributionManagement/site ) Hth, Nick Stolwijk [EMAIL PROTECTED] wrote: Nick, I believe it was the way my parent pom was set up. I have them listed now. There urls are incorrect but it's progress. = ) Thanks for your example and help!! David Nick Stolwijk [EMAIL PROTECTED] 05/22/2007 11:34 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Generating a website for a multi module project Our (working) situation is as follows: Project/ pom.xml (with modules/modules section) src/ site/ site.xml (With menu ref=modules/) module1/ pom.xml src/ site/ site.xml module2/ pom.xml src/ site/ site.xml At lease, that is the basis of it (missing ofcourse the src/main and src/test directory of the modules). Is your setup somewhat different? Nick S. [EMAIL PROTECTED] wrote: Nick, Thanks for you quick answer. When I put menu ref=modules / into the body section of my site.xml, I get that header but none of the actual modules. Do I have to enter them manually or should maven pull them for me? Thanks, David Nick Stolwijk [EMAIL PROTECTED] 05/22/2007 11:00 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Generating a website for a multi module project Yes, there is, see [1] and then the part of Including Generated Content. Hth, Nick S. [1]http://maven.apache.org/plugins/maven-site-plugin/howto.html [EMAIL PROTECTED] wrote: Hi Everyone, I need to create a website for the a mult-module project. The mvn site command creates the html pages. Is there a way to list the modules as links on your parent page? Thanks for your help, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you.
Re: [m2] Specify modules on command line?
A workaround for this 'problem' could be to specify a couple (a lot?) of profiles, that contain the modules you need to combine. You can then run maven with the selected profiles, building only those modules you declared in the profiles. Personally, I'd at least make sure that all modules that have dependencies to eachother are grouped inside a profile. Not necessary if your local or remote repo has a version, but at least you won't be wondering why certain changes 'don't work' when you forget to build a module! On Tuesday 22 May 2007 21:39, Steven Rowe wrote: Hi Richard, As far as I know, Maven does not have direct support for what you want. But lots of people have been asking for just this functionality recently. See http://www.nabble.com/Specify-a-dynamic-profile-t3754208s177.html for a discussion of some workarounds. Steve Richard Allen wrote: We have a good size multi-module build. To reduce the development cycle time I would like to be able to say to Maven only include these modules in the build. That way we could reduce the amount of time it takes to build the project when testing only a single module. Is that possible? Thanks, Richard - 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] -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: [EMAIL PROTECTED] Web: www.cfc.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Specify modules on command line?
I found an example of what I mean. It's one of our first m2 try-outs which used a flat directory-structure, but it serves well enough as an example. ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdat.cfc.hermes.shared/groupId artifactIdhermes/artifactId packagingpom/packaging nameHermes/name version0.0.1/version profiles profile idperson/id modules module../hermes-logging/module module../hermes-usecase-ui/module module../hermes-geography-link/module module../hermes-security-link/module module../hermes-person/module /modules /profile profile idgeography-link/id modules module../hermes-logging/module module../hermes-usecase-ui/module module../hermes-geography/module module../hermes-geography-link/module /modules /profile profile idgeography/id modules module../hermes-logging/module module../hermes-usecase-ui/module module../hermes-geography/module /modules /profile profile idsecurity-link/id modules module../hermes-logging/module module../hermes-usecase-ui/module module../hermes-security-link/module /modules /profile /profiles /project Now, I had several default launches (in Eclipse), that triggered e.g.: - mvn -P person - mvn -P person,geography - mvn -P person,security-link As you can see, some modules are defined in more than one profile, this should however be no problem. At least, it wasn't in maven 2.0.3 (or 2.0.2, not sure where we started) and I think it will still work in the latest version. Good luck! On Tuesday 22 May 2007 22:14, Roland Asmann wrote: A workaround for this 'problem' could be to specify a couple (a lot?) of profiles, that contain the modules you need to combine. You can then run maven with the selected profiles, building only those modules you declared in the profiles. Personally, I'd at least make sure that all modules that have dependencies to eachother are grouped inside a profile. Not necessary if your local or remote repo has a version, but at least you won't be wondering why certain changes 'don't work' when you forget to build a module! On Tuesday 22 May 2007 21:39, Steven Rowe wrote: Hi Richard, As far as I know, Maven does not have direct support for what you want. But lots of people have been asking for just this functionality recently. See http://www.nabble.com/Specify-a-dynamic-profile-t3754208s177.html for a discussion of some workarounds. Steve Richard Allen wrote: We have a good size multi-module build. To reduce the development cycle time I would like to be able to say to Maven only include these modules in the build. That way we could reduce the amount of time it takes to build the project when testing only a single module. Is that possible? Thanks, Richard - 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] -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: [EMAIL PROTECTED] Web: www.cfc.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generating a website for a multi module project
Nevermind. I got it. Thanks, David [EMAIL PROTECTED] 05/22/2007 03:14 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Generating a website for a multi module project Ok, trying to run mvn site:stage -DstagingDirectory=C:\fullsite and it wants site information in the distribution management section of the pom. Should I put C:\fullsite in there? Thanks, David Nick Stolwijk [EMAIL PROTECTED] 05/22/2007 01:33 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Generating a website for a multi module project To give you a hint with the urls: you haven't deployed your site. (mvn site-deploy in combination with pom.xml:/project/distributionManagement/site ) Hth, Nick Stolwijk [EMAIL PROTECTED] wrote: Nick, I believe it was the way my parent pom was set up. I have them listed now. There urls are incorrect but it's progress. = ) Thanks for your example and help!! David Nick Stolwijk [EMAIL PROTECTED] 05/22/2007 11:34 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Generating a website for a multi module project Our (working) situation is as follows: Project/ pom.xml (with modules/modules section) src/ site/ site.xml (With menu ref=modules/) module1/ pom.xml src/ site/ site.xml module2/ pom.xml src/ site/ site.xml At lease, that is the basis of it (missing ofcourse the src/main and src/test directory of the modules). Is your setup somewhat different? Nick S. [EMAIL PROTECTED] wrote: Nick, Thanks for you quick answer. When I put menu ref=modules / into the body section of my site.xml, I get that header but none of the actual modules. Do I have to enter them manually or should maven pull them for me? Thanks, David Nick Stolwijk [EMAIL PROTECTED] 05/22/2007 11:00 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Generating a website for a multi module project Yes, there is, see [1] and then the part of Including Generated Content. Hth, Nick S. [1]http://maven.apache.org/plugins/maven-site-plugin/howto.html [EMAIL PROTECTED] wrote: Hi Everyone, I need to create a website for the a mult-module project. The mvn site command creates the html pages. Is there a way to list the modules as links on your parent page? Thanks for your help, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you. _ CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you.
Re: Portlet Archetype doesn't work?
Looks like that archetype has some issues. The pom.xml file inside the Jar in both 1.0 and 1.0-alpha-4 has what appears to be a cut and paste error. I'm not sure who exactly made that archetype, but you should check JIRA and see if an issue is already open, and if not, file a new issue for this bug. Wayne On 5/22/07, Clifton [EMAIL PROTECTED] wrote: I'm trying the portlet archetype for the first time and I'm getting an error when I run it. See below: [ERROR] BUILD ERROR [INFO] [INFO] Error creating from archetype Embedded error: Error reading POM start tag not allowed in epilog but got p (position: END_TAG seen .../dependen ies\n/project\np... @46:3) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Tue May 22 15:59:58 EDT 2007 [INFO] Final Memory: 4M/8M [INFO] Is this archetype not yet ready for prime time or am I doing something wrong -- View this message in context: http://www.nabble.com/Portlet-Archetype-doesn%27t-work--tf3800130s177.html#a10751421 Sent from the Maven - Users mailing list archive at Nabble.com. - 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: Problem with plugin dependencies in multi-module projects
I have same problem and I didn't find the solution yet. -- View this message in context: http://www.nabble.com/Problem-with-plugin-dependencies-in-multi-module-projects-tf3637246s177.html#a10752642 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Settings Variable expansion
Based on this information http://maven.apache.org/settings.html http://maven.apache.org/settings.html http://maven.apache.org/settings.html http://maven.apache.org/settings.html I thought that variables and variable expansion would be available anywhere in a POM _and_ settings files? Is this not the case - is it only pom xml that does expansion? quot They come in five different styles, _all accessible from the settings.xml_ /quot Currently my settings.xml has: settings xmlns=http://maven.apache.org/POM/4.0.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd http://maven.apache.org/xsd/settings-1.0.0.xsd profiles !-- desktop profile -- profile idwindows/id activation activeByDefaultfalse/activeByDefault os familywindows/family /os /activation properties environmentUNIT/environment /properties /profile profile idtest-resolution/id activation activeByDefaulttrue/activeByDefault /activation repositories repository idmy-unit/id layoutdefault/layout namemy-unit/name releases enabledtrue/enabled checksumPolicywarn/checksumPolicy updatePolicydaily/updatePolicy /releases snapshots enabledfalse/enabled /snapshots url http://myurl:18080/my/${environment}/release http://myurl:18080/my/${environment}/release /url /repository /repositories /profile /profiles /settings But help:effective-settings shows the ${environment} isn't expanding. repository releases updatePolicydaily/updatePolicy checksumPolicywarn/checksumPolicy /releases snapshots enabledfalse/enabled /snapshots idmy-unit/id namemy-unit/name urlhttp://myurl:18080/my/${environment}/release/url /repository Am I doing something incorrectly?
Assembly Plugin: ModuleSets: Not recognizing include artifacts
Hello all, I have been struggling with the maven-assembly-plugin because of a problem that seems to have been around for some time (or so I understood). My project structure is: - peanutspom - charliejar - snoopyjar - linuspom - linus-corejar - linus-blanketjar The problem is that the include on the peanuts-assembly.xml is not being recognized: peanuts-assembly.xml: ... includecom.test.peanuts:charlie/include ... Gives me this: $ mvn package [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to create assembly: Artifact: com.test.peanuts:charlie:jar:1.0-SNAPSHOT (included by module) does not have an artifact with a file. Please ensure the package phase is run before the assembly is generated. Does anybody actually know what is going on? I already memorized the entire documentation, so you guys are my only hope!! Thanks, Rodrigo Madera - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to create site with just jar files?
Ok, so the noob is getting closer. I found that the assembly plugin is my best bet, but still struggling to get it configured correctly. I started with the 'jar-with-dependancies' descriptor but that gave me a jar with all dependancies repackaged. I really want to see a zip file containing all the jars and scripts. So I created the following assembly.xml starting with the documented 'jar-with-dependencies' assembly idjar-with-dependencies/id formats formatzip/format /formats includeBaseDirectoryfalse/includeBaseDirectory dependencySets dependencySet outputDirectory/outputDirectory outputFileNameMapping/outputFileNameMapping unpackfalse/unpack scoperuntime/scope /dependencySet /dependencySets fileSets fileSet directorytarget/classes/directory outputDirectory/outputDirectory /fileSet /fileSets /assembly But this did not help, I only got a zip file with the unpack application classes, all the dependencies are missing. So what am I missing? For something that is suppose to make builds easier, it sure seems like it is fighting me every step of the way. Dennis Cook [EMAIL PROTECTED] wrote: The project that I want to create consists of a single application library relay-mailer.0.0.1.jar and several supporting libraries: log4j, commons-logging, mail, activation, etc. There a couple of launch scripts too. I have two goals that I am trying to reach. First is to copy the all the files (libraries and scripts) to a specified local directory for staging and local testing. Second is to deploy the contents of the local staging directory to a remote host using scp. My current pom.xml content is: 4.0.0 relay-mailer relay-mailer 0.0.1 jar log4j log4j 1.2.14 commons-logging commons-logging 1.0.4 javax.mail mail 1.4 dnsjava dnsjava 2.0.1 junit junit 3.8.2 mojo.website Mojo Website file:/test/ Wayne Fay wrote: Please describe (specifically) what you are trying to do, what end results you are hoping to achieve, and someone on this list will most likely reply back with information that may prove helpful. Wayne On 5/22/07, Dennis Cook wrote: Okay, so adding the element to the POM helped get past the error message, but the result was did not provide what I was looking for. I got a staging directory containing some template html files. Neither the application library nor any of the supporting libraries were present. How do I get all of the libraries that make up the application into one location? Dennis Cook wrote: I am new to maven2 and trying to convert a project that is using a makefile to maven2. This is a simple java application, one main jar with 3 dependent libraries. I have gotten the build process to work up to the install goal. But I need to progress to the point that the application jar and its supporting libraries are delivered to another directory on the local (and eventually remote) host. From the information I can find in the doc I think the site:stage goal is the one I need, but I hit an error from in this goal that I do not understand: From the command mvn site:stage The error: [INFO] Error during site generation Embedded error: C:\development\nethaggler\relay-mail\target\staging\Unnamed - relay-mailer:relay-mailer:jar:0.0.1\integration.html (The filename, directory name, or volume label syntax is incorrect) My project has has no html files so why is it looking for this integration.html file? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven2, buildNumber
Hi All i'm trying to maven-build number in assembly like when i create project.zip file from assembly:assembly goal i want to append a buildNumber from maven-buildnumber-plugin my jar files getting created fine like project.jar_r100 but in my zip file the {buildNumber}value is not being replaced plugin groupIdorg.codehaus.mojo/groupId artifactIdmaven-buildnumber-plugin/artifactId version0.9.4/version executions execution phasevalidate/phase goals goalcreate/goal /goals /execution /executions configuration doChecktrue/doCheck doUpdatetrue/doUpdate format{0,number}/format items itembuildNumber0/item /items /configuration plugin artifactIdmaven-assembly-plugin/artifactId configuration finalNameproject_r{buildNumber}/finalName descriptors descriptorassembly.xml/descriptor /descriptors /configuration /plugin so in this the final output zip file has name like project_r{buildNumber}, even though build numbers are getting created. Please help Thanks, Raghu | Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.
Re: maven2, buildNumber
On 5/22/07, Raghurajan Gurunathan [EMAIL PROTECTED] wrote: but in my zip file the {buildNumber}value is not being replaced Try either $buildNumber or ${buildNumber} instead. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven2, buildNumber
i'm sorry in my previous main i mentioned it has wrong project_r${buildNumber}, thats how i'm using it its a typo in my previous email Thanks, Raghu | Wendy Smoak [EMAIL PROTECTED] 05/22/2007 11:16 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: maven2, buildNumber On 5/22/07, Raghurajan Gurunathan [EMAIL PROTECTED] wrote: but in my zip file the {buildNumber}value is not being replaced Try either $buildNumber or ${buildNumber} instead. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.
Access to the full classpath when running under Surefire (WAS: [Maven 2])
Oops. Sorry about the ambiguous title in my previous post... I changed it to something more communicative. Lasse On 5/23/07, Lasse Koskela [EMAIL PROTECTED] wrote: Hi, I'm trying to convert the open source JUnit extension called JspTest to use Maven2 for the build and I'm running into trouble with how Maven's Surefire test runner plugin seems to hide the classpath from the executing code. The issue stems from the need for a unit test to be able to compile Java source code (generated from JSP source files), which obviously needs all sorts of J2EE stuff in the classpath. These dependencies have been defined in the pom.xml and are visible just fine when compiling the framework itself and when running the tests, but when those tests (indirectly) attempt to use the same dependencies to build up a classpath for a new javac process I get all kinds of symbol/package/class not found compilation errors because System.getProperty(java.class.path) returns only some maven/surefire/plexus libraries and not a single dependency (not even the target/classes or target/test-classes directories). If I were talking about a plugin, I could have the dependencies be injected to the Mojo through properties but I'm not talking about a plugin so that's not an option. So, I guess my question is how can I get access to the Maven dependencies and/or the full classpath? best regards, Lasse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Maven 2]
Hi, I'm trying to convert the open source JUnit extension called JspTest to use Maven2 for the build and I'm running into trouble with how Maven's Surefire test runner plugin seems to hide the classpath from the executing code. The issue stems from the need for a unit test to be able to compile Java source code (generated from JSP source files), which obviously needs all sorts of J2EE stuff in the classpath. These dependencies have been defined in the pom.xml and are visible just fine when compiling the framework itself and when running the tests, but when those tests (indirectly) attempt to use the same dependencies to build up a classpath for a new javac process I get all kinds of symbol/package/class not found compilation errors because System.getProperty(java.class.path) returns only some maven/surefire/plexus libraries and not a single dependency (not even the target/classes or target/test-classes directories). If I were talking about a plugin, I could have the dependencies be injected to the Mojo through properties but I'm not talking about a plugin so that's not an option. So, I guess my question is how can I get access to the Maven dependencies and/or the full classpath? best regards, Lasse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven 2 - POM Hookup Question
Wendy, What protocols does the URL support? Does it have to be HTTP or can FTP work? Just peeking around there's a FTP plugin for Perforce which could provide access to the poms. Thanks again! Regards, Randall -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 9:22 PM To: [EMAIL PROTECTED] Subject: Re: Maven 2 - POM Hookup Question On 5/22/07, Randall Fidler [EMAIL PROTECTED] wrote: When providing Continuum with a Maven POM via URL, what URL? POM's sitting on a local Maven repository? The pom which is located in/on the projects website (i.e. website generated by site goal in maven)? Where is this POM located? Also, how does this work for multi-module POMs? Assuming they'd have their own maven project and you can point to the pom there? Usually, it's the pom sitting in the project's source control repository, which is often visible via a http or https url. Is that an option for your project? Once Continuum retrieves the pom, it uses the (different) url in the scm element to check out the source code. When the pom has modules, they will get added to the project group as individual projects. I'm not sure at which step that happens, but it does happen. -- Wendy
Re: Maven 2 - POM Hookup Question
On 5/22/07, Randall Fidler [EMAIL PROTECTED] wrote: Projects are sitting inside Perforce - would you use the Perforce web interface to expose the pom? The Perforce web setup is basically the normal p4 client but web implementation (from my little experience with it). If you can get a url straight to the pom file, it should work. I'm not familiar with Perforce, but please do report back with what you find out so it will be in the archives for the next person to come along. -- Wendy