Re: Build Schedule
Hi Gabriel, try this: Second: 0 Minute: 0 Hour: 9 Day of Month: ? Month: * Day of Week: MON-FRI Year: if you specify a range of days for Day-of-week like MON-FRI you can't use * for Day of month because it matches all days. Use ? for no specific value. See http://www.opensymphony.com/quartz/api/org/quartz/CronExpression.html regards, Jan Misura, Gabriel schrieb: In Continuum 1.1-alpha-1 I tried to setup a schedule to run every weekday at 9am. I clicked the Syntax link provided in the Edit Schedule Page: http://www.opensymphony.com/quartz/api/org/quartz/CronTrigger.html So I tried to create the Cron Expression: Second: 0 Minute: 0 Hour: 9 Day of Month: * Month: * Day of Week: MON-FRI Year: When I try to save it, I get: Invalid cron expression value(s) I also tried Day of Week: 1-5 Same error: Invalid cron expression value(s) And, Day of Week: 1 Same error And, Day of Week: 1,2,3,4,5 Same error What's the REAL syntax for that? Thanks Gabriel Misura 20111 120th Ave NE, Cube 2337D Bothell, WA MSN: [EMAIL PROTECTED] Office: 425-288-6217 -- Jan Lisse FE neofonie GmbH Robert-Koch-Platz 4 10115 Berlin fon: +49.30 24627 533 fax: +49.30 24627 120 Handelsregister Berlin-Charlottenburg: HRB 67460 Geschaeftsfuehrung Helmut Hoffer von Ankershoffen Nurhan Yildirim
RE: Build Schedule
Try using a ? for Day of Month 0 15 10 ? * MON-FRIFire at 10:15am every Monday, Tuesday, Wednesday, Thursday and Friday -Original Message- From: Misura, Gabriel [mailto:[EMAIL PROTECTED] http://www.opensymphony.com/quartz/api/org/quartz/CronTrigger.html So I tried to create the Cron Expression: Second: 0 Minute: 0 Hour: 9 Day of Month: * Month: * Day of Week: MON-FRI Year: When I try to save it, I get: Invalid cron expression value(s) What's the REAL syntax for that? smime.p7s Description: S/MIME cryptographic signature
Re: Skiping module during mvn eclipse:eclipse
Dan Tran wrote: The patch for this enhancement has been applied. The release of new eclipse plugin is coming very soon. -D Great. Many thanks. On 6/21/07, Dan Tran [EMAIL PROTECTED] wrote: please vote for this enhencement request http://jira.codehaus.org/browse/MECLIPSE-271 I would like to vote, but I'm afraid it is not possible. Jira says You cannot vote or change your vote on resolved issues :-) Thank for your path. Regards, Marcin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to run both Maven1 Maven2 in a single machine..
Hey.. can we run both MAven1 maven2 in a single machine?? If yes, could u plz tell me how can we set MAVEN_HOME for both versions.. ANy suggestion is highly appreciated... -Kiran Kodlady -- View this message in context: http://www.nabble.com/how-to-run-both-Maven1---Maven2-in-a-single-machine..-tf3963029s177.html#a11246914 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Skiping module during mvn eclipse:eclipse
Heinrich Nirschl wrote: Sometimes, you can work around this problem by running 'mvn install' before. - Henry That's true. But I just want to provide functionality as simple as possible to other people from my team, without explanation why they need to run mvn install to make it work ;) Thanks for your replay. Regards, Marcin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to run both Maven1 Maven2 in a single machine..
Hi, sure you can. M2 uses M2_HOME. -Tim Kiran Kodlady schrieb: Hey.. can we run both MAven1 maven2 in a single machine?? If yes, could u plz tell me how can we set MAVEN_HOME for both versions.. ANy suggestion is highly appreciated... -Kiran Kodlady - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to run both Maven1 Maven2 in a single machine..
I would suggest you set MAVEN_HOME point to maven1 and set M2_HOME point to your maven2. This is because maven2 does not need to know MAVEN_HOME. HTH, MK Tan - Original Message From: Kiran Kodlady [EMAIL PROTECTED] To: users@maven.apache.org Sent: Friday, June 22, 2007 2:31:17 PM Subject: how to run both Maven1 Maven2 in a single machine.. Hey.. can we run both MAven1 maven2 in a single machine?? If yes, could u plz tell me how can we set MAVEN_HOME for both versions.. ANy suggestion is highly appreciated... -Kiran Kodlady -- View this message in context: http://www.nabble.com/how-to-run-both-Maven1---Maven2-in-a-single-machine..-tf3963029s177.html#a11246914 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. http://tv.yahoo.com/collections/222
Re: how to run both Maven1 Maven2 in a single machine..
Hi, I am using maven1 and maven2 on the same machine without any problem. You do not have to set a MAVEN_HOME for maven2. Just add the binary-path to you PATH. I am very happy that the developers changed the names of every involved binaries. Regards, Torsten Kiran Kodlady schrieb: Hey.. can we run both MAven1 maven2 in a single machine?? If yes, could u plz tell me how can we set MAVEN_HOME for both versions.. ANy suggestion is highly appreciated... -Kiran Kodlady - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-scm-plugin sometimes fails to checkin file
I have the plugin configured to checkin a built ear file into CVS.The configuration is shown below : execution idcheckin-ear/id phasepost-integration-test/phase configuration connectionUrlscm:cvs:pserver:jeffm:[EMAIL PROTECTED]:/var/lib/cvsroot:Eportal/depl/eportal-releases/eportal/dev3/connectionUrl includes**/*.ear/includes messageMaven ear file commit/message workingDirectorytarget/checkout/workingDirectory /configuration goals goalcheckin/goal /goals /execution However , sometimes the checkin does not go through , even though there's no error message.I can see from browsing the repository that the commit didnt happen since the version of the ear file in CVS remains the same, as well as the last commit date.The output I get is : [INFO] [scm:checkin {execution: checkin-ear}] [DEBUG] cvsRoot: :pserver:[EMAIL PROTECTED]:2401/var/lib/cvsroot [DEBUG] passFile: D:\Documents and Settings\jeffm\.cvspass [DEBUG] cvsroot :pserver:[EMAIL PROTECTED]:2401/var/lib/cvsroot already exis t in D:\Documents and Settings\jeffm\.cvspass. SKIPPED. [INFO] Executing: cvs -z3 -f -q commit -R -F C:\DOCUME~1\jeffm\LOCALS~1\Temp\s cm-commit-message49260.txt [INFO] Working directory: D:\CONTINUUM-BUILDS\continuum\working-directory\86\epo rtal-functional-tests\target\checkout [DEBUG] Executing CVS command: commit -F C:\DOCUME~1\jeffm\LOCALS~1\Temp\scm-c ommit-message49260.txt Sometimes it works.What could be causing this? -- Don't take the name of root in vain. Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where to find maven site skins ?
Hello Where to find more maven site skins ? Regards, Jens
RE: Classpath in EAR's manifest?
Hallo Jörg, -Original Message- From: ext Jörg Schaible [mailto:[EMAIL PROTECTED] Can I turn that off somehow? I couldn't find an option in the documentation in http://maven.apache.org/plugins/maven-ear-plugin/ear-mojo.html None of my generated EARs has a manifest that contains a Class-Path entry. So it must be something within your configuration or you provide a manually generated one. You were right. Sorry for the fuss: plugin artifactIdmaven-ear-plugin/artifactId configuration ... archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration /plugin I think this explains it :( Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jelly question
Hi all I'm trying to use jelly inside a maven reactor. When I iterate through a project.xml I have the following component: dependency groupIdtools/groupId artifactIdartifact/artifactId versionSNAPSHOT/version properties classloaderroot/classloader artifact.origintraderoot/artifact.origin /properties /dependency dependency groupIdjaxb/groupId artifactIdjaxb-api/artifactId version1.5/version properties classloaderroot/classloader /properties /dependency When I go through the project.xml Iam trying to identify the dependency elements which have not got this subElement : artifact.origin but jelly does not seem to respond to this: j:forEach var=dep items=${multipoms.dependencies} j:choose trim=true j:when test=${(dep.properties != null) and (not empty(dep.properties))} j:forEach var=prop items=${dep.properties} j:set var=propArtifact value=${prop.artifact.origin}D/ echotesting2 ${propArtifact}/echo .. When i do that echo, even for the top element above (the one with group id tools and which has a artifact.origin) I get: testing2 D instead of testing2 traderootD How does one deal with a defined element with a . in it? Does one escape it as it seems that ${prop.artifact.origin} doesn't do the trick Thanks Jose
Re: Jelly question
A dot in jelly indicates a method call, you can't access an element name like that (best thing is usually to avoid using . and - in variable names). Try: j:set var=propArtifact value=${dep.getProperty('artifact.origin')}/ HTH, -Lukas Jose Correia wrote: Hi all I'm trying to use jelly inside a maven reactor. When I iterate through a project.xml I have the following component: dependency groupIdtools/groupId artifactIdartifact/artifactId versionSNAPSHOT/version properties classloaderroot/classloader artifact.origintraderoot/artifact.origin /properties /dependency dependency groupIdjaxb/groupId artifactIdjaxb-api/artifactId version1.5/version properties classloaderroot/classloader /properties /dependency When I go through the project.xml Iam trying to identify the dependency elements which have not got this subElement : artifact.origin but jelly does not seem to respond to this: j:forEach var=dep items=${multipoms.dependencies} j:choose trim=true j:when test=${(dep.properties != null) and (not empty(dep.properties))} j:forEach var=prop items=${dep.properties} j:set var=propArtifact value=${prop.artifact.origin}D/ echotesting2 ${propArtifact}/echo .. When i do that echo, even for the top element above (the one with group id tools and which has a artifact.origin) I get: testing2 D instead of testing2 traderootD How does one deal with a defined element with a . in it? Does one escape it as it seems that ${prop.artifact.origin} doesn't do the trick Thanks Jose - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jelly question
Thanks for the prompt reply Lukas, I had just came to that conclusion myself (after finding an example) and it worked nicely. Regards Jose -Original Message- From: Lukas Theussl [mailto:[EMAIL PROTECTED] Sent: 22 June 2007 01:43 PM To: Maven Users List Subject: Re: Jelly question A dot in jelly indicates a method call, you can't access an element name like that (best thing is usually to avoid using . and - in variable names). Try: j:set var=propArtifact value=${dep.getProperty('artifact.origin')}/ HTH, -Lukas Jose Correia wrote: Hi all I'm trying to use jelly inside a maven reactor. When I iterate through a project.xml I have the following component: dependency groupIdtools/groupId artifactIdartifact/artifactId versionSNAPSHOT/version properties classloaderroot/classloader artifact.origintraderoot/artifact.origin /properties /dependency dependency groupIdjaxb/groupId artifactIdjaxb-api/artifactId version1.5/version properties classloaderroot/classloader /properties /dependency When I go through the project.xml Iam trying to identify the dependency elements which have not got this subElement : artifact.origin but jelly does not seem to respond to this: j:forEach var=dep items=${multipoms.dependencies} j:choose trim=true j:when test=${(dep.properties != null) and (not empty(dep.properties))} j:forEach var=prop items=${dep.properties} j:set var=propArtifact value=${prop.artifact.origin}D/ echotesting2 ${propArtifact}/echo .. When i do that echo, even for the top element above (the one with group id tools and which has a artifact.origin) I get: testing2 D instead of testing2 traderootD How does one deal with a defined element with a . in it? Does one escape it as it seems that ${prop.artifact.origin} doesn't do the trick Thanks Jose - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Classpath in EAR's manifest?
[EMAIL PROTECTED] wrote on Friday, June 22, 2007 12:29 PM: Hallo Jörg, -Original Message- From: ext Jörg Schaible [mailto:[EMAIL PROTECTED] Can I turn that off somehow? I couldn't find an option in the documentation in http://maven.apache.org/plugins/maven-ear-plugin/ear-mojo.html None of my generated EARs has a manifest that contains a Class-Path entry. So it must be something within your configuration or you provide a manually generated one. You were right. Sorry for the fuss: plugin artifactIdmaven-ear-plugin/artifactId configuration ... archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration /plugin I think this explains it :( Definitely ;-) - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Surefire report failure.
Hi, for some unknown reason, Maven sometimes damages its files in your local repo. We had also sometimes that suddenly the compiler plugin was no longer available. In such a case simply remove the plugin from your local repo and build again. A proper version will then be installed again. - Jörg Ole-Martin Mørk wrote on Friday, June 22, 2007 2:08 PM: I am having the same problem. Just appeared today out of blue.. What has happened with the surefire plugins lately? It seems like people are deploying a lot of broken surefire artifacts to the central repository.. -olemartin 2007/6/15, Jon Strayer [EMAIL PROTECTED]: I have a main project with two subprojects. Both of the subprojects use the surefire report. The main project does not. I can run mvn:site on either of the subprojects and it works fine. But when I run on the main project it fails with this error message: [INFO] Error getting reports from the plugin ' org.apache.maven.plugins:maven-surefire-report-plugin': Unable to find the mojo 'org.apache.maven.plugins:maven-surefire-report-plugin:2.0:report' in the plugin 'org.apache.maven.plugins:maven-surefire-report-plugin' Component descriptor cannot be found in the component repository: org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-sur efire-report -plugin:2.0:report. Look at the component repository: org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-sur efire-report-plugin:2.0:report . When I search the mailing list for Mojoorg I get a lot of hits, but nobody seems to be paying attention to it. Is it a bad error message or is it a clue to my problem? -- Esse Quam Videre To Be, rather than to Seem - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Socket problem
Hi, i've early try to use continuum (1.0.3) with maven. After downloading and unzip continuum source, I try to run it with bin/win32/run.bat. The script terminated with [INFO] The application server has started. on console. But I can't access to the application (http://localhost:8080/continuum). On console output I can see many error and warning, i think most valuable are : | [INFO] Deploying application 'continuum'. | [INFO] Adding HTTP listener on *:8080 | 13:41:22.221 WARN!! Failed to start: [EMAIL PROTECTED]:8080 | Error while deploying application 'continuum-plexus-application-1.0.3 I've try to change application port in application.xml and close my firewall. But no effect... Anybody have an idea to help me? Thanks by advance. Fabrice. -- View this message in context: http://www.nabble.com/Socket-problem-tf3964280.html#a11250956 Sent from the Continuum - Users mailing list archive at Nabble.com.
Status of assembly plugin
Hi all, Can someone give me some info on the status of the maven-assembly-pulgin? I am still using 2.1 with all the drawbacks to my multi-project POM due to the bugs present on 2.2 and the fact that there was no properly released 2.2 version. Any one knows about any progress on that? I have not seen any announcements out there. Thanks in advance, J.A.F -- View this message in context: http://www.nabble.com/Status-of-assembly-plugin-tf3964301s177.html#a11251043 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Surefire report failure.
Thanks for the reply, but that didn't make any difference.. 2007/6/22, Jörg Schaible [EMAIL PROTECTED]: Hi, for some unknown reason, Maven sometimes damages its files in your local repo. We had also sometimes that suddenly the compiler plugin was no longer available. In such a case simply remove the plugin from your local repo and build again. A proper version will then be installed again. - Jörg Ole-Martin Mørk wrote on Friday, June 22, 2007 2:08 PM: I am having the same problem. Just appeared today out of blue.. What has happened with the surefire plugins lately? It seems like people are deploying a lot of broken surefire artifacts to the central repository.. -olemartin 2007/6/15, Jon Strayer [EMAIL PROTECTED]: I have a main project with two subprojects. Both of the subprojects use the surefire report. The main project does not. I can run mvn:site on either of the subprojects and it works fine. But when I run on the main project it fails with this error message: [INFO] Error getting reports from the plugin ' org.apache.maven.plugins:maven-surefire-report-plugin': Unable to find the mojo 'org.apache.maven.plugins:maven-surefire-report-plugin:2.0:report' in the plugin 'org.apache.maven.plugins:maven-surefire-report-plugin' Component descriptor cannot be found in the component repository: org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-sur efire-report -plugin:2.0:report. Look at the component repository: org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-sur efire-report-plugin:2.0:report . When I search the mailing list for Mojoorg I get a lot of hits, but nobody seems to be paying attention to it. Is it a bad error message or is it a clue to my problem? -- Esse Quam Videre To Be, rather than to Seem - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Ole-Martin Mørk.
Re: Question regarding profile activation
Hi, what version of maven are you using? There was a bug with default activation in maven 2.0 but that was fixed long ago in 2.0.1. -Tim Julien Stern schrieb: Hi list, It seems that a profile marked activeByDefault is never active... Is that a bug or have I missed something? I haved defined a profile in a POM that is active by default, e.g: profiles profile idsome-profile/id activation activeByDefaulttrue/activeByDefault /activation ... /profile /profiles mvn install does not take the profile into account mvn -Psome-profile install takes the profile into account Is there something else to do in order to activate a profile by default? Thanks, -- Julien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Surefire report failure.
I am having the same problem. Just appeared today out of blue.. What has happened with the surefire plugins lately? It seems like people are deploying a lot of broken surefire artifacts to the central repository.. -olemartin 2007/6/15, Jon Strayer [EMAIL PROTECTED]: I have a main project with two subprojects. Both of the subprojects use the surefire report. The main project does not. I can run mvn:site on either of the subprojects and it works fine. But when I run on the main project it fails with this error message: [INFO] Error getting reports from the plugin ' org.apache.maven.plugins:maven-surefire-report-plugin': Unable to find the mojo 'org.apache.maven.plugins:maven-surefire-report-plugin:2.0:report' in the plugin 'org.apache.maven.plugins:maven-surefire-report-plugin' Component descriptor cannot be found in the component repository: org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-surefire-report -plugin:2.0:report. Look at the component repository: org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-surefire-report-plugin:2.0:report . When I search the mailing list for Mojoorg I get a lot of hits, but nobody seems to be paying attention to it. Is it a bad error message or is it a clue to my problem? -- Esse Quam Videre To Be, rather than to Seem -- Regards, Ole-Martin Mørk.
Question regarding profile activation
Hi list, It seems that a profile marked activeByDefault is never active... Is that a bug or have I missed something? I haved defined a profile in a POM that is active by default, e.g: profiles profile idsome-profile/id activation activeByDefaulttrue/activeByDefault /activation ... /profile /profiles mvn install does not take the profile into account mvn -Psome-profile install takes the profile into account Is there something else to do in order to activate a profile by default? Thanks, -- Julien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question regarding profile activation
On Fri, Jun 22, 2007 at 02:25:42PM +0200, Tim Kettler wrote: Hi, what version of maven are you using? There was a bug with default activation in maven 2.0 but that was fixed long ago in 2.0.1. I'm using maven 2.0.7 And I have some more insight about the issue: if I have an OTHER profile that uses negatvie property based activation, my activeByDefault profile gets deactivated somehow. Here is a POM that seem to trigger the bug: profiles profile idprofile1/id activation activeByDefaulttrue/activeByDefault /activation /profile profile idprofile2/id activation property name!something/name /property /activation /profile /profiles Should I file a bug in JIRA or am I missing the obvious? -- Julien -Tim Julien Stern schrieb: Hi list, It seems that a profile marked activeByDefault is never active... Is that a bug or have I missed something? I haved defined a profile in a POM that is active by default, e.g: profiles profile idsome-profile/id activation activeByDefaulttrue/activeByDefault /activation ... /profile /profiles mvn install does not take the profile into account mvn -Psome-profile install takes the profile into account Is there something else to do in order to activate a profile by default? Thanks, -- Julien - 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]
Preconditions for testing
Hi, I have a maven-antrun-plugin that must execute before running the test suit to make sure that my database schema is in sync with the code. That works fine. However, I would like for this task to only execute when tests are actually run. That is if I set maven.test.skip=true I would prefer for the schema to not be upgraded. The reason being that I may be just working on the code and do not want to upgrade the schema until I am ready to others to see my changes (which means the code changes can be committed, as they at least compile). Is there any way to achieve this? I try to set the plugin to the test-compile phase, but it seem to execute even when the tests are not run. Any advise on what is the best way to get to this? Jose Alberto -- View this message in context: http://www.nabble.com/Preconditions-for-testing-tf3964476s177.html#a11251589 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-dependency-plugin filtering issue
Hi all! I need to filter files while unpack-dependencies goal is executed. For example: I want only *.class and *.xml files to be unpacked. How I can understand no default solution for this exist. Can you suggest any solution for this? Thank you! -- View this message in context: http://www.nabble.com/maven-dependency-plugin-filtering-issue-tf3964442s177.html#a11251493 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question regarding profile activation
Just tested with 2.0.7 and your pom snippet and all works as expected: With property 'something': [EMAIL PROTECTED]:~/Develop/testproject$ mvn help:active-profiles -Dsomething [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'help'. [INFO] [INFO] Building Unnamed - testgroup:testartifact:jar:0.1 [INFO]task-segment: [help:active-profiles] (aggregator-style) [INFO] [INFO] [help:active-profiles] [INFO] Active Profiles for Project 'testgroup:testartifact:jar:0.1': The following profiles are active: - profile1 (source: pom) [...] Without property 'something': [EMAIL PROTECTED]:~/Develop/testproject$ mvn help:active-profiles [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'help'. [INFO] [INFO] Building Unnamed - testgroup:testartifact:jar:0.1 [INFO]task-segment: [help:active-profiles] (aggregator-style) [INFO] [INFO] [help:active-profiles] [INFO] Active Profiles for Project 'testgroup:testartifact:jar:0.1': The following profiles are active: - profile2 (source: pom) [...] -Tim Julien Stern schrieb: On Fri, Jun 22, 2007 at 02:25:42PM +0200, Tim Kettler wrote: Hi, what version of maven are you using? There was a bug with default activation in maven 2.0 but that was fixed long ago in 2.0.1. I'm using maven 2.0.7 And I have some more insight about the issue: if I have an OTHER profile that uses negatvie property based activation, my activeByDefault profile gets deactivated somehow. Here is a POM that seem to trigger the bug: profiles profile idprofile1/id activation activeByDefaulttrue/activeByDefault /activation /profile profile idprofile2/id activation property name!something/name /property /activation /profile /profiles Should I file a bug in JIRA or am I missing the obvious? -- Julien -Tim Julien Stern schrieb: Hi list, It seems that a profile marked activeByDefault is never active... Is that a bug or have I missed something? I haved defined a profile in a POM that is active by default, e.g: profiles profile idsome-profile/id activation activeByDefaulttrue/activeByDefault /activation ... /profile /profiles mvn install does not take the profile into account mvn -Psome-profile install takes the profile into account Is there something else to do in order to activate a profile by default? Thanks, -- Julien - 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: Question regarding profile activation
That's the intended behaviour as far as I know. If you have something that is active all the time it should'nt be in a profile. -Tim Julien Stern schrieb: I saw in the Maven source code that the following behavior was taking place: a activeByDefault profile becomes inactive as soon as an other profile from the same POM gets activated. Is that a bug or a feature? If it is a bug, the patch is a one liner and I can file a JIRA issue. -- Julien On Fri, Jun 22, 2007 at 02:33:22PM +0200, Julien Stern wrote: On Fri, Jun 22, 2007 at 02:25:42PM +0200, Tim Kettler wrote: Hi, what version of maven are you using? There was a bug with default activation in maven 2.0 but that was fixed long ago in 2.0.1. I'm using maven 2.0.7 And I have some more insight about the issue: if I have an OTHER profile that uses negatvie property based activation, my activeByDefault profile gets deactivated somehow. Here is a POM that seem to trigger the bug: profiles profile idprofile1/id activation activeByDefaulttrue/activeByDefault /activation /profile profile idprofile2/id activation property name!something/name /property /activation /profile /profiles Should I file a bug in JIRA or am I missing the obvious? -- Julien -Tim Julien Stern schrieb: Hi list, It seems that a profile marked activeByDefault is never active... Is that a bug or have I missed something? I haved defined a profile in a POM that is active by default, e.g: profiles profile idsome-profile/id activation activeByDefaulttrue/activeByDefault /activation ... /profile /profiles mvn install does not take the profile into account mvn -Psome-profile install takes the profile into account Is there something else to do in order to activate a profile by default? Thanks, -- Julien - 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: Where to find maven site skins ?
On 6/22/07, Jens Hohl [EMAIL PROTECTED] wrote: Where to find more maven site skins ? There are a few from Maven in the central repository... http://repo1.maven.org/maven2/org/apache/maven/skins/ And there's one for java.net: https://maven-javanet-skin.dev.java.net/ It would be great to see more site skin contributions submitted for upload to the central repo and listed somewhere easy to find, perhaps on the wiki. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question regarding profile activation
I saw in the Maven source code that the following behavior was taking place: a activeByDefault profile becomes inactive as soon as an other profile from the same POM gets activated. Is that a bug or a feature? If it is a bug, the patch is a one liner and I can file a JIRA issue. -- Julien On Fri, Jun 22, 2007 at 02:33:22PM +0200, Julien Stern wrote: On Fri, Jun 22, 2007 at 02:25:42PM +0200, Tim Kettler wrote: Hi, what version of maven are you using? There was a bug with default activation in maven 2.0 but that was fixed long ago in 2.0.1. I'm using maven 2.0.7 And I have some more insight about the issue: if I have an OTHER profile that uses negatvie property based activation, my activeByDefault profile gets deactivated somehow. Here is a POM that seem to trigger the bug: profiles profile idprofile1/id activation activeByDefaulttrue/activeByDefault /activation /profile profile idprofile2/id activation property name!something/name /property /activation /profile /profiles Should I file a bug in JIRA or am I missing the obvious? -- Julien -Tim Julien Stern schrieb: Hi list, It seems that a profile marked activeByDefault is never active... Is that a bug or have I missed something? I haved defined a profile in a POM that is active by default, e.g: profiles profile idsome-profile/id activation activeByDefaulttrue/activeByDefault /activation ... /profile /profiles mvn install does not take the profile into account mvn -Psome-profile install takes the profile into account Is there something else to do in order to activate a profile by default? Thanks, -- Julien - 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: Preconditions for testing
Hi, Have you tried putting the plugin definition in a profile activated by the value of the 'maven.test.skip' property. -Tim Jose Alberto Fernandez schrieb: Hi, I have a maven-antrun-plugin that must execute before running the test suit to make sure that my database schema is in sync with the code. That works fine. However, I would like for this task to only execute when tests are actually run. That is if I set maven.test.skip=true I would prefer for the schema to not be upgraded. The reason being that I may be just working on the code and do not want to upgrade the schema until I am ready to others to see my changes (which means the code changes can be committed, as they at least compile). Is there any way to achieve this? I try to set the plugin to the test-compile phase, but it seem to execute even when the tests are not run. Any advise on what is the best way to get to this? Jose Alberto - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question regarding profile activation
On Fri, Jun 22, 2007 at 02:55:48PM +0200, Tim Kettler wrote: That's the intended behaviour as far as I know. If you have something that is active all the time it should'nt be in a profile. All right, thanks for the explanation. -- Julien -Tim Julien Stern schrieb: I saw in the Maven source code that the following behavior was taking place: a activeByDefault profile becomes inactive as soon as an other profile from the same POM gets activated. Is that a bug or a feature? If it is a bug, the patch is a one liner and I can file a JIRA issue. -- Julien On Fri, Jun 22, 2007 at 02:33:22PM +0200, Julien Stern wrote: On Fri, Jun 22, 2007 at 02:25:42PM +0200, Tim Kettler wrote: Hi, what version of maven are you using? There was a bug with default activation in maven 2.0 but that was fixed long ago in 2.0.1. I'm using maven 2.0.7 And I have some more insight about the issue: if I have an OTHER profile that uses negatvie property based activation, my activeByDefault profile gets deactivated somehow. Here is a POM that seem to trigger the bug: profiles profile idprofile1/id activation activeByDefaulttrue/activeByDefault /activation /profile profile idprofile2/id activation property name!something/name /property /activation /profile /profiles Should I file a bug in JIRA or am I missing the obvious? -- Julien -Tim Julien Stern schrieb: Hi list, It seems that a profile marked activeByDefault is never active... Is that a bug or have I missed something? I haved defined a profile in a POM that is active by default, e.g: profiles profile idsome-profile/id activation activeByDefaulttrue/activeByDefault /activation ... /profile /profiles mvn install does not take the profile into account mvn -Psome-profile install takes the profile into account Is there something else to do in order to activate a profile by default? Thanks, -- Julien - 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: War directory structure
2007/6/22, Choudhary, Jay [EMAIL PROTECTED]: Dear All I am new to Maven user community, could any one tell me that what should be the directory structure for WAR as per Maven Process Ah... RTFM (F is for Fabulous :-) ): http://maven.apache.org/plugins/maven-war-plugin/usage.html Antonio
[ANN] nbm-maven-plugin 2.5 release
hello, I'd like to announce release 2.5 of the nbm-maven-plugin for Maven 2. it's a plugin to create netbeans modules and generally helps with netbeans platform based development. the major change since 2.4 is simplification of Netbeans runtime dependencies that are no longer duplicated in a module descriptor, but are taken directly from the pom file. More details in http://mojo.codehaus.org/nbm-maven-plugin/2425upgrade.html Regards Milos Kleint - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question regarding profile activation
Yep. Thierry Lach schrieb: So Active by default actually means Active unless something else is active. Right? On 6/22/07, Julien Stern [EMAIL PROTECTED] wrote: On Fri, Jun 22, 2007 at 02:55:48PM +0200, Tim Kettler wrote: That's the intended behaviour as far as I know. If you have something that is active all the time it should'nt be in a profile. All right, thanks for the explanation. -- Julien -Tim Julien Stern schrieb: I saw in the Maven source code that the following behavior was taking place: a activeByDefault profile becomes inactive as soon as an other profile from the same POM gets activated. Is that a bug or a feature? If it is a bug, the patch is a one liner and I can file a JIRA issue. -- Julien On Fri, Jun 22, 2007 at 02:33:22PM +0200, Julien Stern wrote: On Fri, Jun 22, 2007 at 02:25:42PM +0200, Tim Kettler wrote: Hi, what version of maven are you using? There was a bug with default activation in maven 2.0 but that was fixed long ago in 2.0.1. I'm using maven 2.0.7 And I have some more insight about the issue: if I have an OTHER profile that uses negatvie property based activation, my activeByDefault profile gets deactivated somehow. Here is a POM that seem to trigger the bug: profiles profile idprofile1/id activation activeByDefaulttrue/activeByDefault /activation /profile profile idprofile2/id activation property name!something/name /property /activation /profile /profiles Should I file a bug in JIRA or am I missing the obvious? -- Julien -Tim Julien Stern schrieb: Hi list, It seems that a profile marked activeByDefault is never active... Is that a bug or have I missed something? I haved defined a profile in a POM that is active by default, e.g: profiles profile idsome-profile/id activation activeByDefaulttrue/activeByDefault /activation ... /profile /profiles mvn install does not take the profile into account mvn -Psome-profile install takes the profile into account Is there something else to do in order to activate a profile by default? Thanks, -- Julien - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: War directory structure
To add to that: the two free books [1] are a good starting point to get familiar with maven. The 'Getting Started Guide' [2] on the maven homepage walks you through the basics too. -Tim [1] http://maven.apache.org/articles.html [2] http://maven.apache.org/guides/getting-started/index.html Antonio Petrelli schrieb: 2007/6/22, Choudhary, Jay [EMAIL PROTECTED]: Dear All I am new to Maven user community, could any one tell me that what should be the directory structure for WAR as per Maven Process Ah... RTFM (F is for Fabulous :-) ): http://maven.apache.org/plugins/maven-war-plugin/usage.html Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question regarding profile activation
So Active by default actually means Active unless something else is active. Right? On 6/22/07, Julien Stern [EMAIL PROTECTED] wrote: On Fri, Jun 22, 2007 at 02:55:48PM +0200, Tim Kettler wrote: That's the intended behaviour as far as I know. If you have something that is active all the time it should'nt be in a profile. All right, thanks for the explanation. -- Julien -Tim Julien Stern schrieb: I saw in the Maven source code that the following behavior was taking place: a activeByDefault profile becomes inactive as soon as an other profile from the same POM gets activated. Is that a bug or a feature? If it is a bug, the patch is a one liner and I can file a JIRA issue. -- Julien On Fri, Jun 22, 2007 at 02:33:22PM +0200, Julien Stern wrote: On Fri, Jun 22, 2007 at 02:25:42PM +0200, Tim Kettler wrote: Hi, what version of maven are you using? There was a bug with default activation in maven 2.0 but that was fixed long ago in 2.0.1. I'm using maven 2.0.7 And I have some more insight about the issue: if I have an OTHER profile that uses negatvie property based activation, my activeByDefault profile gets deactivated somehow. Here is a POM that seem to trigger the bug: profiles profile idprofile1/id activation activeByDefaulttrue/activeByDefault /activation /profile profile idprofile2/id activation property name!something/name /property /activation /profile /profiles Should I file a bug in JIRA or am I missing the obvious? -- Julien -Tim Julien Stern schrieb: Hi list, It seems that a profile marked activeByDefault is never active... Is that a bug or have I missed something? I haved defined a profile in a POM that is active by default, e.g: profiles profile idsome-profile/id activation activeByDefaulttrue/activeByDefault /activation ... /profile /profiles mvn install does not take the profile into account mvn -Psome-profile install takes the profile into account Is there something else to do in order to activate a profile by default? Thanks, -- Julien - 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]
War directory structure
Dear All I am new to Maven user community, could any one tell me that what should be the directory structure for WAR as per Maven Process Regards -Jay Deep Choudhary - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] nbm-maven-plugin 2.5 release
On 6/22/07, Milos Kleint [EMAIL PROTECTED] wrote: hello, I'd like to announce release 2.5 of the nbm-maven-plugin for Maven 2. it's a plugin to create netbeans modules and generally helps with netbeans platform based development. the major change since 2.4 is simplification of Netbeans runtime dependencies that are no longer duplicated in a module descriptor, but are taken directly from the pom file. More details in http://mojo.codehaus.org/nbm-maven-plugin/2425upgrade.html Hi Milos, That's unbelievable! I'd just started working with the plugin developing a Geronimo NetBeans plugin and you've announced some improvements of its. Awesome. What a coincidence! Or, is it not? ;-) Going to update it right away. Jacek -- Jacek Laskowski http://www.JacekLaskowski.pl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem storing maven project into subversion repository
I’m writting here because i dont understand very well maven yet. I want do something simple: deploy a maven proyect into an Subversion repository. My repository is accessible on http:/localhost:80/svn/prova/repo If I define an http: url in repository tags , I have an 409 error deploying. If I define an file:// url ,then it seems that the proyect is deployed, but I can’t access to the deployed files with svn co or in the browser. The svn repository is in c:/svn/prova/repo This is the POM of a java proyect called eso1: ?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 groupIdeso1/groupId artifactIdeso1/artifactId version0.0.1/version scm connectionscm:svn:http://localhost:80/svn/prova/repo/connection developerConnectionscm:svn:http//localhost:80/svn/prova/repo/developerConnection tagHEAD/tag urlhttp://localhost:80/svn/prova/repo/url /scm build extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-ssh-external/artifactId version1.0-alpha-5/version /extension /extensions /build distributionManagement repository idprova-repository/id nameMyFirstRepository/name urlscp://localhost/svn/prova/repo/url /repository /distributionManagement dependencies dependency groupIdorg.apache.maven.scm/groupId artifactIdmaven-scm-provider-svn/artifactId version1.0-alpha-4/version /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.4/version scopetest/scope /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.0/version /dependency /dependencies /project Have you got any idea to help me? A lot of thanks to spend your time reading this letter Javier Fernández -- View this message in context: http://www.nabble.com/Problem-storing-maven-project-into-subversion-repository-tf3964790s177.html#a11252606 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Socket problem
What do you have behing Error while deploying application 'continuum-plexus-application-1.0.3? What is your OS? If it's windows, what is the installation directory? Emmanuel fabchap a écrit : Hi, i've early try to use continuum (1.0.3) with maven. After downloading and unzip continuum source, I try to run it with bin/win32/run.bat. The script terminated with [INFO] The application server has started. on console. But I can't access to the application (http://localhost:8080/continuum). On console output I can see many error and warning, i think most valuable are : | [INFO] Deploying application 'continuum'. | [INFO] Adding HTTP listener on *:8080 | 13:41:22.221 WARN!! Failed to start: [EMAIL PROTECTED]:8080 | Error while deploying application 'continuum-plexus-application-1.0.3 I've try to change application port in application.xml and close my firewall. But no effect... Anybody have an idea to help me? Thanks by advance. Fabrice.
Re: Socket problem
I'm working on windows XP pro. My installation directory are D:\fcs\test-maven\continuum1.0.3 Exact : | [INFO] Adding HTTP listener on *:8080 | 15:54:30.440 WARN!! Failed to start: [EMAIL PROTECTED]:8080 | Error while deploying application 'continuum-plexus-application-1.0.3.jar'. | org.codehaus.plexus.application.ApplicationServerException: Could not deploy the JAR | at org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.deployJar (DefaultApplicationDeployer.java:216) | at org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.deploy(DefaultApplicationDeployer.java:136) Emmanuel Venisse wrote: What do you have behing Error while deploying application 'continuum-plexus-application-1.0.3? What is your OS? If it's windows, what is the installation directory? Emmanuel fabchap a écrit : Hi, i've early try to use continuum (1.0.3) with maven. After downloading and unzip continuum source, I try to run it with bin/win32/run.bat. The script terminated with [INFO] The application server has started. on console. But I can't access to the application (http://localhost:8080/continuum). On console output I can see many error and warning, i think most valuable are : | [INFO] Deploying application 'continuum'. | [INFO] Adding HTTP listener on *:8080 | 13:41:22.221 WARN!! Failed to start: [EMAIL PROTECTED]:8080 | Error while deploying application 'continuum-plexus-application-1.0.3 I've try to change application port in application.xml and close my firewall. But no effect... Anybody have an idea to help me? Thanks by advance. Fabrice. -- View this message in context: http://www.nabble.com/Socket-problem-tf3964280.html#a11252808 Sent from the Continuum - Users mailing list archive at Nabble.com.
Re: Preconditions for testing
Thanks Tim, that worked well. Another question, is there a way to specify an OR condition for activation. Currently I have: activation property name!maven.test.skip/name /property /activation but I would like to say: activation or property name!maven.test.skip/name /property property namemaven.test.skip/name valuefalse/value /property /or /activation Also a not operator would do: activation not property namemaven.test.skip/name valuetrue/value /property /not /activation That would make the profile more robust. Any way to express anyone of the above? The docs are quite vague. Tim Kettler wrote: Hi, Have you tried putting the plugin definition in a profile activated by the value of the 'maven.test.skip' property. -Tim Jose Alberto Fernandez schrieb: Hi, I have a maven-antrun-plugin that must execute before running the test suit to make sure that my database schema is in sync with the code. That works fine. However, I would like for this task to only execute when tests are actually run. That is if I set maven.test.skip=true I would prefer for the schema to not be upgraded. The reason being that I may be just working on the code and do not want to upgrade the schema until I am ready to others to see my changes (which means the code changes can be committed, as they at least compile). Is there any way to achieve this? I try to set the plugin to the test-compile phase, but it seem to execute even when the tests are not run. Any advise on what is the best way to get to this? Jose Alberto - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Preconditions-for-testing-tf3964476s177.html#a11253497 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to expand variables in repositories pom.xml
Hi! in my pom.xml there are some variables (${variable}) that come from a profile. These variables should be expanded if the pom.xml comes into a repository (locale or remote). While reading the bug http://jira.codehaus.org/browse/MINSTALL-15 I understand why it is good that the repository pom has no variables. But HOW do I get such a expanded repository pom? Any ideas? greetings phimu -- View this message in context: http://www.nabble.com/How-to-expand-variables-in-repositories-pom.xml-tf3965068s177.html#a11253462 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Status of assembly plugin
We need to work on it to release a 2.2-beta-2 with fixes for the most annoying issues. I guess nobody in the core development team has time right now. If you provide patches, I'll review them. Regards, Stéphane On 6/22/07, Jose Alberto Fernandez [EMAIL PROTECTED] wrote: Hi all, Can someone give me some info on the status of the maven-assembly-pulgin? I am still using 2.1 with all the drawbacks to my multi-project POM due to the bugs present on 2.2 and the fact that there was no properly released 2.2 version. Any one knows about any progress on that? I have not seen any announcements out there. Thanks in advance, J.A.F -- View this message in context: http://www.nabble.com/Status-of-assembly-plugin-tf3964301s177.html#a11251043 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Preconditions for testing
Yes, to have boolean operations for profile activation constraints would be nice. However, would'nt in your case this do what you want: activation property namemaven.test.skip/name value!true/value /property /activation -Tim Jose Alberto Fernandez schrieb: Thanks Tim, that worked well. Another question, is there a way to specify an OR condition for activation. Currently I have: activation property name!maven.test.skip/name /property /activation but I would like to say: activation or property name!maven.test.skip/name /property property namemaven.test.skip/name valuefalse/value /property /or /activation Also a not operator would do: activation not property namemaven.test.skip/name valuetrue/value /property /not /activation That would make the profile more robust. Any way to express anyone of the above? The docs are quite vague. Tim Kettler wrote: Hi, Have you tried putting the plugin definition in a profile activated by the value of the 'maven.test.skip' property. -Tim Jose Alberto Fernandez schrieb: Hi, I have a maven-antrun-plugin that must execute before running the test suit to make sure that my database schema is in sync with the code. That works fine. However, I would like for this task to only execute when tests are actually run. That is if I set maven.test.skip=true I would prefer for the schema to not be upgraded. The reason being that I may be just working on the code and do not want to upgrade the schema until I am ready to others to see my changes (which means the code changes can be committed, as they at least compile). Is there any way to achieve this? I try to set the plugin to the test-compile phase, but it seem to execute even when the tests are not run. Any advise on what is the best way to get to this? Jose Alberto - 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: Install Deploy an artifact generated with Assembly Plugin
Tim, That was exactly what I was looking for. Thanks! John Tim Kettler wrote: John, you can attach the jar file with the attach:artifact goal from build-helper-maven-plugin [1] over at the mojo project. -Tim [1] http://mojo.codehaus.org/build-helper-maven-plugin/ jp4 schrieb: I use the assembly plugin to create an executable jar file that contains all of it's dependencies. The file name is foo-1.0-SNAPSHOT-jar-with-dependencies.jar. I would like to be able to install this artifact locally and/or deploy to a remote repository. How can I do this? I have included the assembly plugin configuration below if that helps. plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-assembly-plugin/artifactId executions execution phasepackage/phase configuration descriptors descriptorjar-with-dependencies.xml/descriptor /descriptors workDirectorytarget/assembly/work/workDirectory archive manifestFilesrc/main/resources/META-INF/MANIFEST.MF/manifestFile /archive /configuration goalsgoalassembly/goal/goals /execution /executions /plugin /plugins Thanks, jp4 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Install---Deploy-an-artifact-generated-with-Assembly-Plugin-tf3960408s177.html#a11254277 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WSDL2Code Axis2 javax/wsdl/WSDLException NoClassDefFoundError
I'm trying to use axis2-wsdl2code-maven-plugin with wsdl2code goal. However I'm getting inconsistencies with class versions, can anyone help? Has anyone got a working version that has the correct dependencies required to get plugin to work? . Downloading: http://repo1.maven.org/maven2/woodstox/wstx-asl/3.0.1/wstx-asl-3.0.1.pom [INFO] [axis2-wsdl2code:wsdl2code {execution: default}] [INFO] [ERROR] FATAL ERROR [INFO] [INFO] javax/wsdl/WSDLException [INFO] [INFO] Trace java.lang.NoClassDefFoundError: javax/wsdl/WSDLException at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo.java:396) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) my pom.xml dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.1/version scopeprovided/scope /dependency dependency groupIdcommons-discovery/groupId artifactIdcommons-discovery/artifactId version0.4/version /dependency dependency groupIdorg.apache.axis2/groupId artifactIdaxis2-kernel/artifactId version1.2/version scopecompile/scope exclusions exclusion groupIdjunit/groupId artifactIdjunit/artifactId /exclusion /exclusions /dependency dependency groupIdwsdl4j/groupId artifactIdwsdl4j/artifactId version1.6.2/version /dependency /dependencies build plugins plugin !-- see http://ws.apache.org/axis2/tools/1_2/maven-plugins/maven-wsdl2code-plugin.html -- groupIdorg.apache.axis2.maven2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId configuration packageNamecom.au.marj.wsdl.evant.dprj.intf/packageName generateTestcasetrue/generateTestcase wsdlFilesrc/main/resources/WebInterface.wsdl/wsdlFile /configuration executions execution goals goalwsdl2code/goal /goals /execution /executions /plugin /plugins /build javax/wsdl/WSDLException seems to reside in wsdl4j-1.6.2.jar however, have tried many versions of this jar with no luck yet. I have tried many versions of wsdl4j - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using javadocDirectory with maven-javadoc-plugin
On Thu, 2007-06-21 at 23:22 +0100, Adam Hardy wrote: I couldn't get it to work. I am glad it doesn't affect you, but I found nothing to explain why. BTW I am on linux too. I filed the bug http://jira.codehaus.org/browse/MJAVADOC-129 with a testcase. I tried your test case, but I get a stack trace from javadoc after a few error messages (this is with java version 1.5.0_11): java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl at com.sun.tools.javadoc.AnnotationDescImpl.annotationType(AnnotationDescImpl.java:46) at com.sun.tools.doclets.internal.toolkit.util.Util.isDeprecated(Util.java:804) ... When I remove the test directory src/test/java from the sourcepath it finishes without error but the package.html file is not picked up. So far that's consistent with your observations. If I remove the sourcepath completely, I get the package.html but not the image in doc-files. The doc-files directory does show up in the generated documentation if it is moved to the root (i.e. src/main/javadoc/doc-files). Seems, there are quite a few bugs at work ... - Henry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can the checkstyle plugin be configured to fail the build?
Here's two best practice approaches generally suggested to solve this problem on this list: 1. Put the checkstyle.xml file in a location that can be accessed using HTTP. This may be a particular file on a Webserver or just reference a file in a Subversion repository. 2. Create a new Maven package to contain these kinds of configuration files etc across your organization/projects. Package the checkstyle.xml file in a Jar, deploy it to your Maven repo, and then add a dependency to this new config jar to the checkstyle plugin declaration. Wayne On 6/21/07, nitinaggarwal [EMAIL PROTECTED] wrote: Hi I am facing a similiar issue in my project. But additionally i want the a checkstyle file FC-CheckStyle.xml customized to my project be invoked in order to find out if there are checkstyle errors . how do i do that? Additionally can some one tell me how can i refer to this file as this is located in my root directory and i want to invoke the file in a directory fc to be more clear i will provide a brief about my project. FC-4.0 Source--application--fc(my pom is here) --er (and here) --portal -- components--pom -- pom Can some one suggest me how to perform this checkstyle validation. would you suggest me the validation to be at the top level or at every level as i am having a multli project build. but the issue with this approach is that all the developers would have to build the entire project rather than a sub project for finding out check style errors. any comments how we can extend something from the top level pom. Nitin [EMAIL PROTECTED] Guillaume Boucherie wrote: try something like this. build plugins plugin groupIdorg.apache.maven.pluginsgroupId artifactIdmaven-checkstyle-plugin/artifactId executions execution goals goalcheck/goal /goals /execution /executions /plugin /plugins /build by default the check goal is link to verify phase CletteBou 2007/6/21, Andrew Moores [EMAIL PROTECTED]: Hello I want to make my build fail if there are any checkstyle errors in my code. I have added the following to my pom: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId configuration failOnViolationtrue/failOnViolation /configuration /plugin /plugins /build When I execute mvn checkstyle:check my build fails when I have a checkstyle error. When I execute mvn install the build does not fail. Reading the plugin pages I expected my build to fail for the intall goal as well, what else do I need to add to the POM to make the build fail? I am running Maven 2.0.5. Thanks Andrew -- View this message in context: http://www.nabble.com/How-can-the-checkstyle-plugin-be-configured-to-fail-the-build--tf3959401s177.html#a11245727 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: site:deploy works deploy:deploy hangs
Try just : deploy (not deploy:deploy) -Message d'origine- De : Aaron Morand [mailto:[EMAIL PROTECTED] Envoyé : vendredi 22 juin 2007 18:32 À : Maven Users List Objet : Re: site:deploy works deploy:deploy hangs Hi all, I'm was getting the same problem. Nathan, did you get a fix for this problem? I found that the CI I'm using (Bamboo) wasn't displaying that I was actually being prompted for a password. I didn't discover this until I tried running the it directly from the commandline. I had previously setup a private key for deploying to my repository, but for some reason when I try and specify username/password and/or privateKey/passphrase under server in my settings.xml file maven still wants to prompt me for a password to deploy. When I removed all references to username/password and/or privateKey/passphrase it works fine. I left id, filePermissions and directoryPermissions there so I can make use of them and everything still works fine. I hope someone finds this useful. Cheers, Aaron Nathan Coast wrote: Hi all, trying to understand what I might be doing wrong, AFAICT the site and repo settings are the same. I have also checked the file permissions on /spool/grimis/synergy/development/... site:deploy works but deploy:deploy (executed as part of release:perform) hangs. [INFO] [site:deploy] scp://longmdappu4.uk.db.com/spool/grimis/synergy/development/projects/ GMRiskCrypto - Session: Opened Executing command: mkdir -p /spool/grimis/synergy/development/projects/GMRiskCrypto/. Executing command: mkdir -p /spool/grimis/synergy/development/projects/GMRiskCrypto/. ... ... executing as part of release:perform [INFO] [deploy:deploy] altDeploymentRepository = null *hangs here* Configs are the same in pom.xml and settings.xml pom distributionManagement site idgmris.dev.docs/id urlscp://longmdappu4.uk.db.com/spool/grimis/synergy/development/projects/${pom.artifactId}/url /site repository idgrimis.dev.repo/id urlscp://longmdappu4.uk.db.com/spool/grimis/synergy/development/maven/url /repository /distributionManagement settings server usernameX/username passwordX/password idgmris.dev.docs/id /server server usernameX/username passwordX/password idgmris.dev.repo/id /server --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - 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] This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. ** Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après le message ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: site:deploy works deploy:deploy hangs
Hi all, I'm was getting the same problem. Nathan, did you get a fix for this problem? I found that the CI I'm using (Bamboo) wasn't displaying that I was actually being prompted for a password. I didn't discover this until I tried running the it directly from the commandline. I had previously setup a private key for deploying to my repository, but for some reason when I try and specify username/password and/or privateKey/passphrase under server in my settings.xml file maven still wants to prompt me for a password to deploy. When I removed all references to username/password and/or privateKey/passphrase it works fine. I left id, filePermissions and directoryPermissions there so I can make use of them and everything still works fine. I hope someone finds this useful. Cheers, Aaron Nathan Coast wrote: Hi all, trying to understand what I might be doing wrong, AFAICT the site and repo settings are the same. I have also checked the file permissions on /spool/grimis/synergy/development/... site:deploy works but deploy:deploy (executed as part of release:perform) hangs. [INFO] [site:deploy] scp://longmdappu4.uk.db.com/spool/grimis/synergy/development/projects/GMRiskCrypto - Session: Opened Executing command: mkdir -p /spool/grimis/synergy/development/projects/GMRiskCrypto/. Executing command: mkdir -p /spool/grimis/synergy/development/projects/GMRiskCrypto/. ... ... executing as part of release:perform [INFO] [deploy:deploy] altDeploymentRepository = null *hangs here* Configs are the same in pom.xml and settings.xml pom distributionManagement site idgmris.dev.docs/id urlscp://longmdappu4.uk.db.com/spool/grimis/synergy/development/projects/${pom.artifactId}/url /site repository idgrimis.dev.repo/id urlscp://longmdappu4.uk.db.com/spool/grimis/synergy/development/maven/url /repository /distributionManagement settings server usernameX/username passwordX/password idgmris.dev.docs/id /server server usernameX/username passwordX/password idgmris.dev.repo/id /server --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - 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]
Create 2 JAR of almost same project
Hi all, I need to create 2 JAR files of almost same project, but is there a little difference between 3 source files. My initial idea is create 2 project.xml and call each project at maven.xml changing this 3 files when I'll call the second project to create the second JAR file...But I guess that this is not the best approach. Another idea is separate this subproject in 2 subprojects, one with all source code, and another one with just 3 different files, but I really don't know who can I set my project.xml to get the source files from another project and the 3 files of current project. Thanks, Tales - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Building offline
I'm having trouble getting Maven to build a project in offline mode. Is there a step-by-step procedure document for this? Here's what I'd like to do: - Set up a local file based repository with all the artifacts needed to build - Run Maven in offline mode, configured to use just a single, local repository Thanks -- View this message in context: http://www.nabble.com/Building-offline-tf3966053s177.html#a11256959 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I use resource filtering with the Eclipse plugin but, need filtered directories excluded.
I am using the Eclipse plugin with filtered resources, but I am running into I think will be fixed by MECLIPSE-165 [1] First, resource are copied from a template directory structure, ${basedir}/src/work-template, to the main test resource directory tree, ${basedir}/src/work, with filtering enabled. Then the resources are copied to the build directory. This way I can run tests that depend on resource inside of Eclipse. Below is an excerpt from pom.xml. Please note that I am not using the default resource directories because the project started before Maven 2. build sourceDirectorysrc/java/sourceDirectory testSourceDirectorysrc/test/testSourceDirectory testResources testResource !-- Setup resources by applying properties to templates and leaving the result in the source directory tree -- targetPath../../src/work/targetPath filteringtrue/filtering directorysrc/work-template/directory includes include**/*.properties/include /includes /testResource testResource directorysrc/work/directory filteringfalse/filtering includes include**/*.properties/include include**/*.xml/include /includes /testResource /testResources ... /build The only problem is the goal eclipse:eclipse includes src/work and src/work-template with same output directory, src/work. This prevent Eclipse from build the workspace. As a workaround, I delete the classpath entry for the path src/work-template. The fix purposed in MECLIPSE-165 allows the exclusion of filtered directories. Paul Spencer [1] http://jira.codehaus.org/browse/MECLIPSE-165 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building offline
On 6/22/07, kjohnston [EMAIL PROTECTED] wrote: I'm having trouble getting Maven to build a project in offline mode. Is there a step-by-step procedure document for this? Here's what I'd like to do: - Set up a local file based repository with all the artifacts needed to build - Run Maven in offline mode, configured to use just a single, local repository Try 'mvn dependency:go-offline' to retrieve (most of) what you need. I'm told it's not quite perfect yet, so please report any issues you discover: http://jira.codehaus.org/browse/MDEP Or pick a repository proxy, run it locally, and do all your builds through that so it gets filled up with what you need. When you're offline, it won't proxy, but all the existing artifacts will be there for you to use. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Build Schedule
Jan, Sweet. Thanks. That works! Gabriel Misura 20111 120th Ave NE, Cube 2337D Bothell, WA MSN: [EMAIL PROTECTED] Office: 425-288-6217 -Original Message- From: Jan Lisse [mailto:[EMAIL PROTECTED] Sent: Friday, June 22, 2007 12:36 AM To: [EMAIL PROTECTED] Subject: Re: Build Schedule Hi Gabriel, try this: Second: 0 Minute: 0 Hour: 9 Day of Month: ? Month: * Day of Week: MON-FRI Year: if you specify a range of days for Day-of-week like MON-FRI you can't use * for Day of month because it matches all days. Use ? for no specific value. See http://www.opensymphony.com/quartz/api/org/quartz/CronExpression.html regards, Jan Misura, Gabriel schrieb: In Continuum 1.1-alpha-1 I tried to setup a schedule to run every weekday at 9am. I clicked the Syntax link provided in the Edit Schedule Page: http://www.opensymphony.com/quartz/api/org/quartz/CronTrigger.html So I tried to create the Cron Expression: Second: 0 Minute: 0 Hour: 9 Day of Month: * Month: * Day of Week: MON-FRI Year: When I try to save it, I get: Invalid cron expression value(s) I also tried Day of Week: 1-5 Same error: Invalid cron expression value(s) And, Day of Week: 1 Same error And, Day of Week: 1,2,3,4,5 Same error What's the REAL syntax for that? Thanks Gabriel Misura 20111 120th Ave NE, Cube 2337D Bothell, WA MSN: [EMAIL PROTECTED] Office: 425-288-6217 -- Jan Lisse FE neofonie GmbH Robert-Koch-Platz 4 10115 Berlin fon: +49.30 24627 533 fax: +49.30 24627 120 Handelsregister Berlin-Charlottenburg: HRB 67460 Geschaeftsfuehrung Helmut Hoffer von Ankershoffen Nurhan Yildirim
Re: Socket problem
It isn't easy to analyze it without the complete stacktrace. Emmanuel fabchap a écrit : I'm working on windows XP pro. My installation directory are D:\fcs\test-maven\continuum1.0.3 Exact : | [INFO] Adding HTTP listener on *:8080 | 15:54:30.440 WARN!! Failed to start: [EMAIL PROTECTED]:8080 | Error while deploying application 'continuum-plexus-application-1.0.3.jar'. | org.codehaus.plexus.application.ApplicationServerException: Could not deploy the JAR | at org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.deployJar (DefaultApplicationDeployer.java:216) | at org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.deploy(DefaultApplicationDeployer.java:136) Do you know this error? Emmanuel Venisse wrote: What do you have behing Error while deploying application 'continuum-plexus-application-1.0.3? What is your OS? If it's windows, what is the installation directory? Emmanuel fabchap a écrit : Hi, i've early try to use continuum (1.0.3) with maven. After downloading and unzip continuum source, I try to run it with bin/win32/run.bat. The script terminated with [INFO] The application server has started. on console. But I can't access to the application (http://localhost:8080/continuum). On console output I can see many error and warning, i think most valuable are : | [INFO] Deploying application 'continuum'. | [INFO] Adding HTTP listener on *:8080 | 13:41:22.221 WARN!! Failed to start: [EMAIL PROTECTED]:8080 | Error while deploying application 'continuum-plexus-application-1.0.3 I've try to change application port in application.xml and close my firewall. But no effect... Anybody have an idea to help me? Thanks by advance. Fabrice.
Issue with dependencies of taglibs jars
Hi there! in my oroject, i have a lot of dependencies... well, one thing i did was declare all dependencies correctly to my project. but something still missing, because when i type mvn jdev:jdev , maven builds to me a file to edit the project in jdeveloper, but when I try compiling the project from jdeveloper, guess what!, it says to me that i don't have my taglibs jars declared in the project.. such a noiseful trouble in here. what do I have to do to declare correctly my taglibs jars in my pom.xml? I tried this: dependency groupIdoracle.adf/groupId artifactIdadf-faces-impl/artifactId version10.1.3.0.4/version scopecompile/scope /dependency whel, what's wrong? -- View this message in context: http://www.nabble.com/Issue-with-dependencies-of-taglibs-jars-tf3966416s177.html#a11258195 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building offline
That looks like what I want. However, when I run that goal - it fails because it does not find my inter-module dependencies, which have not been built yet. Any suggestions? Wendy Smoak-3 wrote: On 6/22/07, kjohnston [EMAIL PROTECTED] wrote: I'm having trouble getting Maven to build a project in offline mode. Is there a step-by-step procedure document for this? Here's what I'd like to do: - Set up a local file based repository with all the artifacts needed to build - Run Maven in offline mode, configured to use just a single, local repository Try 'mvn dependency:go-offline' to retrieve (most of) what you need. I'm told it's not quite perfect yet, so please report any issues you discover: http://jira.codehaus.org/browse/MDEP Or pick a repository proxy, run it locally, and do all your builds through that so it gets filled up with what you need. When you're offline, it won't proxy, but all the existing artifacts will be there for you to use. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Building-offline-tf3966053s177.html#a11258897 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building offline
hi kjohnston: On Fri, 22 Jun 2007 10:45:25 -0700 (PDT), kjohnston wrote I'm having trouble getting Maven to build a project in offline mode. Is there a step-by-step procedure document for this? Here's what I'd like to do: - Set up a local file based repository with all the artifacts needed to build - Run Maven in offline mode, configured to use just a single, local repository Are you try this? *first option: mvn --help usage: mvn [options] [goal(s)] [phase(s)] Options: -o,--offline Work offline * second option: Config your setting.xml at $HOME/.m2/ or $MAVEN_DIR/bin/conf offlinetrue/offline regards, Thanks -- View this message in context: http://www.nabble.com/Building-offline- tf3966053s177.html#a11256959 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Manuel J. Recena Soto * www.manuelrecena.com[/blog] * [EMAIL PROTECTED] * +34 609710280 (ES) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Status of assembly plugin
I'm spending a little time here and there to try to debug a few of the bigger issues for 2.2-beta-2 right now, but it's kind of slow going. We're probably going to have to do at least a -beta-3 before this is over, so we can get -beta-2 out the door more quickly and get some of the worst problems' fixes into the hands of users. We're still here, and it's still alive...just moving a little slowly. Out of curiosity, which issues are causing you problems? -john On 6/22/07, Stephane Nicoll [EMAIL PROTECTED] wrote: We need to work on it to release a 2.2-beta-2 with fixes for the most annoying issues. I guess nobody in the core development team has time right now. If you provide patches, I'll review them. Regards, Stéphane On 6/22/07, Jose Alberto Fernandez [EMAIL PROTECTED] wrote: Hi all, Can someone give me some info on the status of the maven-assembly-pulgin? I am still using 2.1 with all the drawbacks to my multi-project POM due to the bugs present on 2.2 and the fact that there was no properly released 2.2 version. Any one knows about any progress on that? I have not seen any announcements out there. Thanks in advance, J.A.F -- View this message in context: http://www.nabble.com/Status-of-assembly-plugin-tf3964301s177.html#a11251043 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- John Casey --- Maven Developer (http://maven.apache.org) --- Blog: http://www.ejlife.net/blogs/buildchimp
trying to assemble the javadoc created.
Hi All, Iam trying to assemble the javadoc created. I wrote a assembly descriptor that zips up the needed files. If i run, javadoc on the whole project first and then run install, iam getting what i need. I want to do everything at one shot. So kept the javadoc in the build, my main POM is like this: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId executions execution configuration aggregatetrue/aggregate /configuration idcreate-javadocs/id phasepackage/phase goals goaljavadoc/goal /goals /execution /executions /plugin plugin artifactIdmaven-assembly-plugin/artifactId configuration outputDirectory./outputDirectory appendAssemblyIdtrue/appendAssemblyId descriptors descriptorcmp-client-javadoc.xml/descriptor /descriptors /configuration executions execution idmake-assembly/id phasepackage/phase goals goalattached/goal /goals /execution /executions /plugin /plugins /build When i run the mvn install at the main proeject, it is calling the javadoc, [INFO] [javadoc:javadoc {execution: create-javadocs}] and downloading a bunch of stuff, but not generating any javadoc. And finally it is failing, [INFO] Failed to create assembly: Error creating assembly archive: You must set at least one file. Can anyone let me know what iam doing wrong? Thanks a lot in advance. -Shankar. -- View this message in context: http://www.nabble.com/trying-to-assemble-the--javadoc-created.-tf3967192s177.html#a11260787 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Contributing a document fix/patch
Done. I updated the jdoc (and this the mojo pages) and the usage pages. -Original Message- From: Tim Kettler [mailto:[EMAIL PROTECTED] Sent: Thursday, June 21, 2007 10:49 PM To: Maven Users List Subject: Re: Contributing a document fix/patch Brian, while you're at it: The description of the ArtifactItems collection in the copy/unpack mojo doesn't mention that classifier is supported too. -Tim Brian E. Fox schrieb: I found this in a couple of the example pages. I'm redeploying the site now. Thanks! -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Thursday, June 21, 2007 9:19 AM To: Maven Users List Subject: Re: Contributing a document fix/patch On 6/21/07, Jeff Mutonho [EMAIL PROTECTED] wrote: The plugin is the maven-dependency-plugin , but the actual correction is in the documentation.In the example usage , the plugin is referred to as : plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIddependency-maven-plugin/artifactId executions If it's usage.html, it looks like it's already fixed in svn: http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-dependency-plu gin/src/site/apt/usage.apt It will show up the next time the site is published. - 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: Create 2 JAR of almost same project
On 6/22/07, Tales R. Heredia [EMAIL PROTECTED] wrote: Hi all, I need to create 2 JAR files of almost same project, but is there a little difference between 3 source files. My initial idea is create 2 project.xml and call each project at maven.xml changing this 3 files when I'll call the second project to create the second JAR file...But I guess that this is not the best approach. Another idea is separate this subproject in 2 subprojects, one with all source code, and another one with just 3 different files, but I really don't know who can I set my project.xml to get the source files from another project and the 3 files of current project. Thanks, Tales I have a similar problem, which I don't know how to solve and will post separately, but for your situation I'd look into the assembly plugin and try using separate descriptors for each jar you want to create. Start with reading the following: http://maven.apache.org/plugins/maven-assembly-plugin/index.html http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/using-components.html (Given that you mention a maven.xml and not a pom.xml, this might require that you move to Maven2...) HTH, ksb
Q: Multiple executable jars from a single project
Hello all, I've got a project from which I'd like to create multiple 'executable' jar files, which will differ only in the 'Main-Class: ' value of their manifest files. (These jars don't need their deps, I'm collecting all deps via a parent pom with the assembly plugin.) I realize that this violates somewhat the 'one artifact per project' philosophy behind Maven, but short of refactoring the project into multiple projects (most correct solution), or writing a launching class which starts the proper class based on a passed in arg (2nd best solution), I thought I'd ask here if this is possible to do in way a reasonably straightforward way (simpler than the above two options). At first, I thought I could use the jar plugin with multiple execution elements (with the differing mainClass entry in each one) but haven't gotten that to result in multiple jar files. Another idea is to use the assembly plugin with multiple descriptors but that doesn't allow for different manifest/mainClass values. Other, yet to be tried ideas are: multiple profiles, or somehow aggregating poms together but that's new ground for me. Any pointers, suggestions, hints, etc. ? TIA, ksb
RE: Building offline
Go-offline won't try to build anything. It's going to attempt to download everything needed from the repositories. If your stuff isn't installed or deployed, then it will choke on it. -Original Message- From: kjohnston [mailto:[EMAIL PROTECTED] Sent: Friday, June 22, 2007 1:44 PM To: users@maven.apache.org Subject: Re: Building offline That looks like what I want. However, when I run that goal - it fails because it does not find my inter-module dependencies, which have not been built yet. Any suggestions? Wendy Smoak-3 wrote: On 6/22/07, kjohnston [EMAIL PROTECTED] wrote: I'm having trouble getting Maven to build a project in offline mode. Is there a step-by-step procedure document for this? Here's what I'd like to do: - Set up a local file based repository with all the artifacts needed to build - Run Maven in offline mode, configured to use just a single, local repository Try 'mvn dependency:go-offline' to retrieve (most of) what you need. I'm told it's not quite perfect yet, so please report any issues you discover: http://jira.codehaus.org/browse/MDEP Or pick a repository proxy, run it locally, and do all your builds through that so it gets filled up with what you need. When you're offline, it won't proxy, but all the existing artifacts will be there for you to use. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Building-offline-tf3966053s177.html#a11258897 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-dependency-plugin filtering issue
Hi, Have you tried using the includeTypes and excludeTypes of the unpack-dependencies mojo? See http://maven.apache.org/plugins/maven-dependency-plugin/unpack-dependencies-mojo.html#includeTypes HTH, Deng purestudent wrote: Hi all! I need to filter files while unpack-dependencies goal is executed. For example: I want only *.class and *.xml files to be unpacked. How I can understand no default solution for this exist. Can you suggest any solution for this? Thank you! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]