Re: Upgrade to Continuum 1.0.3 from 1.0.2
Christian Mouttet a écrit : Hi Continuumers, has anyone upgraded Continuum with postgres as DB. The instruction only is for Derby. :-) I think you're the only one that use posgres with Continuum :-) So if you can provide a patch for documentation with postgres, you're welcome. Emmanuel
Re: Upgrade to Continuum 1.0.3 from 1.0.2
You can also use the Continuum WIKIhttp://docs.codehaus.org/display/CONTINUUMUSER/Homefor that purpose. I've seen that no one have use it. I know it's useless if there is a really fast way for finding some answer (maybe searching the mailing list repositoryhttp://mail-archives.apache.org/mod_mbox/maven-continuum-users/) but it seems like a very good tool to make some documentation fast that could be then be copied to the official websitehttp://maven.apache.org/continuum
problem with scm url yet
Hi everyone , I have a problem when try put the scm url in continuum. If not use modules then I can use a local pom and continuum work, but now I need use the modules in my projects then I don't insert the url. I am using subversion and I put the url same below scm:svn:https://myserver.com.br/repos/projects/trunk my continuum version is 1.0.3-SNAPSHOT Someone can help me? Best Regards Vandermi Silva RD MAO - Core Engines BenQ Eletroeletrônica Ltda. TEL +55(92) 2127-8015 Mobile: +55(92) 8125-2248 FAX +55(92) 2127-8102 [EMAIL PROTECTED] www.BenQMobile.com Av. Djalma Batista, 536 - São Geraldo Manaus-AM Brasil
Artifacts reference in Maven2
Dear Maven Users, Can I use third party libraries (required by build process to compile / test sources etc.) which are located in application installed location in the filesystem without installing them into local repository ? As far as Maven documentation is concerned it describes two ways : One by installing the artifact into local repository and other by specifying the scopysystem/scope and systemPathpath of libs/systemPath in the dependency /dependency section (use of this is discouraged as mentioned by Maven docs). http://maven.apache.org/ref/current/maven-model/maven.html http://maven.apache.org/ref/current/maven-model/maven.html I want most of the artifacts to be referred by the build process at their original location and not by moving everything to repository. Is there a third way exists in maven 2 to refer the artifacts in the build process ? Might be the case that I have not come across to that so far. Thanks for your help! Regards, Jaikumar - - - - - - - DISCLAIMER- - - - - - - - Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you.
Re: Artifacts reference in Maven2
On Wed, 2006-05-03 at 08:31 +0200, Sharma, Jaikumar wrote: Dear Maven Users, Can I use third party libraries (required by build process to compile / test sources etc.) which are located in application installed location in the filesystem without installing them into local repository ? As far as Maven documentation is concerned it describes two ways : One by installing the artifact into local repository and other by specifying the scopysystem/scope and systemPathpath of libs/systemPath in the dependency /dependency section (use of this is discouraged as mentioned by Maven docs). http://maven.apache.org/ref/current/maven-model/maven.html http://maven.apache.org/ref/current/maven-model/maven.html I want most of the artifacts to be referred by the build process at their original location and not by moving everything to repository. Is there a third way exists in maven 2 to refer the artifacts in the build process ? Might be the case that I have not come across to that so far. The third option is to set up your own repository. This is very easy to do; configure an http server which serves files from a directory with a standard maven repository layout. Uploading files to such a system is probably easiest by network-mounting the directory the http server is serving files from. This tree can even be handily initialised by copying your local repository dir (just remove any metadata files). Once your repo is set up, just define it in the pom. I gues a custom plugin could be written to add jars from other sources, but I'm not aware of any existing plugin that does this, probably because the built-in maven options are fine. There are no other options I'm aware of. Maven doesn't support just pointing at arbitrary directories full of jars; it's considered bad practice as dependency info can't be properly managed. If dependency management isn't needed, then perhaps Ant is the best tool to use. Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Probelm with persistence.xml
Hi Thanks for the solution to both of you.My problem is solved and war file picked up persistence.xml from META-INF folder.Its working fine. THanks a lot again Anshuman -- Forwarded message -- From: Wayne Fay [EMAIL PROTECTED] Date: May 2, 2006 10:06 AM Subject: Re: Probelm with persistence.xml To: Maven Users List users@maven.apache.org Yes, this is what he's saying. Move the xml file to src/main/resources/META-INF/ if you want it automatically picked up and put in META-INF in the resulting jar. If you don't have a main folder, make one. This can also be configured in your pom but it is more complicated than simply moving the file. Wayne On 5/2/06, Anshuman Srivastava [EMAIL PROTECTED] wrote: I want that my WAR file should contain peristence.xml. If you need to automagically get your persistence.xml in the archive, then just put it in src/main/resources/META-INF/persistence.xml and it'll end up in the correct place My peristence.xml is at root with pom.xml.So http://pom.xml.so/ do I need to change the position of persistence.xml?I do not have any main folder inside src. ANshuman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with site generation and multi-module project
Hi, I read some topics about site generation, and howto add a link for project module. I have now a module section in my parent site, but some link are wrong. My modules are : modules modulecore/module modulecommons-tests/module modulehttpunit-plugin/module modulehtmlunit-plugin/module modulejacobie-plugin/module /modules The generated site contains the following folders : core/ commons-tests/ *httpunit-plugin*/ *htmlunit-plugin*/ *jacobie-plugin*/ But links generated by menu ref=modules / are : h5Modules/h5 ul li class=none a href=core/index.htmljWebUnit - Core - API/a/li li class=none a href=commons-tests/index.htmljWebUnit - Tests - Commons/a /li li class=none a href=*httpunit*/index.htmljWebUnit - HttpUnit - Plugin/a /li li class=none a href=*htmlunit*/index.htmljWebUnit - HtmlUnit - Plugin/a /li li class=none a href=*jacobie*/index.htmljWebUnit - Jacobie - Plugin/a /li /ul I don't know why it works for commons-test, and not for XXX-plugin. Perhaps -plugin has a particular meanings ? Thanks. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
Re: [m2] ant tasks and SNAPSHOTs
Is there actually a possibility to use the maven repository and SNAPSHOT with ant? As I could see in http://jira.codehaus.org/browse/MNG-2060, there is a Bug in the deployment. As far as I see, there is also a Problem with the dependency-resolving. I deployed my artifact with maven itself and tried to resolve the dependencies with ant... It didn't work... :( Is there a workaround for using the repository in combination with ant and SNAPSHOTs? Is there a plan when the Bug#2060 will be fixed? Regards, MArtin
how to : customized read-writable flags ..?
hi, I am using maven for building my project. About 100+ jars are getting build and copied into maven repository after build. There are some dependent jars which need to be in Synch when available in repository. My task is to ensure this synchronization. For this purpose i want to use some flags , so before copying jar into repo i will check that flag and accordingly copy it into repo. I want to ask that how should i maintain these flags..? i think i cant use properties file.it just to read params. As i can read values from properties file,plugin but i dont want just to read them but also to update them. Can some body look into this issue and guide me on this...? Thanks for time spent on this. Thanks Regards, yuvaraj
Does anyone know of a statistics plugin
Hi. I am looking for a statistics plugin. One that will give me the number of classes, methods, source lines of code (SLOC) and more information like that. I know that these figures are included in the clover plugin, but I am not using clover because it is licensed. Thanks, Paul
[m2] Plugin and SNAPSHOT woes
Hello Maven users I am new to Maven 2 (and Maven itself), trying to set up a basic project infrastructure for a multi-module project. It is a great tool but I am bumping into many problems with plugins: for example trying something like 'mvn jxr:jxr' results in a failed build because the plugin does not seem to be available. Browsing the Maven site and repositories generally does not help because there are many broken links which lead nowhere. In any event, I have made some progress by enabling a Snapshot profile in my settings.xml and managed to download snapshot versions of some plugins. One of the problems I now have is that since I've specified the versions for my own project modules as snapshots, every time I run a build Maven tries to get updates of my own modules from the central repository. I don't know how to keep the Snapshot profile activated, yet prevent this behaviour for my own project modules. Can anyone help me with this? Also, I have tried putting in a dependencyManagement section to specify a preference for certain plugin versions but this does not have any effect. For example, I've found through trial and error that I need version 2.1-SNAPSHOT of the maven-checkstyle-plugin to get it to work together with jxr (I want the checkstyle report to create links to the jxr docs), but even when I put the version in the dependencyManagement section Maven still tries to download and use version 2.0 of the plugin (which doesn't seem to support the integration with jxr?). Another problem I've had is that trying to run 'mvn pmd:check' as set out on pg. 181 of the Maven 2 Book gives the error 'Required goal not found: pmd:check'. Does anyone know if this is a typo or am I doing something wrong? (The book's errata page on the Mergere website is currently empty). I tried to find the source code to see if I could gain any insight but went round in circles a lot with broken links etc. (and I can't always tell whether I'm looking at something that relates to Maven 1 or Maven 2 ...) I'm sure a lot of these things are simply a result of not understanding how to configure Maven correctly ... any help with it would be appreciated! Thanks and regards, Toni -- View this message in context: http://www.nabble.com/-m2-Plugin-and-SNAPSHOT-woes-t1548994.html#a4207684 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does anyone know of a statistics plugin
Hello, check for the java ncss plugin at mojo. http://mojo.codehaus.org/ Raphaël 2006/5/3, Hurragutt [EMAIL PROTECTED]: Hi. I am looking for a statistics plugin. One that will give me the number of classes, methods, source lines of code (SLOC) and more information like that. I know that these figures are included in the clover plugin, but I am not using clover because it is licensed. Thanks, Paul
Issue with multi project site
I am using Maven 2.0.4. I was trying to create a multi project web site from my parent project. I wanted a web site to be created by my parent project when i run a mvn site. This web site should contain links to all the modules under parent project pom xml. I was going thru a link in this forum http://www.nabble.com/Support-for-Multi-project-Web-Sites-t1484154.html#a4172319, which was guiding me untill i got stuck at the below error while trying to run mvn site for my parent project. [INFO] The skin does not exist: Unable to determine the release version Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.skins -DartifactId=maven -default-skin \ -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file org.apache.maven.skins:maven-default-skin:jar:RELEASE I have not mentioned maven-default-skin in my parent site.xml. I dont know why its still refering to the this plugin. I downloaded the skin and executed mvn -DupdateReleaseInfo=true install:install-file -DgroupId=org.apache.maven.skins -DartifactId=maven-site-skin -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=SkinPlugin.jar as mentioned in http://www.nabble.com/Support-for-Multi-project-Web-Sites-t1484154.html#a4172319 My site.xml looks like this ?xml version=1.0 encoding=ISO-8859-1? project name=Maven bannerLeft nameMaven/name srchttp://maven.apache.org/images/apache-maven-project.png/src hrefhttp://maven.apache.org//href /bannerLeft bannerRight srchttp://maven.apache.org/images/maven-small.gif/src /bannerRight skin groupIdorg.apache.maven.skins/groupId artifactIdmaven-site-skin/artifactId version1.0-SNAPSHOT/version /skin body links item name=Apache href=http://www.apache.org/; / item name=Maven 1.0 href=http://maven.apache.org// item name=Maven 2 href=http://maven.apache.org/maven2// /links menu name=Maven 2.0 item name=APT Format href=format.html/ item name=FAQ href=faq.html/ item name=Xdoc Example href=xdoc.html/ /menu menu ref=modules / /body /project Am i doing something wrong here? -- View this message in context: http://www.nabble.com/Issue-with-multi-project-site-t1549021.html#a4207750 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deployment of war file using JBOSS
Hello, easy way to copy your file with maven2 is that you write an antrun 'task' in your pom.xml i hth marco On 4/28/06, Vincent Massol [EMAIL PROTECTED] wrote: Anshuman, BTW you didn't answer my question: It would be nice to understand why you are confused as this is not good and I'd like to improve the site as much as possible. Let us know and also please do not hesitate to use the Cargo mailing list (http://archive.codehaus.org/cargo/) as Cargo is not a project hosted by the Maven team. Could you please let me know what's confusing and how we could improve it please? Thanks -Vincent -Original Message- From: Vincent Massol [mailto:[EMAIL PROTECTED] Sent: vendredi 28 avril 2006 08:50 To: 'Maven Users List' Subject: RE: Deployment of war file using JBOSS Hi Anshuman, -Original Message- From: Anshuman Srivastava [mailto:[EMAIL PROTECTED] Sent: vendredi 28 avril 2006 06:37 To: Maven Users List Subject: Re: Deployment of war file using JBOSS Hi Vincent Thanks for your concern.My problem is that I have already installed jboss-4.0.4 so I dont need to install it from a zip file.Where do I need to put this entry -- configuration !-- Container configuration -- container containerIdjboss4x/containerId homec:/boss-4.0.4/home /container !-- Deployer configuration -- deployer typelocal/type deployables deployable groupIdactive.DMS/groupId artifactIdDMS/artifactId typewar/type properties context/context /properties pingURL/pingURL /deployable /deployables /deployer /configuration I tried to put it after /build,before build, between build and /build but everytime it is giving me error that -Reason: Parse error reading POM. Reason: Unrecognised tag: 'configuration' (position: START_TAG seen .../dependencies\r\n\t configuration... @163:18) I believe that i need to put some plugin entry for jboss-4.0.4and distribution management section for deployment. Nope. You're configuring the cargo plugin and thusn, as usual, you need to put that plugin config in build as shown on the link I gave you: http://cargo.codehaus.org/Maven2+plugin :-) [snip] -Vincent ___ Nouveau : téléphonez moins cher avec Yahoo! Messenger. Appelez le monde entier à partir de 0,012 €/minute ! Téléchargez sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Plugin and SNAPSHOT woes
On Wed, 3 May 2006, Toni Price wrote: Hi, Hello Maven users I am new to Maven 2 (and Maven itself), trying to set up a basic project infrastructure for a multi-module project. It is a great tool but I am bumping into many problems with plugins: for example trying something like 'mvn jxr:jxr' results in a failed build because the plugin does not seem to be available. Browsing the Maven site and repositories generally does not help because there are many broken links which lead nowhere. In any event, I have made some progress by enabling a Snapshot profile in my settings.xml and managed to download snapshot versions of some plugins. One of the problems I now have is that since I've specified the versions for my own project modules as snapshots, every time I run a build Maven tries to get updates of my own modules from the central repository. I don't know how to keep the Snapshot profile activated, yet prevent this behaviour for my own project modules. Can anyone help me with this? For now, there's no solution to that. Maven _should_ check once a day but it might do so on every build. This is already fixed in SVN and will be fixed in 2.0.5 or 2.1. As for specifying which repositories to use for which artifacts, that's currently being worked on. One way to make Maven faster is to run with '-o'. It'll still print 'checking for updates for...' but it doesn't connect to ibiblio. Also, I have tried putting in a dependencyManagement section to specify a preference for certain plugin versions but this does not have any effect. For example, I've found through trial and error that I need version 2.1-SNAPSHOT of the maven-checkstyle-plugin to get it to work together with jxr (I want the checkstyle report to create links to the jxr docs), but even when I put the version in the dependencyManagement section Maven still tries to download and use version 2.0 of the plugin (which doesn't seem to support the integration with jxr?). Plugins are not really dependencies. You can set a default version for plugins in the pluginManagement section. Another problem I've had is that trying to run 'mvn pmd:check' as set out on pg. 181 of the Maven 2 Book gives the error 'Required goal not found: pmd:check'. Does anyone know if this is a typo or am I doing something wrong? (The book's errata page on the Mergere website is currently empty). I tried to find the source code to see if I could gain any insight but went round in circles a lot with broken links etc. (and I can't always tell whether I'm looking at something that relates to Maven 1 or Maven 2 ...) Hm, it doesn't work here either. 'mvn pmd:pmd' works though. You'll need a newer version than 2.0-beta-1, though there's no newer release. The author of that part must have used a locally built version. What links are broken, exactly? I'm sure a lot of these things are simply a result of not understanding how to configure Maven correctly ... any help with it would be appreciated! So far it seems you're doing OK.. -- Kenney Thanks and regards, Toni -- View this message in context: http://www.nabble.com/-m2-Plugin-and-SNAPSHOT-woes-t1548994.html#a4207684 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does anyone know of a statistics plugin
You could also try cobertura. Just add the maven-cobertura-plugin-SNAPSHOT to your local repo and add it to your pom. Roald Bankras Software Engineer JTeam b.v. M: +31 6 229 558 92 T: +31 20 48 62 036 -Original Message- From: Hurragutt [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 12:25 PM To: users@maven.apache.org Subject: Does anyone know of a statistics plugin Hi. I am looking for a statistics plugin. One that will give me the number of classes, methods, source lines of code (SLOC) and more information like that. I know that these figures are included in the clover plugin, but I am not using clover because it is licensed. Thanks, Paul -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.5.2/329 - Release Date: 5/2/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.5.2/329 - Release Date: 5/2/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does anyone know of a statistics plugin
Hi. I am in fact using Cobertura for my test coverage reports, but that report does not include sloc statistics (at least not in the version I am using. I'll try the snapshot version if that includes these statistics) On 5/3/06, Roald Bankras [EMAIL PROTECTED] wrote: You could also try cobertura. Just add the maven-cobertura-plugin-SNAPSHOT to your local repo and add it to your pom. Roald Bankras Software Engineer JTeam b.v. M: +31 6 229 558 92 T: +31 20 48 62 036 -Original Message- From: Hurragutt [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 12:25 PM To: users@maven.apache.org Subject: Does anyone know of a statistics plugin Hi. I am looking for a statistics plugin. One that will give me the number of classes, methods, source lines of code (SLOC) and more information like that. I know that these figures are included in the clover plugin, but I am not using clover because it is licensed. Thanks, Paul -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.5.2/329 - Release Date: 5/2/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.5.2/329 - Release Date: 5/2/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Plugin and SNAPSHOT woes
On Wed, 3 May 2006, Kenney Westerhof-3 wrote: On Wed, 3 May 2006, Toni Price wrote: snip One of the problems I now have is that since I've specified the versions for my own project modules as snapshots, every time I run a build Maven tries to get updates of my own modules from the central repository. I don't know how to keep the Snapshot profile activated, yet prevent this behaviour for my own project modules. Can anyone help me with this? For now, there's no solution to that. Maven _should_ check once a day but it might do so on every build. This is already fixed in SVN and will be fixed in 2.0.5 or 2.1. As for specifying which repositories to use for which artifacts, that's currently being worked on. One way to make Maven faster is to run with '-o'. It'll still print 'checking for updates for...' but it doesn't connect to ibiblio. Thanks - that should help at least. snip Plugins are not really dependencies. You can set a default version for plugins in the pluginManagement section. Ah, that figures :-) and seems to work for me. snip What links are broken, exactly? Well here I've been pretty bad and not noted them. One I do remember specifically (though this is plugin documentation, but I think I have also had some problems trying to get to Subversion-related URLs), if you go to http://maven.apache.org/plugins/ and click on the jxr link (http://maven.apache.org/plugins/maven-jxr-plugin) then you get a Page Not Found response. I have the impression (though this may be magnified in my mind ...) that this seems to happen quite a lot. Also, on a related note, I am very confused by whether plugins are called (for example) maven-jxr-plugin or jxr-maven-plugin. The Maven 2 book says clearly to use the former, yet the only way I could get it to work was by fiddling until Maven somehow downloaded a plugin called jxr-maven-plugin. Do you know of any documentation that sheds some light on this? Thanks for your help! Toni -- View this message in context: http://www.nabble.com/-m2-Plugin-and-SNAPSHOT-woes-t1548994.html#a4208553 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Plugin and SNAPSHOT woes
On Wed, 3 May 2006, Toni Price wrote: snip What links are broken, exactly? Well here I've been pretty bad and not noted them. One I do remember specifically (though this is plugin documentation, but I think I have also had some problems trying to get to Subversion-related URLs), if you go to http://maven.apache.org/plugins/ and click on the jxr link (http://maven.apache.org/plugins/maven-jxr-plugin) then you get a Page Not Found response. I have the impression (though this may be magnified in my mind ...) that this seems to happen quite a lot. Indeed. Somebody messed up! :) Also, on a related note, I am very confused by whether plugins are called (for example) maven-jxr-plugin or jxr-maven-plugin. The Maven 2 book says clearly to use the former, yet the only way I could get it to work was by fiddling until Maven somehow downloaded a plugin called jxr-maven-plugin. Do you know of any documentation that sheds some light on this? I think there's some wiki doco on this, but generally the rules are this: - maven core plugins use maven-XXX-plugin, groupId org.apache.maven.plugins - mojo.codehaus.org plugins use XXX-maven-plugin, groupId org.codehaus.mojo - your own plugins can be named whatever you like, but generally maven-XXX-plugin with your company's groupId is used. We've been moving some plugins from mojo to maven core, so some of them are renamed. There are also some older plugins on mojo.codehaus.org that still use the old naming convention (maven-XXX-plugin). Hope this sheds some light on the situation! -- Kenney Thanks for your help! Toni -- View this message in context: http://www.nabble.com/-m2-Plugin-and-SNAPSHOT-woes-t1548994.html#a4208553 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does anyone know of a statistics plugin
javancss for M1 can be found at sourceforge (can't remember the exact address, but ther is a link in the m1 site) I first know about javancss using the plugin for m1. i used the one for m2 which works the same. Raphaël 2006/5/3, Hurragutt [EMAIL PROTECTED]: Do you know if java ncss is available for M1? I have yet to make the transition to M2. :-) On 5/3/06, Piéroni Raphaël [EMAIL PROTECTED] wrote: Hello, check for the java ncss plugin at mojo. http://mojo.codehaus.org/ Raphaël 2006/5/3, Hurragutt [EMAIL PROTECTED]: Hi. I am looking for a statistics plugin. One that will give me the number of classes, methods, source lines of code (SLOC) and more information like that. I know that these figures are included in the clover plugin, but I am not using clover because it is licensed. Thanks, Paul
[m2] How to deploy a webapp to the appserver?
Hi all I'm trying to convert our existing ant-based build to Maven 2. So far things have been going rather well. The new Maven book is a great resource. Anyway building jars and assembling a war file is working fine, although we haven't been using wars before. The next step is to allow the developer to deploy the assembled webapp to the development server, we're using Tomcat. With the ant-based build this is a simple copy since we have direct file access to the developer server. In Maven 2 I have so far seen the Cargo plugin and a Tomcat plugin, but both of these seems overkill for our current needs. I would like to explode the contents of the war to a certain file path. Can I just use mvn war:exploded for this, provided that I configure webappDirectory to point to the developer server? -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does anyone know of a statistics plugin
ok - thx - i'll find it and try it out. :-D Paul On 5/3/06, Piéroni Raphaël [EMAIL PROTECTED] wrote: javancss for M1 can be found at sourceforge (can't remember the exact address, but ther is a link in the m1 site) I first know about javancss using the plugin for m1. i used the one for m2 which works the same. Raphaël 2006/5/3, Hurragutt [EMAIL PROTECTED]: Do you know if java ncss is available for M1? I have yet to make the transition to M2. :-) On 5/3/06, Piéroni Raphaël [EMAIL PROTECTED] wrote: Hello, check for the java ncss plugin at mojo. http://mojo.codehaus.org/ Raphaël 2006/5/3, Hurragutt [EMAIL PROTECTED]: Hi. I am looking for a statistics plugin. One that will give me the number of classes, methods, source lines of code (SLOC) and more information like that. I know that these figures are included in the clover plugin, but I am not using clover because it is licensed. Thanks, Paul
RE: Unable to migrate from 1.0.2 to 1.0.3
I added last night profile id and repository names in settings.xml: it works now. Why is Continuum so strict with settings.xml ? (eg : Maven works perfectly without profile id) Additionaly, build history is still missing. Damien
Re: Upgrade to Continuum 1.0.3 from 1.0.2
Hi Continuumers, has anyone upgraded Continuum with postgres as DB. The instruction only is for Derby. :-) Regards -Chris Am Dienstag, 25. April 2006 13:36 schrieb Emmanuel Venisse: http://maven.apache.org/continuum/upgrade.html Daniel Reghin a écrit : Hi, How can I upgrade my continuum 1.0.2 installation to 1.0.3? I have several projects in 1.0.2 already and didn't want to lose them. Daniel - --- - Esta mensagem e seus anexos podem conter informacoes confidenciais ou privilegiadas. Se voce nao e o destinatario dos mesmos voce nao esta autorizado a utilizar o material para qualquer fim. Solicitamos que voce apague a mensagem e avise imediatamente ao remetente. O conteudo desta mensagem e seus anexos nao representam necessariamente a opiniao e a intencao da empresa, nao implicando em qualquer obrigacao ou responsabilidade da parte da mesma. This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. The contents of this message and its attachments do not necessarily express the opinion or the intention of the company, and do not implies any legal obligation or responsibilities from this company. ** Diese E-Mail wurde auf Viren ueberprueft. [EMAIL PROTECTED] **
Re: [m2] How to deploy a webapp to the appserver?
you can use the war:exploded goal and configure it to deploy your files on your tomcat server by adding in the pom.xml these lines build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration webappDirectory../../bodet/tomcat/webappDirectory /configuration /plugin On 5/3/06, Dennis Lundberg [EMAIL PROTECTED] wrote: Hi all I'm trying to convert our existing ant-based build to Maven 2. So far things have been going rather well. The new Maven book is a great resource. Anyway building jars and assembling a war file is working fine, although we haven't been using wars before. The next step is to allow the developer to deploy the assembled webapp to the development server, we're using Tomcat. With the ant-based build this is a simple copy since we have direct file access to the developer server. In Maven 2 I have so far seen the Cargo plugin and a Tomcat plugin, but both of these seems overkill for our current needs. I would like to explode the contents of the war to a certain file path. Can I just use mvn war:exploded for this, provided that I configure webappDirectory to point to the developer server? -- Dennis Lundberg - 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]
Issues downloading from repos
Hello, Being new to Maven2 I am not sure if this is really an issue. I am having problems when downloading plugins and dependencies from various repos (ibiblio, codehause, repo1). It takes forever to download either the pom or the jar files. And quite often if fails. When it fails, I have to start the process over again. And it may download the required artifact or it may not. To do a compile, I will have run the maven goal quite a few times before it actually does the compile. Is anyone else experiencing this problem? -- Regards, Douglas WF Acheson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does anyone know of a statistics plugin
http://maven-plugins.sourceforge.net / :-) On May 3, 2006, at 1:14 PM, Piéroni Raphaël wrote: javancss for M1 can be found at sourceforge (can't remember the exact address, but ther is a link in the m1 site) I first know about javancss using the plugin for m1. i used the one for m2 which works the same. Raphaël 2006/5/3, Hurragutt [EMAIL PROTECTED]: Do you know if java ncss is available for M1? I have yet to make the transition to M2. :-) On 5/3/06, Piéroni Raphaël [EMAIL PROTECTED] wrote: Hello, check for the java ncss plugin at mojo. http://mojo.codehaus.org/ Raphaël 2006/5/3, Hurragutt [EMAIL PROTECTED]: Hi. I am looking for a statistics plugin. One that will give me the number of classes, methods, source lines of code (SLOC) and more information like that. I know that these figures are included in the clover plugin, but I am not using clover because it is licensed. Thanks, Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Assembly one of the modules
Any idea when a new version of the maven-assembly-plugin will be released ? Thanks, Dário fred flinta wrote: Thanks, yes, it works the way you said. It resulted in the following pom: ... plugin artifactIdmaven-assembly-plugin/artifactId executions execution phasepackage/phase configuration descriptors descriptorsrc/main/assembly/dep.xml/descriptor /descriptors /configuration goals goalassembly/goal /goals /execution /executions /plugin ... Br / Fred From: Tom Huybrechts [EMAIL PROTECTED] Reply-To: Maven Users List users@maven.apache.org To: Maven Users List users@maven.apache.org Subject: Re: Assembly one of the modules Date: Tue, 2 May 2006 16:35:44 +0200 You could bind the assembly:assembly goal to a well known phase in the client pom (e.g. package). If you then run 'mvn package/install/deploy' on the parent, the assembly will generated in the client, but not in any of the other modules. Tom On 5/2/06, fred flinta [EMAIL PROTECTED] wrote: Hi all! I'm trying to run the assembly for one of my modules, but it seems that Maven forces me to define an assembly descriptor for each module. My system looks like: /pom.xml /core/pom.xml /core/src/.. /client/pom.xml /client/src/.. /client/src/main/assembly Running mvn assemly:assembly in the client module works fine! When running the mvn assemly:assembly at the top level Maven states: [INFO] [assembly:assembly] [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] No assembly descriptors found. [INFO] What have I missed? .. How do I create create distribusitions for some of may modules with many modules? / Fred _ Chat: Ha en fest på Habbo Hotel http://habbohotel.msn.se/habbo/sv/channelizer Checka in här! - 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] _ Nyhet! MSN Messenger i Mobiltelefonen! http://mobile.msn.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: Issues downloading from repos
Yes. ibiblio (== repo1) is a very busy site. Once you have built your project succesfully once all dependencies are in your local repository. You can then run your build offline with the -o switch. On 5/3/06, Douglas WF Acheson [EMAIL PROTECTED] wrote: Hello, Being new to Maven2 I am not sure if this is really an issue. I am having problems when downloading plugins and dependencies from various repos (ibiblio, codehause, repo1). It takes forever to download either the pom or the jar files. And quite often if fails. When it fails, I have to start the process over again. And it may download the required artifact or it may not. To do a compile, I will have run the maven goal quite a few times before it actually does the compile. Is anyone else experiencing this problem? -- Regards, Douglas WF Acheson - 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] Generated test sources not being compiled -- Solved
Just to update this, I found the problem. It was just as I suspected -- I am a moron :) I had copied someone else's existing (integration test) pom and didn't realize the packaging was 'pom'. Thanks anyway. -- James Mitchell On May 2, 2006, at 11:18 AM, James Mitchell wrote: Hi, I am creating a new plugin that generates test sources. This is my first Maven plugin ever, so I'm sure I'm doing something wrong. Following the way the antlr plugin is structured, my plugin @goal and @phase match the below config and my plugin correctly generates the test source in the correct place (as configured by my test project -- see below). The problem is that Maven doesn't actually compile the generated tests. Perhaps I'm not understanding the way phases/binding works in M2. I've gone through most of the documentation, and most of the BetterBuildsWithMaven.pdf Any help? ... ... /** * @parameter expression=${project} * @required */ private MavenProject project; public void execute() throws MojoExecutionException, MojoFailureException { ... ... // blah, blah, generate sources ... ... project.addTestCompileSourceRoot( genSrcOutputDirectory ); } My test project that uses my plugin... ... (junit dependency) ... ... build testSourceDirectory${project.build.directory}/generated-tests/my- plugin/testSourceDirectory plugins plugin groupIdmy.group.id/groupId artifactIdmaven-gentests-plugin/artifactId executions execution idgenerate-tests/id phasegenerate-test-sources/phase configuration scriptSourceDirectorysrc/main/scripts// scriptSourceDirectory genSrcOutputDirectory${project.build.directory}/generated- tests/my-plugin/genSrcOutputDirectory /configuration goals goalgenerateTests/goal /goals /execution /executions /plugin /plugins /build -- James Mitchell - 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: Where to find reference documentation for parameter Types?
Thanks Dan. I was just using this plugin as an example. I'm just wondering if in general there's a methodology for finding documentation on ANY type when you look at ANY plugin doc. It would be ideal if they were hyperlinked like Javadocs, but I guess since the plugin realm is so open and public that this isn't feasible? Dave. -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 02, 2006 8:35 PM To: Maven Users List Subject: Re: Where to find reference documentation for parameter Types? If you check maven2 book, you might find this reference, however the format for a maven file in local/remote repo is ${artifactId}-${version}-${classifier).${type} -D On 5/2/06, Dave Comeau [EMAIL PROTECTED] wrote: Just a question how about how to effectively read plugin documentation. On this page: http://mojo.codehaus.org/build-helper-maven-plugin/attach-artifact-mojo.html The Type column indicates three different types: Artifact, MavenProject and MavenProjectHelper. How do I find out what the format of those types are? For example, if I look at the How to use link for the same plugin: http://mojo.codehaus.org/build-helper-maven-plugin/howto.html Go to the bottom and see that the attach-artifact example shows: configuration artifacts artifact filesome file/file typeextension of your file /type classifieroptionalclassifier /artifact ... /artifacts /configuration I assume somewhere I can find a reference that would tell me that Artifact types have the File/Type/Classifier sub-parameters? Where would this be? Dave
stop a build
Is there a way to stop a build?? I've found I mistake in one of our projects and the test doesn't end so the scheduled build didn't complete. How can I force to stop a build?
Re: stop a build
it will be available in 1.1, I found an old mail
RE: M2 - Best practice for common jars between EJB,WAR modules in EAR
I'm not sure if this works in JBoss, but the way I'm doing it in Weblogic is slightly different, so might be worth trying just on the off chance... I've got an EAR, which contains an EJB jar, a number of WARs and a number of common jars, all in the root. The common jars are referenced in the EJB's MANIFEST as a result of the following... groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration -- View this message in context: http://www.nabble.com/RE%3A-M2---Best-practice-for-common-jars-between-EJB%2CWAR-modules-in-EAR-t1545876.html#a4211266 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] How to copy JSPs and other web files?
I've not tested it, but isn't that the job of the 'process-resources' phase, so won't 'mvn process-resources' (or mvn compile) do what you want? -- View this message in context: http://www.nabble.com/-m2-How-to-copy-JSPs-and-other-web-files--t1544917.html#a4211408 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Assembly one of the modules
there are only 2 outstandding issues left before 2.1, so I guess a new release is comming soon. http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truemode=hidesorter/order=DESCsorter/field=priorityresolution=-1pid=11126fixfor=12219 However, you can always cut a internal release by fetching the latest from svn. -D On 5/3/06, Dario Luis Coneglian Oliveros [EMAIL PROTECTED] wrote: Any idea when a new version of the maven-assembly-plugin will be released ? Thanks, Dário fred flinta wrote: Thanks, yes, it works the way you said. It resulted in the following pom: ... plugin artifactIdmaven-assembly-plugin/artifactId executions execution phasepackage/phase configuration descriptors descriptorsrc/main/assembly/dep.xml/descriptor /descriptors /configuration goals goalassembly/goal /goals /execution /executions /plugin ... Br / Fred From: Tom Huybrechts [EMAIL PROTECTED] Reply-To: Maven Users List users@maven.apache.org To: Maven Users List users@maven.apache.org Subject: Re: Assembly one of the modules Date: Tue, 2 May 2006 16:35:44 +0200 You could bind the assembly:assembly goal to a well known phase in the client pom (e.g. package). If you then run 'mvn package/install/deploy' on the parent, the assembly will generated in the client, but not in any of the other modules. Tom On 5/2/06, fred flinta [EMAIL PROTECTED] wrote: Hi all! I'm trying to run the assembly for one of my modules, but it seems that Maven forces me to define an assembly descriptor for each module. My system looks like: /pom.xml /core/pom.xml /core/src/.. /client/pom.xml /client/src/.. /client/src/main/assembly Running mvn assemly:assembly in the client module works fine! When running the mvn assemly:assembly at the top level Maven states: [INFO] [assembly:assembly] [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] No assembly descriptors found. [INFO] What have I missed? .. How do I create create distribusitions for some of may modules with many modules? / Fred _ Chat: Ha en fest på Habbo Hotel http://habbohotel.msn.se/habbo/sv/channelizer Checka in här! - 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] _ Nyhet! MSN Messenger i Mobiltelefonen! http://mobile.msn.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]
[m2] weird behaviour when using assembly plugin in a multiproject
Hi there, I've noticed a weird behaviour with the mave-assembly-plugin (2.1-SNAPSHOT) and still not sure whether it's a bug. Suppose you have a multiproject M with three jar modules (A, B, C) where B uses the maven-assembly-plugin by attaching 'assembly' goal to the 'package' phase. + M + A + B (depends on A and uses assembly plugin) + C (depends on B) pom.xml snippet of module B: ... /build plugins plugin artifactIdmaven-assembly-plugin/artifactId executions execution phasepackage/phase goals goalassembly/goal /goals configuration descriptors descriptorsrc/main/assembly/bin.xml/descriptor /descriptors /configuration /execution /executions /plugin /plugins /build ... / When running 'mvn package' in the parent project (M), the following happens: 1) A.jar is built 2) B.jar is built and a message is printed saying that 'assembly:assembly' was being prepared 3) A.jar is built again 4) B.jar is built again and a warning message is printed out: Removing: assembly from forked lifecycle, to prevent recursive invocation 5) C.jar is built for the first time 6) B-bin.tar.gz an B-bin.zip are generated 7) C.jar is built again It seems like B triggers the 'jar:jar' goal again for each module before assemblying. Not sure whether it's a bug or something I am doing wrong. Any help will be appreciated. Thanks, Dário
Hibernate plugin not binding?
I am using Maven 2.0.4. I added a hibernate3 plugin to my build, and expected to run hbm2java at the generate-resources phase, but maven tries to compile before generating the java source from the hbm files. My configuration looks as follows: plugin groupIdorg.codehaus.mojo/groupId artifactIdhibernate3-maven-plugin/artifactId executions execution phasegenerate-sources/phase goals goalhbm2java/goal /goals configuration hibernate propertyFile/src/main/resources/hibernate/hibernate.cfg.sqlserver.properti es/propertyFile /hibernate outputDirectory hbm2cfgxmlsrc/main/resources/hbm2cfgxml /outputDirectory /configuration /execution /executions /plugin The build fails because the java files were not generated in the generate-sources phase: C:\brg_dev\dip7\hibernate_samplemvn compile [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/jdbc/sqlserver/jtds/jtds/1.2/jtds-1.2.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] [INFO] Building Maven Quick Start Archetype [INFO]task-segment: [compile] [INFO] [INFO] Preparing hibernate3:hbm2java [WARNING] Removing: hbm2java from forked lifecycle, to prevent recursive invocation. [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [WARNING] Artifact junit:junit:jar:3.8.1:test retains local scope 'test' overriding broader scope 'compile' given by a dependency. If this is not intended, modify or remove the local scope. [INFO] [compiler:compile] Compiling 1 source file to C:\brg_dev\dip7\hibernate_sample\target\classes [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure C:\brg_dev\dip7\hibernate_sample\src\main\java\com\horizon\hibernate\sample\ UsersHelper.java:[3,0] package hw_security.h ibernate does not exist C:\brg_dev\dip7\hibernate_sample\src\main\java\com\horizon\hibernate\sample\ UsersHelper.java:[13,49] cannot find symbol symbol : class User location: class com.horizon.hibernate.sample.UsersHelper [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Wed May 03 10:36:46 EDT 2006 [INFO] Final Memory: 5M/12M [INFO] Any ideas on this? Thanks, Cristian Jansenson -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.5.1/328 - Release Date: 5/1/2006
Re: deploying site generated files
OK the setup was write, there seems to be something that is different from 2.0.2 and 2.0.4. I switched to 2.0.4 and it worked, with no changes to the pom. Thanks anyway! On 5/2/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Has the site:stage been removed? mvn site:stage -DstagingDirectory=/usr2/local/WWW/ [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'site'. [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Required goal not found: site:stage [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Tue May 02 14:18:09 CDT 2006 [INFO] Final Memory: 2M/126M [INFO] On 5/2/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: When I tried the file:/// I get this error. Is there something else that needs to be setup to use the file:/// command? I opened the directory up fully, I am not sure what else to check. What do you have for the file:/// syntax. in my pom, I have: distributionManagement site idwebsite/id urlfile:///usr2/local/WWW/url /site /distributionManagement mvn -e site:deploy + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'site'. [INFO] [INFO] Building Unnamed - com.weenergies.csstech.app.servlet:EclipseMigView:war:1.0-SNAPSHOT [INFO]task-segment: [site:deploy] [INFO] [INFO] [site:deploy] file:///usr2/local/WWW - Session: Opened file:///usr2/local/WWW - Session: Disconnecting file:///usr2/local/WWW - Session: Disconnected [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error uploading site Embedded error: Could not make directory '/usr2/local/WWW/.'. [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException : Error uploading site at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal( DefaultLifecycleExecutor.java:485) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:455) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures( DefaultLifecycleExecutor.java:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute ( DefaultLifecycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java :322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main (MavenCli.java:249) 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) Caused by: org.apache.maven.plugin.MojoExecutionException : Error uploading site at org.apache.maven.plugins.site.SiteDeployMojo.execute( SiteDeployMojo.java:142) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:415) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:531) ... 16 more Caused by: org.apache.maven.wagon.TransferFailedException: Could not make directory '/usr2/local/WWW/.'. at org.apache.maven.wagon.providers.file.FileWagon.putDirectory( FileWagon.java:113) at org.apache.maven.plugins.site.SiteDeployMojo.execute( SiteDeployMojo.java:134) ... 18 more [INFO] [INFO] Total time: 3 seconds [INFO] Finished at: Tue
RE: Assembly one of the modules + installer
Are you going to support only windows installers? Best regards, Juri. -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 5:44 PM To: Maven Users List Subject: Re: Assembly one of the modules there are only 2 outstandding issues left before 2.1, so I guess a new release is comming soon. http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truemode=hidesorter/order=DESCsorter/field=priorityresolution=-1pid=11126fixfor=12219 However, you can always cut a internal release by fetching the latest from svn. -D On 5/3/06, Dario Luis Coneglian Oliveros [EMAIL PROTECTED] wrote: Any idea when a new version of the maven-assembly-plugin will be released ? Thanks, Dário fred flinta wrote: Thanks, yes, it works the way you said. It resulted in the following pom: ... plugin artifactIdmaven-assembly-plugin/artifactId executions execution phasepackage/phase configuration descriptors descriptorsrc/main/assembly/dep.xml/descriptor /descriptors /configuration goals goalassembly/goal /goals /execution /executions /plugin ... Br / Fred From: Tom Huybrechts [EMAIL PROTECTED] Reply-To: Maven Users List users@maven.apache.org To: Maven Users List users@maven.apache.org Subject: Re: Assembly one of the modules Date: Tue, 2 May 2006 16:35:44 +0200 You could bind the assembly:assembly goal to a well known phase in the client pom (e.g. package). If you then run 'mvn package/install/deploy' on the parent, the assembly will generated in the client, but not in any of the other modules. Tom On 5/2/06, fred flinta [EMAIL PROTECTED] wrote: Hi all! I'm trying to run the assembly for one of my modules, but it seems that Maven forces me to define an assembly descriptor for each module. My system looks like: /pom.xml /core/pom.xml /core/src/.. /client/pom.xml /client/src/.. /client/src/main/assembly Running mvn assemly:assembly in the client module works fine! When running the mvn assemly:assembly at the top level Maven states: [INFO] [assembly:assembly] [INFO] -- -- [ERROR] BUILD FAILURE [INFO] -- -- [INFO] No assembly descriptors found. [INFO] -- -- What have I missed? .. How do I create create distribusitions for some of may modules with many modules? / Fred _ Chat: Ha en fest på Habbo Hotel http://habbohotel.msn.se/habbo/sv/channelizer Checka in här! -- --- 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] _ Nyhet! MSN Messenger i Mobiltelefonen! http://mobile.msn.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deployment of war file using JBOSS
The simplest way would be to copy the war to the jboss deploy directory. If your Jboss server is on the same server as your build machines you can just do an outputDirectory / to your jboss deploy directory. plugin artifactIdmaven-war-plugin/artifactId configuration warSourceDirectory${basedir}/Web//warSourceDirectory webXml${basedir}/Web/WEB-INF/web.xml/webXml * outputDirectory${war.deploy}/outputDirectory* /configuration /plugin On 5/3/06, Marco Mistroni [EMAIL PROTECTED] wrote: Hello, easy way to copy your file with maven2 is that you write an antrun 'task' in your pom.xml i hth marco On 4/28/06, Vincent Massol [EMAIL PROTECTED] wrote: Anshuman, BTW you didn't answer my question: It would be nice to understand why you are confused as this is not good and I'd like to improve the site as much as possible. Let us know and also please do not hesitate to use the Cargo mailing list (http://archive.codehaus.org/cargo/) as Cargo is not a project hosted by the Maven team. Could you please let me know what's confusing and how we could improve it please? Thanks -Vincent -Original Message- From: Vincent Massol [mailto:[EMAIL PROTECTED] Sent: vendredi 28 avril 2006 08:50 To: 'Maven Users List' Subject: RE: Deployment of war file using JBOSS Hi Anshuman, -Original Message- From: Anshuman Srivastava [mailto:[EMAIL PROTECTED] Sent: vendredi 28 avril 2006 06:37 To: Maven Users List Subject: Re: Deployment of war file using JBOSS Hi Vincent Thanks for your concern.My problem is that I have already installed jboss-4.0.4 so I dont need to install it from a zip file.Where do I need to put this entry -- configuration !-- Container configuration -- container containerIdjboss4x/containerId homec:/boss-4.0.4/home /container !-- Deployer configuration -- deployer typelocal/type deployables deployable groupIdactive.DMS/groupId artifactIdDMS/artifactId typewar/type properties context/context /properties pingURL/pingURL /deployable /deployables /deployer /configuration I tried to put it after /build,before build, between build and /build but everytime it is giving me error that -Reason: Parse error reading POM. Reason: Unrecognised tag: 'configuration' (position: START_TAG seen .../dependencies\r\n\t configuration... @163:18) I believe that i need to put some plugin entry for jboss-4.0.4and distribution management section for deployment. Nope. You're configuring the cargo plugin and thusn, as usual, you need to put that plugin config in build as shown on the link I gave you: http://cargo.codehaus.org/Maven2+plugin :-) [snip] -Vincent ___ Nouveau : téléphonez moins cher avec Yahoo! Messenger. Appelez le monde entier à partir de 0,012 €/minute ! Téléchargez sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Assembly one of the modules + installer
there is a unix type installer at Mojo http://mojo.codehaus.org/rpm-maven-plugin/ On 5/3/06, Artamonov, Juri [EMAIL PROTECTED] wrote: Are you going to support only windows installers? Best regards, Juri. -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 5:44 PM To: Maven Users List Subject: Re: Assembly one of the modules there are only 2 outstandding issues left before 2.1, so I guess a new release is comming soon. http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truemode=hidesorter/order=DESCsorter/field=priorityresolution=-1pid=11126fixfor=12219 However, you can always cut a internal release by fetching the latest from svn. -D On 5/3/06, Dario Luis Coneglian Oliveros [EMAIL PROTECTED] wrote: Any idea when a new version of the maven-assembly-plugin will be released ? Thanks, Dário fred flinta wrote: Thanks, yes, it works the way you said. It resulted in the following pom: ... plugin artifactIdmaven-assembly-plugin/artifactId executions execution phasepackage/phase configuration descriptors descriptorsrc/main/assembly/dep.xml/descriptor /descriptors /configuration goals goalassembly/goal /goals /execution /executions /plugin ... Br / Fred From: Tom Huybrechts [EMAIL PROTECTED] Reply-To: Maven Users List users@maven.apache.org To: Maven Users List users@maven.apache.org Subject: Re: Assembly one of the modules Date: Tue, 2 May 2006 16:35:44 +0200 You could bind the assembly:assembly goal to a well known phase in the client pom (e.g. package). If you then run 'mvn package/install/deploy' on the parent, the assembly will generated in the client, but not in any of the other modules. Tom On 5/2/06, fred flinta [EMAIL PROTECTED] wrote: Hi all! I'm trying to run the assembly for one of my modules, but it seems that Maven forces me to define an assembly descriptor for each module. My system looks like: /pom.xml /core/pom.xml /core/src/.. /client/pom.xml /client/src/.. /client/src/main/assembly Running mvn assemly:assembly in the client module works fine! When running the mvn assemly:assembly at the top level Maven states: [INFO] [assembly:assembly] [INFO] -- -- [ERROR] BUILD FAILURE [INFO] -- -- [INFO] No assembly descriptors found. [INFO] -- -- What have I missed? .. How do I create create distribusitions for some of may modules with many modules? / Fred _ Chat: Ha en fest på Habbo Hotel http://habbohotel.msn.se/habbo/sv/channelizer Checka in här! -- --- 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] _ Nyhet! MSN Messenger i Mobiltelefonen! http://mobile.msn.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Custome manifest for war file?
What is the correct way to specify a custom MANIFEST.MF file for a WAR? I understand how to do this via src/main/resources for a jar, but wars do not behave the same. Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] How to copy JSPs and other web files?
Good try however 'process-resources' executes 'resources:resources' which copies and processes the resources (such as *.properties) into the destination directory, ready for packaging, that goal does not copy JSP and the other web files. The closest goal to what my team needs is 'war:exploded', which I use on other web apps and it works perfectly. This particular webapp has several XML config files that keep a stream open so when the XML files are copied via 'war:exploded' the goal fails because of the file lock. Does anyone know of a way to filter 'war:exploded' ONLY when 'war:exploded' is executed directly, obviously I don't want to filter 'war:exploded' when an 'install' is done because I want 'install' to copy all files, not just the filtered files. Thanks, Scott Williams Original Message Subject: Re: [m2] How to copy JSPs and other web files? From: Gwyn [EMAIL PROTECTED] Date: Wed, May 03, 2006 9:38 am To: users@maven.apache.org I've not tested it, but isn't that the job of the 'process-resources' phase, so won't 'mvn process-resources' (or mvn compile) do what you want? -- View this message in context: http://www.nabble.com/-m2-How-to-copy-JSPs-and-other-web-files--t1544917.html#a4211408 Sent from the Maven - Users forum 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]
Is clientIncludes works at all?
Hi All, I have been trying to add some class files in my generated ejb client - jar using clientIncludes but its not all working any help appreciated please!!! this is what i have in my pom plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient clientIncludes clientInclude**/EStoreSession.class/clientInclude /clientIncludes archive manifest addClasspathtrue/addClasspath /manifest manifestEntries Build-Environment${build.env}/Build-Environment /manifestEntries /archive /configuration /plugin and that EStoreSession.class never made into client-jar Thanks, Raghu
Profile Properties affecting another Profile
I am unable to get profiles to cooperate with each other as I would like. Has anyone done something similar to the following: 1) setup one profile within my pom which includes several integration-test plugins which need to be executed on multiple environments. 2) setup several profiles within my profiles.xml which specify the environment information which this profile should use. 3) Configure the plugins in #1 above to utilize profile properties (such as $\{db.driver\}) set in the profiles specified in #2 for their configuration. I then activate the profiles by: mvn -P itest -Denv=local mvn -P itest -Denv=dev mvn -P itest -Denv=test Examples of the pom and profiles.xml are below. Unfortunately the profile properties do not seem to be available in for the plugins to use. A quote on the maven wiki (http://docs.codehaus.org/display/MAVEN/Build+Profiles) led me to believe this was doable, but I haven't found any references to anyone doing something similar. The reason I'm doing this is to avoid having to configure each set of integration tests for each and every environment. This seems to be much more rohbust than I need. How are other people solving this problem? Should what I'm trying to accomplish work? Any suggestsion? Thanks, David pom.xml: = . . . profile iditest/id build plugins . . .integration test plugins here. . . /plugins /build /profile profiles.xml = profiles profile idlocal/id activation property nameenv/name valuelocal/value /property /activation properties db.drivercom.mysql.jdbc.Driver/db.driver db.urljdbc:mysql://localhost:3306/db?autoReconnect=true/db.url db.useruser/db.user db.passpass/db.pass /properties /profile . . . /profiles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
current state of .net integration
Hi everyone, We are starting a big 'enterprise' project, and i'm evaluating Maven as a replacement of our dusty and almost-broken set of ant scripts. Sounds great, but we have to deal with a lot of C# code (perhaps 30-40%). I strongly believe in an uniform build model amongst the team, that's why it will be great to find a way to integrate this non-java code into maven (compilation or even better tests). Is it acceptable to use ant (via antrun) for such a purpose ? While searching for references I found maven-csharp.javaforge.com, which seams to support only .NET 1.1 . In what state is it ? Is there some users here ? Thanks a lot for your feedback. Fabien BENOIT
Break build on deprecated version
Is there any way to deprecate a dependency so that projects using this dependency break teh build? If project a relies on hibernate 3.0 and the rest of the projects in a working set have moved up to hibernate 3.1, is there any way to specify that v3.0 is no longer allowed and therefore cause the build to break?
Re: Lastupdated element in local repository Maven Ant Tasks
I just added it in case it was required to answer my question. dan tran wrote: umm, so why you ask if you pom is ok? On 5/2/06, jmaxwell [EMAIL PROTECTED] wrote: I am want it to push a zip file into the local repository. So dependant projects can pull it down. Note that I am using the Maven Ant Tasks not maven itself. Cheers! dan tran wrote: On 5/2/06, jmaxwell [EMAIL PROTECTED] wrote: I am using the Ant Tasks a question in about the lastupdated element. After a build I install my package (jar or zip) into my local repository using the following ant task: artifact:install file=${dist.package.dir}/${module.bin.package} pom refid=maven.bin.pom / localRepository refid=maven.local.repository / /artifact:install I noticed however that the lastupdated element in the metadata does not change is this correct? Do I have a problem with my pom?: project modelVersion4.0.0/modelVersion groupIdcom.client-server.architecture/groupId namearchitecture/name version6.15-SNAPSHOT/version artifactIdarchitecture-lib/artifactId packagingzip/packaging /project There is no built-in lifecycle with packaging zip. What is your intention with this pom? Cheers! Jeff -- View this message in context: http://www.nabble.com/Lastupdated-element-in-local-repository-Maven-Ant-Tasks-t1546384.html#a4200823 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Lastupdated-element-in-local-repository-Maven-Ant-Tasks-t1546384.html#a4203632 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Lastupdated-element-in-local-repository-Maven-Ant-Tasks-t1546384.html#a4213270 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Lastupdated element in local repository Maven Ant Tasks
When using the Maven Ant Tasks does zip not having a life-cycle matter? dan tran wrote: On 5/2/06, jmaxwell [EMAIL PROTECTED] wrote: I am using the Ant Tasks a question in about the lastupdated element. After a build I install my package (jar or zip) into my local repository using the following ant task: artifact:install file=${dist.package.dir}/${module.bin.package} pom refid=maven.bin.pom / localRepository refid=maven.local.repository / /artifact:install I noticed however that the lastupdated element in the metadata does not change is this correct? Do I have a problem with my pom?: project modelVersion4.0.0/modelVersion groupIdcom.client-server.architecture/groupId namearchitecture/name version6.15-SNAPSHOT/version artifactIdarchitecture-lib/artifactId packagingzip/packaging /project There is no built-in lifecycle with packaging zip. What is your intention with this pom? Cheers! Jeff -- View this message in context: http://www.nabble.com/Lastupdated-element-in-local-repository-Maven-Ant-Tasks-t1546384.html#a4200823 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Lastupdated-element-in-local-repository-Maven-Ant-Tasks-t1546384.html#a4213285 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem in the genapp plugin
When you use the maven.genapp.repackage.dir properties and set it to . , the files contained in the maven.genapp.repackage directory are not moved to the new package directory, but copied in it, and steel in the base directory. Here is my template.properties file : maven.genapp.repackage.dir=. maven.genapp.repackage=main/src/java,test/src/unit maven.genapp.filter=project.xml maven.genapp.default.package=com.saint-gobain.sgsi.myapplication maven.genapp.filter=project.xml,main/src/webapp/WEB-INF/web.xml Here is my template directory tree : Main - conf - sql - src o java * coordination * model * service o resources o webapp Test - src o resources o unit Here is the result : Main - conf - sql - src o java * com * saint-gobain o sgsi * myapplication * coordination * model * service * coordination * model * service o resources o webapp Test - src o resources o unit When I put the main and test directory in a src directory, and remove the maven.genapp.repackage.dir, everything works fine.
[m2][site] Skin developmetn advice wanted
Hi, I have the 2.0-SNAPSHOT of the site plugin running with the skins stuff working. I downloaded a the default skins jar file and had a look. I suspected it to contain a velocity template or something but it didn't; just css, images and some other stuff. I am about to ask one of the web guys about help with creating a skin which fits our layout requirements, before I do this I tought I should ask about how to go about this. What do I need to download in order to be able to setup the web developer with all the things needed? Are there any online documentation which I have missed? Cheers, Micke
RE : Lastupdated element in local repository Maven Ant Tasks
Packaging zip doesn't exist. http://jira.codehaus.org/browse/MNG-1683 - Olivier -Message d'origine- De : jmaxwell [mailto:[EMAIL PROTECTED] Envoyé : mercredi 3 mai 2006 18:09 À : users@maven.apache.org Objet : Re: Lastupdated element in local repository Maven Ant Tasks When using the Maven Ant Tasks does zip not having a life-cycle matter? dan tran wrote: On 5/2/06, jmaxwell [EMAIL PROTECTED] wrote: I am using the Ant Tasks a question in about the lastupdated element. After a build I install my package (jar or zip) into my local repository using the following ant task: artifact:install file=${dist.package.dir}/${module.bin.package} pom refid=maven.bin.pom / localRepository refid=maven.local.repository / /artifact:install I noticed however that the lastupdated element in the metadata does not change is this correct? Do I have a problem with my pom?: project modelVersion4.0.0/modelVersion groupIdcom.client-server.architecture/groupId namearchitecture/name version6.15-SNAPSHOT/version artifactIdarchitecture-lib/artifactId packagingzip/packaging /project There is no built-in lifecycle with packaging zip. What is your intention with this pom? Cheers! Jeff -- View this message in context: http://www.nabble.com/Lastupdated-element-in-local-repository-Maven-A nt-Tasks-t1546384.html#a4200823 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Lastupdated-element-in-local-repository-Maven-Ant- Tasks-t1546384.html#a4213285 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. -- Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après le message ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Maven idea plugin and project layout
I did an update and everything works fine now. The new plugin is great. Thanks. Has there been any work on Mevenide/IntelliJ for Maven2 yet ? Would you need help on that ? 2006/5/2, Sebastien Arbogast [EMAIL PROTECTED]: I did what you suggested and I got a problem with another dependency: Downloading: http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-repo rting-api/2.0/maven-reporting-api-2.0.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Error transferring file org.apache.maven.reporting:maven-reporting-api:jar:2.0 from the specified remote repositories: central ( http://repo1.maven.org/maven2), apache.snapshots (http://svn.apache.org/maven-snapshot-repository), snapshots ( http://snapshots.maven.codehaus.org/maven2) Path to dependency: 1) org.apache.maven.plugins:maven-idea-plugin:maven-plugin:2.0-beta-2-SN APSHOT 2) org.apache.maven:maven-plugin-testing-harness:jar:1.0-SNAPSHOT 3) org.apache.maven:maven-core:jar:2.0 4) org.apache.maven.reporting:maven-reporting-api:jar:2.0 Caused by I/O exception: Connection timed out: connect [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 3 minutes 24 seconds [INFO] Finished at: Tue May 02 17:28:14 CEST 2006 [INFO] Final Memory: 5M/18M [INFO] 2006/5/2, Geoffrey De Smet [EMAIL PROTECTED]: Are you using maven 2.0.4? I 've had an issue with maven 2.0.1 and the idea snapshot not working for it. But it doesn't look like the same issue. You're says Error transferring file. Try mvn install again or remove the plexus-util from your local repo and try mvn install again. Sebastien Arbogast wrote: OK. I managed to checkout sources, but when I ran mvn install, I got the following error: W:\data\dev\maven-idea-pluginmvn install [INFO] Scanning for projects... [INFO] - --- [INFO] Building Maven IDEA Plugin [INFO]task-segment: [install] [INFO] - --- [INFO] [plugin:descriptor] [INFO] Using 2 extractors. [INFO] Applying extractor for language: java [INFO] Extractor for language: java found 5 mojo descriptors. [INFO] Applying extractor for language: bsh [INFO] Extractor for language: bsh found 0 mojo descriptors. [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.1/ plexus-utils-1.1.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.codehaus.plexus:plexus-utils Reason: Error getting POM for 'org.codehaus.plexus:plexus-utils' from the reposi tory: Error transferring file org.codehaus.plexus:plexus-utils:pom:1.1 from the specified remote repositories: central (http://repo1.maven.org/maven2 ), apache.snapshots (http://svn.apache.org/maven-snapshot-repository), snapshots (http://snapshots.maven.codehaus.org/maven2 ) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 31 seconds [INFO] Finished at: Tue May 02 16:23:42 CEST 2006 [INFO] Final Memory: 5M/9M [INFO] W:\data\dev\maven-idea-plugin I must have missed something. 2006/5/2, Geoffrey De Smet [EMAIL PROTECTED]: svn co ???/maven-idea-plugin mvn install Sebastien Arbogast wrote: Good to know. How do I install it ? 2006/5/2, Geoffrey De Smet [EMAIL PROTECTED]: The latest snapshot idea plugin is far superiour to the latest release idea plugin. It does a lot more, like root module configuration etc. Sebastien Arbogast wrote: I'm going through the Maven 2 book and trying to open proficio project from chapter 3 inside Intellij. So I ran mvn idea:idea to generate project files, I opened the root project in IntelliJ but then there is no root module generated so I can't access project global files, like site files or root pom.xml. I could create this module myself, but then the next time I'm gonna run idea:idea
RE: Profile Properties affecting another Profile
Actually, it seems as thought if I use a normal property value in the plugin configuration vs. an escaped one everything works. I'm not sure I understand why. . . Solution: Change: $\{db.driver\} in plugin configuration TO: ${db.driver} David -Original Message- From: David H. DeWolf [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 11:55 AM To: users@maven.apache.org Subject: Profile Properties affecting another Profile I am unable to get profiles to cooperate with each other as I would like. Has anyone done something similar to the following: 1) setup one profile within my pom which includes several integration-test plugins which need to be executed on multiple environments. 2) setup several profiles within my profiles.xml which specify the environment information which this profile should use. 3) Configure the plugins in #1 above to utilize profile properties (such as $\{db.driver\}) set in the profiles specified in #2 for their configuration. I then activate the profiles by: mvn -P itest -Denv=local mvn -P itest -Denv=dev mvn -P itest -Denv=test Examples of the pom and profiles.xml are below. Unfortunately the profile properties do not seem to be available in for the plugins to use. A quote on the maven wiki (http://docs.codehaus.org/display/MAVEN/Build+Profiles) led me to believe this was doable, but I haven't found any references to anyone doing something similar. The reason I'm doing this is to avoid having to configure each set of integration tests for each and every environment. This seems to be much more rohbust than I need. How are other people solving this problem? Should what I'm trying to accomplish work? Any suggestsion? Thanks, David pom.xml: = . . . profile iditest/id build plugins . . .integration test plugins here. . . /plugins /build /profile profiles.xml = profiles profile idlocal/id activation property nameenv/name valuelocal/value /property /activation properties db.drivercom.mysql.jdbc.Driver/db.driver db.urljdbc:mysql://localhost:3306/db?autoReconnect=true/db.url db.useruser/db.user db.passpass/db.pass /properties /profile . . . /profiles - 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: [m1] Referencing the plugin jar itself from inside plugin.jelly?
What do you want to achieve? Usually you don't need to set your plugin's classpath as Maven will do that automatically. If you want to access another plugin's classes, you'd just add it as a dependency in your project.xml. HTH, -Lukas Matthew Beermann wrote: I've got a Maven 1 plugin which declares some new Ant tasks (as Java source files). What I can't seem to figure out is, when I'm doing taskdefs in plugin.jelly, how do I make reference to the plugin jar /itself/? In the FAQ, I find reference to a stanza like this: ant:taskdef name=checkstyle classname=com.puppycrawl.tools.checkstyle.CheckStyleTask ant:classpath ant:pathelement location=${plugin.getDependencyPath('checkstyle:checkstyle')}/ ant:path refid=maven.dependency.classpath/ ant:classpath /ant:taskdef ...which is all well and good, it adds my plugin's /dependencies/ to the classpath, but it doesn't add my plugin /itself/. What's the property I want here? I tried ${plugin.jar}, ${plugin.path}, etc, but none of those is it. Is there a master reference somewhere to all of ${plugin.foobar} elements? Thanks, --Matthew Beermann - Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : Lastupdated element in local repository Maven Ant Tasks
Right I know that it does not exist when using maven to build but I am using ant. But when building with ant and using a maven local repository strictly for dependencies does the packaging matter? I am trying to prove out what Steve Loughran recommended in his Meeting new challenges with Ant 1.7 doc. Olivier Lamy wrote: Packaging zip doesn't exist. http://jira.codehaus.org/browse/MNG-1683 - Olivier -Message d'origine- De : jmaxwell [mailto:[EMAIL PROTECTED] Envoyé : mercredi 3 mai 2006 18:09 À : users@maven.apache.org Objet : Re: Lastupdated element in local repository Maven Ant Tasks When using the Maven Ant Tasks does zip not having a life-cycle matter? dan tran wrote: On 5/2/06, jmaxwell [EMAIL PROTECTED] wrote: I am using the Ant Tasks a question in about the lastupdated element. After a build I install my package (jar or zip) into my local repository using the following ant task: artifact:install file=${dist.package.dir}/${module.bin.package} pom refid=maven.bin.pom / localRepository refid=maven.local.repository / /artifact:install I noticed however that the lastupdated element in the metadata does not change is this correct? Do I have a problem with my pom?: project modelVersion4.0.0/modelVersion groupIdcom.client-server.architecture/groupId namearchitecture/name version6.15-SNAPSHOT/version artifactIdarchitecture-lib/artifactId packagingzip/packaging /project There is no built-in lifecycle with packaging zip. What is your intention with this pom? Cheers! Jeff -- View this message in context: http://www.nabble.com/Lastupdated-element-in-local-repository-Maven-A nt-Tasks-t1546384.html#a4200823 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Lastupdated-element-in-local-repository-Maven-Ant- Tasks-t1546384.html#a4213285 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. -- Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après le message ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Lastupdated-element-in-local-repository-Maven-Ant-Tasks-t1546384.html#a4213759 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Break build on deprecated version
That's more a Maven question. You can suscribe [EMAIL PROTECTED]to the Maven mailing listusers@maven.apache.organd ask that, or search in archive http://mail-archives.apache.org/mod_mbox/maven-users for a possible answer. I'm interested in that answer because it would be a nice way to manage version dependency. I personally haven't found a way to do that automatically. I make a way creating a profile in the settings.xml of maven. It's a version-profile where everyone in our team writes their last version number. When we need a dependency from some of our projects we write in the pom ${ someDependency.version} and that property contains the last value written in settings.xml. That work for us until we realized that Continuum 1.0.2 (dunno if 1.0.3 does) didn't read the profiles from Maven's settings.xml. It doesn't work for outside project either (well, it could work but you'll have to write every single last version from every outside project). If you find a better way wich works with Continuum, let me know :D
Re: Problem in the genapp plugin
Please file it in JIRA (http://jira.codehaus.org/browse/MPGENAPP) and attach a small test project, if possible. Cheers, Lukas Rathouis, Charles wrote: When you use the maven.genapp.repackage.dir properties and set it to . , the files contained in the maven.genapp.repackage directory are not moved to the new package directory, but copied in it, and steel in the base directory. Here is my template.properties file : maven.genapp.repackage.dir=. maven.genapp.repackage=main/src/java,test/src/unit maven.genapp.filter=project.xml maven.genapp.default.package=com.saint-gobain.sgsi.myapplication maven.genapp.filter=project.xml,main/src/webapp/WEB-INF/web.xml Here is my template directory tree : Main - conf - sql - src o java * coordination * model * service o resources o webapp Test - src o resources o unit Here is the result : Main - conf - sql - src o java * com * saint-gobain o sgsi * myapplication * coordination * model * service * coordination * model * service o resources o webapp Test - src o resources o unit When I put the main and test directory in a src directory, and remove the maven.genapp.repackage.dir, everything works fine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Break build on deprecated version
I will post this to the maven ng. However, I think this could be a Continuum feature since Continuum is ultimately responsible for halting the build process. How can one project that is independent of other projects know that the version it is using is disallowed unless some process above (Continuum in this case) disallows it? Thanks for the input. On 5/3/06, Carlos Henriquez [EMAIL PROTECTED] wrote: That's more a Maven question. You can suscribe [EMAIL PROTECTED]to the Maven mailing listusers@maven.apache.organd ask that, or search in archive http://mail-archives.apache.org/mod_mbox/maven-users for a possible answer. I'm interested in that answer because it would be a nice way to manage version dependency. I personally haven't found a way to do that automatically. I make a way creating a profile in the settings.xml of maven. It's a version-profile where everyone in our team writes their last version number. When we need a dependency from some of our projects we write in the pom ${ someDependency.version} and that property contains the last value written in settings.xml. That work for us until we realized that Continuum 1.0.2 (dunno if 1.0.3 does) didn't read the profiles from Maven's settings.xml. It doesn't work for outside project either (well, it could work but you'll have to write every single last version from every outside project). If you find a better way wich works with Continuum, let me know :D
Re: Break build on deprecated version
Continuum 1.0.3 is the first release to utilize your settings.xml file. Wayne On 5/3/06, Todd Orr [EMAIL PROTECTED] wrote: I will post this to the maven ng. However, I think this could be a Continuum feature since Continuum is ultimately responsible for halting the build process. How can one project that is independent of other projects know that the version it is using is disallowed unless some process above (Continuum in this case) disallows it? Thanks for the input. On 5/3/06, Carlos Henriquez [EMAIL PROTECTED] wrote: That's more a Maven question. You can suscribe [EMAIL PROTECTED]to the Maven mailing listusers@maven.apache.organd ask that, or search in archive http://mail-archives.apache.org/mod_mbox/maven-users for a possible answer. I'm interested in that answer because it would be a nice way to manage version dependency. I personally haven't found a way to do that automatically. I make a way creating a profile in the settings.xml of maven. It's a version-profile where everyone in our team writes their last version number. When we need a dependency from some of our projects we write in the pom ${ someDependency.version} and that property contains the last value written in settings.xml. That work for us until we realized that Continuum 1.0.2 (dunno if 1.0.3 does) didn't read the profiles from Maven's settings.xml. It doesn't work for outside project either (well, it could work but you'll have to write every single last version from every outside project). If you find a better way wich works with Continuum, let me know :D
Re: deploying site generated files
This is why I generally prefer to run the most recent version/build of projects like Maven. The list of fixed bugs and issues is usually pretty large, and even if your specific problem is not listed in the Changelog, there's always a chance it was resolved along with some other fix, etc. ;-) Wayne On 5/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: OK the setup was write, there seems to be something that is different from 2.0.2 and 2.0.4. I switched to 2.0.4 and it worked, with no changes to the pom. Thanks anyway! On 5/2/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Has the site:stage been removed? mvn site:stage -DstagingDirectory=/usr2/local/WWW/ [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'site'. [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Required goal not found: site:stage [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Tue May 02 14:18:09 CDT 2006 [INFO] Final Memory: 2M/126M [INFO] On 5/2/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: When I tried the file:/// I get this error. Is there something else that needs to be setup to use the file:/// command? I opened the directory up fully, I am not sure what else to check. What do you have for the file:/// syntax. in my pom, I have: distributionManagement site idwebsite/id urlfile:///usr2/local/WWW/url /site /distributionManagement mvn -e site:deploy + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'site'. [INFO] [INFO] Building Unnamed - com.weenergies.csstech.app.servlet:EclipseMigView:war:1.0-SNAPSHOT [INFO]task-segment: [site:deploy] [INFO] [INFO] [site:deploy] file:///usr2/local/WWW - Session: Opened file:///usr2/local/WWW - Session: Disconnecting file:///usr2/local/WWW - Session: Disconnected [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error uploading site Embedded error: Could not make directory '/usr2/local/WWW/.'. [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException : Error uploading site at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal( DefaultLifecycleExecutor.java:485) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:455) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures( DefaultLifecycleExecutor.java:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute ( DefaultLifecycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java :322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main (MavenCli.java:249) 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) Caused by: org.apache.maven.plugin.MojoExecutionException : Error uploading site at org.apache.maven.plugins.site.SiteDeployMojo.execute( SiteDeployMojo.java:142) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:415) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:531)
[M2] Setting path of test running directory
Hi, I am wondering if it is possible to set the path of running directory for testing. In the Maven project descriptor, there is nothing relevant to my issue. Does someone meet this issue ? thanks, Andre --- ATRADIUS - IS Services www.atradius.com Keizersgracht 281 - Amsterdam 1016 AD - Netherlands This message is intended for the addressee or its representative only. Any form of unauthorized use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. If you are not the intended recipient of this e-mail message and its contents, please notify the sender immediately and delete this message and all its attachments subsequently. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Plugin and SNAPSHOT woes
On Wed, 3 May 2006, Kenney Westerhof-3 wrote: Also, on a related note, I am very confused by whether plugins are called (for example) maven-jxr-plugin or jxr-maven-plugin. The Maven 2 book says clearly to use the former, yet the only way I could get it to work was by fiddling until Maven somehow downloaded a plugin called jxr-maven-plugin. Do you know of any documentation that sheds some light on this? I think there's some wiki doco on this, but generally the rules are this: - maven core plugins use maven-XXX-plugin, groupId org.apache.maven.plugins - mojo.codehaus.org plugins use XXX-maven-plugin, groupId org.codehaus.mojo - your own plugins can be named whatever you like, but generally maven-XXX-plugin with your company's groupId is used. We've been moving some plugins from mojo to maven core, so some of them are renamed. There are also some older plugins on mojo.codehaus.org that still use the old naming convention (maven-XXX-plugin). Hope this sheds some light on the situation! -- Kenney Very helpful thanks - and will be useful for future reference ... Toni -- View this message in context: http://www.nabble.com/-m2-Plugin-and-SNAPSHOT-woes-t1548994.html#a4214354 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Building Branches
Sorry for the simple questions, the docs are still a little light. Can continuum run integration on various branches, automatically, for a given project in cvs? My hope is the following: given a project A, you have the head and a 1.1 branch. Can Continuum detect that there are multiple branches and run integration on all of them? Preferably prodcuing jars like projecta-1.0-SNAPSHOT.jar and projecta-1.1-SNAPSHOT.jar. Thanks
Re: [M2] Setting path of test running directory
What's the use case, that is, why do you need to set the path for testing? If you need certain files etc to be in the directory, they should be added as resources. Having said that, perhaps this includes what you're looking for? build directory${basedir}/directory outputDirectoryclasses/outputDirectory testOutputDirectorytest-classes/testOutputDirectory Wayne On 5/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I am wondering if it is possible to set the path of running directory for testing. In the Maven project descriptor, there is nothing relevant to my issue. Does someone meet this issue ? thanks, Andre --- ATRADIUS - IS Services www.atradius.com Keizersgracht 281 - Amsterdam 1016 AD - Netherlands This message is intended for the addressee or its representative only. Any form of unauthorized use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. If you are not the intended recipient of this e-mail message and its contents, please notify the sender immediately and delete this message and all its attachments subsequently. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-assembly-plugin: exclude dependency - should it also exclude the child dependencies of the excluded dependencies?
Hi, I am currently using maven-assembly-plugin v2.0.4. Instead of the jar-with-dependencies requirement, I have a need for jar-with-some-dependencies requirement. That is, instead of packing all of the 10 dependencies, I would wish to pack 9, leaving out one. You could do that today by having the dependency specified in the /excludes tag, but (quite counterintuitively) the child dependencies are not excluded? The situation is made worse if the excluded dependency has 20 children dependencies and maintaining the exclusion list becomes more than a pain! Is this the expected behaviour for exclusion within the assembly plugin or am I missing something? Cheers. Alex
RE: [M2] Setting path of test running directory
For example, you have an automate which computing automatically files in a specific directory. Firstly, these kind of files can not put in resources. But they are included in your test scenarios. Secondly, in case of an integration test, the application should be launch as real condition. So in the configuration file, the base directory of the application is specified as relative from the working directory. Project -o src -o main -o java -o resources -o test -o java -o resources -o environment -o a_traiter -o traite -o error -o target -o environment [test running directory, copied from test/environment] -o a_traiter -o traite -o error build/directory is the directory where all files generated by the build are placed. On solution would be specified in the test configuration resource to used specified directories with relative path. I am wondering if it is possible to specify in the pom's file the running directory for tests. -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: woensdag 3 mei 2006 19:07 To: Maven Users List Subject: Re: [M2] Setting path of test running directory What's the use case, that is, why do you need to set the path for testing? If you need certain files etc to be in the directory, they should be added as resources. Having said that, perhaps this includes what you're looking for? build directory${basedir}/directory outputDirectoryclasses/outputDirectory testOutputDirectorytest-classes/testOutputDirectory Wayne On 5/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I am wondering if it is possible to set the path of running directory for testing. In the Maven project descriptor, there is nothing relevant to my issue. Does someone meet this issue ? thanks, Andre This message is intended for the addressee or its representative only. Any form of unauthorized use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. If you are not the intended recipient of this e-mail message and its contents, please notify the sender immediately and delete this message and all its attachments subsequently. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Transitive dependencies and duplicate jars....
I'm fighting with some classloading issues, and am hoping someone can help me resolve this. We have an application composed of a WAR, several EJB jars, and some shared support jars. Following the J2EE best practices, the shared jars are packaged at the EAR level, and the EJB jar contains references to those jars in it's MANIFEST.MF via the Class-Path parameter. For the WAR, the jar dependencies are listed scopeprovided/provided. The WAR also has several other dependencies which are bundled in it's WEB-INF/lib directory. The problem I'm having involves transitive dependencies. There are some support libraries such as xml-apis.jar that are apparently used by various jars. These libraries are ending up at both the EAR level, and also the WEB-INF/lib level. At runtime, I'm getting the dreaded ClassCastException that usually occurs when there is a mismatch in classfiles/loaders. I need to get rid of the duplicates in the WEB-INF/lib directory, but am not sure quite how to accomplish this. Can anyone provide some direction? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Two new Sun jars available in Maven repos (Thanks Carlos)
Just wanted to post and let everyone know that Carlos Sanchez has recently uploaded two new Sun jars into the Maven repos. This was not discussed on the User or Dev list, nor did I see any relevant JIRA emails, so I thought I'd send this notification to the Users list myself. Here's the relevant blog posts: http://jroller.com/page/carlossg?entry=sun_jars_available_in_maven http://weblogs.java.net/blog/kohsuke/archive/2006/05/javamail_and_ac.html The two jars that were uploaded: dependency groupidjavax.activation/groupid artifactidactivation/artifactid version1.1/version /dependency dependency groupidjavax.mail/groupid artifactidmail/artifactid version1.4/version /dependency If you add these dependencies to your poms, you will no longer receive a pom file notifying you to download and manually install these jars etc, but instead Maven will download the binaries and automatically use them. This is great! If you are using older versions of these jars in your projects, you can modify your poms to pull these files instead, and eliminate the older jars from your corporate or local repo etc. Thanks for your work on this Carlos (and Kohsuke). I look forward to seeing more Sun jars posted in Maven repo as they are released under CDDL, folded into Project Glassfish, etc. Wayne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cactus properties / Maven 2.0.4
Hi, i have to set the Cactus property cactus.contextURL=http://localhost:8080/test . Where and how can i do this in Maven 2.0.4. Thanks, Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Transitive dependencies and duplicate jars....
On 5/3/06, Sean McNamara [EMAIL PROTECTED] wrote: I need to get rid of the duplicates in the WEB-INF/lib directory, but am not sure quite how to accomplish this. Can anyone provide some direction? http://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html Usually you do this with exclusions. Sometimes it's hard to figure out where the unwanted jars are coming from, though. Running mvn with -X on the command line should output enough information. (I've been known to cheat and just declare the offending jars as scopeprovided/scope dependencies in the module with the problem. That will be the closest definition and it will override whatever else is in the dependency graph.) HTH, -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Transitive dependencies and duplicate jars....
Quickest/easiest fix is probably to add those dependencies to your WAR pom with scope provided. Sounds like a possible bug... if a dep is declared as scope provided, then I'd think its dependencies should also come in as provided. Are you saying these are instead coming in as compile scope, and being included in WEB-INF/lib? Wayne On 5/3/06, Sean McNamara [EMAIL PROTECTED] wrote: I'm fighting with some classloading issues, and am hoping someone can help me resolve this. We have an application composed of a WAR, several EJB jars, and some shared support jars. Following the J2EE best practices, the shared jars are packaged at the EAR level, and the EJB jar contains references to those jars in it's MANIFEST.MF via the Class-Path parameter. For the WAR, the jar dependencies are listed scopeprovided/provided. The WAR also has several other dependencies which are bundled in it's WEB-INF/lib directory. The problem I'm having involves transitive dependencies. There are some support libraries such as xml-apis.jar that are apparently used by various jars. These libraries are ending up at both the EAR level, and also the WEB-INF/lib level. At runtime, I'm getting the dreaded ClassCastException that usually occurs when there is a mismatch in classfiles/loaders. I need to get rid of the duplicates in the WEB-INF/lib directory, but am not sure quite how to accomplish this. Can anyone provide some direction? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cactus properties / Maven 2.0.4
On 5/3/06, Christian Wiesing [EMAIL PROTECTED] wrote: i have to set the Cactus property cactus.contextURL=http://localhost:8080/test . Where and how can i do this in Maven 2.0.4. See 'Using System Properties' on: http://maven.apache.org/plugins/maven-surefire-plugin/howto.html I'm interested to know how you're using Cactus with Maven 2. Here's an example of running tests against a pre-configured (JspRedirector servlet mapping, jspRedirector.jsp file in place) webapp. It was the best I could come up with until the Cactus m2 plugin is finished. :) (Too bad the tests don't pass! That's why it's living in the sandbox for now.) http://svn.apache.org/repos/asf/struts/sandbox/trunk/apps-test/taglib-it/pom.xml HTH, -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] help creating site with multiple modules
I have a project that has multiple modules to it and would like to produce a site that ties the modules together. Can anyone point me to a good example of how do to things like easily provide a consistent header to all the sub-module sites? -- Dan Adams Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with site generation and multi-module project
This looks like a good bug report. Go file it in JIRA under the MSITE module: http://jira.codehaus.org/browse/MSITE Wayne On 5/3/06, Julien Henry [EMAIL PROTECTED] wrote: Hi, I read some topics about site generation, and howto add a link for project module. I have now a module section in my parent site, but some link are wrong. My modules are : modules modulecore/module modulecommons-tests/module modulehttpunit-plugin/module modulehtmlunit-plugin/module modulejacobie-plugin/module /modules The generated site contains the following folders : core/ commons-tests/ *httpunit-plugin*/ *htmlunit-plugin*/ *jacobie-plugin*/ But links generated by menu ref=modules / are : h5Modules/h5 ul li class=none a href=core/index.htmljWebUnit - Core - API/a/li li class=none a href=commons-tests/index.htmljWebUnit - Tests - Commons/a /li li class=none a href=*httpunit*/index.htmljWebUnit - HttpUnit - Plugin/a /li li class=none a href=*htmlunit*/index.htmljWebUnit - HtmlUnit - Plugin/a /li li class=none a href=*jacobie*/index.htmljWebUnit - Jacobie - Plugin/a /li /ul I don't know why it works for commons-test, and not for XXX-plugin. Perhaps -plugin has a particular meanings ? Thanks. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to specify max heap size when running tests?
How can I tell Java to use a larger heap size (~500m) when building certain projects in Maven2? I see some options for this in the maven-compiler-plugin but how can I do this for the tests? Thanks. -dh
RE : How to specify max heap size when running tests?
In $HOME/.profile or windows variable Add MAVEN_OPTS=-Xmx512m -Xms512m - Olivier -Message d'origine- De : Dave Hoffer [mailto:[EMAIL PROTECTED] Envoyé : mercredi 3 mai 2006 20:42 À : Maven Users List Objet : How to specify max heap size when running tests? How can I tell Java to use a larger heap size (~500m) when building certain projects in Maven2? I see some options for this in the maven-compiler-plugin but how can I do this for the tests? Thanks. -dh This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. ** Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après le message ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] help creating site with multiple modules
Hi When using the current version of the site plugin and running site:site on the root/parent module, the site plugin will process the child modules as well. When deploying the site the child modules site will be but in the parent modules site directory under the name of the artifactId. Ex: project setup: parent-module/ child-module1 child-module2 deployed site: parent/ [child-module1-artifactid]/ [child-module2-artifactid]/ So it is known how to hyperlink to the child modules from the parent module. But it isn't possible to properly test it without deploying the site, because the location the sites are in the children's taget directories. With the next release of the site plugin there seems to be a ${modules} expression which will generate navigation to the children, but I haven't tested this yet. It is probably worthwhile for you to add the apache plugin snapshot repository to your configuration and set the version of the site plugin to 2.0-SNAPSHOT (and run a mvn -U ) which will (probably) give you the ${modules} feature (not sure about this since I haven't tested it yet myself). Hope this helps a little - Micke On 03/05/06, Dan Adams [EMAIL PROTECTED] wrote: I have a project that has multiple modules to it and would like to produce a site that ties the modules together. Can anyone point me to a good example of how do to things like easily provide a consistent header to all the sub-module sites? -- Dan Adams Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building Branches
Continuum can't detect branches. If you want them in Continuum, you'll need to add them in Continuum. Check your scm part in poms in branches before to add them Emmanuel Todd Orr a écrit : Sorry for the simple questions, the docs are still a little light. Can continuum run integration on various branches, automatically, for a given project in cvs? My hope is the following: given a project A, you have the head and a 1.1 branch. Can Continuum detect that there are multiple branches and run integration on all of them? Preferably prodcuing jars like projecta-1.0-SNAPSHOT.jar and projecta-1.1-SNAPSHOT.jar. Thanks
RE: RE : How to specify max heap size when running tests?
This would then be global for all maven projects. Is there a way to specify this large amount in the pom so only those projects use that much memory? -dh -Original Message- From: Olivier Lamy [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 2:46 PM To: 'Maven Users List' Subject: RE : How to specify max heap size when running tests? In $HOME/.profile or windows variable Add MAVEN_OPTS=-Xmx512m -Xms512m - Olivier -Message d'origine- De : Dave Hoffer [mailto:[EMAIL PROTECTED] Envoyé : mercredi 3 mai 2006 20:42 À : Maven Users List Objet : How to specify max heap size when running tests? How can I tell Java to use a larger heap size (~500m) when building certain projects in Maven2? I see some options for this in the maven-compiler-plugin but how can I do this for the tests? Thanks. -dh This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. ** Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après le message ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. ** - 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] help creating site with multiple modules
Thanks. But how do you use a common site.xml with the child modules, for instance? I don't want to have to copy and paste it and then maintain it in 5 different modules. On Wed, 2006-05-03 at 19:48 +0100, Mikael Andersson wrote: Hi When using the current version of the site plugin and running site:site on the root/parent module, the site plugin will process the child modules as well. When deploying the site the child modules site will be but in the parent modules site directory under the name of the artifactId. Ex: project setup: parent-module/ child-module1 child-module2 deployed site: parent/ [child-module1-artifactid]/ [child-module2-artifactid]/ So it is known how to hyperlink to the child modules from the parent module. But it isn't possible to properly test it without deploying the site, because the location the sites are in the children's taget directories. With the next release of the site plugin there seems to be a ${modules} expression which will generate navigation to the children, but I haven't tested this yet. It is probably worthwhile for you to add the apache plugin snapshot repository to your configuration and set the version of the site plugin to 2.0-SNAPSHOT (and run a mvn -U ) which will (probably) give you the ${modules} feature (not sure about this since I haven't tested it yet myself). Hope this helps a little - Micke On 03/05/06, Dan Adams [EMAIL PROTECTED] wrote: I have a project that has multiple modules to it and would like to produce a site that ties the modules together. Can anyone point me to a good example of how do to things like easily provide a consistent header to all the sub-module sites? -- Dan Adams Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dan Adams Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2-book] Where to actually configure report generation and display ?
In chapter 3, page 71, it's written: Even though the standard reports are very useful, often you will want to customize the projects reports that are created and displayed in your web site. The reports created and displayed are controlled in the build/reports element in the POM. You may want to be more selective about the reports that you generate and to do so you need to list each report that you want to include as part of the site generation. You do so by configuring the plugin as follows: And the example actually shows a modification of the plugin. So is it in the plugin or in build/reports, or in both ? And if it is in build/reports, what should I put there ? I'm a little bit lost. -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org
Re: Two new Sun jars available in Maven repos (Thanks Carlos)
This is excellent news! Thank you Carlos and Koshuke! On 5/3/06, Wayne Fay [EMAIL PROTECTED] wrote: Just wanted to post and let everyone know that Carlos Sanchez has recently uploaded two new Sun jars into the Maven repos. This was not discussed on the User or Dev list, nor did I see any relevant JIRA emails, so I thought I'd send this notification to the Users list myself. Here's the relevant blog posts: http://jroller.com/page/carlossg?entry=sun_jars_available_in_maven http://weblogs.java.net/blog/kohsuke/archive/2006/05/javamail_and_ac.html The two jars that were uploaded: dependency groupidjavax.activation/groupid artifactidactivation/artifactid version1.1/version /dependency dependency groupidjavax.mail/groupid artifactidmail/artifactid version1.4/version /dependency If you add these dependencies to your poms, you will no longer receive a pom file notifying you to download and manually install these jars etc, but instead Maven will download the binaries and automatically use them. This is great! If you are using older versions of these jars in your projects, you can modify your poms to pull these files instead, and eliminate the older jars from your corporate or local repo etc. Thanks for your work on this Carlos (and Kohsuke). I look forward to seeing more Sun jars posted in Maven repo as they are released under CDDL, folded into Project Glassfish, etc. Wayne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- __ Cheers, Arik Kfir [EMAIL PROTECTED] Linux user, number 415067 - http://counter.li.org/ http://corleon.dnsalias.org
Re: [m2] help creating site with multiple modules
Ok, don't know about that I'm afraid. Personally I maintain a site.xml for each module, which isn't to much of a problem for me since I have different navigations setup, but it would be nice if things were inherited though (like banners, skin and links). - Micke On 03/05/06, Dan Adams [EMAIL PROTECTED] wrote: Thanks. But how do you use a common site.xml with the child modules, for instance? I don't want to have to copy and paste it and then maintain it in 5 different modules. On Wed, 2006-05-03 at 19:48 +0100, Mikael Andersson wrote: Hi When using the current version of the site plugin and running site:site on the root/parent module, the site plugin will process the child modules as well. When deploying the site the child modules site will be but in the parent modules site directory under the name of the artifactId. Ex: project setup: parent-module/ child-module1 child-module2 deployed site: parent/ [child-module1-artifactid]/ [child-module2-artifactid]/ So it is known how to hyperlink to the child modules from the parent module. But it isn't possible to properly test it without deploying the site, because the location the sites are in the children's taget directories. With the next release of the site plugin there seems to be a ${modules} expression which will generate navigation to the children, but I haven't tested this yet. It is probably worthwhile for you to add the apache plugin snapshot repository to your configuration and set the version of the site plugin to 2.0-SNAPSHOT (and run a mvn -U ) which will (probably) give you the ${modules} feature (not sure about this since I haven't tested it yet myself). Hope this helps a little - Micke On 03/05/06, Dan Adams [EMAIL PROTECTED] wrote: I have a project that has multiple modules to it and would like to produce a site that ties the modules together. Can anyone point me to a good example of how do to things like easily provide a consistent header to all the sub-module sites? -- Dan Adams Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dan Adams Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2 book] I don't get the same result when generating site.
I found the problem: The site descriptor code shown as an example in the book and the one provided with the downloaded archive are different. In the downloaded one there are menu ref=.../ tags that the site generator doesn't seem to understand. I've replaced them with what is in the PDF, and it works fine now. 2006/5/2, Sebastien Arbogast [EMAIL PROTECTED]: At the end of chapter 3, when I generate the proficio's site, I get $menu.getAttribute( name ) references in the side menu instead of About proficio and Project documentation menus. Is that normal ? Does anyone know what may have gone wrong ? -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org
m2 how to skip testCompile phase
Hi I am doing mvn install with maven.test.skip=true, it is skipping to run the testcases but is it possible to even skip compiling the testcases. -Dmaven.test.skip=true [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Not compiling test sources [INFO] [surefire:test] [INFO] Tests are skipped. Thanks -- -Gautham Pamu
Re: [m2 book] I don't get the same result when generating site.
Actually, there's even another error in the code shown as an example, because there is no proficio-features page in the downloaded archive. So you have to create it. 2006/5/3, Sebastien Arbogast [EMAIL PROTECTED]: I found the problem: The site descriptor code shown as an example in the book and the one provided with the downloaded archive are different. In the downloaded one there are menu ref=.../ tags that the site generator doesn't seem to understand. I've replaced them with what is in the PDF, and it works fine now. 2006/5/2, Sebastien Arbogast [EMAIL PROTECTED]: At the end of chapter 3, when I generate the proficio's site, I get $menu.getAttribute( name ) references in the side menu instead of About proficio and Project documentation menus. Is that normal ? Does anyone know what may have gone wrong ? -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org
Re: [m2 book] I don't get the same result when generating site.
Oh and sorry, the two menu items refer to Maven stuff instead of proficio: menu name=Quick Links item name=Features href=/maven-features.html/ /menu menu name=About Proficio item name=What is Proficio? href=/what-is-maven.html/ /menu instead of menu name=Quick Links item name=Features href=/proficio-features.html/ /menu menu name=About Proficio item name=What is Proficio? href=/what-is-proficio.html/ /menu 2006/5/3, Sebastien Arbogast [EMAIL PROTECTED]: Actually, there's even another error in the code shown as an example, because there is no proficio-features page in the downloaded archive. So you have to create it. 2006/5/3, Sebastien Arbogast [EMAIL PROTECTED]: I found the problem: The site descriptor code shown as an example in the book and the one provided with the downloaded archive are different. In the downloaded one there are menu ref=.../ tags that the site generator doesn't seem to understand. I've replaced them with what is in the PDF, and it works fine now. 2006/5/2, Sebastien Arbogast [EMAIL PROTECTED] : At the end of chapter 3, when I generate the proficio's site, I get $menu.getAttribute( name ) references in the side menu instead of About proficio and Project documentation menus. Is that normal ? Does anyone know what may have gone wrong ? -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org
Re: m2 how to skip testCompile phase
Hi, It is skipping the compile the test sources but it is loading the jars during this phase even though it is skipped.. you can see this in the logs with -X option. Is it supposed to load these jars even though it is skipped. Should it also skip the resources:testResources when this property is set to true ? Thanks Gautham Pamu [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [DEBUG] com.mycompany.app:my-app:jar:1.0-SNAPSHOT (selected for null) [DEBUG] junit:junit:jar:3.8.1:test (selected for test) [DEBUG] Configuring mojo ' org.apache.maven.plugins:maven-compiler-plugin:2.0.1:testCompile' -- [DEBUG] (f) basedir = C:\temp\my-app [DEBUG] (f) buildDirectory = C:\temp\my-app\target [DEBUG] (f) classpathElements = [C:\temp\my-app\target\classes, C:\temp\my-app\target\test-classes, C:\Documents and Settings\Administrator\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar] [DEBUG] (f) compileSourceRoots = [C:\temp\my-app\src\test\java] [DEBUG] (f) compilerId = javac [DEBUG] (f) debug = true [DEBUG] (f) fork = false [DEBUG] (f) optimize = false [DEBUG] (f) outputDirectory = C:\temp\my-app\target\test-classes [DEBUG] (f) outputFileName = my-app-1.0-SNAPSHOT [DEBUG] (f) showDeprecation = false [DEBUG] (f) showWarnings = false [DEBUG] (f) skip = true [DEBUG] (f) staleMillis = 0 [DEBUG] (f) verbose = false [DEBUG] -- end configuration -- [INFO] [compiler:testCompile] [INFO] Not compiling test sources [DEBUG] com.mycompany.app:my-app:jar:1.0-SNAPSHOT (selected for null) [DEBUG] junit:junit:jar:3.8.1:test (selected for test) [DEBUG] org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.1.3:runtime(selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for runtime) [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire-root::1.1for project: null:surefire:jar: 1.5.3 from the repository. [DEBUG] org.apache.maven.surefire:surefire:jar:1.5.3:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for project: null:plexus-utils:jar:1.1 from the repository. [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (removed - nearer found: 1.0.4) [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire-root::1.1for project: null:surefire-booter:jar: 1.5.3 from the repository. [DEBUG] org.apache.maven.surefire:surefire-booter:jar:1.5.3:runtime(selected for runtime) [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime) [DEBUG] Configuring mojo ' org.apache.maven.plugins:maven-surefire-plugin:2.1.3:test' -- [DEBUG] (f) basedir = C:\temp\my-app [DEBUG] (f) childDelegation = true [DEBUG] (f) classesDirectory = C:\temp\my-app\target\classes [DEBUG] (f) classpathElements = [C:\temp\my-app\target\classes, C:\temp\my-app\target\test-classes, C:\Documents and Settings\Administrator\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar] [DEBUG] (f) forkMode = none [DEBUG] (f) jvm = java [DEBUG] (f) localRepository = [local] - file://C:\Documents and Settings\Administrator\.m2\repository [DEBUG] (f) pluginArtifacts = [junit:junit:jar:3.8.1:runtime, org.apache.maven.surefire:surefire:jar:1.5.3:runtime, org.apache.maven.surefire:surefire-booter:jar:1.5.3:runtime, org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime, org.apache.maven:maven-plugin-api:jar:2.0:runtime, org.apache.maven:maven-artifact:jar:2.0:runtime] [DEBUG] (f) printSummary = true [DEBUG] (f) reportFormat = brief [DEBUG] (f) reportsDirectory = C:\temp\my-app\target/surefire-reports [DEBUG] (f) skip = true [DEBUG] (f) testClassesDirectory = C:\temp\my-app\target\test-classes [DEBUG] (f) useFile = true [DEBUG] -- end configuration -- [INFO] [surefire:test] [INFO] Tests are skipped. [DEBUG] org.apache.maven.plugins:maven-jar-plugin:maven-plugin:2.0:runtime(selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: null:maven-archiver:jar:2.0 from the repository. [DEBUG] org.apache.maven:maven-archiver:jar:2.0:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-project:jar:2.0:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime(selected for runtime) [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime) [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0:runtime(selected for runtime) [DEBUG]
[m2] code coverage for multiple modules that use integration tests
Okay, I have a number of modules and I want to generate code coverage for them with cobertura. Some of the classes can be tested with normal unit tests so they are not a problem. Some of the classes, however, are Tapestry components. To test them I have a separate module called integration-tests that runs a web app and uses html unit to test them. Anyone know of a way that I can have cobertura include the results from the integration tests when calculating coverage for the modules? -- Dan Adams Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] refering to the project root directory
How do you refer to the project root directory in a pom? I have a configuration setting that I want to set to a path relative to the project root in a number of sub-modules. -- Dan Adams Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build date time
Hi, I have multiple project and so can we define this at the top level. Can we use this plugin work with cvs if disable checks Do we ahve to specify this for every pom file or can we have it just inthe top level pom.xml file. build ... plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifestEntries Implementation-Build${buildNumber}/Implementation-Build /manifestEntries /archive /configuration /plugin /plugins /build On 3/7/06, Mick Knutson [EMAIL PROTECTED] wrote: Deploy team snapshots of our project. Thanks Mick Knutson http://www.BASELogic.com http://www.MickKnutson.com MSN Messenger: [EMAIL PROTECTED] - Original Message - From: Julian Wood [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Monday, March 06, 2006 8:30 PM Subject: Re: Build date time Do you mean how to deploy a snapshot of your project so that other people can use it? Or how to use a snapshot dependency in your project? For the former, there is some info here: http://wiki.ucalgary.ca/page/LearningCommons/Documentation/ Project_Versioning_-_Best_Practices#Snapshots If it's the latter, an example is at: http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/ install.html in combination with http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html What specifically are you trying to do? J On 6-Mar-06, at 2:58 PM, Mick Knutson wrote: Does anyone have a tutorial or introduction on how to use SNAPSHOT in my project? From: Julian Wood [EMAIL PROTECTED] Reply-To: Maven Users List users@maven.apache.org To: Maven Users List users@maven.apache.org Subject: Re: Build date time Date: Mon, 6 Mar 2006 14:25:42 -0700 You can use this plugin: http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/ introduction.html J On 1-Mar-06, at 2:37 AM, Jörg Zintel wrote: Hi, I'm just starting with maven 2 and wonder how I could get the build date and time into the manifest of my jar. I would like to have something like: build.date=Mon, 01.01.06 12:35 Does anyone know how to get this? Thanks in advance Jörg -- Julian Wood [EMAIL PROTECTED] Programmer/Analyst University of Calgary http://commons.ucalgary.ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Gautham Pamu
Re: [M2][maven-ejb-plugin] Files ending with Session.class are not being included in ejb-client jar
I'm also having same problem, i posted different messages on the same problem, but never got answer from any one saying either its a bug or i'm doing something wrong, Any one has solution for this?? Thanks, Raghu
RE: [m2] refering to the project root directory
I think ${basedir} is what you're looking for. David -Original Message- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 4:17 PM To: Maven users list Subject: [m2] refering to the project root directory How do you refer to the project root directory in a pom? I have a configuration setting that I want to set to a path relative to the project root in a number of sub-modules. -- Dan Adams Software Engineer Interactive Factory 617.235.5857 - 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] refering to the project root directory
Well, it seems that basedir will refer to the directory of the current project/module. I want the path to the top level project from within the the module pom.xmls. On Wed, 2006-05-03 at 16:22 -0400, David H. DeWolf wrote: I think ${basedir} is what you're looking for. David -Original Message- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 4:17 PM To: Maven users list Subject: [m2] refering to the project root directory How do you refer to the project root directory in a pom? I have a configuration setting that I want to set to a path relative to the project root in a number of sub-modules. -- Dan Adams Software Engineer Interactive Factory 617.235.5857 - 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] -- Dan Adams Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2][maven-ejb-plugin] Files ending with Session.class are not being included in ejb-client jar
Sounds like a bug. See if its already been posted in JIRA and if not, create a new issue. Wayne On 5/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm also having same problem, i posted different messages on the same problem, but never got answer from any one saying either its a bug or i'm doing something wrong, Any one has solution for this?? Thanks, Raghu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] refering to the project root directory
On 5/3/06, Dan Adams [EMAIL PROTECTED] wrote: How do you refer to the project root directory in a pom? I have a configuration setting that I want to set to a path relative to the project root in a number of sub-modules. How do you define the 'project root directory'? In a multi-module project with a parent pom structure, the top level pom may come from a remote repository. I had trouble with this recently when trying to configure the CheckStyle plugin to use our custom config file. The solution I chose was to build a jar with the config file and use it as an extension in the build. Then the config file can be located on the classpath. This is described at the bottom of: http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html I considered and dismissed the option of using a URL for the path to the config file. Even if we kept the config file in svn and versioned it with the project, we would have to remember to modify the pom after tagging the repository. Otherwise you might be in a situation where you check out an old tag, but the build fails because the config file has changed. I'm pretty sure ${basedir} refers to each module, so you would have to use relative paths to find the parent. One of the developers who uses Eclipse had trouble with the relative paths, so we didn't want to do that. HTH, -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2-book] Where to actually configure report generation and display ?
Sebastien Arbogast wrote: In chapter 3, page 71, it's written: Even though the standard reports are very useful, often you will want to customize the projects reports that are created and displayed in your web site. The reports created and displayed are controlled in the build/reports element in the POM. You may want to be more selective about the reports that you generate and to do so you need to list each report that you want to include as part of the site generation. You do so by configuring the plugin as follows: And the example actually shows a modification of the plugin. So is it in the plugin or in build/reports, or in both ? And if it is in build/reports, what should I put there ? I'm a little bit lost. Actually it's sort of both. It is in reporting/plugins. The book has gotten the indentation a bit wrong. Check out this page instead: http://maven.apache.org/plugins/maven-project-info-reports-plugin/howto.html -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2-book] Where to actually configure report generation and display ?
OK. I've tried that and it works fine. So there's nothing to configure in build/reports element right? Maybe it's a reminiscence from the old Maven1 fashion report configuration that the author of this part will have forgotten to update... 2006/5/3, Dennis Lundberg [EMAIL PROTECTED]: Sebastien Arbogast wrote: In chapter 3, page 71, it's written: Even though the standard reports are very useful, often you will want to customize the projects reports that are created and displayed in your web site. The reports created and displayed are controlled in the build/reports element in the POM. You may want to be more selective about the reports that you generate and to do so you need to list each report that you want to include as part of the site generation. You do so by configuring the plugin as follows: And the example actually shows a modification of the plugin. So is it in the plugin or in build/reports, or in both ? And if it is in build/reports, what should I put there ? I'm a little bit lost. Actually it's sort of both. It is in reporting/plugins. The book has gotten the indentation a bit wrong. Check out this page instead: http://maven.apache.org/plugins/maven-project-info-reports-plugin/howto.html -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org