SVN Revision Number in the name of a snapshot artifact
Hi all, I am using Continuum 1.0.3, Maven 2.0.4 SVN . I have configured Continuum to publish the artifacts it build into a shared repository, as described in the 'Better Builds With Maven' book. I would like the revision number of the SVN repository to be part of the version number of artifacts generated by Continuum. Is there a simple way to achieve this? Thanks, Binil PS: I am unsure if this question had been asked here before; I tried searching the list archives and could not find the answer.
Re: building twice - version 1.0.3
Sorry I haven't checked this in so long - but I think Adam found the problem - I was also using Firefox when I had this problem before. However, I do not see it with Safari on the Mac - it only builds once. I tested it with Firefox 1.5.0.1 on my Mac and see the problem. So it looks to be Firefox related. Can you try replicating it again Emmanuel? Thanks, Josh Original Message -- In show projects page: Single click on build now results in 2 enqueued builds. Single click on build-all results in 1 enqueued build (with only one project added of course). Forgot to mention in using Firefox/1.5.0.4 Adam -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Friday, June 23, 2006 1:59 PM To: continuum-users@maven.apache.org Subject: Re: building twice - version 1.0.3 the sql warning isn't important. I can't reproduce it. It's probably a silly question, but do you click on 'build Now' or double click it? Emmanuel Adam Leggett a ?crit : This is my log output. INFO | jvm 1| 2006/06/23 13:34:32 | 2006-06-23 13:34:32,382 [SocketListener0-1] INFO Continuum - Enqueuing 'hello-world Application' (Build definition id=1). INFO | jvm 1| 2006/06/23 13:34:32 | 2006-06-23 13:34:32,913 [Thread-2] WARN SQL - Object with id 0 not found ! INFO | jvm 1| 2006/06/23 13:34:32 | 2006-06-23 13:34:32,973 [SocketListener0-1] INFO Continuum - Enqueuing 'hello-world Application' (Build definition id=1). INFO | jvm 1| 2006/06/23 13:34:33 | 2006-06-23 13:34:33,043 [Thread-2] INFO ContinuumScm - Updating project: id: '1', name 'hello-world Application'. INFO | jvm 1| 2006/06/23 13:34:33 | 2006-06-23 13:34:33,113 [Thread-2] INFO ScmManager - Executing: svn --non-interactive update Does the SQL Warning have any significance? TIA Adam -Original Message- From: Adam Leggett [mailto:[EMAIL PROTECTED] Sent: Friday, June 23, 2006 1:09 PM To: continuum-users@maven.apache.org Subject: RE: building twice - version 1.0.3 Emmanuel I also seem to be getting this problem. I have a single build definition. Selecting 'build now' results in two builds of the same m2 project. Env: Cn 1.0.3 XP pro Jdk 1.5 Thanks Adam -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 31, 2006 9:33 AM To: continuum-users@maven.apache.org Subject: Re: building twice - version 1.0.3 Do you have 2 build definitions on your project? Emmanuel [EMAIL PROTECTED] a ?crit : Hi all, Thanks for the responses. I actually avoid using refresh to keep this from happening - I instead, as you mentioned, click the Show Proejcts link to get an update on the status. However, this isn't my problem. Even from a freshly setup continuum project, if I click on the Build Now icon, continuum builds 2 builds, one after the other. For this example, I'm simply running java:compile (I'm using M1.1-beta2), and in the first build, it prepares the filesystem, and compiles the files (takes in total 10 seconds). The second build right after that only takes 2 seconds to complete, since no changes have taken place, so it essentially does nothing. Looking at the console output for Continuum, there seems to be 2 enqueings of the project from the moment I hit the build now button. I do nothing from the time I press the button until the console stops generating output. Any thoughts for this? Thanks, Josh -Original Message--- Yes, actually, if you refresh a page generated just after a form, the form is resended when you refresh the page. You can click on Show Project link in menu instead. We'll fix this problem in 1.1 Emmanuel Rick Riemer a #65533;crit : Joshua, I've seen the same thing recently. In my case what happened is that I refreshed the status page to see if the build was actually started, but with doing that I was giving another command to start a build. Once I stopped refreshing no more builds happened. Rick -Original Message- From: Joshua Steele [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 2:35 To: continuum-users@maven.apache.org Subject: building twice - version 1.0.3 All, I'm having an issue with Continuum 1.0.3 where it is building a project twice, one immediately after the other. I've scanned JIRA and can't find a report. Is this something that is known? Any details are appreciated. Thanks, Josh == = The contents of this email are intended for the named addresses and may contain confidential and/or privileged material. If received in error, please contact UPCO head office on +44(0)113 201 0600 and then delete the entire mail from your system. Unauthorised review,
Re: [ANN] Archy - a simple frontend to archetypes
Yes (and discussion should be happening on dev@ in the mean time) On 01/08/06, Don Brown [EMAIL PROTECTED] wrote: Very cool. Well, with that hard part done, there won't be anything from Archy worth reusing, but I'll be happy to take a stab at patching the archetype plugin when the search is ready. Will it be announced on this list? Don On 7/31/06, Brett Porter [EMAIL PROTECTED] wrote: The repository manager in Maven SVN indexes any repository, so it's a simple Lucene query of: type:maven-archetype If we put an appropriate web front end on that, you could pull down an up to date list at any time. The central repository will have that available very shortly. - Brett On 01/08/06, Don Brown [EMAIL PROTECTED] wrote: Sure, making this part of the plugin is a good idea. However, how would you retrieve a list of all archetypes in all repositories? The other part fo that is you want that list to be able to be easily changeable by anyone so that it stays up to date. If we can solve that problem, I do like the idea of mvn archetype:wizard or something to that effect. Don On 7/30/06, Brett Porter [EMAIL PROTECTED] wrote: Hi Don, Thanks for this. Would you consider contributing this as a patch to the archetype plugin itself? BTW, Very shortly there will be a page available that automates listing all archetypes in the repository that you will be able to use instead. - Brett On 29/07/06, Don Brown [EMAIL PROTECTED] wrote: In a fit of frustration trying to find a list of Maven archetypes, I threw together a little command-line frontend to Maven's archetypes that makes using them easier. Archy is a simple, command-line frontend to Maven 2's archetypes. It walks you through the process of creating a new project using these project templates. This tool was inspired by megg [1]. The list of archetypes comes from two sources: * An internal XML file that describes the archetype information * An external Maven wiki page [2] that lists available archetypes I hope someone else finds it useful, and for the love of pete, please help fill out the list of archetypes in the Maven wiki [2]. Thanks :) Archy home page: https://www.twdata.org/projects/archy Don [1] http://javanicus.com/megg/ [2] http://docs.codehaus.org/display/MAVENUSER/Archetypes+List - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Apache Maven - http://maven.apache.org Better Builds with Maven book - http://library.mergere.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] -- Apache Maven - http://maven.apache.org Better Builds with Maven book - http://library.mergere.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] -- Apache Maven - http://maven.apache.org Better Builds with Maven book - http://library.mergere.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-native-plugin long command lines and individual files ...
does the native plugin always want files specified individually? AFAICT I have to do this ... source directory${generated.native.source.dir}/directory fileNames fileNamedevices.c/fileName fileNameerrors.c/fileName /fileNames /source source directory${basedir}/src/main/c/directory fileNames fileNameavrprog.c/fileName fileNamehpl_bootloader.c/fileName etc etc rather than *.c The end result is that my final link line end up being too long for the Windows command processor after it has passed each file with a fully qualified path name to the linker Error is : The following character string is too long: -mmcu=atmega128 -gstabs -Wl,-T,C:\projects\linkages\avr\ExeStatic/src/main/conf/avr5_ext.x -Wl,-Map,ExeStatic.map -Wl,--defsym=__heap_start=0x804000 -Wl,--defsym=__heap_end=0x80-Wl,--section-start=.jumptable=0x1efe8 -o C:\projects\linkages\avr\ExeStatic\ges\avr\ExeStatic\target\hpl_coreio.objC:\projects\linkages\avr\ExeStatic\target\hpl_debugprot.obj C:\projects\linkages\avr\ExeStatic\target\hpl_ds1602.obj C:\projects\linkages\avr\ExeStatic\target\hpl_eeprom.obj C:\projects\linkages\avr\ExeStatic\target\hpl_flash.obj C:\projects\linkages\avr\ExeStatic\target\hpl_meminit.objC:\projects\linkages\avr\ExeStatic\target\hpl_misc.obj C:\projects\linkages\avr\ExeStatic\target\hpl_power.objC:\projects\linkages\avr\ExeStatic\target\hpl_radio.obj C:\projects\linkages\avr\ExeStatic\target\hpl_radioctl.objC:\projects\linkages\avr\ExeStatic\target\hpl_reset.obj C:\projects\linkages\avr\ExeStatic\target\hpl_serial.objC:\projects\linkages\avr\ExeStatic\target\hpl_spi.obj C:\projects\linkages\avr\ExeStatic\target\hpl_timer.obj [snip] Is there any way to avoid this, I'd rather not have to beak it up into separate libraries just to get it to link Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pom reference could use better indenting
cbrevard wrote: be better indented? The xml takes up a fifth of the possible column width and is essentially illegible from a structural standpoint. This documentation is generated automatically from description files, and the standard identation is 2 spaces. I don't know if changing it to 4 spaces would be such a good idea, since other models could be more deeply nested. I guess making it configurable would be nice. Anyway, you have to fill a JIRA request on this, if you want it to be taken into account. Denis. -- View this message in context: http://www.nabble.com/pom-reference-could-use-better-indenting-tf2018336.html#a5589404 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
questions on 'mvn site'
Playing with 'mvn site' I'm finding a few surprises and documentation gaps. I'm hoping someone can explain some of these behaviours and answer a couple of questions: - 'mvn site' with no src/site or pom configuration generates a site containing just the default set of reports; but as soon as I add reportSets to the pom, I don't get an index.html anymore, unless I have a src/site/site.xml. Is that expected? - the documentation for the project-info-reports plugin only tells me how to specify some of the reports generated by default; specifically, it doesn't show how to generate the 'About' or 'Project Summary' reports. By experimentation, I've found that I can specify 'reportsummary/report' to get the 'Project Summary' report, but what do I need to specify to get the 'About' section? - finally, the order of the report elements within reportSets seems to have no effect; I'd like to be able not only to select which reports are generated, but to specify the order the get listed in (both in the navigation pane on the left of the site and in the 'Project Information' summary page. Is that possible? Thanks, L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Aggregate profiles
I've been looking for something similar and found that it is possible, but atm only for a maximum of 2 profiles. Use the property-activation for your profiles and activate 'p6spy' when the property is set. Then activate one of the other profiles when this property is set to a specific value: profile idp6spy/id activation property namedb/name /property /activation /profile profile idhsql/id activation property namedb/name valuehsql/value /property /activation /profile profile idpostgres/id activation property namedb/name valuepostgres/value /property /activation /profile Now, if you run 'mvn -Ddb=postgres' or '-Ddb=hsql' p6spy is ALWAYS activated. Hope this helped. Roland On Tuesday 01 August 2006 01:39, Laurie Harper wrote: Is it possible to activate multiple profiles at once, as in 'mvn -Pprofile1 -Pprofile2', and have one profile override properties in the other? I'm trying to make it easy to enable p6spy, something like profiles profile idhsql/id activation activeByDefaulttrue/activeByDefault /activation properties databaseTypehsqldb/databaseType databaseDriverorg.hsqldb.jdbcDriver/databaseDriver ... /properties /profile profile idpostgres/id properties databaseTypepostgresql/databaseType databaseDriverorg.postgresql.Driver/databaseDriver ... /properties /profile profile idp6spy/id properties databaseDriver...P6SpyDriver/databaseDriver /properties /profile /profiles the idea being that you can switch databases with '-Ppostgres' and enable P6Spy for either database with, for example, '-Ppostgres -Pp6spy'. Unfortunately, it seems that Maven only sets the properties defined in *one* of the two profiles. Is there a way to get both? Alternatively, is there another way to conditionally set properties in M2? L. - 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] plugin and parent pom
Hi all, I'd like to install the last version of the changes-plugin. So I've downloaded the sources, but when I run the install goal, he can't find the parent pom. parent artifactIdmaven-plugins/artifactId groupIdorg.apache.maven.plugins/groupId version2-SNAPSHOT/version /parent Where can I get it ? Thanks Damien -- -- Damien Viel | +33 1 41 97 83 20 | [EMAIL PROTECTED] -- | http://www.improve-foundations.com __/ \__ | http://www.improve.fr improve | http://www.application-servers.com /_\-| http://www.improve-technologies.com -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] plugin and parent pom
On 8/1/06, Damien Viel [EMAIL PROTECTED] wrote: Hi all, I'd like to install the last version of the changes-plugin. So I've downloaded the sources, but when I run the install goal, he can't find the parent pom. parent artifactIdmaven-plugins/artifactId groupIdorg.apache.maven.plugins/groupId version2-SNAPSHOT/version /parent Where can I get it ? This is the reply I got when I posted the same question to the dev list: http://www.nabble.com/-m2--Where-is-maven-plugins--tf1940354.html#a5318332 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m2/eclipse/wtp configuration
the classpath files should be generated automatically by the maven-eclipse plugin. Have you added a setting for wtp support in your pom? (see eclipse plugin for details) stefan Kev D'Arcy Kevin.A.D'[EMAIL PROTECTED] skrev 31.07.2006 18:59:09: Hi, I'm trying to set-up a dynamic web project in eclipse 3.2 using wtp 1.5 and maven. I have everything in my project compiling correctly but the runtime classpath is missing all the dependencies that are defined in my pom.xml. Do they need to be defined in the .classpath file as well as in the pom.xml? Kev This document is strictly confidential and is intended for use by the addressee unless otherwise indicated. This email has been scanned by an external Email Security System. Allied Irish Banks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: test-classes in War
I think i'm doing something wrong. I put the thing for the jar-plugin in my pom.xml (the one that builds the war). And i do get a test-jar build. But building this jar is the last thing maven does. So when i put the dependency in my war-plugin like this: plugin artifactIdmaven-war-plugin/artifactId configuration excludes**/_svn/**/excludes archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration dependencies dependency groupIdbe.delaware.jpetstore.samples/groupId artifactIdjpetstore/artifactId version0.0.1/version typetest-jar/type /dependency /dependencies /plugin But he keeps saying he's missing an artifact for the war-plugin (what would be logical because he tries to make the war before the test-jar is even build). any ideas? (p.s. i can't put my tests in the main source tree, because they want me to follow the maven default directory structure). thx! -- View this message in context: http://www.nabble.com/test-classes-in-War-tf2028156.html#a5590289 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Aggregate profiles
you can activate many profiles with -Pprofile1,profile2,profile3 etc. as explained in mvn -h: -P,--activate-profilesComma-delimited list of profiles to activate On 8/1/06, Roland Asmann [EMAIL PROTECTED] wrote: I've been looking for something similar and found that it is possible, but atm only for a maximum of 2 profiles. Use the property-activation for your profiles and activate 'p6spy' when the property is set. Then activate one of the other profiles when this property is set to a specific value: profile idp6spy/id activation property namedb/name /property /activation /profile profile idhsql/id activation property namedb/name valuehsql/value /property /activation /profile profile idpostgres/id activation property namedb/name valuepostgres/value /property /activation /profile Now, if you run 'mvn -Ddb=postgres' or '-Ddb=hsql' p6spy is ALWAYS activated. Hope this helped. Roland On Tuesday 01 August 2006 01:39, Laurie Harper wrote: Is it possible to activate multiple profiles at once, as in 'mvn -Pprofile1 -Pprofile2', and have one profile override properties in the other? I'm trying to make it easy to enable p6spy, something like profiles profile idhsql/id activation activeByDefaulttrue/activeByDefault /activation properties databaseTypehsqldb/databaseType databaseDriverorg.hsqldb.jdbcDriver/databaseDriver ... /properties /profile profile idpostgres/id properties databaseTypepostgresql/databaseType databaseDriverorg.postgresql.Driver/databaseDriver ... /properties /profile profile idp6spy/id properties databaseDriver...P6SpyDriver/databaseDriver /properties /profile /profiles the idea being that you can switch databases with '-Ppostgres' and enable P6Spy for either database with, for example, '-Ppostgres -Pp6spy'. Unfortunately, it seems that Maven only sets the properties defined in *one* of the two profiles. Is there a way to get both? Alternatively, is there another way to conditionally set properties in M2? L. - 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: maven2 xdoclet2 plugin
Hello Gregory, thx for mail.. no i m still on XDoclet1.. i m trying to move my whole environment to eclipse + maven2 + xdoclet.. i got xdoclet1 working with maven2.. i'll try to get eclipse in then i'll try to move to xd2 and i'll let you know of result dont expect any mail from me soon thoug :), i m reallly busy @ work and this maven/xdoclet issue is what i do in spare time will get back to you as soon as i can thanx and regards marco On 8/1/06, Grégory Joseph [EMAIL PROTECTED] wrote: Marco, Sorry for the late reply.. Were you able to move on this? I think your mistake was that you did not declare the dist.codehaus.org repository as being of layout:legacy(layoutlegacy/layout in your pluginRepository declaration) The XDoclet2 project and plugins are still partly built with m1, which is why we still deploy everything on the legacy repository. Let me know if you still need help. Cheers, g On 05/07/06, Marco Mistroni [EMAIL PROTECTED] wrote: hi all,, can anyone point me in the right direction for using maven2 xdoclet2 plugin? i followed this link http://xdoclet.codehaus.org/Maven2+plugin to try, i wrote a simple pom.xml like in the example project modelVersion4.0.0/modelVersion artifactIdBackend/artifactId packagingjar/packaging version1.0/version nameBackend/name parent groupIdTestJSFAppM2/groupId artifactIdTestJSFAppM2/artifactId version1.0/version /parent dependencies dependency groupIdaspectj/groupId artifactIdaspectjrt/artifactId version1.5.0/version /dependency dependency groupIdjasperreports/groupId artifactIdjasperreports/artifactId version1.2.4/version /dependency dependency groupIdcommons-digester/groupId artifactIdcommons-digester/artifactId version1.7/version /dependency dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.9/version /dependency dependency groupIdcastor/groupId artifactIdcastor/artifactId version1.0M4/version /dependency dependency groupId javax.servlet/groupId artifactIdservlet-api/artifactId version2.4/version /dependency dependency groupIdTestJSFAppM2/groupId artifactIdCommons/artifactId version1.0/version /dependency /dependencies build plugins plugin groupIdxdoclet/groupId artifactIdmaven2-xdoclet2-plugin/artifactId configuration configs config !-- here's where you specify which xdoclet-plugin to run, by its class name -- pluginorg.xdoclet.plugin.web.TaglibPlugin/plugin !-- here's some config for your plugin-- params jspversion2.0/jspversion destdir${basedir}/target/xdoclet/META-INF/destdir /params /config !-- run multiple plugins by repeating this config element -- /configs /configuration executions execution goals goalxdoclet/goal /goals /execution /executions /plugin /plugins /build !-- The following two sections should be unnecessary shortly. surefire-2.2 is due for release yesterday. -- repositories repository idapache.snapshots/id urlhttp://cvs.apache.org/maven-snapshot-repository/url snapshots enabledtrue/enabled /snapshots /repository /repositories pluginRepositories pluginRepository idapache.snapshots/id urlhttp://cvs.apache.org/maven-snapshot-repository/url /pluginRepository pluginRepository idcodehaus-plugins/id urlhttp://dist.codehaus.org//url snapshots enabledtrue/enabled /snapshots releases enabledtrue/enabled /releases /pluginRepository /pluginRepositories /project when i run mvn:compile i got following error [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'xdoclet:maven2-xdoclet2-plugin' does not exist or no valid ve rsion could be found [INFO] and when i run mvn xdoclet:xdoclet i got this [INFO] The plugin 'org.apache.maven.plugins:maven-xdoclet-plugin' does not exist or no valid version could be found can anyone help me out on how to start? i got plugins working fine for maven1, btu now i have moved to maven2 ... thx and regards marco - To unsubscribe, e-mail:
Re: Maven and Selenium?
Hi , A snapshot repository is available at: http://maven.openqa.org/ Have you try jWebUnit (http://jwebunit.sourceforge.net/index.html) instead of Selenium for your functional tests? With jWebUnit, you can run your tests with different engines as htmlunit or Selenium (the Selenium engine is available trough SVN). You will use the htmlunit engine to execute your tests in a background mode (continuous integration) and the selenium engine in a visual mode. Christophe DENEUX / Capgemini Sud / Méditerranée Technical Leader Tel: + 33 4 93 72 43 74 / www.capgemini.com Fax: + 33 4 93 21 02 95 Porte de l'Arénas - Entrée B / 455 Promenade des Anglais / 06200 Nice Join the Collaborative Business Experience Wendy Smoak a écrit : Is anyone using Selenium for functional testing of webapps? After hearing about it a while ago, I finally had a chance to see it in action at a NFJS show last weekend. Of course, the first order of business was getting it to work with a Maven build. Selenium is not in a Maven repository that I could find, so I installed the zip in my local repository with mvn install:install-file ... -Dpackaging=zip. I added a profile which uses dependency-maven-plugin to unzip the Selenium distribution under 'target', and maven-antrun-plugin to copy both the selenium 'core' directory and my src/test/selenium folder containing the tests into the webapp. The pom with the configuration (profile id=selenium) is here: http://svn.apache.org/repos/asf/shale/framework/trunk/shale-apps/pom.xml (That pom also has the Cargo plugin configuration which starts Tomcat and deploys the app.) More information on installation and how to run the tests for Shale Mailreader can be found here: http://shale.apache.org/shale-apps/selenium.html Suggestions and questions are welcome. :) I didn't find anything in the archives, but I can't possibly be the first one to do this... 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]
Re: Aggregate profiles
That is true, but for my project I have sort of a profile pre-requisite list... I am looking for a way to have profile A automatically activated when I activate B, which in turn is needed when I run C. The thing is that I do not want to build profile A into B and C, and profile B into C, which makes my POM very long and hard to maintain (since I have more than the 3 profiles mentioned here as an example). With the solution I wrote below, it is at least possible to have a sort of profile-dependency, but it only helps with 2 profiles... Might be that I'm lazy, but I find it somewhat like the life-cycle (run 'install' and all previous phases are run as well) and therefor would like to see something like this implemented or at least explained as how this might work... Roland On Tuesday 01 August 2006 10:24, Alexis Midon wrote: you can activate many profiles with -Pprofile1,profile2,profile3 etc. as explained in mvn -h: -P,--activate-profilesComma-delimited list of profiles to activate On 8/1/06, Roland Asmann [EMAIL PROTECTED] wrote: I've been looking for something similar and found that it is possible, but atm only for a maximum of 2 profiles. Use the property-activation for your profiles and activate 'p6spy' when the property is set. Then activate one of the other profiles when this property is set to a specific value: profile idp6spy/id activation property namedb/name /property /activation /profile profile idhsql/id activation property namedb/name valuehsql/value /property /activation /profile profile idpostgres/id activation property namedb/name valuepostgres/value /property /activation /profile Now, if you run 'mvn -Ddb=postgres' or '-Ddb=hsql' p6spy is ALWAYS activated. Hope this helped. Roland On Tuesday 01 August 2006 01:39, Laurie Harper wrote: Is it possible to activate multiple profiles at once, as in 'mvn -Pprofile1 -Pprofile2', and have one profile override properties in the other? I'm trying to make it easy to enable p6spy, something like profiles profile idhsql/id activation activeByDefaulttrue/activeByDefault /activation properties databaseTypehsqldb/databaseType databaseDriverorg.hsqldb.jdbcDriver/databaseDriver ... /properties /profile profile idpostgres/id properties databaseTypepostgresql/databaseType databaseDriverorg.postgresql.Driver/databaseDriver ... /properties /profile profile idp6spy/id properties databaseDriver...P6SpyDriver/databaseDriver /properties /profile /profiles the idea being that you can switch databases with '-Ppostgres' and enable P6Spy for either database with, for example, '-Ppostgres -Pp6spy'. Unfortunately, it seems that Maven only sets the properties defined in *one* of the two profiles. Is there a way to get both? Alternatively, is there another way to conditionally set properties in M2? L. - 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: Using mvn to download jars to local repository (without pom/project)
On Monday, July 31, 2006 17:24, Jan Galinski wrote: Hi, on a server, I want to use mvn (2.0.4) to manage a central jar repository. Even non maven applications should benifit from this, beacause there will be be on common repository from where to link commons, db-drivers etc. Its not going to be a real mirror, merely an on demand storage folder. So my question is: How can I (using the mvn cli) just download and store a jar from the central repo to my local repo without creating a fake project and a pom? pseudo mvn download -package=mysql -file=driver -version=3.10 /pseudo Seems to be rather simple, but its hard to search for (maven, download, jar, repository ... gives me anything but an answer to my problem). Any hint, sytnax, cli-line appreciated thanks Jan This seems like something the repository manager would do. Check it out http://svn.apache.org/repos/asf/maven/repository-manager/trunk HTH Henry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] plugin and parent pom
Thanks, Sorry for the repeeting, but I've not seen the response. ;) Damien Barrie Treloar a écrit : On 8/1/06, Damien Viel [EMAIL PROTECTED] wrote: Hi all, I'd like to install the last version of the changes-plugin. So I've downloaded the sources, but when I run the install goal, he can't find the parent pom. parent artifactIdmaven-plugins/artifactId groupIdorg.apache.maven.plugins/groupId version2-SNAPSHOT/version /parent Where can I get it ? This is the reply I got when I posted the same question to the dev list: http://www.nabble.com/-m2--Where-is-maven-plugins--tf1940354.html#a5318332 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Damien Viel | +33 1 41 97 83 20 | [EMAIL PROTECTED] -- | http://www.improve-foundations.com __/ \__ | http://www.improve.fr improve | http://www.application-servers.com /_\-| http://www.improve-technologies.com -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] changes and modules
Hi all, Is it possible to aggregate in the same report, all changes report from modules ? Thanks Damien -- -- Damien Viel | +33 1 41 97 83 20 | [EMAIL PROTECTED] -- | http://www.improve-foundations.com __/ \__ | http://www.improve.fr improve | http://www.application-servers.com /_\-| http://www.improve-technologies.com -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : [m2] plugin and parent pom
bash-2.05$ svn co -N https://svn.apache.org/repos/asf/maven/plugins/trunk plugins cd plugins mvn -N clean install HTH, -- Olivier -Message d'origine- De : Damien Viel [mailto:[EMAIL PROTECTED] Envoyé : mardi 1 août 2006 11:56 À : Maven Users List Objet : Re: [m2] plugin and parent pom Thanks, Sorry for the repeeting, but I've not seen the response. ;) Damien Barrie Treloar a écrit : On 8/1/06, Damien Viel [EMAIL PROTECTED] wrote: Hi all, I'd like to install the last version of the changes-plugin. So I've downloaded the sources, but when I run the install goal, he can't find the parent pom. parent artifactIdmaven-plugins/artifactId groupIdorg.apache.maven.plugins/groupId version2-SNAPSHOT/version /parent Where can I get it ? This is the reply I got when I posted the same question to the dev list: http://www.nabble.com/-m2--Where-is-maven-plugins--tf1940354.html#a53183 32 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Damien Viel | +33 1 41 97 83 20 | [EMAIL PROTECTED] -- | http://www.improve-foundations.com __/ \__ | http://www.improve.fr improve | http://www.application-servers.com /_\-| http://www.improve-technologies.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]
Maven2 eclipse plugin
hi all, i have a project in which i am using Maven2... so far i have used Notepad/TextPad as java editor, but now i wanted to move to Eclipse i followed steps outlined here http://maven.apache.org/guides/mini/guide-ide-eclipse.html fact is, my project is a MultiProject made of a main project and two subprojects. I followed stepso utlined in the link above, however when i tried to run maven2 from eclipse (launching hte 'parent' pom.xml), it did nothing it just outputted [INFO] [INFO] Building Maven Quick Start Archetype [INFO]task-segment: [clean, compile] [INFO] [INFO] clean:clean [INFO] Deleting directory D:\Sw\step-by-step\middleware\target [INFO] Deleting directory D:\Sw\step-by-step\middleware\target\classes [INFO] Deleting directory D:\Sw\step-by-step\middleware\target\test-classes [INFO] No goals needed for project - skipping [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 0 second [INFO] Finished at: Tue Aug 01 14:01:57 BST 2006 [INFO] Memory 0M/2M [INFO] it looks like it is not picking up the dependent project, even though my pom is as follows ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdmiddleware/groupId artifactIdmiddleware/artifactId packagingpom/packaging version1.0-SNAPSHOT/version nameMaven Quick Start Archetype/name urlhttp://maven.apache.org/url dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies modules modulemyMiddleware/module /modules build pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId configuration unzipCommand/usr/bin/unzip -o err.txt/unzipCommand /configuration /plugin /plugins /pluginManagement /build dependencyManagement dependencies dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-j2ee/artifactId version1.4-rc4/version scopeprovided/scope /dependency dependency groupIdfop/groupId artifactIdfop/artifactId version0.20.5rc2/version /dependency dependency groupIdaxis/groupId artifactIdaxis-saaj/artifactId version1.3/version /dependency dependency groupIdaxis/groupId artifactIdaxis/artifactId version1.3/version /dependency /dependencies /dependencyManagement /project if i go to the commanline instead, everything works fine could anyone help me out? my project structure is as follows middleware | myMiddleware could anyone help me out? thanks and regards marco
Re: Using mvn to download jars to local repository (without pom/project)
Hi, you can take a look at Proximity (http://proximity.abstracthorizon.org/). To make an artifact available on it, you can: a) manage the underlying storage (get them whatever way you can, and simply file copy under it) b) make fake Maven POMs OR issue HTTP GET's (like script using wget) for needed artifacts IF you have remote peers ~t~ On 7/31/06, Jan Galinski [EMAIL PROTECTED] wrote: So my question is: How can I (using the mvn cli) just download and store a jar from the central repo to my local repo without creating a fake project and a pom?
Re: One sub module randomly appears twice after adding a parent multi-module 1.0.3
hm, how odd... what scm are you using? also, could you file this at http://jira.codehaus.org/browse/CONTINUUM jesse On 7/31/06, Johnson, Jonathan [EMAIL PROTECTED] wrote: One sub module randomly appears twice after adding a parent multi-module to continuum 1.0.3. I have a parent maven 2 pom with 16 sub-modules. If I reset the database ( by removing the database directory) and add my parent pom.xml all the modules will be added correctly except one random module will be added twice. I tried this three times and a different module in the list is duplicated once. This also happens after a fresh install of version 1.0.3. If I run a Build All one of the duplicate modules builds, while the other remains with a New status. When attempting to remove the duplicate module with the New status I get ognl.MethodFailedException: Method removeProject failed for object [EMAIL PROTECTED] [javax.jdo.JDOUserException: One or more instances could not be deleted NestedThrowables: javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM BUILDDEFINITION WHERE ID = ? NestedThrowables: SQL Exception: DELETE on table 'BUILDDEFINITION' caused a violation of foreign key constraint 'PROJECT_BUILP8_FK2' for key (10). The statement has been rolled back.] at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:796) at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61) at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819) at ognl.ASTMethod.getValueBody(ASTMethod.java:75) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at ognl.Ognl.getValue(Ognl.java:378) at ognl.Ognl.getValue(Ognl.java:357) at org.codehaus.plexus.formica.action.DeleteEntity.uponSuccessfulValidation (DeleteEntity.java:57) at org.codehaus.plexus.formica.action.DeleteEntity.execute(DeleteEntity.jav a:47) at org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve .java:68) at org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipe line.java:70) at org.codehaus.plexus.summit.Summit.doGet(Summit.java:54) at org.codehaus.plexus.summit.Summit.doPost(Summit.java:108) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH andler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon text.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:789) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218 ) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520) /-- Encapsulated exception \ javax.jdo.JDOUserException: One or more instances could not be deleted at org.jpox.AbstractPersistenceManager.deletePersistentAll(AbstractPersiste nceManager.java:1438) at org.jpox.store.rdbms.scostore.ElementContainerStore.clear(ElementContain erStore.java:595) at org.jpox.store.mapping.CollectionMapping.preDelete(CollectionMapping.jav a:304) at org.jpox.store.mapping.CollectionMapping.deleteDependent(CollectionMappi ng.java:332) at org.jpox.store.rdbms.table.ClassTable.deleteDependent(ClassTable.java:22 80) at org.jpox.store.StoreManager.deleteDependent(StoreManager.java:838) at org.jpox.state.StateManagerImpl.deletePersistent(StateManagerImpl.java:4 049) at org.jpox.AbstractPersistenceManager.internalDeletePersistent(AbstractPer sistenceManager.java:1391) at org.jpox.AbstractPersistenceManager.deletePersistent(AbstractPersistence Manager.java:1402) at org.codehaus.plexus.jdo.PlexusJdoUtils.removeObject(PlexusJdoUtils.java: 53) at org.apache.maven.continuum.store.JdoContinuumStore.removeObject(JdoConti nuumStore.java:969) at org.apache.maven.continuum.store.JdoContinuumStore.removeProject(JdoCont inuumStore.java:901) at org.apache.maven.continuum.DefaultContinuum.removeProject(DefaultContinu um.java:328) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
Re: Maven2 eclipse plugin
Hi, Personally I use the cli for building. Also, I bleieve, the development on the eclipse plugin hasn't come that far yet (ie. it might be buggy). Marco Mistroni [EMAIL PROTECTED] skrev 01.08.2006 15:05:51: hi all, i have a project in which i am using Maven2... so far i have used Notepad/TextPad as java editor, but now i wanted to move to Eclipse i followed steps outlined here http://maven.apache.org/guides/mini/guide-ide-eclipse.html fact is, my project is a MultiProject made of a main project and two subprojects. I followed stepso utlined in the link above, however when i tried to run maven2 from eclipse (launching hte 'parent' pom.xml), it did nothing it just outputted [INFO] [INFO] Building Maven Quick Start Archetype [INFO]task-segment: [clean, compile] [INFO] [INFO] clean:clean [INFO] Deleting directory D:\Sw\step-by-step\middleware\target [INFO] Deleting directory D:\Sw\step-by-step\middleware\target\classes [INFO] Deleting directory D:\Sw\step-by-step\middleware\target\test-classes [INFO] No goals needed for project - skipping [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 0 second [INFO] Finished at: Tue Aug 01 14:01:57 BST 2006 [INFO] Memory 0M/2M [INFO] it looks like it is not picking up the dependent project, even though my pom is as follows ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdmiddleware/groupId artifactIdmiddleware/artifactId packagingpom/packaging version1.0-SNAPSHOT/version nameMaven Quick Start Archetype/name urlhttp://maven.apache.org/url dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies modules modulemyMiddleware/module /modules build pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId configuration unzipCommand/usr/bin/unzip -o err.txt/unzipCommand /configuration /plugin /plugins /pluginManagement /build dependencyManagement dependencies dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-j2ee/artifactId version1.4-rc4/version scopeprovided/scope /dependency dependency groupIdfop/groupId artifactIdfop/artifactId version0.20.5rc2/version /dependency dependency groupIdaxis/groupId artifactIdaxis-saaj/artifactId version1.3/version /dependency dependency groupIdaxis/groupId artifactIdaxis/artifactId version1.3/version /dependency /dependencies /dependencyManagement /project if i go to the commanline instead, everything works fine could anyone help me out? my project structure is as follows middleware | myMiddleware could anyone help me out? thanks and regards marco
RE: One sub module randomly appears twice after adding a parent multi-module 1.0.3
Using cvs but problem occurs before build happens and before cvs is accessed. Problem occurs when adding a parent pom.xml M2 project file via URL. Thanks for the link, I will submit the problem. -Original Message- From: Jesse McConnell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 01, 2006 9:31 AM To: continuum-users@maven.apache.org Subject: Re: One sub module randomly appears twice after adding a parent multi-module 1.0.3 hm, how odd... what scm are you using? also, could you file this at http://jira.codehaus.org/browse/CONTINUUM jesse On 7/31/06, Johnson, Jonathan [EMAIL PROTECTED] wrote: One sub module randomly appears twice after adding a parent multi-module to continuum 1.0.3. I have a parent maven 2 pom with 16 sub-modules. If I reset the database ( by removing the database directory) and add my parent pom.xml all the modules will be added correctly except one random module will be added twice. I tried this three times and a different module in the list is duplicated once. This also happens after a fresh install of version 1.0.3. If I run a Build All one of the duplicate modules builds, while the other remains with a New status. When attempting to remove the duplicate module with the New status I get ognl.MethodFailedException: Method removeProject failed for object [EMAIL PROTECTED] [javax.jdo.JDOUserException: One or more instances could not be deleted NestedThrowables: javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM BUILDDEFINITION WHERE ID = ? NestedThrowables: SQL Exception: DELETE on table 'BUILDDEFINITION' caused a violation of foreign key constraint 'PROJECT_BUILP8_FK2' for key (10). The statement has been rolled back.] at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:796) at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61) at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819) at ognl.ASTMethod.getValueBody(ASTMethod.java:75) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at ognl.Ognl.getValue(Ognl.java:378) at ognl.Ognl.getValue(Ognl.java:357) at org.codehaus.plexus.formica.action.DeleteEntity.uponSuccessfulValidation (DeleteEntity.java:57) at org.codehaus.plexus.formica.action.DeleteEntity.execute(DeleteEntity.jav a:47) at org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve .java:68) at org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipe line.java:70) at org.codehaus.plexus.summit.Summit.doGet(Summit.java:54) at org.codehaus.plexus.summit.Summit.doPost(Summit.java:108) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH andler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon text.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:789) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218 ) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520) /-- Encapsulated exception \ javax.jdo.JDOUserException: One or more instances could not be deleted at org.jpox.AbstractPersistenceManager.deletePersistentAll(AbstractPersiste nceManager.java:1438) at org.jpox.store.rdbms.scostore.ElementContainerStore.clear(ElementContain erStore.java:595) at org.jpox.store.mapping.CollectionMapping.preDelete(CollectionMapping.jav a:304) at org.jpox.store.mapping.CollectionMapping.deleteDependent(CollectionMappi ng.java:332) at org.jpox.store.rdbms.table.ClassTable.deleteDependent(ClassTable.java:22 80) at org.jpox.store.StoreManager.deleteDependent(StoreManager.java:838) at org.jpox.state.StateManagerImpl.deletePersistent(StateManagerImpl.java:4 049) at org.jpox.AbstractPersistenceManager.internalDeletePersistent(AbstractPer sistenceManager.java:1391) at
Re: SVN Revision Number in the name of a snapshot artifact
I don't really know of a simple way to do that, there are a couple of factors at play here.. the version tag in the pom.xml is what governs the version that is appended to the artifact for storage in the repository, and that version doesn't change with scm version numbers anyway that I know of (of course I could be wrong, there might be a way). If you need functionality that can map a version in a repository to a particular snapshot in time of the scm then I would recommend using the SNAPSHOTs setup. In these the version of your pom would be something like 1.0-SNAPSHOT and then whenever continuum deployed the snapshot it would replace that version with a timestamp. That timestamp could be turn be converted into a date that could you pass into subversion and get the checkout of source corresponding to that point in time. that is nice also in that developers using your continuum published repository don't have to do anything to get the latest releases of code into thier development environment, maven will download the latest snapshot for them. anyway, good luck! On 8/1/06, Binil Thomas [EMAIL PROTECTED] wrote: Hi all, I am using Continuum 1.0.3, Maven 2.0.4 SVN . I have configured Continuum to publish the artifacts it build into a shared repository, as described in the 'Better Builds With Maven' book. I would like the revision number of the SVN repository to be part of the version number of artifacts generated by Continuum. Is there a simple way to achieve this? Thanks, Binil PS: I am unsure if this question had been asked here before; I tried searching the list archives and could not find the answer. -- jesse mcconnell [EMAIL PROTECTED]
Maven2 - Where to put script files?
Hi, i just browsed through the standard directory layout for Maven2. http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html here I still could not find out where to put my shell-scripts (batch-files), that for example start my application from the CLI. If anyone knows what is the best practice where to put these additional .bat and .sh files, pls let me know. (Since they are not needed in the classpath, i guess it is wrong to put them into the resources directory.) i would just need them for some assemblies, e.g. an assembly for a LINUX OS would include some shell scripts (.sh), while an assembly for a WINDOWS OS would include some batch files (.bat). Both of them would start up my application/singular services. regards R.C. -- View this message in context: http://www.nabble.com/Maven2---Where-to-put-script-files--tf2033674.html#a5594755 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: One sub module randomly appears twice after adding a parent multi-module 1.0.3
have you looked into the working directory that corresponds to that project id to see what is in there? in the working directory there should be a mess of numbered directories corresponding to each of the projects as they exist in continuum, mouse over the link to the project and you should see the project id in the url. I would be interested to know what was checked out in that sub directory...and if that project was assigned a different project id then its duplicate. something is making continuum think there is another project to get setup... thanks, jesse On 8/1/06, Johnson, Jonathan [EMAIL PROTECTED] wrote: Using cvs but problem occurs before build happens and before cvs is accessed. Problem occurs when adding a parent pom.xml M2 project file via URL. Thanks for the link, I will submit the problem. -Original Message- From: Jesse McConnell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 01, 2006 9:31 AM To: continuum-users@maven.apache.org Subject: Re: One sub module randomly appears twice after adding a parent multi-module 1.0.3 hm, how odd... what scm are you using? also, could you file this at http://jira.codehaus.org/browse/CONTINUUM jesse On 7/31/06, Johnson, Jonathan [EMAIL PROTECTED] wrote: One sub module randomly appears twice after adding a parent multi-module to continuum 1.0.3. I have a parent maven 2 pom with 16 sub-modules. If I reset the database ( by removing the database directory) and add my parent pom.xml all the modules will be added correctly except one random module will be added twice. I tried this three times and a different module in the list is duplicated once. This also happens after a fresh install of version 1.0.3. If I run a Build All one of the duplicate modules builds, while the other remains with a New status. When attempting to remove the duplicate module with the New status I get ognl.MethodFailedException: Method removeProject failed for object [EMAIL PROTECTED] [javax.jdo.JDOUserException: One or more instances could not be deleted NestedThrowables: javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM BUILDDEFINITION WHERE ID = ? NestedThrowables: SQL Exception: DELETE on table 'BUILDDEFINITION' caused a violation of foreign key constraint 'PROJECT_BUILP8_FK2' for key (10). The statement has been rolled back.] at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:796) at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61) at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819) at ognl.ASTMethod.getValueBody(ASTMethod.java:75) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at ognl.Ognl.getValue(Ognl.java:378) at ognl.Ognl.getValue(Ognl.java:357) at org.codehaus.plexus.formica.action.DeleteEntity.uponSuccessfulValidation (DeleteEntity.java:57) at org.codehaus.plexus.formica.action.DeleteEntity.execute(DeleteEntity.jav a:47) at org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve .java:68) at org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipe line.java:70) at org.codehaus.plexus.summit.Summit.doGet(Summit.java:54) at org.codehaus.plexus.summit.Summit.doPost(Summit.java:108) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH andler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon text.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:789) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218 ) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520) /-- Encapsulated exception \ javax.jdo.JDOUserException: One or more instances could not be deleted at org.jpox.AbstractPersistenceManager.deletePersistentAll(AbstractPersiste nceManager.java:1438) at org.jpox.store.rdbms.scostore.ElementContainerStore.clear(ElementContain erStore.java:595) at
Re: Maven2 - Where to put script files?
I believe the scripts folder is the best place for this kind of stuff CodingPlayer [EMAIL PROTECTED] skrev 01.08.2006 15:47:31: Hi, i just browsed through the standard directory layout for Maven2. http://maven.apache.org/guides/introduction/introduction-to-the- standard-directory-layout.html here I still could not find out where to put my shell-scripts (batch-files), that for example start my application from the CLI. If anyone knows what is the best practice where to put these additional .bat and .sh files, pls let me know. (Since they are not needed in the classpath, i guess it is wrong to put them into the resources directory.) i would just need them for some assemblies, e.g. an assembly for a LINUX OS would include some shell scripts (.sh), while an assembly for a WINDOWS OS would include some batch files (.bat). Both of them would start up my application/singular services. regards R.C. -- View this message in context: http://www.nabble.com/Maven2---Where- to-put-script-files--tf2033674.html#a5594755 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: m2/eclipse/wtp configuration
Stefan, The classpath does have the Maven2 Dependencies in it, but it's just not picking them up at runtime. I attached the 3 config files Kev ?xml version=1.0 encoding=UTF-8? classpath classpathentry kind=src path=src/main/java/ classpathentry kind=src path=src/test/java/ classpathentry excluding=** output=src/main/resources kind=src path=src/main/resources/ classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ classpathentry kind=con path=org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v5.5 JDK 1.4/ classpathentry kind=con path=org.eclipse.jst.j2ee.internal.web.container/ classpathentry kind=con path=org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER/ classpathentry kind=output path=src/main/webapp/WEB-INF/classes/ /classpath ?xml version=1.0 encoding=UTF-8? projectDescription nameNewport/name comment/comment projects /projects buildSpec buildCommand nameorg.eclipse.jdt.core.javabuilder/name arguments /arguments /buildCommand buildCommand nameorg.eclipse.wst.common.project.facet.core.builder/name arguments /arguments /buildCommand buildCommand nameorg.eclipse.wst.validation.validationbuilder/name arguments /arguments /buildCommand buildCommand nameorg.maven.ide.eclipse.maven2Builder/name arguments /arguments /buildCommand /buildSpec natures natureorg.maven.ide.eclipse.maven2Nature/nature natureorg.eclipse.wst.common.project.facet.core.nature/nature natureorg.eclipse.jdt.core.javanature/nature natureorg.eclipse.wst.common.modulecore.ModuleCoreNature/nature natureorg.eclipse.jem.workbench.JavaEMFNature/nature /natures /projectDescription ?xml version=1.0? project modelVersion4.0.0/modelVersion groupIdaib.dos.app/groupId artifactIdtest-app/artifactId packagingwar/packaging nameMaven Webapp Archetype/name version0.1-SNAPSHOT/version urlhttp://maven.apache.org/url build finalNametest-app/finalName /build dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.0/version scopetest/scope /dependency dependency groupIdcommons-beanutils/groupId artifactIdcommons-beanutils/artifactId version1.7.0/version /dependency dependency groupIdcommons-codec/groupId artifactIdcommons-codec/artifactId version1.3/version /dependency dependency groupIdcommons-collections/groupId artifactIdcommons-collections/artifactId version3.1/version /dependency dependency groupIdcommons-dbutils/groupId artifactIdcommons-dbutils/artifactId version1.0/version /dependency dependency groupIdcommons-digester/groupId artifactIdcommons-digester/artifactId version1.6/version /dependency dependency groupIdcommons-el/groupId artifactIdcommons-el/artifactId version1.0/version /dependency dependency groupIdcommons-fileupload/groupId artifactIdcommons-fileupload/artifactId version1.0/version /dependency dependency groupIdcommons-lang/groupId artifactIdcommons-lang/artifactId version2.1/version /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId version1.0.4/version /dependency dependency groupIdjstl/groupId artifactIdjstl/artifactId version1.1.0/version /dependency dependency groupIdmyfaces/groupId artifactIdtomahawk/artifactId version1.1.3/version /dependency dependency groupIdcom.microsoft.jdbcdriver/groupId artifactIdmsbase/artifactId version2000.3/version /dependency dependency groupIdcom.microsoft.jdbcdriver/groupId artifactIdmsutil/artifactId version2000.3/version /dependency dependency groupIdcom.microsoft.jdbcdriver/groupId artifactIdmssqlserver/artifactId version2000.3/version /dependency dependency groupIdmyfaces/groupId artifactIdmyfaces-api/artifactId version1.1.3/version /dependency dependency groupIdmyfaces/groupId artifactIdmyfaces-impl/artifactId version1.1.3/version /dependency /dependencies /project the classpath files should be generated automatically by the maven-eclipse plugin. Have you added a setting for wtp
RE: One sub module randomly appears twice after adding a parent multi-module 1.0.3
I've had a similar problem when using continuum with SVN. I end up with two projects that have the exact same SCM url, but different continuum build id's (sequential, in my case). Updating the build definition for one, automatically updates it for the other. However, updates inside svn only trigger one of them to be built by continuum, and not both. If I try to delete the duplicated project, I get the continuum error page with the same error output. -Original Message- From: Jesse McConnell [mailto:[EMAIL PROTECTED] Sent: Tue 8/1/2006 8:50 AM To: continuum-users@maven.apache.org Subject: Re: One sub module randomly appears twice after adding a parent multi-module 1.0.3 have you looked into the working directory that corresponds to that project id to see what is in there? in the working directory there should be a mess of numbered directories corresponding to each of the projects as they exist in continuum, mouse over the link to the project and you should see the project id in the url. I would be interested to know what was checked out in that sub directory...and if that project was assigned a different project id then its duplicate. something is making continuum think there is another project to get setup... thanks, jesse On 8/1/06, Johnson, Jonathan [EMAIL PROTECTED] wrote: Using cvs but problem occurs before build happens and before cvs is accessed. Problem occurs when adding a parent pom.xml M2 project file via URL. Thanks for the link, I will submit the problem. -Original Message- From: Jesse McConnell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 01, 2006 9:31 AM To: continuum-users@maven.apache.org Subject: Re: One sub module randomly appears twice after adding a parent multi-module 1.0.3 hm, how odd... what scm are you using? also, could you file this at http://jira.codehaus.org/browse/CONTINUUM jesse On 7/31/06, Johnson, Jonathan [EMAIL PROTECTED] wrote: One sub module randomly appears twice after adding a parent multi-module to continuum 1.0.3. I have a parent maven 2 pom with 16 sub-modules. If I reset the database ( by removing the database directory) and add my parent pom.xml all the modules will be added correctly except one random module will be added twice. I tried this three times and a different module in the list is duplicated once. This also happens after a fresh install of version 1.0.3. If I run a Build All one of the duplicate modules builds, while the other remains with a New status. When attempting to remove the duplicate module with the New status I get ognl.MethodFailedException: Method removeProject failed for object [EMAIL PROTECTED] [javax.jdo.JDOUserException: One or more instances could not be deleted NestedThrowables: javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM BUILDDEFINITION WHERE ID = ? NestedThrowables: SQL Exception: DELETE on table 'BUILDDEFINITION' caused a violation of foreign key constraint 'PROJECT_BUILP8_FK2' for key (10). The statement has been rolled back.] at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:796) at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61) at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819) at ognl.ASTMethod.getValueBody(ASTMethod.java:75) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at ognl.Ognl.getValue(Ognl.java:378) at ognl.Ognl.getValue(Ognl.java:357) at org.codehaus.plexus.formica.action.DeleteEntity.uponSuccessfulValidation (DeleteEntity.java:57) at org.codehaus.plexus.formica.action.DeleteEntity.execute(DeleteEntity.jav a:47) at org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve .java:68) at org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipe line.java:70) at org.codehaus.plexus.summit.Summit.doGet(Summit.java:54) at org.codehaus.plexus.summit.Summit.doPost(Summit.java:108) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH andler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon text.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at
test classes in submodule as dependencies for other modules
I have test helper classes (AbstractMyProjectTestCase) in one submodule, and I would like tests in other submodules to see that class. I have a depencency element pointing to the submodule where the test helper class resides. Unfortunately this doesn't work, the dependency mechanism sees only the product artifact without the test classes and this is clear why it is supposed to work this way. So how do you share through multiple projects common helper classes for tests? One way is to put this class from the test dir do main dir, and then it'll be visible to all, but this is polluting the production code and I don't want this. -- Wojtek Biela - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: test classes in submodule as dependencies for other modules
On 8/1/06, Wojciech Biela [EMAIL PROTECTED] wrote: I have test helper classes (AbstractMyProjectTestCase) in one submodule, and I would like tests in other submodules to see that class. I have a depencency element pointing to the submodule where the test helper class resides. Unfortunately this doesn't work, the dependency mechanism sees only the product artifact without the test classes and this is clear why it is supposed to work this way. So how do you share through multiple projects common helper classes for tests? One way is to put this class from the test dir do main dir, and then it'll be visible to all, but this is polluting the production code and I don't want this. http://maven.apache.org/guides/mini/guide-attached-tests.html shows a solution. Other solution will be to create another module, with tests only and then depend on it. Regards, Tomek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: One sub module randomly appears twice after adding a parent multi-module 1.0.3
I looked in the working directory. I have 1-15 directories under working-directory. The module that is duplicated has an id of 10 and another of 16. The one that is 16 is the module that still has the status of New and throws the database DELETE exception when I try to remove the module from the Continuum list. what was checked out I don't fully understand your term checked out. Perhaps the above description is enough. if that project was assigned a different project id Yes different ids (10 and 16) but working directory does not have a 16 folder. -Original Message- From: Jesse McConnell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 01, 2006 9:51 AM To: continuum-users@maven.apache.org Subject: Re: One sub module randomly appears twice after adding a parent multi-module 1.0.3 have you looked into the working directory that corresponds to that project id to see what is in there? in the working directory there should be a mess of numbered directories corresponding to each of the projects as they exist in continuum, mouse over the link to the project and you should see the project id in the url. I would be interested to know what was checked out in that sub directory...and if that project was assigned a different project id then its duplicate. something is making continuum think there is another project to get setup... thanks, jesse On 8/1/06, Johnson, Jonathan [EMAIL PROTECTED] wrote: Using cvs but problem occurs before build happens and before cvs is accessed. Problem occurs when adding a parent pom.xml M2 project file via URL. Thanks for the link, I will submit the problem. -Original Message- From: Jesse McConnell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 01, 2006 9:31 AM To: continuum-users@maven.apache.org Subject: Re: One sub module randomly appears twice after adding a parent multi-module 1.0.3 hm, how odd... what scm are you using? also, could you file this at http://jira.codehaus.org/browse/CONTINUUM jesse On 7/31/06, Johnson, Jonathan [EMAIL PROTECTED] wrote: One sub module randomly appears twice after adding a parent multi-module to continuum 1.0.3. I have a parent maven 2 pom with 16 sub-modules. If I reset the database ( by removing the database directory) and add my parent pom.xml all the modules will be added correctly except one random module will be added twice. I tried this three times and a different module in the list is duplicated once. This also happens after a fresh install of version 1.0.3. If I run a Build All one of the duplicate modules builds, while the other remains with a New status. When attempting to remove the duplicate module with the New status I get ognl.MethodFailedException: Method removeProject failed for object [EMAIL PROTECTED] [javax.jdo.JDOUserException: One or more instances could not be deleted NestedThrowables: javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM BUILDDEFINITION WHERE ID = ? NestedThrowables: SQL Exception: DELETE on table 'BUILDDEFINITION' caused a violation of foreign key constraint 'PROJECT_BUILP8_FK2' for key (10). The statement has been rolled back.] at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:796) at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61) at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819) at ognl.ASTMethod.getValueBody(ASTMethod.java:75) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at ognl.Ognl.getValue(Ognl.java:378) at ognl.Ognl.getValue(Ognl.java:357) at org.codehaus.plexus.formica.action.DeleteEntity.uponSuccessfulValidation (DeleteEntity.java:57) at org.codehaus.plexus.formica.action.DeleteEntity.execute(DeleteEntity.jav a:47) at org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve .java:68) at org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipe line.java:70) at org.codehaus.plexus.summit.Summit.doGet(Summit.java:54) at org.codehaus.plexus.summit.Summit.doPost(Summit.java:108) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH andler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon text.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
Re: Maven2 - Where to put script files?
thx for your reply, but i'm not sure what exactly you mean: project_name/scripts or (since the scripts belong to the whole project) project_name/src/scripts or (since scripts are part of the source) project_name/src/main/scripts and project_name/src/test/scripts (since scripts for runtime and tests should be divided apart) -- View this message in context: http://www.nabble.com/Maven2---Where-to-put-script-files--tf2033674.html#a5596294 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using mvn to download jars to local repository (without pom/project)
Jan Galinski wrote: pseudo mvn download -package=mysql -file=driver -version=3.10 /pseudo Seems to be rather simple, but its hard to search for (maven, download, jar, repository ... gives me anything but an answer to my problem). Have a look at the dependency plugin: http://maven.apache.org/plugins/maven-dependency-plugin/howto.html It basically does what you want, but given a pom. I don't really know if you can tweak it from command-line without a pom to back it. But it might be worth a try... Denis. -- View this message in context: http://www.nabble.com/Using-mvn-to-download-jars-to-local-repository-%28without-pom-project%29-tf2026412.html#a5597413 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jetty Embedded maven classpath problem.
HI, I'm attempting to use embedded jetty 6.0 and maven 2.0. Unfortunately jetty has an issue where it requires a copy of tools.jar on the classpath, in order to compile jsp's. Compiling jsp's is what I want to do. I have been attempting to mangle maven's classpaths (very wrong, I know) with code like: build plugins plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-sources/phase configuration tasks path id=maven.test.classpath pathelement location=${JAVA_HOME}/lib/tools.jar/ /path /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin /plugins /build but it hasn't worked. I think maybe because the modified classpath isn't permanent and is just modified for the phase it is in, and not the test phase where I need it. Does anybody know if this is the case and how I can fix it? I though maybe I could compile the jsp's to _jsp.java files in the pre-test phase, but I wasn't sure about how to go about this. Also has anybody got jetty working with maven 2? And has any body got the jetty maven plugin working in the pre-test phase to test their web applications with? I would really like to know, cos that would provide a different solution to my problem.
RE: [m2] The packaging for this project did not assign a file to the build artifact
Hi, Can somebody please enlighten me, how I can add build artefacts in an ant-based plugin? Can it be somewhere set in the plexus/components.xml? Currently I'm getting the error: [INFO] [deploy:deploy] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The packaging for this project did not assign a file to the build artifact [INFO] This is my components.xml: component-set components component roleorg.apache.maven.lifecycle.mapping.LifecycleMapping/role role-hinttigerstripe-application/role-hint implementationorg.apache.maven.lifecycle.mapping.DefaultLifecycleMapping/implementation configuration phases generate-sourcesossj.jsr264:maven-tigerstripe-plugin:tigerstripe-generate/generate-sources-- packageorg.apache.maven.plugins:maven-source-plugin:2.0:jar/package installorg.apache.maven.plugins:maven-install-plugin:install/install deployorg.apache.maven.plugins:maven-deploy-plugin:deploy/deploy /phases /configuration /component component roleorg.apache.maven.artifact.handler.ArtifactHandler/role role-hinttigerstripe-application/role-hint implementationorg.apache.maven.artifact.handler.DefaultArtifactHandler/implementation configuration extensionjar/extension typetigerstripe-application/type /configuration /component /components /component-set Andreas -Original Message- From: ext [EMAIL PROTECTED] e.org [mailto:[EMAIL PROTECTED] en.apache.org] Sent: 28 July, 2006 07:14 To: users@maven.apache.org Subject: Re: [m2] The packaging for this project did not assign a file to the build artifact I just read the archived mail and actually have the same problem: http://www.mail-archive.com/users@maven.apache.org/msg36680.html How to assign the build artefact in a custum plugin, that is based on ant tasks? Is there a more elegant way? For me, there's also an additional tweak. I'd like to assign not what comes out of my plugin, but I'm using the maven-source-plugin in a subsequent step in the lifecycle and want to deploy that. Any hints appreciated! Andreas Ebbert-Karroum Senior Software Design Engineer - Nokia Networks Services / Middleware phone: +49-211-94123928, fax: +49-211-94123838 Heltorfer Straße 1, 40472 Düsseldorf, Germany This message is confidential. If you have received this message in error, please delete it from your system. You should not copy it for any purpose, or disclose its contents to any other person. Internet communications are not secure and therefore Nokia GmbH does not accept legal responsibility for the contents of this message as it has been transmitted over a public network. Thank you. Nokia GmbH, Nokia Networks is a German Company. Further information about the Company is available from its principal offices at Heltorferstrasse 1, D-40472, Düsseldorf, Germany and from the website at http://www.nokia.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
embedded jetty in maven test phase classpath problem.
HI, I'm attempting to use embedded jetty 6.0 and maven 2.0. Unfortunately jetty has an issue where it requires a copy of tools.jar on the classpath, in order to compile jsp's. Compiling jsp's is what I want to do. I have been attempting to mangle maven's classpaths (very wrong, I know) with code like: build plugins plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-sources/phase configuration tasks path id=maven.test.classpath pathelement location=${JAVA_HOME}/lib/tools.jar/ /path /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin /plugins /build but it hasn't worked. I think maybe because the modified classpath isn't permanent and is just modified for the phase it is in, and not the test phase where I need it. Does anybody know if this is the case and how I can fix it? I though maybe I could compile the jsp's to _jsp.java files in the pre-test phase, but I wasn't sure about how to go about this. Also has anybody got jetty working with maven 2? And has any body got the jetty maven plugin working in the pre-test phase to test their web applications with? I would really like to know, cos that would provide a different solution to my problem. thanks meghan
embedded jetty in maven test phase classpath problem.
HI, I'm attempting to use embedded jetty 6.0 and maven 2.0. Unfortunately jetty has an issue where it requires a copy of tools.jar on the classpath, in order to compile jsp's. Compiling jsp's is what I want to do. I have been attempting to mangle maven's classpaths (very wrong, I know) with code like: build plugins plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-sources/phase configuration tasks path id=maven.test.classpath pathelement location=${JAVA_HOME}/lib/tools.jar/ /path /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin /plugins /build but it hasn't worked. I think maybe because the modified classpath isn't permanent and is just modified for the phase it is in, and not the test phase where I need it. Does anybody know if this is the case and how I can fix it? I though maybe I could compile the jsp's to _jsp.java files in the pre-test phase, but I wasn't sure about how to go about this. Also has anybody got jetty working with maven 2? And has any body got the jetty maven plugin working in the pre-test phase to test their web applications with? I would really like to know, cos that would provide a different solution to my problem. thanks meghan
[M2] Equivalent of ant dist in Maven
Hi All You now I have reached the point in a project where I have no clue what is the equivalent of ant dist in Maven 2.0? In other words I want to create a ZIP or JAR distribution of my project. Clean it, remove all the target/** and another generated source stuff from all folders, including sub folders. -- Peter Pilgrim UBS Investment Bank, PTS Portal / IT FIRC OPS LDN, 100 Liverpool Street, London EC2M 2RH, United Kingdom :: Java EE / E-Commerce / Enterprise Integration / Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [M2] Equivalent of ant dist in Maven
The assembly plugin is what you're looking for. See http://maven.apache.org/guides/mini/guide-assemblies.html. | -Original Message- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] | Sent: Tuesday, August 01, 2006 12:23 PM | To: users@maven.apache.org | Subject: [M2] Equivalent of ant dist in Maven | | Hi All | | You now I have reached the point in a project where I have no clue | what is the equivalent of ant dist in Maven 2.0? | | In other words I want to create a ZIP or JAR distribution of | my project. Clean it, remove all the target/** and another generated | source stuff from all folders, including sub folders. | | | -- | Peter Pilgrim | UBS Investment Bank, | PTS Portal / IT FIRC OPS LDN, | 100 Liverpool Street, London EC2M 2RH, United Kingdom | :: Java EE / E-Commerce / Enterprise Integration / Development :: | | Visit our website at http://www.ubs.com | | This message contains confidential information and is intended only | for the individual named. If you are not the named addressee you | should not disseminate, distribute or copy this e-mail. Please | notify the sender immediately by e-mail if you have received this | e-mail by mistake and delete this e-mail from your system. | | E-mail transmission cannot be guaranteed to be secure or error-free | as information could be intercepted, corrupted, lost, destroyed, | arrive late or incomplete, or contain viruses. The sender therefore | does not accept liability for any errors or omissions in the contents | of this message which arise as a result of e-mail transmission. If | verification is required please request a hard-copy version. This | message is provided for informational purposes and should not be | construed as a solicitation or offer to buy or sell any securities or | related financial instruments. | | | - | 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] Assign build artefact from ant (was: The packaging for this project did not assign a file to the build artifact)
To put the question differently: Is there any way to do this: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html --- One final task that is required is for the packaging goal you have created to tell Maven where to find what you built. This is done with code such as the following: project.getArtifact().setFile( new File( target/myFile-2.0.jar ) ); In a ant-based plugin? _ ___ _ //\ndreas.[|-bbert-[]/arroum(a)[|\|okia.com `-` Andreas Ebbert-Karroum Senior Software Design Engineer Nokia Networks Services / Middleware phone: +49-211-94123928, fax: +49-211-9412-3838 Heltorfer Straße 1, 40472 Düsseldorf, Germany -- This message is confidential. If you have received this message in error, please delete it from your system. You should not copy it for any purpose, or disclose its contents to any other person. Internet communications are not secure and therefore Nokia GmbH does not accept legal responsibility for the contents of this message as it has been transmitted over a public network. Thank you. Nokia GmbH, Nokia Networks is a German Company. Further information about the Company is available from its principal offices at Heltorferstrasse 1, D-40472, Düsseldorf, Germany and from the website at http://www.nokia.com/ -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven and Selenium?
Christophe DENEUX wrote: Hi , A snapshot repository is available at: http://maven.openqa.org/ Have you try jWebUnit (http://jwebunit.sourceforge.net/index.html) instead of Selenium for your functional tests? With jWebUnit, you can run your tests with different engines as htmlunit or Selenium (the Selenium engine is available trough SVN). You will use the htmlunit engine to execute your tests in a background mode (continuous integration) and the selenium engine in a visual mode. It's been a while since I looked at jWebUnit, and I'm currently using Selenium; what is the advantage of using jWebUnit as you describe instead of using Selenium directly? Do you have an URL with more info on the subject? TIA, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [M2] Equivalent of ant dist in Maven
Wicked! Assembly plug-in is very good indeed. Thanks Ian -Original Message- From: Ian Springer [mailto:[EMAIL PROTECTED] ==== The assembly plugin is what you're looking for. See http://maven.apache.org/guides/mini/guide-assemblies.html. | -Original Message- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ==== | | Hi All | | You now I have reached the point in a project where I have no clue | what is the equivalent of ant dist in Maven 2.0? | | In other words I want to create a ZIP or JAR distribution of my | project. Clean it, remove all the target/** and another generated | source stuff from all folders, including sub folders. ==== -- Peter Pilgrim UBS Investment Bank, PTS Portal / IT FIRC OPS LDN, 100 Liverpool Street, London EC2M 2RH, United Kingdom :: Java EE / E-Commerce / Enterprise Integration / Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting the ear plugin to recognise har files
Hi, On 7/7/06, Graham Leggett [EMAIL PROTECTED] wrote: Hi all, I have managed to get a combination of the antrun plugin and the build-helper-maven-plugin to build and deploy a JBoss har file into my repository. The ear plugin however bombs out like so: [INFO] [ear:generate-application-xml] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to initialize ear modules Embedded error: Unknown artifact type[har] Looking in the docs, the configuration option artifactTypeMappings seems to offer a clue, but apart from the text PlexusConfiguration, there is no indication what needs to be done to get this to work, or whether this option does I what I think it might do. Well, it does [1]. configuration artifactTypeMappings artifactTypeMapping type=har mapping=jar/ /artifactTypeMappings /configuration Are there any examples out there of the artifactTypeMappings setting being used? See above. However, since this one is often used I will add by default, MEAR-34 is opened for this. Cheers, Stéphane [1] http://maven.apache.org/plugins/maven-ear-plugin/introduction.html Regards, Graham -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- .::You're welcome ::. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [M2] Surefire POJO / Inner class issue
I also ran into this issue and found this page with a workaround: http://www.jroller.com/page/gridhaus?entry=maven2_testing_madness Basically, just configure Surefire to exclude the problem classes, like this worked for me: plugin artifactIdmaven-surefire-plugin/artifactId configuration excludes exclude**/TestDevice.java/exclude /excludes /configuration /plugin Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, 27 July, 2006 11:49 To: Maven Users List Subject: Re: [M2] Surefire POJO / Inner class issue Hi Hal - I'm running into a similar issue.. did you find a work-around? thx, -Russ ([EMAIL PROTECTED]) At 4:05 PM -0700 7/14/06, Hal Hildebrand wrote: I'm running into a weird issue here. It seems that the Maven surefire plugin is trying to create POJO tests for inner classes which clearly aren't tests. I'm not even a surefire novice, so I'm not sure why on earth this is happening - I'm just wondering how to stop it from happening. Anyone have any clues as to how to escape this? [INFO] Surefire report directory: /Users/hhildebrand/Projects/wadi/modules/core/target/surefire-reports org.apache.maven.surefire.booter.SurefireExecutionException: Unable to instantiate POJO 'class org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy' ; nested exception is java.lang.InstantiationException: org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy; nested exception is org.apache.maven.surefire.testset.TestSetFailedException: Unable to instantiate POJO 'class org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy' ; nested exception is java.lang.InstantiationException: org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy org.apache.maven.surefire.testset.TestSetFailedException: Unable to instantiate POJO 'class org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy' ; nested exception is java.lang.InstantiationException: org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy java.lang.InstantiationException: org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy at java.lang.Class.newInstance0(Class.java:335) at java.lang.Class.newInstance(Class.java:303) at org.apache.maven.surefire.testset.PojoTestSet.init(PojoTest Set.java:52) at org.apache.maven.surefire.junit.JUnitDirectoryTestSuite.creat eTestSet(J UnitD irectoryTestSuite.java:61) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.lo cateTestSe ts(Ab stractDirectoryTestSuite.java:93) at org.apache.maven.surefire.Surefire.createSuiteFromDefinition( Surefire.j ava:1 47) at org.apache.maven.surefire.Surefire.run(Surefire.java:108) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces sorImpl.ja va:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet hodAccesso rImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInPr ocess(Sure fireB ooter.java:225) at org.apache.maven.surefire.booter.SurefireBooter.main(Surefire Booter.jav a:747) - 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: Maven2 eclipse plugin
Hi Marco, If I am not mistaken, this is a known problem with maven embedder that comes with m2eclipse plugin. It does not work with multiproject. However I guess this has been fixed in the main line of development. It's been a while since last time I saw that. Dário Marco Mistroni wrote: hi all, i have a project in which i am using Maven2... so far i have used Notepad/TextPad as java editor, but now i wanted to move to Eclipse i followed steps outlined here http://maven.apache.org/guides/mini/guide-ide-eclipse.html fact is, my project is a MultiProject made of a main project and two subprojects. I followed stepso utlined in the link above, however when i tried to run maven2 from eclipse (launching hte 'parent' pom.xml), it did nothing it just outputted [INFO] [INFO] Building Maven Quick Start Archetype [INFO]task-segment: [clean, compile] [INFO] [INFO] clean:clean [INFO] Deleting directory D:\Sw\step-by-step\middleware\target [INFO] Deleting directory D:\Sw\step-by-step\middleware\target\classes [INFO] Deleting directory D:\Sw\step-by-step\middleware\target\test-classes [INFO] No goals needed for project - skipping [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 0 second [INFO] Finished at: Tue Aug 01 14:01:57 BST 2006 [INFO] Memory 0M/2M [INFO] it looks like it is not picking up the dependent project, even though my pom is as follows ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdmiddleware/groupId artifactIdmiddleware/artifactId packagingpom/packaging version1.0-SNAPSHOT/version nameMaven Quick Start Archetype/name urlhttp://maven.apache.org/url dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies modules modulemyMiddleware/module /modules build pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId configuration unzipCommand/usr/bin/unzip -o err.txt/unzipCommand /configuration /plugin /plugins /pluginManagement /build dependencyManagement dependencies dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-j2ee/artifactId version1.4-rc4/version scopeprovided/scope /dependency dependency groupIdfop/groupId artifactIdfop/artifactId version0.20.5rc2/version /dependency dependency groupIdaxis/groupId artifactIdaxis-saaj/artifactId version1.3/version /dependency dependency groupIdaxis/groupId artifactIdaxis/artifactId version1.3/version /dependency /dependencies /dependencyManagement /project if i go to the commanline instead, everything works fine could anyone help me out? my project structure is as follows middleware | myMiddleware could anyone help me out? thanks and regards marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2 eclipse plugin
Another way to do this is to evoke the maven build as an external program. That spawns a new java process, effectively a command line build. It only requires a tiny bit of work. 1. Go to External Tools 2. Right click on Program, not m2 Build 3. Give it a name 4. In Location, browse to the executable for the version of maven that you installed outside of eclipse 5. Select your working directory 6. In Arguments put the goals you want to reach. When you need to do a different type of build, right click on an existing one, select Duplicate, rename it and change the goals (and workspace, if need be). On 8/1/06, Dario Luis Coneglian Oliveros [EMAIL PROTECTED] wrote: Hi Marco, If I am not mistaken, this is a known problem with maven embedder that comes with m2eclipse plugin. It does not work with multiproject. However I guess this has been fixed in the main line of development. It's been a while since last time I saw that. Dário Marco Mistroni wrote: hi all, i have a project in which i am using Maven2... so far i have used Notepad/TextPad as java editor, but now i wanted to move to Eclipse i followed steps outlined here http://maven.apache.org/guides/mini/guide-ide-eclipse.html fact is, my project is a MultiProject made of a main project and two subprojects. I followed stepso utlined in the link above, however when i tried to run maven2 from eclipse (launching hte 'parent' pom.xml), it did nothing it just outputted [INFO] [INFO] Building Maven Quick Start Archetype [INFO]task-segment: [clean, compile] [INFO] [INFO] clean:clean [INFO] Deleting directory D:\Sw\step-by-step\middleware\target [INFO] Deleting directory D:\Sw\step-by-step\middleware\target\classes [INFO] Deleting directory D:\Sw\step-by-step\middleware\target\test-classes [INFO] No goals needed for project - skipping [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 0 second [INFO] Finished at: Tue Aug 01 14:01:57 BST 2006 [INFO] Memory 0M/2M [INFO] it looks like it is not picking up the dependent project, even though my pom is as follows ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdmiddleware/groupId artifactIdmiddleware/artifactId packagingpom/packaging version1.0-SNAPSHOT/version nameMaven Quick Start Archetype/name urlhttp://maven.apache.org/url dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies modules modulemyMiddleware/module /modules build pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId configuration unzipCommand/usr/bin/unzip -o err.txt /unzipCommand /configuration /plugin /plugins /pluginManagement /build dependencyManagement dependencies dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-j2ee/artifactId version1.4-rc4/version scopeprovided/scope /dependency dependency groupIdfop/groupId artifactIdfop/artifactId version0.20.5rc2/version /dependency dependency groupIdaxis/groupId artifactIdaxis-saaj/artifactId version1.3/version /dependency dependency groupIdaxis/groupId artifactIdaxis/artifactId version1.3/version /dependency /dependencies /dependencyManagement /project if i go to the commanline instead, everything works fine could anyone help me out? my project structure is as follows middleware | myMiddleware could anyone help me out? thanks and regards marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- I'm just a caveman software developer. I don't understand your
Re: Getting the ear plugin to recognise har files
Stephane Nicoll wrote: Embedded error: Unknown artifact type[har] Looking in the docs, the configuration option artifactTypeMappings seems to offer a clue, but apart from the text PlexusConfiguration, there is no indication what needs to be done to get this to work, or whether this option does I what I think it might do. Well, it does [1]. configuration artifactTypeMappings artifactTypeMapping type=har mapping=jar/ /artifactTypeMappings /configuration This option won't work for us, as the project that creates the har file, already creates an ejb mapped to a jar file, which creates a filename clash. Ideally the ear plugin shouldn't try to know about every single file extension ever made, because invariably someone (in this case JBoss) invents a new one, and the ear plugin stops working. A sane default would be to assume the suffix maps to the type for files that are not recognised. Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature
Re: Aggregate profiles
Hmm, using a comma-delimitted list of values with -P does get multiple profiles activated, but the value of databaseDriver isn't reset when the p6spy profile is included. The order the profiles are listed doesn't seem to have any effect; databaseDriver ends up set to the same thing with either -Phsql,p6spy or -Pp6spy,hsql. Any other suggestions? L. Alexis Midon wrote: you can activate many profiles with -Pprofile1,profile2,profile3 etc. as explained in mvn -h: -P,--activate-profilesComma-delimited list of profiles to activate On 8/1/06, Roland Asmann [EMAIL PROTECTED] wrote: I've been looking for something similar and found that it is possible, but atm only for a maximum of 2 profiles. Use the property-activation for your profiles and activate 'p6spy' when the property is set. Then activate one of the other profiles when this property is set to a specific value: profile idp6spy/id activation property namedb/name /property /activation /profile profile idhsql/id activation property namedb/name valuehsql/value /property /activation /profile profile idpostgres/id activation property namedb/name valuepostgres/value /property /activation /profile Now, if you run 'mvn -Ddb=postgres' or '-Ddb=hsql' p6spy is ALWAYS activated. Hope this helped. Roland On Tuesday 01 August 2006 01:39, Laurie Harper wrote: Is it possible to activate multiple profiles at once, as in 'mvn -Pprofile1 -Pprofile2', and have one profile override properties in the other? I'm trying to make it easy to enable p6spy, something like profiles profile idhsql/id activation activeByDefaulttrue/activeByDefault /activation properties databaseTypehsqldb/databaseType databaseDriverorg.hsqldb.jdbcDriver/databaseDriver ... /properties /profile profile idpostgres/id properties databaseTypepostgresql/databaseType databaseDriverorg.postgresql.Driver/databaseDriver ... /properties /profile profile idp6spy/id properties databaseDriver...P6SpyDriver/databaseDriver /properties /profile /profiles the idea being that you can switch databases with '-Ppostgres' and enable P6Spy for either database with, for example, '-Ppostgres -Pp6spy'. Unfortunately, it seems that Maven only sets the properties defined in *one* of the two profiles. Is there a way to get both? Alternatively, is there another way to conditionally set properties in M2? L. - 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: Aggregate profiles
On 8/1/06, Laurie Harper [EMAIL PROTECTED] wrote: Hmm, using a comma-delimitted list of values with -P does get multiple profiles activated, but the value of databaseDriver isn't reset when the p6spy profile is included. The order the profiles are listed doesn't seem to have any effect; databaseDriver ends up set to the same thing with either -Phsql,p6spy or -Pp6spy,hsql. Any other suggestions? I think you need to split the profiles up, and have one set that controls which driver to use, then another set for the database-specific configuration. I would probably activate them with system properties (-D rather than -P) because the configuration is more flexible. For the driver, you need exactly one of them active (right?) so you can say profile iddriver-p6spy/id activation property namedriver/name valuep6spy/value /property /activation ... and repeat for the others. Activate with -Ddriver=p6spy (or -Ddriver=hsql.) HTH, -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Changed file list for every build
When I do a build, I see the list of files under Build Result -- Changes. I see files listed even when there is no change to the source files. What exactly is happening ? thanks --Prashanth __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: maven site into Trac?
Hi Andrew, Do you feel you know trac/maven integration enough so that you could add support for it to the changes plugin so that we can use trac instead of jira as issue tracker? Srgjan Andrew Williams wrote: OK, OK so here it is - you can grab MavenTrac, the Trac plugin for Maven sites here: http://dev.rectang.com/projects/maventrac/ There are (what I think classify as) comprehensive instructions, but let me know on the site or on email if you have any troubles using it. (Quite possible, as it is still early) Sorry it took a while, but I was working on TraM a Trac-Multi wrapper which you can see in action on that site (http://dev.rectang.com/projects/). Thought it might interest some folk here too... Andy p.s. why not check out ContinuTrac too ;) (http://dev.rectang.com/projects/continutrac/) p.p.s Sorry for the adverts! On Sun, 2006-07-30 at 14:10 -0700, Josh Long wrote: The clamoring masses have it.. please release it On 7/30/06, Srepfler Srgjan [EMAIL PROTECTED] wrote: YES! :) Srgjan Andrew Williams wrote: :) I am the dev behind dev.rectang.com and can tell you it is not manually done :) I have a trac plugin that is almost ready for a release that does it for me. step 1) install plugin, tell it where the site is generated to (on the filesystem) step 2) set your site to use the maven-trac-skin (or whatever I call it when it is released) and deploy it into the expected area. Shall I announce here when it is ready perhaps? Andrew Valerio Schiavoni wrote: hello everyone, any one knows how to 'merge' the maven generated website within Trac, as it's done here: http://dev.rectang.com/projects/javautil/maven/ i think they did it 'manually'..but maybe not. thanks, valerio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven site into Trac?
I cannot say without seeing exactly what you want. I have not looked into the changes plugin much - what exactly are you looking for? Just a handler for Trac changes so the changes plugin outputs links that work inside MavenTrac? Andy On Tue, 2006-08-01 at 22:55 +0200, Srepfler Srgjan wrote: Hi Andrew, Do you feel you know trac/maven integration enough so that you could add support for it to the changes plugin so that we can use trac instead of jira as issue tracker? Srgjan Andrew Williams wrote: OK, OK so here it is - you can grab MavenTrac, the Trac plugin for Maven sites here: http://dev.rectang.com/projects/maventrac/ There are (what I think classify as) comprehensive instructions, but let me know on the site or on email if you have any troubles using it. (Quite possible, as it is still early) Sorry it took a while, but I was working on TraM a Trac-Multi wrapper which you can see in action on that site (http://dev.rectang.com/projects/). Thought it might interest some folk here too... Andy p.s. why not check out ContinuTrac too ;) (http://dev.rectang.com/projects/continutrac/) p.p.s Sorry for the adverts! On Sun, 2006-07-30 at 14:10 -0700, Josh Long wrote: The clamoring masses have it.. please release it On 7/30/06, Srepfler Srgjan [EMAIL PROTECTED] wrote: YES! :) Srgjan Andrew Williams wrote: :) I am the dev behind dev.rectang.com and can tell you it is not manually done :) I have a trac plugin that is almost ready for a release that does it for me. step 1) install plugin, tell it where the site is generated to (on the filesystem) step 2) set your site to use the maven-trac-skin (or whatever I call it when it is released) and deploy it into the expected area. Shall I announce here when it is ready perhaps? Andrew Valerio Schiavoni wrote: hello everyone, any one knows how to 'merge' the maven generated website within Trac, as it's done here: http://dev.rectang.com/projects/javautil/maven/ i think they did it 'manually'..but maybe not. thanks, valerio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with checksum generation
For those of you running ant somewhere, put this build script at the top of your repository: target name=build checksum algorithm=sha1 forceoverwrite=true fileset dir=. include name=**/*.pom/ include name=**/*.jar/ include name=**/*.xml/ /fileset /checksum checksum algorithm=md5 forceoverwrite=true fileset dir=. include name=**/*.pom/ include name=**/*.jar/ include name=**/*.xml/ /fileset /checksum /target (up to you to do the forceoverwrite, my checksum files were a bit garbled) -Original Message- From: Max Cooper [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 10:29 PM To: Maven Users List Subject: Re: Problem with checksum generation My understanding is that the -Durl param is to tell maven where your repository is. It isn't totally clear, but in your command it looks like you are telling maven to install a jar to the spot that it already exists. That seems like a bad idea, and might be the cause of your troubles. Try it without the -Durl param. Or change the -Durl param to point to your local repo. Or make it point somewhere else, and then copy the files over, if you are stubborn. :-) Or move the jar outside of your repository before you try to install it. I generate my own checksums using md5sum and sha1sum sometimes. You can get these on Windows by installing Cygwin, and then installing the package(s) that contain the commands. I don't know what the package name(s) are. cat aopalliance-1.0.jar | md5sum aopalliance-1.0.jar.md5 cat aopalliance-1.0.jar | sha1sum aopalliance-1.0.jar.sha1 The pom is just a text file. Look at some other ones and adapt them to what you need. For aopalliance-1.0, you can just get it from ibiblio: http://ibiblio.org/maven2/aopalliance/aopalliance/1.0/ -Max v_waran wrote: Hi, I am trying to create POM and checksum for existing jar file. When I tried to run the below command POM and checksum files are created but jar file is overwritten to 4k.( I tried with different jar files but consistenly its overwritten to size of 4k.). Command used is mvn deploy:deploy-file -DrepositoryId=localRepository -Dpackaging=jar -Durl=file:\\D:\test\extlib2 -Dversion=1.0 -DgroupId=aopalliance -DartifactId=aopalliance -Dfile=..\..\extlib2\aopalliance\aopalliance\1.0\aopalliance-1.0.jar 1. Is their any option to not to overwrite the jar file (if it already exist) ? If not why does it create only to 4k ? Any idea ? 2. Any alternative way to create POM checksum file(s) for the existing jar file ? Any input is highly valuable. Regards, waran - 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: test classes in submodule as dependencies for other modules
Thank you very much Tomasz, that guide at http://maven.apache.org/guides/mini/guide-attached-tests.html was the solution I was looking for best regards Wojtek 2006/8/1, Tomasz Pik [EMAIL PROTECTED]: On 8/1/06, Wojciech Biela [EMAIL PROTECTED] wrote: I have test helper classes (AbstractMyProjectTestCase) in one submodule, and I would like tests in other submodules to see that class. I have a depencency element pointing to the submodule where the test helper class resides. Unfortunately this doesn't work, the dependency mechanism sees only the product artifact without the test classes and this is clear why it is supposed to work this way. So how do you share through multiple projects common helper classes for tests? One way is to put this class from the test dir do main dir, and then it'll be visible to all, but this is polluting the production code and I don't want this. http://maven.apache.org/guides/mini/guide-attached-tests.html shows a solution. Other solution will be to create another module, with tests only and then depend on it. Regards, Tomek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Wojtek Biela - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven site into Trac?
Andrew Williams wrote: I cannot say without seeing exactly what you want. I have not looked into the changes plugin much - what exactly are you looking for? Just a handler for Trac changes so the changes plugin outputs links that work inside MavenTrac? Andy On Tue, 2006-08-01 at 22:55 +0200, Srepfler Srgjan wrote: Hi Andrew, Do you feel you know trac/maven integration enough so that you could add support for it to the changes plugin so that we can use trac instead of jira as issue tracker? Srgjan Andrew Williams wrote: OK, OK so here it is - you can grab MavenTrac, the Trac plugin for Maven sites here: http://dev.rectang.com/projects/maventrac/ There are (what I think classify as) comprehensive instructions, but let me know on the site or on email if you have any troubles using it. (Quite possible, as it is still early) Sorry it took a while, but I was working on TraM a Trac-Multi wrapper which you can see in action on that site (http://dev.rectang.com/projects/). Thought it might interest some folk here too... Andy p.s. why not check out ContinuTrac too ;) (http://dev.rectang.com/projects/continutrac/) p.p.s Sorry for the adverts! On Sun, 2006-07-30 at 14:10 -0700, Josh Long wrote: The clamoring masses have it.. please release it On 7/30/06, Srepfler Srgjan [EMAIL PROTECTED] wrote: YES! :) Srgjan Andrew Williams wrote: :) I am the dev behind dev.rectang.com and can tell you it is not manually done :) I have a trac plugin that is almost ready for a release that does it for me. step 1) install plugin, tell it where the site is generated to (on the filesystem) step 2) set your site to use the maven-trac-skin (or whatever I call it when it is released) and deploy it into the expected area. Shall I announce here when it is ready perhaps? Andrew Valerio Schiavoni wrote: hello everyone, any one knows how to 'merge' the maven generated website within Trac, as it's done here: http://dev.rectang.com/projects/javautil/maven/ i think they did it 'manually'..but maybe not. thanks, valerio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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] I unfortunately don't have a jira instance with which I can play with but if you take a look at this page: http://maven.apache.org/plugins/maven-changes-plugin/usage.html you can see under How to generate a JIRA report how they declare they want to use it directly to generate a report. I don't know what kind of a result does JIRA gives back to the plugin so I guess it's possible that Trac doesn't support that kind of export capability but I wouldn't be surprised if it's not such a big deal to implement it. This would allow I believe creating a changes list getting from trac all issues closed (or existing) for the release cycle in question. Srgjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting the ear plugin to recognise har files
Graham, There have been some recent discussions over on the mojo-dev list regarding JBoss packagings and how best to implement them in the jboss-packaging-maven-plugin. Specifically, the very issue you note (name clashing) did come up, thought dismissed as a very unlikely use case. One thought that surfaced is to use classifiers in situations where the file extension is insufficient. eg., bar-artifact-1.0.0-ejb.jar or foo-artifact-1.0.0-jboss.har, just like the sources plugin does. I'm working on some patches to the jboss-packaging-maven-plugin, so chime in if you have any suggestions. Doug On 8/1/06, Graham Leggett [EMAIL PROTECTED] wrote: Stephane Nicoll wrote: Embedded error: Unknown artifact type[har] Looking in the docs, the configuration option artifactTypeMappings seems to offer a clue, but apart from the text PlexusConfiguration, there is no indication what needs to be done to get this to work, or whether this option does I what I think it might do. Well, it does [1]. configuration artifactTypeMappings artifactTypeMapping type=har mapping=jar/ /artifactTypeMappings /configuration This option won't work for us, as the project that creates the har file, already creates an ejb mapped to a jar file, which creates a filename clash. Ideally the ear plugin shouldn't try to know about every single file extension ever made, because invariably someone (in this case JBoss) invents a new one, and the ear plugin stops working. A sane default would be to assume the suffix maps to the type for files that are not recognised. Regards, Graham --
Re: maven site into Trac?
Srgjan, Andrew, First, thanks Andrew for the contribution. I found the maven and continuum content on your trac site a few weeks back -- very nice. As for the changes plugin, in the m1 version of the plugin a URL template can be used to prodive the links to different systems -- we did this with Bugzilla back in the day. Following the link in Srgjan email to [1], it appears the m2 version of the plugin works the same way, so I don't think anything needs to changed in the plugin, just your configuration of it. On the other hand, it would be very nice to not have to write a changes.xmlfile at all and just use the Trac timeline RSS feed to create it completely on the fly. Just some thoughts. Doug http://maven.apache.org/plugins/maven-changes-plugin/changes-report-mojo.html On 8/1/06, Srepfler Srgjan [EMAIL PROTECTED] wrote: Andrew Williams wrote: I cannot say without seeing exactly what you want. I have not looked into the changes plugin much - what exactly are you looking for? Just a handler for Trac changes so the changes plugin outputs links that work inside MavenTrac? Andy On Tue, 2006-08-01 at 22:55 +0200, Srepfler Srgjan wrote: Hi Andrew, Do you feel you know trac/maven integration enough so that you could add support for it to the changes plugin so that we can use trac instead of jira as issue tracker? Srgjan Andrew Williams wrote: OK, OK so here it is - you can grab MavenTrac, the Trac plugin for Maven sites here: http://dev.rectang.com/projects/maventrac/ There are (what I think classify as) comprehensive instructions, but let me know on the site or on email if you have any troubles using it. (Quite possible, as it is still early) Sorry it took a while, but I was working on TraM a Trac-Multi wrapper which you can see in action on that site (http://dev.rectang.com/projects/). Thought it might interest some folk here too... Andy p.s. why not check out ContinuTrac too ;) (http://dev.rectang.com/projects/continutrac/) p.p.s Sorry for the adverts! On Sun, 2006-07-30 at 14:10 -0700, Josh Long wrote: The clamoring masses have it.. please release it On 7/30/06, Srepfler Srgjan [EMAIL PROTECTED] wrote: YES! :) Srgjan Andrew Williams wrote: :) I am the dev behind dev.rectang.com and can tell you it is not manually done :) I have a trac plugin that is almost ready for a release that does it for me. step 1) install plugin, tell it where the site is generated to (on the filesystem) step 2) set your site to use the maven-trac-skin (or whatever I call it when it is released) and deploy it into the expected area. Shall I announce here when it is ready perhaps? Andrew Valerio Schiavoni wrote: hello everyone, any one knows how to 'merge' the maven generated website within Trac, as it's done here: http://dev.rectang.com/projects/javautil/maven/ i think they did it 'manually'..but maybe not. thanks, valerio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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] I unfortunately don't have a jira instance with which I can play with but if you take a look at this page: http://maven.apache.org/plugins/maven-changes-plugin/usage.html you can see under How to generate a JIRA report how they declare they want to use it directly to generate a report. I don't know what kind of a result does JIRA gives back to the plugin so I guess it's possible that Trac doesn't support that kind of export capability but I wouldn't be surprised if it's not such a big deal to implement it. This would allow I believe creating a changes list getting from trac all issues closed (or existing) for the release cycle in question. Srgjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: test-classes in War
devillina wrote: I think i'm doing something wrong. I put the thing for the jar-plugin in my pom.xml (the one that builds the war). And i do get a test-jar build. But building this jar is the last thing maven does. So when i put the dependency in my war-plugin like this: plugin artifactIdmaven-war-plugin/artifactId configuration excludes**/_svn/**/excludes archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration dependencies dependency groupIdbe.delaware.jpetstore.samples/groupId artifactIdjpetstore/artifactId version0.0.1/version typetest-jar/type /dependency /dependencies /plugin But he keeps saying he's missing an artifact for the war-plugin (what would be logical because he tries to make the war before the test-jar is even build). any ideas? The artifact has to be installed for maven to use it. in fact - I have these in separate projects. (The tests are build from a server-project - and I depend on these in a separate testwar-project). (p.s. i can't put my tests in the main source tree, because they want me to follow the maven default directory structure). Can you send the complete pom? My jar-plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId executions execution goals goaltest-jar/goal /goals /execution /executions configuration archive indextrue/index manifestEntries url${pom.url}/url email${myEmailAddress}/email buildNumber${buildNumber}/buildNumber /manifestEntries manifest addClasspathtrue/addClasspath /manifest /archive /configuration /plugin I think your approach should work as the test-jar will be executed before the war-step. The problem is that the artifact is not installed in your local repo at this point. If you're totally stuck I would recommend splitting it up into two artifacts. -- David J. M. Karlsen - +47 90 68 22 43 http://www.davidkarlsen.com http://mp3.davidkarlsen.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: m2/eclipse/wtp configuration
Stefan, The classpath does have the Maven2 Dependencies in it, but it's just not picking them up at runtime. I attached the 3 config files Kev ?xml version=1.0 encoding=UTF-8? classpath classpathentry kind=src path=src/main/java/ classpathentry kind=src path=src/test/java/ classpathentry excluding=** output=src/main/resources kind=src path=src/main/resources/ classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ classpathentry kind=con path=org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v5.5 JDK 1.4/ classpathentry kind=con path=org.eclipse.jst.j2ee.internal.web.container/ classpathentry kind=con path=org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER/ classpathentry kind=output path=src/main/webapp/WEB-INF/classes/ /classpath ?xml version=1.0 encoding=UTF-8? projectDescription nameNewport/name comment/comment projects /projects buildSpec buildCommand nameorg.eclipse.jdt.core.javabuilder/name arguments /arguments /buildCommand buildCommand nameorg.eclipse.wst.common.project.facet.core.builder/name arguments /arguments /buildCommand buildCommand nameorg.eclipse.wst.validation.validationbuilder/name arguments /arguments /buildCommand buildCommand nameorg.maven.ide.eclipse.maven2Builder/name arguments /arguments /buildCommand /buildSpec natures natureorg.maven.ide.eclipse.maven2Nature/nature natureorg.eclipse.wst.common.project.facet.core.nature/nature natureorg.eclipse.jdt.core.javanature/nature natureorg.eclipse.wst.common.modulecore.ModuleCoreNature/nature natureorg.eclipse.jem.workbench.JavaEMFNature/nature /natures /projectDescription ?xml version=1.0? project modelVersion4.0.0/modelVersion groupIdaib.dos.app/groupId artifactIdtest-app/artifactId packagingwar/packaging nameMaven Webapp Archetype/name version0.1-SNAPSHOT/version urlhttp://maven.apache.org/url build finalNametest-app/finalName /build dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.0/version scopetest/scope /dependency dependency groupIdcommons-beanutils/groupId artifactIdcommons-beanutils/artifactId version1.7.0/version /dependency dependency groupIdcommons-codec/groupId artifactIdcommons-codec/artifactId version1.3/version /dependency dependency groupIdcommons-collections/groupId artifactIdcommons-collections/artifactId version3.1/version /dependency dependency groupIdcommons-dbutils/groupId artifactIdcommons-dbutils/artifactId version1.0/version /dependency dependency groupIdcommons-digester/groupId artifactIdcommons-digester/artifactId version1.6/version /dependency dependency groupIdcommons-el/groupId artifactIdcommons-el/artifactId version1.0/version /dependency dependency groupIdcommons-fileupload/groupId artifactIdcommons-fileupload/artifactId version1.0/version /dependency dependency groupIdcommons-lang/groupId artifactIdcommons-lang/artifactId version2.1/version /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId version1.0.4/version /dependency dependency groupIdjstl/groupId artifactIdjstl/artifactId version1.1.0/version /dependency dependency groupIdmyfaces/groupId artifactIdtomahawk/artifactId version1.1.3/version /dependency dependency groupIdcom.microsoft.jdbcdriver/groupId artifactIdmsbase/artifactId version2000.3/version /dependency dependency groupIdcom.microsoft.jdbcdriver/groupId artifactIdmsutil/artifactId version2000.3/version /dependency dependency groupIdcom.microsoft.jdbcdriver/groupId artifactIdmssqlserver/artifactId version2000.3/version /dependency dependency groupIdmyfaces/groupId artifactIdmyfaces-api/artifactId version1.1.3/version /dependency dependency groupIdmyfaces/groupId artifactIdmyfaces-impl/artifactId version1.1.3/version /dependency /dependencies /project the classpath files should be generated automatically by the maven-eclipse plugin. Have you added a setting for wtp
Using another server to run Continuum
Hi all, Is there a standard way to deploy Continuum using an existing server, instead of using the embedded Jetty server? If not, is this a planned feature? Thanks in advance, Matheus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with scm:changelog
Hi everyone .. I am a newbie to maven .. I've been using the scm api and it seems that it's working properly except when I execute the scm:changelog goal I get this error [INFO] [scm:changelog] [INFO] Executing: cvs -z3 -f -d :pserver:[EMAIL PROTECTED]:repository -q log [INFO] Working directory: C:\Documents and Settings\Administrator [ERROR] Provider message: [ERROR] The cvs command failed. [ERROR] Command output: [ERROR] cvs log: in directory .: cvs [log aborted]: there is no version here; run 'cvs checkout' first [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Command failed.The cvs command failed. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Tue Aug 01 19:48:09 PDT 2006 [INFO] Final Memory: 4M/7M [INFO] I've executed the checkout goal and it successfully build I've versioned my project and I also tried to execute the cvs -z3 -f -d :pserver:[EMAIL PROTECTED]:repository -q log command , but I got the following error: : No such file or directory /repository/test cvs log: skipping directory Any help will be really appreciated.. _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]