Re: [m2] faulty scp protocol handling in wagon?
I have discussed the bug fix the author if jsch, and he has made a fix which is available on http://www.jcraft.com/jsch/jsch-0.1.23-pre1.zip. I'll test that version later today. -- Ørjan Brett Porter wrote: have jsch indicated when they might include it? is the scpexe protocol a viable alternative for you? - Brett On 10/5/05, Orjan Austvold [EMAIL PROTECTED] wrote: I noticed that sch 0.1.22 got released yesterday. Only to bad that that it did not include a fix for the MNG-678 issue. In the meantime I'm forced to continue providing a modified m2-b2 release containing a patched jsch library for building projects at work. -- Ørjan Brett Porter wrote: This is great. Thanks for your help on this - I'll take a look. - Brett On 9/30/05, Orjan Austvold [EMAIL PROTECTED] wrote: The issue with intermittent failure in ScpWagon seems to have been solved now. To me it seems to be a race condition between the thread running the ScpWagon and the internal jsch thread tracking session events. ScpWagon terminates the exec channel when it discovers that enough bytes have been read/written. This interferes with jsch which could receive an SSH_MSG_CHANNEL_EOF message from the remote server at the same time. I have filed a bug-report to the jsch project and updated the MNG-678 JIRA issue for m2 with a description of what's going on. My guess is that even though this is a failure in jsch, the ScpWagon code should do proper testing for if a session is connected or not before creating a channel. Thanks, Ørjan Brett Porter wrote: I have experienced this too - there is an open bug I believe. I'm not sure if the problem is in jsch, or our use of jsch though. I'd welcome any assistance you can provide. Thanks, Brett On 9/21/05, Orjan Austvold [EMAIL PROTECTED] wrote: Often when downloading new artifacts from a scp repository the build fails with Root error: session is down It could be that my the ssh configuration on the scp repository is faulty, but I thought I'd check here before digging into ssh-debugging. In my pom.xml I have configured repositories repository idsecure-repository/id urlscp:/myhost.com/var/mavenrep/maven2/url layoutdefault/layout snapshotPolicydaily/snapshotPolicy /repository repository idcentral/id urlhttp://ibiblio.org/maven2/url /repository /repositories In my settings.xml I have configured settings servers server idsecure-repository/id usernameme/username privateKey/home/me/.ssh/id_dsa/privateKey passphrasemyPassPhrase/passphrase /server /servers mirrors mirror idcloser-central/id urlhttp://mirrors.sunsite.dk/maven2/url layoutdefault/layout snapshotPolicydaily/snapshotPolicy mirrorOfcentral/mirrorOf /mirror /mirrors /settings Best regards, Ørjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ørjan Austvold - Senior Software Architect www.colibria.com - putting the presence into messaging - 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] -- Ørjan Austvold - Senior Software Architect www.colibria.com - putting the presence into messaging - 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] -- Ørjan Austvold - Senior Software Architect www.colibria.com - putting the presence into messaging - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] faulty scp protocol handling in wagon?
great! Thanks, Brett On 10/6/05, Orjan Austvold [EMAIL PROTECTED] wrote: I have discussed the bug fix the author if jsch, and he has made a fix which is available on http://www.jcraft.com/jsch/jsch-0.1.23-pre1.zip. I'll test that version later today. -- Ørjan Brett Porter wrote: have jsch indicated when they might include it? is the scpexe protocol a viable alternative for you? - Brett On 10/5/05, Orjan Austvold [EMAIL PROTECTED] wrote: I noticed that sch 0.1.22 got released yesterday. Only to bad that that it did not include a fix for the MNG-678 issue. In the meantime I'm forced to continue providing a modified m2-b2 release containing a patched jsch library for building projects at work. -- Ørjan Brett Porter wrote: This is great. Thanks for your help on this - I'll take a look. - Brett On 9/30/05, Orjan Austvold [EMAIL PROTECTED] wrote: The issue with intermittent failure in ScpWagon seems to have been solved now. To me it seems to be a race condition between the thread running the ScpWagon and the internal jsch thread tracking session events. ScpWagon terminates the exec channel when it discovers that enough bytes have been read/written. This interferes with jsch which could receive an SSH_MSG_CHANNEL_EOF message from the remote server at the same time. I have filed a bug-report to the jsch project and updated the MNG-678 JIRA issue for m2 with a description of what's going on. My guess is that even though this is a failure in jsch, the ScpWagon code should do proper testing for if a session is connected or not before creating a channel. Thanks, Ørjan Brett Porter wrote: I have experienced this too - there is an open bug I believe. I'm not sure if the problem is in jsch, or our use of jsch though. I'd welcome any assistance you can provide. Thanks, Brett On 9/21/05, Orjan Austvold [EMAIL PROTECTED] wrote: Often when downloading new artifacts from a scp repository the build fails with Root error: session is down It could be that my the ssh configuration on the scp repository is faulty, but I thought I'd check here before digging into ssh-debugging. In my pom.xml I have configured repositories repository idsecure-repository/id urlscp:/myhost.com/var/mavenrep/maven2/url layoutdefault/layout snapshotPolicydaily/snapshotPolicy /repository repository idcentral/id urlhttp://ibiblio.org/maven2/url /repository /repositories In my settings.xml I have configured settings servers server idsecure-repository/id usernameme/username privateKey/home/me/.ssh/id_dsa/privateKey passphrasemyPassPhrase/passphrase /server /servers mirrors mirror idcloser-central/id urlhttp://mirrors.sunsite.dk/maven2/url layoutdefault/layout snapshotPolicydaily/snapshotPolicy mirrorOfcentral/mirrorOf /mirror /mirrors /settings Best regards, Ørjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ørjan Austvold - Senior Software Architect www.colibria.com - putting the presence into messaging - 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] -- Ørjan Austvold - Senior Software Architect www.colibria.com - putting the presence into messaging - 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] -- Ørjan Austvold - Senior Software Architect www.colibria.com - putting the presence into messaging - 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]
[m11b2] Long coercion exception
Hi, all, Anyone has any idea what cause this exception? Cheers, AK == Caught exception evaluating: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] Reason: java.l ang.Exception: Long coercion exception java.lang.Exception: Long coercion exception at org.apache.commons.jexl.util.Coercion.coerceLong(Coercion.java:100) at org.apache.commons.jexl.parser.ASTSubtractNode.value(ASTSubtractNode.java:81 ) at org.apache.commons.jexl.parser.ASTExpression.value(ASTExpression.java:47) at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:86) at org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(JexlExpress ion .java:69) at org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$ExpressionSup por tLocal.evaluate(JexlExpressionFactory.java:122) at org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(Expres sio nSupport.java:61) at org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsString(Expre ssi onSupport.java:46) at org.apache.commons.jelly.expression.CompositeExpression.evaluateAsString(Com pos iteExpression.java:256) at org.apache.commons.jelly.expression.CompositeExpression.evaluate(CompositeEx pre ssion.java:248) at org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(Expres sio nSupport.java:61) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:241) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java: 78) at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction (Ma venGoalTag.java:109) at org.apache.maven.werkz.Goal.fire(Goal.java:656) at org.apache.maven.werkz.Goal.attain(Goal.java:592) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:693) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263) at org.apache.maven.cli.App.doMain(App.java:511) at org.apache.maven.cli.App.main(App.java:1258) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .ja va:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581)
[M2] How to add custom entries in a MANIFEST.MF file?
Hello all How to add custom entries in a JAR file (in addition to the current file created by Maven 2)? To be more specific, I would like to add a RegistrationClassName: org.geotools.openoffice.Registration entry for an OpenOffice.org add-in. I'm aware of the following email: http://mail-archives.apache.org/mod_mbox/maven-users/200509.mbox/[EMAIL PROTECTED] But the reply answer only about the specific case of main-class entry. I'm aware of the following patch: http://jira.codehaus.org/browse/MNG-742 But I fail to understand which class I should implement in order to invoke MavenArchiveConfiguration.addManifestEntry(key, value), and how to register my implementation to Maven 2. I'm aware of the archive and jarArchiver parameter in JAR plugin: http://maven.apache.org/maven2/plugins/maven-jar-plugin/jar-mojo.html But I do not understand how to use it in order to create a custom instance of MavenArchiveConfiguration (for example). I didn't found any example on internet. Any hint about how to add a RegistrationClassName entry in a JAR file would be greatly appreciated. Thanks, Martin. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m11b2] Long coercion exception
I'm guessing the expression starting with 'mailto:' is being parsed as a number. Where is it being declared? On 10/6/05, Anthony Kong [EMAIL PROTECTED] wrote: Hi, all, Anyone has any idea what cause this exception? Cheers, AK == Caught exception evaluating: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] Reason: java.l ang.Exception: Long coercion exception java.lang.Exception: Long coercion exception at org.apache.commons.jexl.util.Coercion.coerceLong(Coercion.java:100) at org.apache.commons.jexl.parser.ASTSubtractNode.value(ASTSubtractNode.java:81 ) at org.apache.commons.jexl.parser.ASTExpression.value(ASTExpression.java:47) at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:86) at org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(JexlExpress ion .java:69) at org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$ExpressionSup por tLocal.evaluate(JexlExpressionFactory.java:122) at org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(Expres sio nSupport.java:61) at org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsString(Expre ssi onSupport.java:46) at org.apache.commons.jelly.expression.CompositeExpression.evaluateAsString(Com pos iteExpression.java:256) at org.apache.commons.jelly.expression.CompositeExpression.evaluate(CompositeEx pre ssion.java:248) at org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(Expres sio nSupport.java:61) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:241) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java: 78) at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction (Ma venGoalTag.java:109) at org.apache.maven.werkz.Goal.fire(Goal.java:656) at org.apache.maven.werkz.Goal.attain(Goal.java:592) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:693) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263) at org.apache.maven.cli.App.doMain(App.java:511) at org.apache.maven.cli.App.main(App.java:1258) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .ja va:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) -- http://www.multitask.com.au/people/dion/ You are going to let the fear of poverty govern your life and your reward will be that you will eat, but you will not live. - George Bernard Shaw - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] How to add custom entries in a MANIFEST.MF file?
But the reply answer only about the specific case of main-class entry. I'm aware of the following patch: http://jira.codehaus.org/browse/MNG-742 But I fail to understand which class I should implement in order to invoke MavenArchiveConfiguration.addManifestEntry(key, value), and how to register my implementation to Maven 2. I'm aware of the archive and jarArchiver parameter in JAR plugin: Uhh... interesting! How does that work? I've written a maven plugin that adds the current svn revision to the manifest. It's probably easier to hook in through that method. So I would also appreciate an example how to use it. cheers -- Torsten PGP.sig Description: This is a digitally signed message part
SV: SV: [m2b3] antrun problems
Yann. Below is my pom. If I run 'm2 compile' it seems like the generate-sources phase is never executed. Yes, I tried to add an 'echo' task. /Mattias ?xml version=1.0 ? project xsi:schemaLocation=http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupId-ratereview/groupId artifactIdratereview-clients/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameRateReview Clients/name urlhttp://maven.apache.org/url build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target compileSourceRoots compileSourceRoot /src/main/java /compileSourceRoot compileSourceRoot /target/generated-sources /compileSourceRoot /compileSourceRoots /configuration /plugin plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-sources/phase configuration tasks ant antfile=build.xml/ /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin /plugins /build dependencies dependency groupIdaxis/groupId artifactIdaxis/artifactId version1.2.1/version /dependency dependency groupIdcommons-discovery/groupId artifactIdcommons-discovery/artifactId version0.2/version /dependency dependency groupIdaxis/groupId artifactIdaxis-wsdl4j/artifactId version1.5.1/version /dependency dependency groupIdaxis/groupId artifactIdaxis-jaxrpc/artifactId version1.2.1/version /dependency dependency groupIdaxis/groupId artifactIdaxis-ant/artifactId version1.2.1/version /dependency dependency groupIdaxis/groupId artifactIdaxis-saaj/artifactId version1.2.1/version /dependency dependency groupIdjavax.activation/groupId artifactIdactivation/artifactId version1.0.2/version /dependency dependency groupIdjavax.mail/groupId artifactIdmail/artifactId version1.3.2/version /dependency dependency groupIdjgoodies/groupId artifactIdforms/artifactId version1.0.5/version /dependency /dependencies build finalNameratereview-clients/finalName /build /project -Ursprungligt meddelande- Från: Yann Le Du [mailto:[EMAIL PROTECTED] Skickat: den 5 oktober 2005 16:53 Till: Maven Users List Ämne: RE: SV: [m2b3] antrun problems Hmm, that's pretty strange, because, according to the Build Lifecycle, calling compile should indeed call generate-sources. I tried it and it's working. What is the type of your artifact, jar or other ? Can you send your whole POM ? Just to be sure... :) did you try to replace your task by a simple echo message=Hello, world !/ Yann --- Mattias Arbin [EMAIL PROTECTED] a écrit : Thanks Yann. I will try this. However, what I initially wanted to do was indeed to execute this ant task in the generate-source phase. (It is a java2wsdl
Re: [m2] working on java webservices jaxb xjc plugin
Hey Ashley! I would be interested in such a plugin. Could you create a jira task in the mojo project on jira.codehaus.org, and upload it there? i could then to make it work with jdk 1.4 and commit it to the sandbox, if there are no objections from others. is it jaxb 1 or jaxb2? regards chris On 10/5/05, Ashley Williams [EMAIL PROTECTED] wrote: If anyone is interested in working on a plugin for the xjc schema compiler then please let me know as I have one that sort of works and I know that lack of time will mean that I will never bother improving it. For example it only works on Java 5 at them moment as I haven't had time to track down all the necessary (mostly xml) dependencies on ibiblio. Briefly it invokes xjc with just a couple of options at the generate- sources lifecycle phase. If you need such a plugin and would like to help then get in touch with me at [EMAIL PROTECTED] AW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SV: [m2b3] antrun problems
works for me in beta-3: pom.xml: same as yours without dependencies build.xml: project default=foo target name=foo echofoo/echo copy tofile=pom2 file=pom.xml / /target /project output from m2 compile: [INFO] [antrun:run {execution: default}] [INFO] Executing tasks foo: [echo] foo [copy] Copying 1 file to C:\home\Brett\scratch\test-runs\antrun2 [INFO] Executed tasks On 10/6/05, Mattias Arbin [EMAIL PROTECTED] wrote: Yann. Below is my pom. If I run 'm2 compile' it seems like the generate-sources phase is never executed. Yes, I tried to add an 'echo' task. /Mattias ?xml version=1.0 ? project xsi:schemaLocation=http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupId-ratereview/groupId artifactIdratereview-clients/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameRateReview Clients/name urlhttp://maven.apache.org/url build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target compileSourceRoots compileSourceRoot /src/main/java /compileSourceRoot compileSourceRoot /target/generated-sources /compileSourceRoot /compileSourceRoots /configuration /plugin plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-sources/phase configuration tasks ant antfile=build.xml/ /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin /plugins /build dependencies dependency groupIdaxis/groupId artifactIdaxis/artifactId version1.2.1/version /dependency dependency groupIdcommons-discovery/groupId artifactIdcommons-discovery/artifactId version0.2/version /dependency dependency groupIdaxis/groupId artifactIdaxis-wsdl4j/artifactId version1.5.1/version /dependency dependency groupIdaxis/groupId artifactIdaxis-jaxrpc/artifactId version1.2.1/version /dependency dependency groupIdaxis/groupId artifactIdaxis-ant/artifactId version1.2.1/version /dependency dependency groupIdaxis/groupId artifactIdaxis-saaj/artifactId version1.2.1/version /dependency dependency groupIdjavax.activation/groupId artifactIdactivation/artifactId version1.0.2/version /dependency dependency groupIdjavax.mail/groupId artifactIdmail/artifactId version1.3.2/version /dependency dependency groupIdjgoodies/groupId artifactIdforms/artifactId version1.0.5/version /dependency /dependencies build finalNameratereview-clients/finalName /build /project -Ursprungligt meddelande- Från: Yann Le Du [mailto:[EMAIL PROTECTED] Skickat: den 5 oktober 2005 16:53 Till: Maven Users List Ämne: RE: SV: [m2b3] antrun problems Hmm, that's pretty strange, because,
Re: [m2] m1 pom conversion
On 06/10/05, Brett Porter [EMAIL PROTECTED] wrote: As Joerg mentions, the artifact plugin (1.5.2 for Maven 1.0.2, or 1.6 as included in Maven 1.1 beta 2) now deploys a complete pom instead. I have closed MAVEN-1390 as won't fix. Okay thanks, I just wanted to make sure this was the right way forward. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] reporting element of profiles not merged?
Hi all, I'm playing a bit with profiles, and it seems to me that report plugins listed in a profile are not added to the list of reports when the profile is activated. That is, it seems that when a profile is activated, its reporting element is not merged with the reporting element of the pom. For instance, try the following command with the pom given below: m2 site:site -Denv=TEST - you will have the JXR report generated, but not the taglist. (and you can check that the profile is activated though, because the index.html generated page shows Profile Activated instead of ${foo} in the description) ?xml version=1.0 encoding=ISO-8859-1? project modelVersion4.0.0/modelVersion groupIdtest/groupId artifactIdtest/artifactId packagingjar/packaging nameTest/name version1.0.0/version descriptionTest project - ${foo}/description reporting plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdjxr-maven-plugin/artifactId version2.0-beta-1/version /plugin /plugins /reporting profiles profile idtest-site-profile/id activation property nameenv/name valueTEST/value /property /activation reporting plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdtaglist-maven-plugin /artifactId version2.0-beta-1/version /plugin /plugins /reporting properties fooProfile Activated/foo /properties /profile /profiles /project Is this a bug? If so, I will add it to Jira. Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] reporting element of profiles not merged?
Yes, looks like a bug. - Brett On 10/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all, I'm playing a bit with profiles, and it seems to me that report plugins listed in a profile are not added to the list of reports when the profile is activated. That is, it seems that when a profile is activated, its reporting element is not merged with the reporting element of the pom. For instance, try the following command with the pom given below: m2 site:site -Denv=TEST - you will have the JXR report generated, but not the taglist. (and you can check that the profile is activated though, because the index.html generated page shows Profile Activated instead of ${foo} in the description) ?xml version=1.0 encoding=ISO-8859-1? project modelVersion4.0.0/modelVersion groupIdtest/groupId artifactIdtest/artifactId packagingjar/packaging nameTest/name version1.0.0/version descriptionTest project - ${foo}/description reporting plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdjxr-maven-plugin/artifactId version2.0-beta-1/version /plugin /plugins /reporting profiles profile idtest-site-profile/id activation property nameenv/name valueTEST/value /property /activation reporting plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdtaglist-maven-plugin /artifactId version2.0-beta-1/version /plugin /plugins /reporting properties fooProfile Activated/foo /properties /profile /profiles /project Is this a bug? If so, I will add it to Jira. Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [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]
[m2] site generation problem
Hi everybody I'm new on the list and new at m2 as well. I was just wondering why m2 site:site doesn't generate a complete site with code analysis and all the project infos (like mailing list and such...) Thanks in advance, Farid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] site generation problem
It should generate the mailing lists and such. The default report registered is only the project info reports though. If you'd like other plugins, you must add them to the list of reporting plugins in your pom. - Brett On 10/6/05, farid [EMAIL PROTECTED] wrote: Hi everybody I'm new on the list and new at m2 as well. I was just wondering why m2 site:site doesn't generate a complete site with code analysis and all the project infos (like mailing list and such...) Thanks in advance, Farid - 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: [m102] is there a migration guide to m2?
Hi Thomas, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: mercredi 5 octobre 2005 17:39 To: Maven Users List Subject: [m102] is there a migration guide to m2? [snip] hello, We are currently using v1.0.2 I looked at the maven2 site but did not see anything that might serve as a guide to migrating from m1 to m2. Is there a helpful guide out there? something that might map m1's project.xml/project.properties/maven.xml to m2's pom.xml/plugins. No there isn't something yet but it's planned. I have presented some slides at javaZone 2005 about From m1 to m2. Maybe that could help you in the meantime: http://blogs.codehaus.org/people/vmassol/archives/001170_javazone_2005.html -Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] reporting element of profiles not merged?
OK, http://jira.codehaus.org/browse/MNG-1112 for those interested. Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] Brett Porter [EMAIL PROTECTED] ail.com Pour Maven Users List 06/10/2005 11:16 users@maven.apache.org cc VeuillezObjet répondre à Re: [M2] reporting element of Maven Users List profiles not merged? [EMAIL PROTECTED] che.org Yes, looks like a bug. - Brett On 10/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all, I'm playing a bit with profiles, and it seems to me that report plugins listed in a profile are not added to the list of reports when the profile is activated. That is, it seems that when a profile is activated, its reporting element is not merged with the reporting element of the pom. For instance, try the following command with the pom given below: m2 site:site -Denv=TEST - you will have the JXR report generated, but not the taglist. (and you can check that the profile is activated though, because the index.html generated page shows Profile Activated instead of ${foo} in the description) ?xml version=1.0 encoding=ISO-8859-1? project modelVersion4.0.0/modelVersion groupIdtest/groupId artifactIdtest/artifactId packagingjar/packaging nameTest/name version1.0.0/version descriptionTest project - ${foo}/description reporting plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdjxr-maven-plugin/artifactId version2.0-beta-1/version /plugin /plugins /reporting profiles profile idtest-site-profile/id activation property nameenv/name valueTEST/value /property /activation reporting plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdtaglist-maven-plugin /artifactId version2.0-beta-1/version /plugin /plugins /reporting properties fooProfile Activated/foo /properties /profile /profiles /project Is this a bug? If so, I will add it to Jira. Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [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]
Plugin Development Guide Questions
I am making a start at the Plugin Development Guide as I am working on my first plugin. You can find the current contents at http://sd.no-ip.biz/maven2pdg/. I welcome any comments, corrections, and suggestions. At this moment, I have a number of questions which I have not been able to answer which I think probably ought to be answered in the document: What is the criteria for a mojo class? In other words, when I define a bunch of classes in a project with packaging of maven-plugin, how is it determined which of those classes are mojos and which are other things? What is the difference between MojoExecutionException and MojoFailureException? They have the same documentation but I assume that they should be used for different types of problems. When defining parameters to a mojo, I see that some mojos include a setter for the parameter but a lot do not have any setter. Is there some criteria to be used to determine when a setter is needed or desired? What types of objects can be used as parameters? I assume this has something to do with what plexus can convert from XML content. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Plugin Development Guide Questions
On 10/6/05, Allison, Bob [EMAIL PROTECTED] wrote: What is the criteria for a mojo class? In other words, when I define a bunch of classes in a project with packaging of maven-plugin, how is it determined which of those classes are mojos and which are other things? I'd have said implements Mojo but apparently not :) for Java, it is any class with class level javadoc containing a @goal tag. See JavaMojoDescriptorExtractor. What is the difference between MojoExecutionException and MojoFailureException? They have the same documentation but I assume that they should be used for different types of problems. Should result in a BUILD ERROR or BUILD FAILURE respectively. MEE has a causing exception, while the other is just a string. MEE should be the unexpected one, while MFE is more expected failures (like compilation errors). This is new and a lot of the plugins don't deal with it well. When defining parameters to a mojo, I see that some mojos include a setter for the parameter but a lot do not have any setter. Is there some criteria to be used to determine when a setter is needed or desired? If it is there, it is used. If not, private field injection is used. What types of objects can be used as parameters? I assume this has something to do with what plexus can convert from XML content. http://svn.plexus.codehaus.org/trunk/plexus-containers/plexus-container-default/src/main/java/org/codehaus/plexus/component/configurator/converters/ - Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] correct usage of the checkstyle plugin
I am trying to get checkstyle to use a customised format contained in a file called checkstyle-src.xml i have found however when i configure the checkstyle property called 'propertiesFile' this has no effect - i still get the default checks. if i specify a file that does not exist i get an error (which is fair enough) but any edits i make to that file have no effect on the execution of checkstyle this has come up because i am running checkstyle with one fomrat on the main code base and a more relaxed checkstyle on the test source but no matter what i set the propertiesFile to, if it's a valid file then i get the default checks all the time. am i setting the right property? the build section of my pom.xm looks like this: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.4/source target1.4/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId executions execution idcheck-main-src/id phaseprocess-resources/phase configuration propertiesFilecheckstyle-src.xml/propertiesFile failsOnErrortrue/failsOnError /configuration goals goalcheckstyle/goal /goals /execution execution idcheck-test-src/id phaseprocess-test-resources/phase configuration propertiesFilecheckstyle-test.xml/propertiesFile failsOnErrortrue/failsOnError sourceDirectorysrc/test/sourceDirectory /configuration goals goalcheckstyle/goal /goals /execution /executions /plugin /plugins /build Kind regards, Dave Sag
RE: [m2] correct usage of the checkstyle plugin
Hi David, There seems to be a bug in the checkstyle plugin. See http://jira.codehaus.org/browse/MNG-1113 -Vincent _ From: David Sag [mailto:[EMAIL PROTECTED] Sent: jeudi 6 octobre 2005 12:10 To: users@maven.apache.org Subject: [m2] correct usage of the checkstyle plugin I am trying to get checkstyle to use a customised format contained in a file called checkstyle-src.xml i have found however when i configure the checkstyle property called 'propertiesFile' this has no effect - i still get the default checks. if i specify a file that does not exist i get an error (which is fair enough) but any edits i make to that file have no effect on the execution of checkstyle this has come up because i am running checkstyle with one fomrat on the main code base and a more relaxed checkstyle on the test source but no matter what i set the propertiesFile to, if it's a valid file then i get the default checks all the time. am i setting the right property? the build section of my pom.xm looks like this: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.4/source target1.4/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId executions execution idcheck-main-src/id phaseprocess-resources/phase configuration propertiesFilecheckstyle-src.xml/propertiesFile failsOnErrortrue/failsOnError /configuration goals goalcheckstyle/goal /goals /execution execution idcheck-test-src/id phaseprocess-test-resources/phase configuration propertiesFilecheckstyle-test.xml/propertiesFile failsOnErrortrue/failsOnError sourceDirectorysrc/test/sourceDirectory /configuration goals goalcheckstyle/goal /goals /execution /executions /plugin /plugins /build Kind regards, Dave Sag
Re: [m2] m1 pom conversion
On 06/10/05, Mark Hobson [EMAIL PROTECTED] wrote: On 06/10/05, Brett Porter [EMAIL PROTECTED] wrote: As Joerg mentions, the artifact plugin (1.5.2 for Maven 1.0.2, or 1.6 as included in Maven 1.1 beta 2) now deploys a complete pom instead. I have closed MAVEN-1390 as won't fix. Okay thanks, I just wanted to make sure this was the right way forward. To follow up, the pico guys have deployed versions using artifact 1.5: http://dist.codehaus.org/picocontainer/poms/picocontainer-20051006.102507.pom http://dist.codehaus.org/nanocontainer/poms/nanocontainer-20051006.102618.pom These look like they'll repoclean okay to me - can anyone see any probs before I confirm? Thanks, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Incorrect build number for wagon-provider-test
Hi, The maven-metadata.xml for wagon-provider-test (http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon-provider-test/1.0-alpha-5-SNAPSHOT/maven-metadata.xml) has an incorrect build number (should be 2) metadata groupIdorg.apache.maven.wagon/groupId artifactIdwagon-provider-test/artifactId versioning snapshot timestamp20050906.095824/timestamp buildNumber2/buildNumber /snapshot /versioning /metadata Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SV: [m2b3] antrun problems
*Fails* for me in beta-3. Mattias, you have a duplicate build . Put the finalName in the first build ant let us know (maybe you'll a build error due to compiler-plugin, but at least your Ant tasks should be executed). Yann --- Brett Porter [EMAIL PROTECTED] a écrit : works for me in beta-3: pom.xml: same as yours without dependencies build.xml: project default=foo target name=foo echofoo/echo copy tofile=pom2 file=pom.xml / /target /project output from m2 compile: [INFO] [antrun:run {execution: default}] [INFO] Executing tasks foo: [echo] foo [copy] Copying 1 file to C:\home\Brett\scratch\test-runs\antrun2 [INFO] Executed tasks On 10/6/05, Mattias Arbin [EMAIL PROTECTED] wrote: Yann. Below is my pom. If I run 'm2 compile' it seems like the generate-sources phase is never executed. Yes, I tried to add an 'echo' task. /Mattias ?xml version=1.0 ? project xsi:schemaLocation=http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupId-ratereview/groupId artifactIdratereview-clients/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameRateReview Clients/name urlhttp://maven.apache.org/url build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target compileSourceRoots compileSourceRoot /src/main/java /compileSourceRoot compileSourceRoot /target/generated-sources /compileSourceRoot /compileSourceRoots /configuration /plugin plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-sources/phase configuration tasks ant antfile=build.xml/ /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin /plugins /build dependencies dependency groupIdaxis/groupId artifactIdaxis/artifactId version1.2.1/version /dependency dependency groupIdcommons-discovery/groupId artifactIdcommons-discovery/artifactId version0.2/version /dependency dependency groupIdaxis/groupId artifactIdaxis-wsdl4j/artifactId version1.5.1/version /dependency dependency groupIdaxis/groupId artifactIdaxis-jaxrpc/artifactId version1.2.1/version /dependency dependency groupIdaxis/groupId artifactIdaxis-ant/artifactId version1.2.1/version /dependency dependency groupIdaxis/groupId artifactIdaxis-saaj/artifactId version1.2.1/version /dependency dependency groupIdjavax.activation/groupId artifactIdactivation/artifactId version1.0.2/version /dependency dependency groupIdjavax.mail/groupId artifactIdmail/artifactId version1.3.2/version /dependency dependency groupIdjgoodies/groupId artifactIdforms/artifactId
Re: [m2] site generation problem
Brett Porter a écrit : It should generate the mailing lists and such. The default report registered is only the project info reports though. If you'd like other plugins, you must add them to the list of reporting plugins in your pom. Thanks for the Info but I stumbled on an NPE while trying to add the jdepend plugin in my POM. Basically it went like this: reporting plugins plugin groupIdjdepend/groupId artifactIdjdepend/artifactId version2.7/version /plugin /plugins /reporting But after running m2 site:site I fell on this: (sorry for the length of the message) Any idea ? I tried to search for arelevant issue but found none... [INFO] Searching repository for plugin with prefix: 'site'. [INFO] [INFO] Building com.cnc.commandes:commandes:jar:1.0-SNAPSHOT [INFO]task-segment: [site:site] [INFO] --- constituent[0]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/commons-cli-1.0.jar constituent[1]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/doxia-sink-api-1.0-alpha-4.jar constituent[2]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/jline-0.9.1.jar constituent[3]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/jsch-0.1.21.jar constituent[4]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-artifact-2.0-beta-2.jar constituent[5]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-artifact-manager-2.0-beta-2.jar constituent[6]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-core-2.0-beta-2.jar constituent[7]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-model-2.0-beta-2.jar constituent[8]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-monitor-2.0-beta-2.jar constituent[9]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-plugin-api-2.0-beta-2.jar constituent[10]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-plugin-descriptor-2.0-beta-2.jar constituent[11]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-plugin-registry-2.0-beta-2.jar constituent[12]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-profile-2.0-beta-2.jar constituent[13]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-project-2.0-beta-2.jar constituent[14]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-reporting-api-2.0-beta-2.jar constituent[15]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-repository-metadata-2.0-beta-2.jar constituent[16]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-settings-2.0-beta-2.jar constituent[17]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/plexus-input-handler-1.0-alpha-2.jar constituent[18]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/wagon-file-1.0-alpha-4.jar constituent[19]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/wagon-http-lightweight-1.0-alpha-4.jar constituent[20]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/wagon-provider-api-1.0-alpha-4.jar constituent[21]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/wagon-ssh-1.0-alpha-4.jar --- java.lang.NullPointerException at org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:297) at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:187) at org.apache.maven.plugin.DefaultPluginManager.verifyReportPlugin(DefaultPluginManager.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:624) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:595) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:497) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:460) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:136) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:216) at org.apache.maven.cli.MavenCli.main(MavenCli.java:246) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) - To
Re: Plugin Development Guide Questions
Just out of curiosity - why not have one exception class, with an *optional* causing exception? On 10/6/05, Brett Porter [EMAIL PROTECTED] wrote: On 10/6/05, Allison, Bob [EMAIL PROTECTED] wrote: What is the criteria for a mojo class? In other words, when I define a bunch of classes in a project with packaging of maven-plugin, how is it determined which of those classes are mojos and which are other things? I'd have said implements Mojo but apparently not :) for Java, it is any class with class level javadoc containing a @goal tag. See JavaMojoDescriptorExtractor. What is the difference between MojoExecutionException and MojoFailureException? They have the same documentation but I assume that they should be used for different types of problems. Should result in a BUILD ERROR or BUILD FAILURE respectively. MEE has a causing exception, while the other is just a string. MEE should be the unexpected one, while MFE is more expected failures (like compilation errors). This is new and a lot of the plugins don't deal with it well. When defining parameters to a mojo, I see that some mojos include a setter for the parameter but a lot do not have any setter. Is there some criteria to be used to determine when a setter is needed or desired? If it is there, it is used. If not, private field injection is used. What types of objects can be used as parameters? I assume this has something to do with what plexus can convert from XML content. http://svn.plexus.codehaus.org/trunk/plexus-containers/plexus-container-default/src/main/java/org/codehaus/plexus/component/configurator/converters/ - Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Incorrect build number for wagon-provider-test
Hi, The maven-metadata.xml for wagon-provider-test (http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon-provider-test/1.0-alpha-5-SNAPSHOT/maven-metadata.xml) has an incorrect build number (should be 2) metadata groupIdorg.apache.maven.wagon/groupId artifactIdwagon-provider-test/artifactId versioning snapshot timestamp20050906.095824/timestamp buildNumber2/buildNumber /snapshot /versioning /metadata Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Filtering problems
I downloaded beta 3, beta 2 of the resources plugin was downloaded. When I run maven files get copied, but no replacements were made. If I change the filename of the filter file no errors are reported, so it looks like it is not being used at all. Here is my pom: build resources resource directoryweb/WEB-INF/directory includes includeapplicationContext.xml/include includeweb.xml/include /includes /resource /resources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId configuration outputDirectory${project.build.directory}/${project.build.finalName}/outputDirectory filtersFilesrc/filters/internet-server.properties/filtersFile filteringtrue/filtering /configuration /plugin /plugins /build Is there an error in my pom? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] site generation problem
Hi Farid, I am not an expert of this plugin. But, instead of the jdepend itself, you should add the jdepend maven plugin: http://mojo.codehaus.org/jdepend-maven-plugin/howto.html Cheers, Vincent -Original Message- From: farid [mailto:[EMAIL PROTECTED] Sent: Thursday, October 06, 2005 7:27 AM To: Maven Users List Subject: Re: [m2] site generation problem Brett Porter a écrit : It should generate the mailing lists and such. The default report registered is only the project info reports though. If you'd like other plugins, you must add them to the list of reporting plugins in your pom. Thanks for the Info but I stumbled on an NPE while trying to add the jdepend plugin in my POM. Basically it went like this: reporting plugins plugin groupIdjdepend/groupId artifactIdjdepend/artifactId version2.7/version /plugin /plugins /reporting But after running m2 site:site I fell on this: (sorry for the length of the message) Any idea ? I tried to search for arelevant issue but found none... [INFO] Searching repository for plugin with prefix: 'site'. [INFO] -- -- [INFO] Building com.cnc.commandes:commandes:jar:1.0-SNAPSHOT [INFO]task-segment: [site:site] [INFO] -- -- --- constituent[0]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/commons-cli-1.0.jar constituent[1]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/doxia-sink-api-1.0-alpha-4.jar constituent[2]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/jline-0.9.1.jar constituent[3]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/jsch-0.1.21.jar constituent[4]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-artifact-2.0-beta-2.jar constituent[5]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-artifact-manager-2.0- beta-2.jar constituent[6]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-core-2.0-beta-2.jar constituent[7]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-model-2.0-beta-2.jar constituent[8]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-monitor-2.0-beta-2.jar constituent[9]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-plugin-api-2.0-beta-2.jar constituent[10]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-plugin-descriptor-2.0- beta-2.jar constituent[11]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-plugin-registry-2.0-beta- 2.jar constituent[12]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-profile-2.0-beta-2.jar constituent[13]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-project-2.0-beta-2.jar constituent[14]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-reporting-api-2.0-beta- 2.jar constituent[15]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-repository-metadata-2.0- beta-2.jar constituent[16]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/maven-settings-2.0-beta-2.jar constituent[17]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/plexus-input-handler-1.0-alpha- 2.jar constituent[18]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/wagon-file-1.0-alpha-4.jar constituent[19]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/wagon-http-lightweight-1.0- alpha-4.jar constituent[20]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/wagon-provider-api-1.0-alpha- 4.jar constituent[21]: file:/c:/Softs/Outils/maven-2.0-beta-2/lib/wagon-ssh-1.0-alpha-4.jar --- java.lang.NullPointerException at org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManage r.java:297) at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(Default PluginManager.java:187) at org.apache.maven.plugin.DefaultPluginManager.verifyReportPlugin(DefaultPlu ginManager.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLife cycleExecutor.java:624) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLife cycleExecutor.java:595) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLi fecycleExecutor.java:497) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal( DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLif ecycleExecutor.java:460) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(De faultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecyc leExecutor.java:136) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:216) at org.apache.maven.cli.MavenCli.main(MavenCli.java:246) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
adding osgi dependency logic to m2
At Cocoon, we need to add osgi compliant dependency logic to m2. In a nutshell and simplified for this case : osgi allows archives to explicitly define which classes they export. We think there are 2 possible ways of achieving this: 1) adding a custom dependency type osgi, that respects osgi rules during dependency resolution. 2) plug in an osgi classloader (eclipse has this component already) into m2. Can anyone comment on the feasibility of these options? Regards Jorg Heymans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] site generation problem
Vincent Siveton a écrit : Hi Farid, I am not an expert of this plugin. But, instead of the jdepend itself, you should add the jdepend maven plugin: http://mojo.codehaus.org/jdepend-maven-plugin/howto.html Thanx for the info but I tried that and I think that I miss a repository here. Should I just add a repository in my POM or is there something else that I should do ? In short what is the URL of the mojo repository ? I think that I'm close to write a beginner beginner's guide :) Thanks, Farid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: SV: [m2b3] antrun problems
Embarassing! I removed the duplicate build/ and now it works. The first build including the plugins was never read. Thanks! /Mattias -Ursprungligt meddelande- Från: Yann Le Du [mailto:[EMAIL PROTECTED] Skickat: den 6 oktober 2005 13:21 Till: Maven Users List; Brett Porter Ämne: Re: SV: [m2b3] antrun problems *Fails* for me in beta-3. Mattias, you have a duplicate build . Put the finalName in the first build ant let us know (maybe you'll a build error due to compiler-plugin, but at least your Ant tasks should be executed). Yann --- Brett Porter [EMAIL PROTECTED] a écrit : works for me in beta-3: pom.xml: same as yours without dependencies build.xml: project default=foo target name=foo echofoo/echo copy tofile=pom2 file=pom.xml / /target /project output from m2 compile: [INFO] [antrun:run {execution: default}] [INFO] Executing tasks foo: [echo] foo [copy] Copying 1 file to C:\home\Brett\scratch\test-runs\antrun2 [INFO] Executed tasks On 10/6/05, Mattias Arbin [EMAIL PROTECTED] wrote: Yann. Below is my pom. If I run 'm2 compile' it seems like the generate-sources phase is never executed. Yes, I tried to add an 'echo' task. /Mattias ?xml version=1.0 ? project xsi:schemaLocation=http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupId-ratereview/groupId artifactIdratereview-clients/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameRateReview Clients/name urlhttp://maven.apache.org/url build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target compileSourceRoots compileSourceRoot /src/main/java /compileSourceRoot compileSourceRoot /target/generated-sources /compileSourceRoot /compileSourceRoots /configuration /plugin plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-sources/phase configuration tasks ant antfile=build.xml/ /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin /plugins /build dependencies dependency groupIdaxis/groupId artifactIdaxis/artifactId version1.2.1/version /dependency dependency groupIdcommons-discovery/groupId artifactIdcommons-discovery/artifactId version0.2/version /dependency dependency groupIdaxis/groupId artifactIdaxis-wsdl4j/artifactId version1.5.1/version /dependency dependency groupIdaxis/groupId artifactIdaxis-jaxrpc/artifactId version1.2.1/version /dependency dependency groupIdaxis/groupId artifactIdaxis-ant/artifactId version1.2.1/version /dependency dependency groupIdaxis/groupId artifactIdaxis-saaj/artifactId version1.2.1/version /dependency dependency groupIdjavax.activation/groupId
[M2] Error resolving plugin version
Hi, I am getting the following error when I run the install goal (with M2-beta 3). Any thoughts on this? Thanks. [INFO] task-segment: [install] [INFO] - --- [WARNING] * Using defaults for missing POM org.apache.maven.plugins:maven-jar-plugin :pom:RELEASE * [INFO] - --- [ERROR] FATAL ERROR [INFO] - --- [INFO] Diagnosis: Error resolving plugin version [INFO] - --- [INFO] - --- [ERROR] FATAL ERROR [INFO] - --- FATAL ERROR: Error executing Maven for a project Error stacktrace: org.apache.maven.reactor.ReactorException: Error executing project within the re actor at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:282)
RE: [m102] is there a migration guide to m2?
Vincent, Jason, Thank you for your replies. A guide, or even better, a conversion tool, would be great. We love Maven and want to migrate to Maven2. We have many projects that have been mavenized so it is not a trivial task to migrate them, and any time-saving($) help is greatly appreciated. Thanks again. Tom Vincent Massol [EMAIL PROTECTED] com To 'Maven Users List' 10/06/2005 05:34 users@maven.apache.org AM cc Subject Please respond to RE: [m102] is there a migration Maven Usersguide to m2? List [EMAIL PROTECTED] he.org Hi Thomas, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: mercredi 5 octobre 2005 17:39 To: Maven Users List Subject: [m102] is there a migration guide to m2? [snip] hello, We are currently using v1.0.2 I looked at the maven2 site but did not see anything that might serve as a guide to migrating from m1 to m2. Is there a helpful guide out there? something that might map m1's project.xml/project.properties/maven.xml to m2's pom.xml/plugins. No there isn't something yet but it's planned. I have presented some slides at javaZone 2005 about From m1 to m2. Maybe that could help you in the meantime: http://blogs.codehaus.org/people/vmassol/archives/001170_javazone_2005.html -Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message is intended for the recipient only and is not meant to be forwarded or distributed in any other format. This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument, or security, or as an official confirmation of any transaction. Putnam does not accept purchase or redemptions of securities, instructions, or authorizations that are sent via e-mail. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of Putnam, LLC (DBA Putnam Investments) and its subsidiaries and affiliates. If you are not the intended recipient of this e-mail, please delete the e-mail. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
m2 ftp deploy
Hello, I am having trouble deploying to an internal remote repository using ftp with m2. I previously had it working using file:/// but so far haven't had much luck with ftp. I changed the url to ftp:/// and added a server section to my settings.xml for authentication. I also downloaded the wagon-ftp jar and added it to my maven2/lib folder. That seems to have worked a little because it changed the error I was getting. Here's the output: (btw, the app I'm building is the sample I created from the maven site instructions) E:\STC\mavenFull\mavenTestm2 deploy [INFO] [INFO] Building Maven Quick Start Archetype [INFO]task-segment: [deploy] [INFO] [INFO] [resources:resources] [INFO] [compiler:compile] Compiling 1 source file to E:\STC\mavenFull\mavenTest\target\classes [INFO] [resources:testResources] [INFO] [compiler:testCompile] Compiling 1 source file to E:\STC\mavenFull\mavenTest\target\test-classes [INFO] [surefire:test] [INFO] Setting reports dir: E:\STC\mavenFull\mavenTest\target/surefire-reports --- T E S T S --- [surefire] Running com.stchome.mavenTest.AppTest [surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0 sec Results : [surefire] Tests run: 1, Failures: 0, Errors: 0 [INFO] [jar:jar] [INFO] Building jar: E:\STC\mavenFull\mavenTest\target\mavenTest-1.1-SNAPSHOT.jar [INFO] [install:install] [INFO] Installing E:\STC\mavenFull\mavenTest\target\mavenTest-1.1-SNAPSHOT.jar to e:\stc\mavenRepo\com\stchome \mavenTest\mavenTest\1.1-SNAPSHOT\mavenTest-1.1-SNAPSHOT.jar [INFO] [deploy:deploy] [INFO] Retrieving previous build number from STCRepo - this realm = plexus.core.maven urls[0] = file:/d:/STC/maven2/bin/../lib/commons-cli-1.0.jar urls[1] = file:/d:/STC/maven2/bin/../lib/doxia-sink-api-1.0-alpha-4.jar urls[2] = file:/d:/STC/maven2/bin/../lib/jline-0.9.1.jar urls[3] = file:/d:/STC/maven2/bin/../lib/jsch-0.1.21.jar urls[4] = file:/d:/STC/maven2/bin/../lib/maven-artifact-2.0-beta-2.jar urls[5] = file:/d:/STC/maven2/bin/../lib/maven-artifact-manager-2.0-beta-2.jar urls[6] = file:/d:/STC/maven2/bin/../lib/maven-core-2.0-beta-2.jar urls[7] = file:/d:/STC/maven2/bin/../lib/maven-model-2.0-beta-2.jar urls[8] = file:/d:/STC/maven2/bin/../lib/maven-monitor-2.0-beta-2.jar urls[9] = file:/d:/STC/maven2/bin/../lib/maven-plugin-api-2.0-beta-2.jar urls[10] = file:/d:/STC/maven2/bin/../lib/maven-plugin-descriptor-2.0-beta-2.jar urls[11] = file:/d:/STC/maven2/bin/../lib/maven-plugin-registry-2.0-beta-2.jar urls[12] = file:/d:/STC/maven2/bin/../lib/maven-profile-2.0-beta-2.jar urls[13] = file:/d:/STC/maven2/bin/../lib/maven-project-2.0-beta-2.jar urls[14] = file:/d:/STC/maven2/bin/../lib/maven-reporting-api-2.0-beta-2.jar urls[15] = file:/d:/STC/maven2/bin/../lib/maven-repository-metadata-2.0-beta-2.jar urls[16] = file:/d:/STC/maven2/bin/../lib/maven-settings-2.0-beta-2.jar urls[17] = file:/d:/STC/maven2/bin/../lib/plexus-input-handler-1.0-alpha-2.jar urls[18] = file:/d:/STC/maven2/bin/../lib/wagon-file-1.0-alpha-4.jar urls[19] = file:/d:/STC/maven2/bin/../lib/wagon-ftp-1.0-alpha-3.jar urls[20] = file:/d:/STC/maven2/bin/../lib/wagon-http-lightweight-1.0-alpha-4.jar urls[21] = file:/d:/STC/maven2/bin/../lib/wagon-provider-api-1.0-alpha-4.jar urls[22] = file:/d:/STC/maven2/bin/../lib/wagon-ssh-1.0-alpha-4.jar Number of imports: 0 this realm = plexus.core urls[0] = file:/d:/STC/maven2/bin/../core/plexus-container-default-1.0-alpha-6.jar urls[1] = file:/d:/STC/maven2/bin/../core/plexus-utils-1.0.3.jar Number of imports: 0 - [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Diagnosis: Error deploying artifact [INFO] [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Thu Oct 06 08:46:40 EDT 2005 [INFO] Final Memory: 3M/8M [INFO] POM.xml: 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; parent groupIdcom.stchome/groupId artifactIdmavenFull/artifactId version1.0/version /parent modelVersion4.0.0/modelVersion groupIdcom.stchome.mavenTest/groupId artifactIdmavenTest/artifactId packagingjar/packaging version1.1-SNAPSHOT/version nameMaven Quick Start Archetype/name
M1 - More than 1 artefact
I would like the ability to create more than 1 artefact from a single project.xml file. The project structure would resemble the following: +---src | +---java | | \---com | | \---hbosts | | \---ss | +---test | | \---com | | \---hbosts | | \---ss | \---conf | +---uat | +---dev | \---prod I would like 3 jar files: App-dev.jar App-uat.jar App-prod.jar Where the App-[env].jar file would contain configuration from src/conf/[env] and no other src/conf directory. I understand the underlying philosophy is 1 pom 1 artefact but I'm sure that others must have come across similar problems and worked round them. Regards Simon Simon Richardson Technology Tel: 020 7574 8838 E Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] HBOS Treasury Services plc 33 Old Broad Street London EC2N 1HZ MMS hbosplc.com made the following annotations. -- For more information on HBOS Treasury Services, please visit http://www.HBOSTS.com Or for details of our online FX Deposit services, please go to http://www.HBOSdeal.com HBOS Treasury Services plc is part of the HBOS Group, which also includes Halifax plc and Bank of Scotland. Registered Office: 33 Old Broad Street, London EC2N 1HZ. Registered No. 2692890. Registered in England. Authorised and regulated by the Financial Services Authority. The information contained in this message is confidential and is intended for the addressee only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. This mail and any attachments have been scanned for viruses prior to leaving the HBOS Treasury Services plc network. HBOS Treasury Services plc will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. HBOS Treasury Services plc reserves the right to monitor and record e-mail messages sent to and from this address for the purposes of investigating or detecting any unauthorised use of its system and ensuring its effective operation. ==
RE: M1 - More than 1 artefact
I think it is easier to make these as separate projects and they all depends on the App.jar artifact. The App.jar artifact does not contains ANY configurations for a environment, it is stored in the separate projects like this: ( These projects takes the App.jar file and add the properties etc for that env and produces App-XXX.jar artifact ) dev | +---src | | | | | +---test | | \---com | | \---hbosts | | \---ss | \---conf | app.properties for dev uat | +---src | | | | | +---test | | \---com | | \---hbosts | | \---ss | \---conf | app.properties for uat prod | +---src | | | | | +---test | | \---com | | \---hbosts | | \---ss | \---conf | app.properties for prod Mvh Mattias Olofsson Software Developer, M. Sc. Physics XDIN AB Gustaf Werners gata 12 SE-421 32 Västra Frölunda Office: +46 (0)31 725 10 92 mail: [EMAIL PROTECTED] This e-mail is confidential and may also be legally privileged. If you are not the intended recipient, please notify us immediately; you should not copy it or use it for any purpose, nor disclose its contents to any other person. -Original Message- From: Richardson, Simon (Treasury) [mailto:[EMAIL PROTECTED] Sent: den 6 oktober 2005 15:01 To: 'Maven Users List' Subject: M1 - More than 1 artefact I would like the ability to create more than 1 artefact from a single project.xml file. The project structure would resemble the following: +---src | +---java | | \---com | | \---hbosts | | \---ss | +---test | | \---com | | \---hbosts | | \---ss | \---conf | +---uat | +---dev | \---prod I would like 3 jar files: App-dev.jar App-uat.jar App-prod.jar Where the App-[env].jar file would contain configuration from src/conf/[env] and no other src/conf directory. I understand the underlying philosophy is 1 pom 1 artefact but I'm sure that others must have come across similar problems and worked round them. Regards Simon Simon Richardson Technology Tel: 020 7574 8838 E Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] HBOS Treasury Services plc 33 Old Broad Street London EC2N 1HZ MMS hbosplc.com made the following annotations. -- For more information on HBOS Treasury Services, please visit http://www.HBOSTS.com Or for details of our online FX Deposit services, please go to http://www.HBOSdeal.com HBOS Treasury Services plc is part of the HBOS Group, which also includes Halifax plc and Bank of Scotland. Registered Office: 33 Old Broad Street, London EC2N 1HZ. Registered No. 2692890. Registered in England. Authorised and regulated by the Financial Services Authority. The information contained in this message is confidential and is intended for the addressee only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. This mail and any attachments have been scanned for viruses prior to leaving the HBOS Treasury Services plc network. HBOS Treasury Services plc will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. HBOS Treasury Services plc reserves the right to monitor and record e-mail messages sent to and from this address for the purposes of investigating or detecting any unauthorised use of its system and ensuring its effective operation. == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: M1 - More than 1 artefact
Thanks Mattias, sounds like a good idea. Simon Simon Richardson Technology Tel: 020 7574 8838 E Mail: [EMAIL PROTECTED] HBOS Treasury Services plc 33 Old Broad Street London EC2N 1HZ -Original Message- From: Mattias Olofsson [mailto:[EMAIL PROTECTED] Sent: 06 October 2005 14:20 To: 'Maven Users List' Subject: RE: M1 - More than 1 artefact I think it is easier to make these as separate projects and they all depends on the App.jar artifact. The App.jar artifact does not contains ANY configurations for a environment, it is stored in the separate projects like this: ( These projects takes the App.jar file and add the properties etc for that env and produces App-XXX.jar artifact ) dev | +---src | | | | | +---test | | \---com | | \---hbosts | | \---ss | \---conf | app.properties for dev uat | +---src | | | | | +---test | | \---com | | \---hbosts | | \---ss | \---conf | app.properties for uat prod | +---src | | | | | +---test | | \---com | | \---hbosts | | \---ss | \---conf | app.properties for prod Mvh Mattias Olofsson Software Developer, M. Sc. Physics XDIN AB Gustaf Werners gata 12 SE-421 32 Västra Frölunda Office: +46 (0)31 725 10 92 mail: [EMAIL PROTECTED] This e-mail is confidential and may also be legally privileged. If you are not the intended recipient, please notify us immediately; you should not copy it or use it for any purpose, nor disclose its contents to any other person. -Original Message- From: Richardson, Simon (Treasury) [mailto:[EMAIL PROTECTED] Sent: den 6 oktober 2005 15:01 To: 'Maven Users List' Subject: M1 - More than 1 artefact I would like the ability to create more than 1 artefact from a single project.xml file. The project structure would resemble the following: +---src | +---java | | \---com | | \---hbosts | | \---ss | +---test | | \---com | | \---hbosts | | \---ss | \---conf | +---uat | +---dev | \---prod I would like 3 jar files: App-dev.jar App-uat.jar App-prod.jar Where the App-[env].jar file would contain configuration from src/conf/[env] and no other src/conf directory. I understand the underlying philosophy is 1 pom 1 artefact but I'm sure that others must have come across similar problems and worked round them. Regards Simon Simon Richardson Technology Tel: 020 7574 8838 E Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] HBOS Treasury Services plc 33 Old Broad Street London EC2N 1HZ MMS hbosplc.com made the following annotations. -- For more information on HBOS Treasury Services, please visit http://www.HBOSTS.com Or for details of our online FX Deposit services, please go to http://www.HBOSdeal.com HBOS Treasury Services plc is part of the HBOS Group, which also includes Halifax plc and Bank of Scotland. Registered Office: 33 Old Broad Street, London EC2N 1HZ. Registered No. 2692890. Registered in England. Authorised and regulated by the Financial Services Authority. The information contained in this message is confidential and is intended for the addressee only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. This mail and any attachments have been scanned for viruses prior to leaving the HBOS Treasury Services plc network. HBOS Treasury Services plc will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. HBOS Treasury Services plc reserves the right to monitor and record e-mail messages sent to and from this address for the purposes of investigating or detecting any unauthorised use of its system and ensuring its effective operation. == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] MMS hbosplc.com made the following annotations.
Re: M1 - More than 1 artefact
Hi Simon, yes I have encountered the same problem, and the technique we used where I work, was to have three projects. One for each artifact. We prefixed the uat project uat_ and the prod project prod_. These two projects inherts from the dev-project (which we didn't prefix). We set the source folders in the two extended projects to the same folders as the development ones. We set the configuration/resource folders to be the ones in the extended projects. This way the extended projects use the source code from the development project, but it's own configuration and resource files. The unprefixed development project contains resources and configuration files for development. This works very well for us, even considering the added complexity of more projects since we only use this technique on projects that produces deployable artifacts (webapps and such). Hope this helps. Best regards Bent André Solheim On 10/6/05, Richardson, Simon (Treasury) [EMAIL PROTECTED] wrote: I would like the ability to create more than 1 artefact from a single project.xml file. The project structure would resemble the following: +---src | +---java | | \---com | | \---hbosts | | \---ss | +---test | | \---com | | \---hbosts | | \---ss | \---conf | +---uat | +---dev | \---prod I would like 3 jar files: App-dev.jar App-uat.jar App-prod.jar Where the App-[env].jar file would contain configuration from src/conf/[env] and no other src/conf directory. I understand the underlying philosophy is 1 pom 1 artefact but I'm sure that others must have come across similar problems and worked round them. Regards Simon Simon Richardson Technology Tel: 020 7574 8838 E Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] HBOS Treasury Services plc 33 Old Broad Street London EC2N 1HZ MMS hbosplc.com made the following annotations. -- For more information on HBOS Treasury Services, please visit http://www.HBOSTS.com Or for details of our online FX Deposit services, please go to http://www.HBOSdeal.com HBOS Treasury Services plc is part of the HBOS Group, which also includes Halifax plc and Bank of Scotland. Registered Office: 33 Old Broad Street, London EC2N 1HZ. Registered No. 2692890. Registered in England. Authorised and regulated by the Financial Services Authority. The information contained in this message is confidential and is intended for the addressee only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. This mail and any attachments have been scanned for viruses prior to leaving the HBOS Treasury Services plc network. HBOS Treasury Services plc will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. HBOS Treasury Services plc reserves the right to monitor and record e-mail messages sent to and from this address for the purposes of investigating or detecting any unauthorised use of its system and ensuring its effective operation. == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m1.0.2] war file not in dependency list in goal execution
Anthony, Following is a snip from the m1 atrifact plugins plugin.jelly: j:set var=version value=${maven.application.version} / j:if test=${version.compareTo('1.1') lt 0} ant:fail Maven Artifact Plugin v${plugin.currentVersion} requires Maven 1.1 or above. To correct this installation, remove: ${maven.home}/plugins/maven-artifact-plugin-${plugin.currentVersion}.jar and run: maven plugin:download -DgroupId=maven -DartifactId=maven-artifact-plugin -Dversion=1.5.2 /ant:fail /j:if DD Anthony Kong wrote: I further found out that this problem is solved in m1.1b2. If I want to, in my custom plugin, to detect maven's version number, how can I do that? I want to make sure the user runs a maven of version greater than 1.0.2. Anything like this as in perl? Cheers, AK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Filtering problems
Kees, It seems than m2b3 use filter tag instead of filtersFile now: build filters filtersrc/filters/internet-server.properties/filter /filters resources resource ... filteringtrue/filtering /resource ... /resources ... /build I got the same problem yesterday and this solution works for me. -- Philippe HUET / [EMAIL PROTECTED] Kees de Kooter a écrit : I downloaded beta 3, beta 2 of the resources plugin was downloaded. When I run maven files get copied, but no replacements were made. If I change the filename of the filter file no errors are reported, so it looks like it is not being used at all. Here is my pom: build resources resource directoryweb/WEB-INF/directory includes includeapplicationContext.xml/include includeweb.xml/include /includes /resource /resources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId configuration outputDirectory${project.build.directory}/${project.build.finalName}/outputDirectory filtersFilesrc/filters/internet-server.properties/filtersFile filteringtrue/filtering /configuration /plugin /plugins /build Is there an error in my pom? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Filtering problems
Excellent! Thanks a lot Philippe. On 10/6/05, Philippe HUET [EMAIL PROTECTED] wrote: Kees, It seems than m2b3 use filter tag instead of filtersFile now: build filters filtersrc/filters/internet-server.properties/filter /filters resources resource ... filteringtrue/filtering /resource ... /resources ... /build I got the same problem yesterday and this solution works for me. -- Philippe HUET / [EMAIL PROTECTED] Kees de Kooter a écrit : I downloaded beta 3, beta 2 of the resources plugin was downloaded. When I run maven files get copied, but no replacements were made. If I change the filename of the filter file no errors are reported, so it looks like it is not being used at all. Here is my pom: build resources resource directoryweb/WEB-INF/directory includes includeapplicationContext.xml/include includeweb.xml/include /includes /resource /resources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId configuration outputDirectory${project.build.directory}/${project.build.finalName}/outputDirectory filtersFilesrc/filters/internet-server.properties/filtersFile filteringtrue/filtering /configuration /plugin /plugins /build Is there an error in my pom? - 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] -- Kees de Kooter Boplicity Software tel +31 10 2427171 web http://www.boplicity.nl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Plugin Development Guide Questions
What types of objects can be used as parameters? I assume this has something to do with what plexus can convert from XML content. I'm also interested in the rules regarding the types of parameters that can be used as parameters, along with what the corresponding xml is supposed to look like. From what I understand so far, for each field/property declared within the pom that you want injected into you mojo/mojo parameter, you need to have an xml element with the same name as the field/property, and also use the implementation xml attribute within that element. i.e /** * @parameter /** private Dog dog; configuration dog implementation=some.package.Dog name implementation=java.lang.StringFred/name /dog /configuration If I wanted to inject in a different Dog implementation I would simply specify a different class name as the value of the implementation attribute i.e configuration dog implementation=some.package.BigDog name implementation=java.lang.StringJimmy/name /dog /configuration Maybe this is crap. Please tell me if it is. Cheers Rob
Re: M1 - More than 1 artefact
Simon, We have the same problem. We use one project but three build.properties files (build.dev.properties, build.uat.properties and build.live.properties). In maven.xml we have three top level goals 'dev', 'uat' and 'live', which source the right properties file. We then use those properties as tokens to replace in files and to select files to copy to the target directory. For example the build.{env}.properties file would define both 'tomcat.home' and 'log4j.properties.file', and then we would do: ant:filter token=tomcat.home value=${tomcat.home} / ant:copy file=${maven.src.dir}/conf/${log4j.properties.file} tofile=${maven.war.webapp.dir}/WEB-INF/classes/log4j.properties overwrite=true filtering=true / this puts the right log4j file, with the right paths, in to the webapp directory, before the war is built. I'm not sure this is the best way to do it, and I would love to hear how other people have done it. I like Bent André Solheim's solution as well. Is there a canonical way to do this ? Every significant project must have the same issue. All the best, Graham. Richardson, Simon (Treasury) wrote: I would like the ability to create more than 1 artefact from a single project.xml file. Where the App-[env].jar file would contain configuration from src/conf/[env] and no other src/conf directory. I understand the underlying philosophy is 1 pom 1 artefact but I'm sure that others must have come across similar problems and worked round them. Regards Simon Simon Richardson Technology Tel: 020 7574 8838 E Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] HBOS Treasury Services plc 33 Old Broad Street London EC2N 1HZ MMS hbosplc.com made the following annotations. -- For more information on HBOS Treasury Services, please visit http://www.HBOSTS.com Or for details of our online FX Deposit services, please go to http://www.HBOSdeal.com HBOS Treasury Services plc is part of the HBOS Group, which also includes Halifax plc and Bank of Scotland. Registered Office: 33 Old Broad Street, London EC2N 1HZ. Registered No. 2692890. Registered in England. Authorised and regulated by the Financial Services Authority. The information contained in this message is confidential and is intended for the addressee only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. This mail and any attachments have been scanned for viruses prior to leaving the HBOS Treasury Services plc network. HBOS Treasury Services plc will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. HBOS Treasury Services plc reserves the right to monitor and record e-mail messages sent to and from this address for the purposes of investigating or detecting any unauthorised use of its system and ensuring its effective operation. == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: adding osgi dependency logic to m2
I've very briefly spoken to a couple of people about the feasibility of this. They might pipe up here. I have no idea of the work that's involved, though in theory it should happen. I am curious why this is needed though - can you explain further? - Brett On 10/6/05, Jorg Heymans [EMAIL PROTECTED] wrote: At Cocoon, we need to add osgi compliant dependency logic to m2. In a nutshell and simplified for this case : osgi allows archives to explicitly define which classes they export. We think there are 2 possible ways of achieving this: 1) adding a custom dependency type osgi, that respects osgi rules during dependency resolution. 2) plug in an osgi classloader (eclipse has this component already) into m2. Can anyone comment on the feasibility of these options? Regards Jorg Heymans - 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: Plugin Development Guide Questions
This is correct. Note the following: - string is now the default for an element with no children, so you can remove that implementation. - a tag dog will look for class Dog in the same package. So BigDog should be the only one requiring an implementation here. - Brett On 10/7/05, Robert Biernat [EMAIL PROTECTED] wrote: What types of objects can be used as parameters? I assume this has something to do with what plexus can convert from XML content. I'm also interested in the rules regarding the types of parameters that can be used as parameters, along with what the corresponding xml is supposed to look like. From what I understand so far, for each field/property declared within the pom that you want injected into you mojo/mojo parameter, you need to have an xml element with the same name as the field/property, and also use the implementation xml attribute within that element. i.e /** * @parameter /** private Dog dog; configuration dog implementation=some.package.Dog name implementation=java.lang.StringFred/name /dog /configuration If I wanted to inject in a different Dog implementation I would simply specify a different class name as the value of the implementation attribute i.e configuration dog implementation=some.package.BigDog name implementation=java.lang.StringJimmy/name /dog /configuration Maybe this is crap. Please tell me if it is. Cheers Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] m1 pom conversion
On 10/6/05, Mark Hobson [EMAIL PROTECTED] wrote: These look like they'll repoclean okay to me - can anyone see any probs before I confirm? They look good to me. - Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Error resolving plugin version
I've tried on the other beta's and I get a similar error. On M2-b2: Apparently M2 is looking for a version of the jar plugin that doesn't exist in the repository: Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-pl ugin/RELEASE/maven-jar-plugin-RELEASE.jar [WARNING] Unable to get resource from repository central ( http://repo1.maven.org /maven2) On 10/6/05, Thomas Van de Velde [EMAIL PROTECTED] wrote: Hi, I am getting the following error when I run the install goal (with M2-beta 3). Any thoughts on this? Thanks. [INFO] task-segment: [install] [INFO] - --- [WARNING] * Using defaults for missing POM org.apache.maven.plugins:maven-jar-plugin :pom:RELEASE * [INFO] - --- [ERROR] FATAL ERROR [INFO] - --- [INFO] Diagnosis: Error resolving plugin version [INFO] - --- [INFO] - --- [ERROR] FATAL ERROR [INFO] - --- FATAL ERROR: Error executing Maven for a project Error stacktrace: org.apache.maven.reactor.ReactorException: Error executing project within the re actor at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:282) Quid?
Re: [m2] m1 pom conversion
On 06/10/05, Brett Porter [EMAIL PROTECTED] wrote: They look good to me. Thanks, they should be in the next release. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SV: [m2b3] antrun problems
Ah, yes. That's a known problem. I also forgot to paste the build when I skipped the dependencies. - Brett On 10/6/05, Mattias Arbin [EMAIL PROTECTED] wrote: Embarassing! I removed the duplicate build/ and now it works. The first build including the plugins was never read. Thanks! /Mattias -Ursprungligt meddelande- Från: Yann Le Du [mailto:[EMAIL PROTECTED] Skickat: den 6 oktober 2005 13:21 Till: Maven Users List; Brett Porter Ämne: Re: SV: [m2b3] antrun problems *Fails* for me in beta-3. Mattias, you have a duplicate build . Put the finalName in the first build ant let us know (maybe you'll a build error due to compiler-plugin, but at least your Ant tasks should be executed). Yann --- Brett Porter [EMAIL PROTECTED] a écrit : works for me in beta-3: pom.xml: same as yours without dependencies build.xml: project default=foo target name=foo echofoo/echo copy tofile=pom2 file=pom.xml / /target /project output from m2 compile: [INFO] [antrun:run {execution: default}] [INFO] Executing tasks foo: [echo] foo [copy] Copying 1 file to C:\home\Brett\scratch\test-runs\antrun2 [INFO] Executed tasks On 10/6/05, Mattias Arbin [EMAIL PROTECTED] wrote: Yann. Below is my pom. If I run 'm2 compile' it seems like the generate-sources phase is never executed. Yes, I tried to add an 'echo' task. /Mattias ?xml version=1.0 ? project xsi:schemaLocation=http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupId-ratereview/groupId artifactIdratereview-clients/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameRateReview Clients/name urlhttp://maven.apache.org/url build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target compileSourceRoots compileSourceRoot /src/main/java /compileSourceRoot compileSourceRoot /target/generated-sources /compileSourceRoot /compileSourceRoots /configuration /plugin plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-sources/phase configuration tasks ant antfile=build.xml/ /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin /plugins /build dependencies dependency groupIdaxis/groupId artifactIdaxis/artifactId version1.2.1/version /dependency dependency groupIdcommons-discovery/groupId artifactIdcommons-discovery/artifactId version0.2/version /dependency dependency groupIdaxis/groupId artifactIdaxis-wsdl4j/artifactId version1.5.1/version /dependency dependency groupIdaxis/groupId artifactIdaxis-jaxrpc/artifactId version1.2.1/version /dependency dependency groupIdaxis/groupId artifactIdaxis-ant/artifactId version1.2.1/version /dependency dependency groupIdaxis/groupId artifactIdaxis-saaj/artifactId version1.2.1/version /dependency dependency groupIdjavax.activation/groupId artifactIdactivation/artifactId version1.0.2/version /dependency
[m2] artifactId appended to scm-connection and url
Hi my parent pom contains: scm connectionscm:svn://svn.freehep.org/svn/freehep/${pom.artifactId}/trunk/connection developerConnectionscm:svn://svn.freehep.org/svn/freehep/${pom.artifactId}/trunk/developerConnection /scm urlhttp://java.freehep.org/${pom.artifactId}/index.html/url in the pom of the project it seems that both scm-connection and url have artifactId appended to them, resulting in (for freehep-io): svn://svn.freehep.org/svn/freehep/freehep-io/trunk/freehep-io and http://java.freehep.org/freehep-io/index.html/freehep-io I am afraid this happens to more that these two. Both cases are wrong for me, especially the scm-connection, since svn, for tagging purposses proposes a structure like: module/trunk module/tags module/branches so, is there any way to avaoid this appending of artifactId, except for redefining these two (and others) in each project pom file (which would defeat the purpose of a parent pom)? All in m2b3. Regards Mark Donszelmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Facing trouble in setting local maven
Hi I am facing a problem in setting maven local repository on my machine. I have downloaded maven1.0 and set the path to bin and also set the class path to lib folder. Now I crated a maven/repository on my local hard drive. When I try to compile one maven project instead of looking into local maven repository it directly tries to download from internet sites. How do I say maven not to download from websites when they are present in my local repository and to look into local maven repository for desired dependencies. Muralidhar Y Software Engineer, Adastrum technologies-Nikai groups, EmiratesGroup-I.T Division, Dubai, UAE. Mobile : 00971-50-2256149. http://www.adastrumtech.com http://www.adastrumtech.com http://www.mercator.aero http://www.mercator.aero (Keep Smiling. Be happy All The Time.)
Re: [M2] Error resolving plugin version
Fixed it by rebuilding my local repository. On 10/6/05, Thomas Van de Velde [EMAIL PROTECTED] wrote: I've tried on the other beta's and I get a similar error. On M2-b2: Apparently M2 is looking for a version of the jar plugin that doesn't exist in the repository: Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-pl ugin/RELEASE/maven-jar-plugin-RELEASE.jar [WARNING] Unable to get resource from repository central ( http://repo1.maven.org /maven2) On 10/6/05, Thomas Van de Velde [EMAIL PROTECTED] wrote: Hi, I am getting the following error when I run the install goal (with M2-beta 3). Any thoughts on this? Thanks. [INFO] task-segment: [install] [INFO] - --- [WARNING] * Using defaults for missing POM org.apache.maven.plugins:maven-jar-plugin :pom:RELEASE * [INFO] - --- [ERROR] FATAL ERROR [INFO] - --- [INFO] Diagnosis: Error resolving plugin version [INFO] - --- [INFO] - --- [ERROR] FATAL ERROR [INFO] - --- FATAL ERROR: Error executing Maven for a project Error stacktrace: org.apache.maven.reactor.ReactorException: Error executing project within the re actor at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:282) Quid?
Re: Facing trouble in setting local maven
Muralidhar, By default Maven will create its local repository in your home directory. On Windows this will be C:\Document And Settings\[you username]\. To use a different directory, your need to set maven.home.local. See here for more details: http://maven.apache.org/reference/properties.html For example create a file called 'build.properties' in your home directory, and put this in it: maven.home.local=C:\\maven\\repository All the best, Graham. Muralidhar Y. wrote: Hi I am facing a problem in setting maven local repository on my machine. I have downloaded maven1.0 and set the path to bin and also set the class path to lib folder. Now I crated a maven/repository on my local hard drive. When I try to compile one maven project instead of looking into local maven repository it directly tries to download from internet sites. How do I say maven not to download from websites when they are present in my local repository and to look into local maven repository for desired dependencies. Muralidhar Y Software Engineer, Adastrum technologies-Nikai groups, EmiratesGroup-I.T Division, Dubai, UAE. Mobile : 00971-50-2256149. http://www.adastrumtech.com http://www.adastrumtech.com http://www.mercator.aero http://www.mercator.aero (Keep Smiling. Be happy All The Time.) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: adding osgi dependency logic to m2
I know that M2 has a transitive dependency walker built into it, but it sounds like what you are proposing is for M2's dependency walker to be pluggable; i.e. users can optionally plug in a different dependency resolution algorithm. Am I correct? -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Thursday, October 06, 2005 9:10 AM To: Maven Users List Subject: Re: adding osgi dependency logic to m2 I've very briefly spoken to a couple of people about the feasibility of this. They might pipe up here. I have no idea of the work that's involved, though in theory it should happen. I am curious why this is needed though - can you explain further? - Brett On 10/6/05, Jorg Heymans [EMAIL PROTECTED] wrote: At Cocoon, we need to add osgi compliant dependency logic to m2. In a nutshell and simplified for this case : osgi allows archives to explicitly define which classes they export. We think there are 2 possible ways of achieving this: 1) adding a custom dependency type osgi, that respects osgi rules during dependency resolution. 2) plug in an osgi classloader (eclipse has this component already) into m2. Can anyone comment on the feasibility of these options? Regards Jorg Heymans - 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]
[m2b3] How to use profiles for selective plugin activation?
Where can I find a good document or an example of how to use profiles to control the plugins that are activated in a specific phase? I have the following build element: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin groupIdcom.agitar.maven.plugins/groupId artifactIdmaven-agitar-plugin/artifactId executions execution goals goalagitate/goal /goals /execution /executions /plugin /plugins /build ... reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-project-info-reports-plugin/artifactId /plugin plugin groupIdcom.agitar.maven.plugins/groupId artifactIdmaven-agitar-plugin/artifactId configuration projectNameMy Project/projectName /configuration /plugin /plugins /reporting The maven-agitar-plugin has 1 mojo bound to the test phase and 1 that generates a report, but they take quite a bit of time to run, so I want these mojos to only run of the build server. I understand profiles should be the way to handle this, but I'm lost on the syntax of what goes where in the pom, and what I need to add in the settings.xml and/or on the command line to make this only active for the build server. Wb
RE: [M2] How to add custom entries in a MANIFEST.MF file?
Here's an example of a plugin that uses that patch... https://svn.apache.org/repos/asf/incubator/felix/trunk/tools/maven2/mave n-osgi-plugin I'll be happy to answer any questions... -Original Message- From: Torsten Curdt [mailto:[EMAIL PROTECTED] Sent: Thursday, October 06, 2005 2:53 AM To: Maven Users List Subject: Re: [M2] How to add custom entries in a MANIFEST.MF file? But the reply answer only about the specific case of main-class entry. I'm aware of the following patch: http://jira.codehaus.org/browse/MNG-742 But I fail to understand which class I should implement in order to invoke MavenArchiveConfiguration.addManifestEntry(key, value), and how to register my implementation to Maven 2. I'm aware of the archive and jarArchiver parameter in JAR plugin: Uhh... interesting! How does that work? I've written a maven plugin that adds the current svn revision to the manifest. It's probably easier to hook in through that method. So I would also appreciate an example how to use it. cheers -- Torsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Facing trouble in setting local maven
1) set maven.repo.remote to your local path 2) start Maven with option -o (for offline) Regards, Gisbert Amm Muralidhar Y. wrote: Hi I am facing a problem in setting maven local repository on my machine. I have downloaded maven1.0 and set the path to bin and also set the class path to lib folder. Now I crated a maven/repository on my local hard drive. When I try to compile one maven project instead of looking into local maven repository it directly tries to download from internet sites. How do I say maven not to download from websites when they are present in my local repository and to look into local maven repository for desired dependencies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Fwd: Re: Assembly plugin -- couple of questions [m2a3]]
Either I am missing somethinghere or we have some bug hanging around. I did what you suggested first and got this behaivor where the zip file is created but no resources (dependencies and artifacts) from the modules is added to it. The modules are been iterated through and the jars for each one of them is been created and everything but when the time for creating the assembly comes, none of the modules dependecies/artifacts gets added to the zip. Perhaps I am missing something in the dependencySets. All I have there is: dependencySets dependencySet outputDirectorylib/outputDirectory /dependencySet /dependencySets I am assuming that this is enough as to have all the dependencies from all the modules and the root project to be included in the lib folder but apparently it is not. Any hint at all?? Thanks Erick. Jason van Zyl wrote: On Wed, 2005-10-05 at 11:07 -0400, Erick Dovale wrote: Hi Brett, I finally got the assembly 2.0-beta-2-SNAPSHOT to work this morning after downloading the m2-beta-3. It seems to be working fine except for the fact that it is not including the jars for the modules nor their dependencies. Maybe I am missing something here: At first it was complaining about not being able to find the bin.xml file in the modules. I put a bin.xml just into each one of them containing the dependecySets with the output directory set exactly as it is in the bin.xml that I am pasting below and it started to work but, as I said, without anything from the modules. You need to provide the path to the assembly descriptor: build plugins plugin artifactIdmaven-assembly-plugin/artifactId version2.0-beta-1/version configuration descriptorsrc/main/assembly/dep.xml/descriptor /configuration /plugin /plugins /build And you only need to put it in that single location, you don't need to put in each project just the project that is responsible for creating an assembly. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Problem with checkstyle plugin
I'm using beta-3 and i'm not able to configure the checkstyle plugin to use my own checkstyle.xml configuration. I have in my pom: reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId configuration propertiesFilecheckstyle.xml/propertiesFile headerFilelicense.txt/headerFile /configuration /plugin /plugins /reporting I've also looked at the plugin source and it looks like it only checks for the format parameter to choose the style, it doesn't look at the propertiesFile parameter for that, in fact, it seems that the propertiesFile has another usage now. Any ideas ? Thanks Hugo
RE: [m2] Problem with checkstyle plugin
See http://jira.codehaus.org/browse/MNG-1113 -Vincent -Original Message- From: Hugo Palma [mailto:[EMAIL PROTECTED] Sent: jeudi 6 octobre 2005 18:17 To: users@maven.apache.org Subject: [m2] Problem with checkstyle plugin I'm using beta-3 and i'm not able to configure the checkstyle plugin to use my own checkstyle.xml configuration. I have in my pom: reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId configuration propertiesFilecheckstyle.xml/propertiesFile headerFilelicense.txt/headerFile /configuration /plugin /plugins /reporting I've also looked at the plugin source and it looks like it only checks for the format parameter to choose the style, it doesn't look at the propertiesFile parameter for that, in fact, it seems that the propertiesFile has another usage now. Any ideas ? Thanks Hugo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Problem with checkstyle plugin
Thanks, i've voted for it. On 10/6/05, Vincent Massol [EMAIL PROTECTED] wrote: See http://jira.codehaus.org/browse/MNG-1113 -Vincent -Original Message- From: Hugo Palma [mailto:[EMAIL PROTECTED] Sent: jeudi 6 octobre 2005 18:17 To: users@maven.apache.org Subject: [m2] Problem with checkstyle plugin I'm using beta-3 and i'm not able to configure the checkstyle plugin to use my own checkstyle.xml configuration. I have in my pom: reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId configuration propertiesFilecheckstyle.xml/propertiesFile headerFilelicense.txt/headerFile /configuration /plugin /plugins /reporting I've also looked at the plugin source and it looks like it only checks for the format parameter to choose the style, it doesn't look at the propertiesFile parameter for that, in fact, it seems that the propertiesFile has another usage now. Any ideas ? Thanks Hugo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M1] Manipulating Manifest Information
Hi, I'd like to include some additional informations in my Manifest files, and I want this information to be dynamically generated by maven1. It's not the typical classpath stuff, what I want is this: - Include the CVS/SVN revision number - Include the current date and time and that possibly in the same line as the normal version information. As you see, this information has to be dynamically generated. My favourite solution would be to have a placeholder (like ${foo}) in a Manifest template to which I can refer to with the known maven.jar.manifest property. I searched wide and far, the only thing I found was a posting from someone saying he did something with maven2... I'd be thankful if someone could just point me into the right direction. Regards, Michael Böckling - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] trying to deploy to a new repository
I would like to create a separate repository for deploy my artifacts and as such I've added a section in my pom: distributionManagement snapshotRepository idagwilliams1000-repo/id nameagwilliams1000 Repository/name urlscp://myhost/~/Webroot/maven/ repository/url /snapshotRepository /distributionManagement I've also added a corresponding server tag to my settings.xml. However, when I run m2 deploy it always hangs with the message Retrieving previous build number from agwilliams1000-repo I have no idea what this previous build number might be as I'm trying to upload the artifact for the first ever time. Any ideas what the problem might be? I've tried m2 -e deploy but I don't get any more information. Thanks AW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] trying to deploy to a new repository
Hi Ashley, I have: servers server idmy.snapshots/id usernameuser/username privateKey/home/user/.ssh/id_dsa/privateKey passphraseTHE PASS PHRASE/passphrase /server /server in my settings in ~/.m2/settings.xml. And i have: distributionManagement snapshotRepository idmy.snapshots/id nameMy Snapshot Central Repository/name urlscp://HOST/WEBDIR/snapshot-repository/url /snapshotRepository /distributionManagement in my pom.xml. I run: m2 -DupdateReleaseInfo=true install May that helps. Best regards, Raphaël Ashley Williams a écrit : I would like to create a separate repository for deploy my artifacts and as such I've added a section in my pom: distributionManagement snapshotRepository idagwilliams1000-repo/id nameagwilliams1000 Repository/name urlscp://myhost/~/Webroot/maven/ repository/url /snapshotRepository /distributionManagement I've also added a corresponding server tag to my settings.xml. However, when I run m2 deploy it always hangs with the message Retrieving previous build number from agwilliams1000-repo I have no idea what this previous build number might be as I'm trying to upload the artifact for the first ever time. Any ideas what the problem might be? I've tried m2 -e deploy but I don't get any more information. Thanks AW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] managing transitive dependencies
On 10/6/05, Brett Porter [EMAIL PROTECTED] wrote: Sorry, I'm missing something. Why isn't B depending on A with runtime scope? B depends on A with compile scope because it directly uses classes from A during compilation, not just at runtime. This gives the following scenario. C --(compile)-- B --(compile)-- A But, I am concerned that this implies.. C --(compile)-- B C --(compile)-- A when all that is necessary is.. C --(compile)-- B C --(runtime)-- A so that C can successfully compile and so that the classes in both A and B can be loaded and resolved during unit testing of C. Kind Regards, John Fallows On 10/6/05, John Fallows [EMAIL PROTECTED] wrote: Suppose I have 3 Maven2 projects, A, B and C. A is self-contained. B depends on A for-implementation-only. C depends on B. My understanding of dependency scopes is that if C depends on B at compile scope, then all of B's compile scope dependencies will also become transitive compile scope dependencies of C. How do I prevent the classes in A from being visible during compilation of C? Is this another usecase for provided scope? Or does marking the A dependency as provided scope may have other implications for project B? I am concerned about the potential to introduce an accidental direct dependency from A to C. Ideally, I'd like project B to control the full set of compile dependencies that are valid exports as transitive dependencies. Although I don't want to expose B's dependencies during compilation of C, some of those dependencies will be necessary at runtime or during unit test execution of C. Perhaps we could specify compile scope for C's dependency on project B itself, but test scope (say) for all of project B's dependencies? Kind Regards, John Fallows. - 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 ftp deploy - solved
I dloaded the commons-io package and added that to my maven2/lib folder and the ftp deploy worked. I'm still confused though why for some things I need to manually load plugins into the lib path and for other things, maven gets them from the central repository. Can anyone point me to an explaination? Thanks.
Re: Delivering mock objects for a public API [was Re: [m2] custom compiler mojo]
On 9/28/05, Trygve Laugstøl [EMAIL PROTECTED] wrote: On Mon, 2005-09-26 at 22:02 +, John Fallows wrote: On 9/25/05, Trygve Laugstøl [EMAIL PROTECTED] wrote: On Sat, 2005-09-24 at 04:31 +, John Fallows wrote: On 9/23/05, Trygve Laugstøl [EMAIL PROTECTED] wrote: On Fri, 2005-09-23 at 08:03 +, John Fallows wrote: [snip] [1]: http://jira.codehaus.org/browse/MNG-932 Yes, I understand that it would be generally useful to deliver a subset of the unit test code as a JAR. The above proposal still stands though, although the name mock can be treated as a placeholder for that subset until we have a better name. Not sure I agree, what more than distributing the test do you need? We need to make sure that not all the test code is delivered in the JAR, just the mocks. The reason is that this mock JAR is essentially a public API for testing, so any other test implementation code for the API project should not be included. This will prevent test authors using the mock JAR from inadvertently establishing a dependency on non-public test code in their own tests, that would then break when the API tests are changed. Alternatively, is there any mileage in the idea of having completely separate sub-modules for main, mock, and test, all inside the api-module? Don't think so, but I also think I'm missing some information here :) Let me know what you think, now that the above additional requirement is more clear. Thanks in advance. Kind Regards, John Fallows. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven 2.x documentation
Hi, I'm working on the Maven Getting Started Guide (GSG), some mini guides and some introductory material. In the last week or so I've been trying to harvest popular topics off the user list in order to create the introductory material users need and mini guides which are supposed to be little howtos for getting things done. What I have still needs to be fleshed out a great deal but if anyone has any ideas or topics for introductory material or mini guides please send them my way. Or if you have submitted something and you know of a particular JIRA issue you would like me to look at please send that my way too. http://people.apache.org/~jvanzyl/maven2/guides/toc.html Also if you want to create a little guide I would be happy to add it! :-) I hope to complete all the material for the 2.0 final release. Any feedback would be greatly appreciated. -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Simple question about pulling down dependencies
I'm using the Maven2 ant tasks and I have the following dependency listed in my ant script dependency groupId=hibernate artifactId=hibernate version=3.0.5/ Problem is, this pulls down easily 20 different sub-dependencies, but one of them (javax/security/jacc/1.0) is missing a jar (that dir only contains a pom) I tried pulling down spring, but it has a similar problem where jdbc/jdbc/2.0 is missing a jar. What is the solution to this? I know I can just tell maven to exclude the ones that don't work, but that's a hack. Does this happen often? Is it a known bug? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cannot find xdoclet.modules.ejb.EjbDocletTask. Huh?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I recently installed xdocklet on my laptop and plan to use it with maven to do some projects. I set up a very simple maven specification: ?xml version=1.0? project default=war preGoal name=java:compile attainGoal name=xdoclet:ejbdoclet/ attainGoal name=xdoclet:jmxdoclet/ attainGoal name=xdoclet:webdoclet/ attainGoal name=xdoclet:hibernatedoclet/ /preGoal /project I set up my ~/build.properties file to include the jar that contains the EjbDocletTask and let her rip. When I do I get: __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 Tag library requested that is not present: 'maven' in plugin: 'maven-xdoclet-plugin-1.2' BUILD FAILED File.. /home/pberghol/.maven/cache/maven-xdoclet-plugin-1.2/plugin.jelly Element... taskdef Line.. 5746 Column 81 taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found Total time: 11 seconds Finished at: Thu Oct 06 15:13:23 EDT 2005 OK... what gives? What am I doing wrong here? I know it has to be me... but what am I doing wrong? I'm using maven version 1.0.2 at the moment. - -- Peter L. Berghold [EMAIL PROTECTED] Those who fail to learn from history are condemned to repeat it. AIM: redcowdawgYahoo IM: blue_cowdawg ICQ: 11455958 -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDRXk6UM9/01RIhaARAo/qAJ9U+3zDaAcuP6NOMujVETlRx/9edwCfTC5R 7CdADtNaKnmH3lfw097Nt0k= =Hq+G -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] trying to deploy to a new repository
Hi Raphaël, It could be that using key authentication makes the difference - I'll see if that works for me. It seems that I have no luck on anything that involves scp thus far with Maven. Thanks AW On 6 Oct 2005, at 18:32, Raphaël Piéroni wrote: Hi Ashley, I have: servers server idmy.snapshots/id usernameuser/username privateKey/home/user/.ssh/id_dsa/privateKey passphraseTHE PASS PHRASE/passphrase /server /server in my settings in ~/.m2/settings.xml. And i have: distributionManagement snapshotRepository idmy.snapshots/id nameMy Snapshot Central Repository/name urlscp://HOST/WEBDIR/snapshot-repository/url /snapshotRepository /distributionManagement in my pom.xml. I run: m2 -DupdateReleaseInfo=true install May that helps. Best regards, Raphaël Ashley Williams a écrit : I would like to create a separate repository for deploy my artifacts and as such I've added a section in my pom: distributionManagement snapshotRepository idagwilliams1000-repo/id nameagwilliams1000 Repository/name urlscp://myhost/~/Webroot/maven/ repository/url /snapshotRepository /distributionManagement I've also added a corresponding server tag to my settings.xml. However, when I run m2 deploy it always hangs with the message Retrieving previous build number from agwilliams1000-repo I have no idea what this previous build number might be as I'm trying to upload the artifact for the first ever time. Any ideas what the problem might be? I've tried m2 -e deploy but I don't get any more information. Thanks AW - 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: Facing trouble in setting local maven
I will try with this. This might work. Muralidhar Y Software Engineer, Adastrum technologies-Nikai groups, EmiratesGroup-I.T Division, Dubai, UAE. Mobile : 00971-50-2256149. http://www.adastrumtech.com http://www.mercator.aero (Keep Smiling. Be happy All The Time.) -Original Message- From: Graham King [mailto:[EMAIL PROTECTED] Sent: 06 October 2005 19:01 To: Maven Users List Subject: Re: Facing trouble in setting local maven Muralidhar, By default Maven will create its local repository in your home directory. On Windows this will be C:\Document And Settings\[you username]\. To use a different directory, your need to set maven.home.local. See here for more details: http://maven.apache.org/reference/properties.html For example create a file called 'build.properties' in your home directory, and put this in it: maven.home.local=C:\\maven\\repository All the best, Graham. Muralidhar Y. wrote: Hi I am facing a problem in setting maven local repository on my machine. I have downloaded maven1.0 and set the path to bin and also set the class path to lib folder. Now I crated a maven/repository on my local hard drive. When I try to compile one maven project instead of looking into local maven repository it directly tries to download from internet sites. How do I say maven not to download from websites when they are present in my local repository and to look into local maven repository for desired dependencies. Muralidhar Y Software Engineer, Adastrum technologies-Nikai groups, EmiratesGroup-I.T Division, Dubai, UAE. Mobile : 00971-50-2256149. http://www.adastrumtech.com http://www.adastrumtech.com http://www.mercator.aero http://www.mercator.aero (Keep Smiling. Be happy All The Time.) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] How to add custom entries in a MANIFEST.MF file?
On Thu, 2005-10-06 at 17:49 +1100, Martin Desruisseaux wrote: Hello all How to add custom entries in a JAR file (in addition to the current file created by Maven 2)? To be more specific, I would like to add a RegistrationClassName: org.geotools.openoffice.Registration entry for an OpenOffice.org add-in. I'm just working on the doco so maybe this will help: http://people.apache.org/~jvanzyl/maven2/guides/mini/guide-manifest.html Timothy/Martin, if you see anything missing let me know or patch away. -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] creating war from existing wars
What I am trying to accomplish is to create new war file form the set of existing wars. I created two test wars: war1 and war2. The goal is to create new war that will have JSPs from both war1 and war2. So the steps are 1.Unpack war1 and war2 files 2.Create new war file using JSPs from unpacked wars I tried to use assembly plugin for this: assembly idwar/id formats formatwar/format /formats . . . dependencySets dependencySet unpacktrue/unpack outputDirectory//outputDirectory includes includetestwar:war1/include includetestwar:war2/include /includes /dependencySet /dependencySets /assembly However there are problems: First is that assembly plugin does not know how to unpack war file: Unable to obtain unarchiver for file '/testwar/war1/1.0-SNAPSHOT/war1-1.0-SNAPSHOT.war' When I switch to jar it does unpack them but now it cannot create new war file: org.codehaus.plexus.archiver.ArchiverException: webxml attribute is required Can assembly plugin assemble wars? Is there a better way to do this? Thanks, Miodrag - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] faulty scp protocol handling in wagon?
The patch on jsch made by Atsuhiko Yamanaka worked as expected. The intermittent failure with ScpWagon on session is down has vanished. -- Ørjan Brett Porter wrote: great! Thanks, Brett On 10/6/05, Orjan Austvold [EMAIL PROTECTED] wrote: I have discussed the bug fix the author if jsch, and he has made a fix which is available on http://www.jcraft.com/jsch/jsch-0.1.23-pre1.zip. I'll test that version later today. -- Ørjan Brett Porter wrote: have jsch indicated when they might include it? is the scpexe protocol a viable alternative for you? - Brett On 10/5/05, Orjan Austvold [EMAIL PROTECTED] wrote: I noticed that sch 0.1.22 got released yesterday. Only to bad that that it did not include a fix for the MNG-678 issue. In the meantime I'm forced to continue providing a modified m2-b2 release containing a patched jsch library for building projects at work. -- Ørjan Brett Porter wrote: This is great. Thanks for your help on this - I'll take a look. - Brett On 9/30/05, Orjan Austvold [EMAIL PROTECTED] wrote: The issue with intermittent failure in ScpWagon seems to have been solved now. To me it seems to be a race condition between the thread running the ScpWagon and the internal jsch thread tracking session events. ScpWagon terminates the exec channel when it discovers that enough bytes have been read/written. This interferes with jsch which could receive an SSH_MSG_CHANNEL_EOF message from the remote server at the same time. I have filed a bug-report to the jsch project and updated the MNG-678 JIRA issue for m2 with a description of what's going on. My guess is that even though this is a failure in jsch, the ScpWagon code should do proper testing for if a session is connected or not before creating a channel. Thanks, Ørjan Brett Porter wrote: I have experienced this too - there is an open bug I believe. I'm not sure if the problem is in jsch, or our use of jsch though. I'd welcome any assistance you can provide. Thanks, Brett On 9/21/05, Orjan Austvold [EMAIL PROTECTED] wrote: Often when downloading new artifacts from a scp repository the build fails with Root error: session is down It could be that my the ssh configuration on the scp repository is faulty, but I thought I'd check here before digging into ssh-debugging. In my pom.xml I have configured repositories repository idsecure-repository/id urlscp:/myhost.com/var/mavenrep/maven2/url layoutdefault/layout snapshotPolicydaily/snapshotPolicy /repository repository idcentral/id urlhttp://ibiblio.org/maven2/url /repository /repositories In my settings.xml I have configured settings servers server idsecure-repository/id usernameme/username privateKey/home/me/.ssh/id_dsa/privateKey passphrasemyPassPhrase/passphrase /server /servers mirrors mirror idcloser-central/id urlhttp://mirrors.sunsite.dk/maven2/url layoutdefault/layout snapshotPolicydaily/snapshotPolicy mirrorOfcentral/mirrorOf /mirror /mirrors /settings Best regards, Ørjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ørjan Austvold - Senior Software Architect www.colibria.com - putting the presence into messaging - 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] -- Ørjan Austvold - Senior Software Architect www.colibria.com - putting the presence into messaging - 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] -- Ørjan Austvold - Senior Software Architect www.colibria.com - putting the presence into messaging - 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] -- Ørjan Austvold - Senior Software Architect www.colibria.com - putting the presence into messaging - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Filtering problems
On Thu, 2005-10-06 at 15:48 +0200, Philippe HUET wrote: Kees, It seems than m2b3 use filter tag instead of filtersFile now: build filters filtersrc/filters/internet-server.properties/filter /filters resources resource ... filteringtrue/filtering /resource ... /resources ... /build I got the same problem yesterday and this solution works for me. Now captured and added here: http://people.apache.org/~jvanzyl/maven2/guides/getting- started/index.html#How%20do%20I%20filter%20resources%20against%20my% 20POM? -- Philippe HUET / [EMAIL PROTECTED] Kees de Kooter a écrit : I downloaded beta 3, beta 2 of the resources plugin was downloaded. When I run maven files get copied, but no replacements were made. If I change the filename of the filter file no errors are reported, so it looks like it is not being used at all. Here is my pom: build resources resource directoryweb/WEB-INF/directory includes includeapplicationContext.xml/include includeweb.xml/include /includes /resource /resources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId configuration outputDirectory${project.build.directory}/${project.build.finalName}/outputDirectory filtersFilesrc/filters/internet-server.properties/filtersFile filteringtrue/filtering /configuration /plugin /plugins /build Is there an error in my pom? - 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] -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [M2] How to add custom entries in a MANIFEST.MF file?
MavenArchiveConfiguration was also patched to allow the manifest file to be set? Was maven-jar-plugin rev'd to allow a user to specify a manifest.mf file on the file system to be pulled in and used? -Original Message- From: Jason van Zyl [mailto:[EMAIL PROTECTED] Sent: Thursday, October 06, 2005 3:00 PM To: Maven Users List Subject: Re: [M2] How to add custom entries in a MANIFEST.MF file? On Thu, 2005-10-06 at 17:49 +1100, Martin Desruisseaux wrote: Hello all How to add custom entries in a JAR file (in addition to the current file created by Maven 2)? To be more specific, I would like to add a RegistrationClassName: org.geotools.openoffice.Registration entry for an OpenOffice.org add-in. I'm just working on the doco so maybe this will help: http://people.apache.org/~jvanzyl/maven2/guides/mini/guide-man ifest.html Timothy/Martin, if you see anything missing let me know or patch away. -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org - 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]
Help on errors when loaing Maven2 POM
Can someone help me on building a Maven 2 project in Continuum? I wanted to try Continuum with Maven 2, when loading a pom.xml file of my project, the continuum tried to find other pom.xml files under /tmp/summit-2/ directory which does not exist. In fact, all of those files should be under ./subdirectories. If I copy all of my project under /tmp/summit-2, then Continuum can load the POM correctly. However, it cannot build. So I used the Contunuum source code as a test which I believe it should work. When I uploaded the pom.xml file at the root directory of the Continuum, I got the the same errors. It seems the Continuum tried to get the pom.xml files in the subdirectory at a wrong path: * Could not download file:/tmp/summit-2/continuum-api/pom.xml: /tmp/summit-2/continuum-api/pom.xml (No such file or directory) Check the logs for more details. * Could not download file:/tmp/summit-2/continuum-cc/pom.xml: /tmp/summit-2/continuum-cc/pom.xml (No such file or directory) Check the logs for more details. * Could not download file:/tmp/summit-2/continuum-core-it/pom.xml: /tmp/summit-2/continuum-core-it/pom.xml (No such file or directory) Check the logs for more details. ... Here is what I did: 1) check out code at: http://svn.apache.org/repos/asf/maven/continuum/trunk/ 2) Modify the notifier email address to my email address 3) in Continuum web interface, submit the local pom.xml file at the Continum directory. I got error message showing above. Thanks in advance, Frank
RE: [M2] How to add custom entries in a MANIFEST.MF file?
On Thu, 2005-10-06 at 15:56 -0500, Bennett, Timothy (JIS - Applications) wrote: MavenArchiveConfiguration was also patched to allow the manifest file to be set? Was maven-jar-plugin rev'd to allow a user to specify a manifest.mf file on the file system to be pulled in and used? Yes, that option is there. I've updated the doco. Thanks for catching that. -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Plugin Development Guide Questions
On Fri, 2005-10-07 at 00:01 +1000, Robert Biernat wrote: What types of objects can be used as parameters? I assume this has something to do with what plexus can convert from XML content. I'm also interested in the rules regarding the types of parameters that can be used as parameters, along with what the corresponding xml is supposed to look like. Hopefully this will help to start: http://people.apache.org/~jvanzyl/maven2/guides/mini/guide-configuring- plugins.html I'm going to need a FAQ bot soon! -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org Three people can keep a secret provided two of them are dead. -- Unknown - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M1] Manipulating Manifest Information
I'd like to include some additional informations in my Manifest files, and I want this information to be dynamically generated by maven1. It's not the typical classpath stuff, what I want is this: - Include the CVS/SVN revision number I am happy to donate the plugin I've written ...although I am sure it could be done maybe a bit more elegant. - Include the current date and time Peace of cake to add and that possibly in the same line as the normal version information. Uh ...why? As you see, this information has to be dynamically generated. My favourite solution would be to have a placeholder (like ${foo}) in a Manifest template to which I can refer to with the known maven.jar.manifest property. I searched wide and far, the only thing I found was a posting from someone saying he did something with maven2... What I've done is java based and just has a light jelly wrapper. Should be easy to come up with a m2 plugin but m1 is there right now. I'd be thankful if someone could just point me into the right direction. Seems there is some need for this ...great :) cheers -- Torsten PGP.sig Description: This is a digitally signed message part
Maven 2.0 Multi-Project HowTo?
Does someone have a document/article on how to do this with Maven 2.0? So far my flailing around hasn't got me anywhere. If nothing else does someone have an example? I found this (http://www.informit.com/articles/article.asp?p=411571) article but it was for 1.0 and it doesn't seem to transfer for 2.0. Basically I'm trying to do something similar to the article above in that I want to be able to define all the dependency version numbers and the project version numbers in a top level (or common) pom.xml so that when version numbers change I only have to touch a single file rather than a dozen. The article shows almost exactly what I'm trying to do (except I'm not working on a webapp) and I can't seem to replicate the behavior. Basically I end up with the following error which seems wrong to me: Downloading: http://repo1.maven.org/maven2/FXToolkit/FXToolkit/${pom.currentVersion}/ FXToolkit-${pom.currentVersion}.pom Why should it be trying to fetch a .pom when I've told the subprojects which pom.xml to use? Any help/links would be appreciated. Mark Russell EXAMPLE == I've tried something similar to the following: Dir structure: - Toolkit |- pom.xml (master) |- FwkUtils |- pom.xml |- DomainFwk |- pom.xml The master pom.xml looks like (note dependencies ommited for the moment): project modelVersion4.0.0/modelVersion groupIdFXToolkit/groupId artifactIdFXToolkit/artifactId packagingpom/packaging version3.0/version descriptionFX Suite Toolkit/description inceptionYear2002/inceptionYear prerequisites maven2.0-beta-3/maven /prerequisites modules moduleFwkUtils/module moduleDomainFwk/module /modules /project The FwkUtils pom.xml: project modelVersion4.0.0/modelVersion parent artifactIdFXToolkit/artifactId groupIdFXToolkit/groupId version${pom.currentVersion}/version relativePath../pom.xml/relativePath /parent artifactIdFwkUtils/artifactId packagingjar/packaging build sourceDirectorysrc/java/sourceDirectory outputDirectorytarget/classes/outputDirectory /build /project - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question on tags for logging
My dependency is shown below. Is this the right version? dependency groupIdcommons-jelly/groupId artifactIdcommons-jelly-tags-log/artifactId version1.0/version typejar/type /dependency -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 05, 2005 8:04 PM To: Maven Users List Subject: Re: Question on tags for logging These tags should go to the normal output, and are controlled by Maven's log4j.properties. debug is only shown with -X info is suppressed with -q Did you include a dependency on comons-jelly-tags-logging? - Brett On 10/6/05, Weaver, Jonathan [EMAIL PROTECTED] wrote: I am creating a plugin and using log:debug and log:info, etc. to get output on the console or in a log file. But I have not been able to find out how to configure maven to output the log messages anywhere. I added a log4j.properties to my user profile folder. I added the log4j.configuration property to my project properties. I get nothing. Any ideas? - 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 on tags for logging
I am now getting the debug output. In the debug I get a lot of Could not load class ... lines like those below. Is this an issue I should be trying to resolve? The plugin seems to work correctly... [DEBUG] Could not load class (org.apache.tools.ant.taskdefs.optional.PropertyFile) for type propertyfile [DEBUG] Could not load class (org.apache.tools.ant.taskdefs.optional.clearcase.CCMkdir) for type ccmkdir [DEBUG] Could not load class (org.apache.tools.ant.taskdefs.optional.dotnet.ImportTypelib) for type importtypelib [DEBUG] Could not load class (org.apache.tools.ant.taskdefs.optional.vss.MSVSSCHECKIN) for type vsscheckin [DEBUG] Could not load class (org.apache.tools.ant.taskdefs.optional.perforce.P4Reopen) for type p4reopen [DEBUG] Could not load class (org.apache.tools.ant.taskdefs.optional.image.Image) for type image [DEBUG] Could not load class (org.apache.tools.ant.taskdefs.optional.dotnet.CSharp) for type csc [DEBUG] Could not load class (org.apache.tools.ant.taskdefs.optional.ssh.SSHExec) for type sshexec [DEBUG] Could not load class (org.apache.tools.ant.taskdefs.optional.ejb.WLRun) for type wlrun [DEBUG] Could not load class (org.apache.tools.ant.taskdefs.optional.perforce.P4Label) for type p4label [DEBUG] Could not load class (org.apache.tools.ant.taskdefs.optional.perforce.P4Revert) for type p4revert [DEBUG] Could not load class (org.apache.tools.ant.taskdefs.optional.ReplaceRegExp) for type replaceregexp [DEBUG] Could not load class (org.apache.tools.ant.taskdefs.optional.javacc.JJTree) for type jjtree -Original Message- From: Weaver, Jonathan [mailto:[EMAIL PROTECTED] Sent: Thursday, October 06, 2005 4:47 PM To: Maven Users List Subject: RE: Question on tags for logging My dependency is shown below. Is this the right version? dependency groupIdcommons-jelly/groupId artifactIdcommons-jelly-tags-log/artifactId version1.0/version typejar/type /dependency -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 05, 2005 8:04 PM To: Maven Users List Subject: Re: Question on tags for logging These tags should go to the normal output, and are controlled by Maven's log4j.properties. debug is only shown with -X info is suppressed with -q Did you include a dependency on comons-jelly-tags-logging? - Brett On 10/6/05, Weaver, Jonathan [EMAIL PROTECTED] wrote: I am creating a plugin and using log:debug and log:info, etc. to get output on the console or in a log file. But I have not been able to find out how to configure maven to output the log messages anywhere. I added a log4j.properties to my user profile folder. I added the log4j.configuration property to my project properties. I get nothing. Any ideas? - 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 on tags for logging
Weaver, Jonathan wrote: In the debug I get a lot of Could not load class ... lines like those below. Is this an issue I should be trying to resolve? The plugin seems to work correctly... I have reported that once already: http://marc.theaimsgroup.com/?t=11238891031r=1w=2 I still don't know what's causing this, some side effect of the upgrade to ant 1.6.5 ... -Lukas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question on tags for logging
Thanks. -Original Message- From: Lukas Theussl [mailto:[EMAIL PROTECTED] Sent: Thursday, October 06, 2005 5:19 PM To: Maven Users List Subject: Re: Question on tags for logging Weaver, Jonathan wrote: In the debug I get a lot of Could not load class ... lines like those below. Is this an issue I should be trying to resolve? The plugin seems to work correctly... I have reported that once already: http://marc.theaimsgroup.com/?t=11238891031r=1w=2 I still don't know what's causing this, some side effect of the upgrade to ant 1.6.5 ... -Lukas - 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]
[m11b2] Ant libraries shipped with 1.1 beta 2
As part of testing maven 1.1, some of our plugins 'broke' as they were relying on Ant tasks that were previously shipped in ant-optional-VERSION.jar. Maven 1.1 beta 2 doesn't provide a full complement of Ant's optional tasks, and hence breaks compatibility with 1.0.2. Is this intentional? -- http://www.multitask.com.au/people/dion/ You are going to let the fear of poverty govern your life and your reward will be that you will eat, but you will not live. - George Bernard Shaw - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] trying to deploy to a new repository
Hi Ashley, I have had similar issues to you when attempting to use the scp protocol type. See the [m2] deploy via scp thread in the list archives. What I have found is that, as Raphaël has already mentioned, to use scp you need to specify all of username, privateKey and passphrase for each server in your settings.xml. If you want to use scp native features (anything in ~/.ssh or via ssh-agent) you must use the scpexe protocol instead. See http://jira.codehaus.org/browse/MNG-712 for some related info. Even with the above taken into account there appears to be a bug generating repository metadata when using scp or scpexe. See the [m2] deploy via scpexe - Unable to retrieve metadata thread and http://jira.codehaus.org/browse/MNG-925. This sounds similar to what you are experiencing. Cheers, ...andrew Ashley Williams wrote: Hi Raphaël, It could be that using key authentication makes the difference - I'll see if that works for me. It seems that I have no luck on anything that involves scp thus far with Maven. Thanks AW On 6 Oct 2005, at 18:32, Raphaël Piéroni wrote: Hi Ashley, I have: servers server idmy.snapshots/id usernameuser/username privateKey/home/user/.ssh/id_dsa/privateKey passphraseTHE PASS PHRASE/passphrase /server /server in my settings in ~/.m2/settings.xml. And i have: distributionManagement snapshotRepository idmy.snapshots/id nameMy Snapshot Central Repository/name urlscp://HOST/WEBDIR/snapshot-repository/url /snapshotRepository /distributionManagement in my pom.xml. I run: m2 -DupdateReleaseInfo=true install May that helps. Best regards, Raphaël Ashley Williams a écrit : I would like to create a separate repository for deploy my artifacts and as such I've added a section in my pom: distributionManagement snapshotRepository idagwilliams1000-repo/id nameagwilliams1000 Repository/name urlscp://myhost/~/Webroot/maven/ repository/url /snapshotRepository /distributionManagement I've also added a corresponding server tag to my settings.xml. However, when I run m2 deploy it always hangs with the message Retrieving previous build number from agwilliams1000-repo I have no idea what this previous build number might be as I'm trying to upload the artifact for the first ever time. Any ideas what the problem might be? I've tried m2 -e deploy but I don't get any more information. Thanks AW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] How to add custom entries in a MANIFEST.MF file?
Jason van Zyl a écrit : I'm just working on the doco so maybe this will help: http://people.apache.org/~jvanzyl/maven2/guides/mini/guide-manifest.html Thanks a lot! It is exactly what I was looking for, and it worked perfectly well!!! Those kind of documentation save days :) As a side note (not a big issue), I noticed that the Specification-Title: entry in the manifest contains all the text specified in the project description/ element. Is it the intended behavior? (I though that description/ was for long description, something like a paragraph, and name/ would be for shorter title applicable to Specification-Title: or Implementation-Title:). Martin. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple question about pulling down dependencies
It's not a bug... Those are jar files that can't be redistributed via the website, because of licensing issues. http://maven.apache.org/reference/standard-sun-jar-names.html Generally, either put them in your internal repository if you have one, or install in your local repository, or specify an exclusion if you really don't actually need it. In the you really don't need it case, I think that an optional scope for dependencies was added, and as POM's start to use that correctly, you'll pull down less. I'm not sure where that stands currently though... -Stephen On 10/6/05, Daniel Hannum [EMAIL PROTECTED] wrote: I'm using the Maven2 ant tasks and I have the following dependency listed in my ant script dependency groupId=hibernate artifactId=hibernate version=3.0.5/ Problem is, this pulls down easily 20 different sub-dependencies, but one of them (javax/security/jacc/1.0) is missing a jar (that dir only contains a pom) I tried pulling down spring, but it has a similar problem where jdbc/jdbc/2.0 is missing a jar. What is the solution to this? I know I can just tell maven to exclude the ones that don't work, but that's a hack. Does this happen often? Is it a known bug? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m11b2] Ant libraries shipped with 1.1 beta 2
I'd been considering this. We didn't really support some of them before (due to not having the actual dependencies in the core). We should at least add -nodeps. We could add them all back. It was nice to trim up the distro for unused stuff, but it's not a huge concern. - Brett On 10/7/05, Dion Gillard [EMAIL PROTECTED] wrote: As part of testing maven 1.1, some of our plugins 'broke' as they were relying on Ant tasks that were previously shipped in ant-optional-VERSION.jar. Maven 1.1 beta 2 doesn't provide a full complement of Ant's optional tasks, and hence breaks compatibility with 1.0.2. Is this intentional? -- http://www.multitask.com.au/people/dion/ You are going to let the fear of poverty govern your life and your reward will be that you will eat, but you will not live. - George Bernard Shaw - 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 2.0 Multi-Project HowTo?
1st, there's no such thing, I think, as ${pom.currentVersion}; the equivalent in M2 would be ${project.version} However, from what I've seen so far, you're going to have to define the parent version in the subprojects. The idea here is that subprojects should be able to be built independently. Also, an early hint since you probably haven't gotten there yet: define the common dependency version in dependencyManagement section in the parent, and then define the dependencies the subprojects use in their pom.xml files, but dont' specify the version. This will pull the verison from the dependencyManagement section. -Stephen On 10/6/05, Russell, Mark [EMAIL PROTECTED] wrote: Does someone have a document/article on how to do this with Maven 2.0? So far my flailing around hasn't got me anywhere. If nothing else does someone have an example? I found this (http://www.informit.com/articles/article.asp?p=411571) article but it was for 1.0 and it doesn't seem to transfer for 2.0. Basically I'm trying to do something similar to the article above in that I want to be able to define all the dependency version numbers and the project version numbers in a top level (or common) pom.xml so that when version numbers change I only have to touch a single file rather than a dozen. The article shows almost exactly what I'm trying to do (except I'm not working on a webapp) and I can't seem to replicate the behavior. Basically I end up with the following error which seems wrong to me: Downloading: http://repo1.maven.org/maven2/FXToolkit/FXToolkit/${pom.currentVersion}/ FXToolkit-${pom.currentVersion}.pom Why should it be trying to fetch a .pom when I've told the subprojects which pom.xml to use? Any help/links would be appreciated. Mark Russell EXAMPLE == I've tried something similar to the following: Dir structure: - Toolkit |- pom.xml (master) |- FwkUtils |- pom.xml |- DomainFwk |- pom.xml The master pom.xml looks like (note dependencies ommited for the moment): project modelVersion4.0.0/modelVersion groupIdFXToolkit/groupId artifactIdFXToolkit/artifactId packagingpom/packaging version3.0/version descriptionFX Suite Toolkit/description inceptionYear2002/inceptionYear prerequisites maven2.0-beta-3/maven /prerequisites modules moduleFwkUtils/module moduleDomainFwk/module /modules /project The FwkUtils pom.xml: project modelVersion4.0.0/modelVersion parent artifactIdFXToolkit/artifactId groupIdFXToolkit/groupId version${pom.currentVersion}/version relativePath../pom.xml/relativePath /parent artifactIdFwkUtils/artifactId packagingjar/packaging build sourceDirectorysrc/java/sourceDirectory outputDirectorytarget/classes/outputDirectory /build /project - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m2 ftp deploy - solved
Actually, the intention is you add wagon-ftp to the extensions list under build - that should do everything (including the commons-io bit) without the need to copy stuff into $M2_HOME/lib. - Brett On 10/7/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I dloaded the commons-io package and added that to my maven2/lib folder and the ftp deploy worked. I'm still confused though why for some things I need to manually load plugins into the lib path and for other things, maven gets them from the central repository. Can anyone point me to an explaination? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] managing transitive dependencies
The reason for this difference is because if B extends a class from A, and C uses the class from B, A is required at compile time. Otherwise, I'd agree. - Brett On 10/7/05, John Fallows [EMAIL PROTECTED] wrote: On 10/6/05, Brett Porter [EMAIL PROTECTED] wrote: Sorry, I'm missing something. Why isn't B depending on A with runtime scope? B depends on A with compile scope because it directly uses classes from A during compilation, not just at runtime. This gives the following scenario. C --(compile)-- B --(compile)-- A But, I am concerned that this implies.. C --(compile)-- B C --(compile)-- A when all that is necessary is.. C --(compile)-- B C --(runtime)-- A so that C can successfully compile and so that the classes in both A and B can be loaded and resolved during unit testing of C. Kind Regards, John Fallows On 10/6/05, John Fallows [EMAIL PROTECTED] wrote: Suppose I have 3 Maven2 projects, A, B and C. A is self-contained. B depends on A for-implementation-only. C depends on B. My understanding of dependency scopes is that if C depends on B at compile scope, then all of B's compile scope dependencies will also become transitive compile scope dependencies of C. How do I prevent the classes in A from being visible during compilation of C? Is this another usecase for provided scope? Or does marking the A dependency as provided scope may have other implications for project B? I am concerned about the potential to introduce an accidental direct dependency from A to C. Ideally, I'd like project B to control the full set of compile dependencies that are valid exports as transitive dependencies. Although I don't want to expose B's dependencies during compilation of C, some of those dependencies will be necessary at runtime or during unit test execution of C. Perhaps we could specify compile scope for C's dependency on project B itself, but test scope (say) for all of project B's dependencies? Kind Regards, John Fallows. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] trying to deploy to a new repository
This may not be related, but I remember having problems a while back because my ssh server was not configured to support plain text passwords (PasswordAuthentication yes)... On 10/6/05, andrew [EMAIL PROTECTED] wrote: Hi Ashley, I have had similar issues to you when attempting to use the scp protocol type. See the [m2] deploy via scp thread in the list archives. What I have found is that, as Raphaël has already mentioned, to use scp you need to specify all of username, privateKey and passphrase for each server in your settings.xml. If you want to use scp native features (anything in ~/.ssh or via ssh-agent) you must use the scpexe protocol instead. See http://jira.codehaus.org/browse/MNG-712 for some related info. Even with the above taken into account there appears to be a bug generating repository metadata when using scp or scpexe. See the [m2] deploy via scpexe - Unable to retrieve metadata thread and http://jira.codehaus.org/browse/MNG-925. This sounds similar to what you are experiencing. Cheers, ...andrew Ashley Williams wrote: Hi Raphaël, It could be that using key authentication makes the difference - I'll see if that works for me. It seems that I have no luck on anything that involves scp thus far with Maven. Thanks AW On 6 Oct 2005, at 18:32, Raphaël Piéroni wrote: Hi Ashley, I have: servers server idmy.snapshots/id usernameuser/username privateKey/home/user/.ssh/id_dsa/privateKey passphraseTHE PASS PHRASE/passphrase /server /server in my settings in ~/.m2/settings.xml. And i have: distributionManagement snapshotRepository idmy.snapshots/id nameMy Snapshot Central Repository/name urlscp://HOST/WEBDIR/snapshot-repository/url /snapshotRepository /distributionManagement in my pom.xml. I run: m2 -DupdateReleaseInfo=true install May that helps. Best regards, Raphaël Ashley Williams a écrit : I would like to create a separate repository for deploy my artifacts and as such I've added a section in my pom: distributionManagement snapshotRepository idagwilliams1000-repo/id nameagwilliams1000 Repository/name urlscp://myhost/~/Webroot/maven/ repository/url /snapshotRepository /distributionManagement I've also added a corresponding server tag to my settings.xml. However, when I run m2 deploy it always hangs with the message Retrieving previous build number from agwilliams1000-repo I have no idea what this previous build number might be as I'm trying to upload the artifact for the first ever time. Any ideas what the problem might be? I've tried m2 -e deploy but I don't get any more information. Thanks AW - 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] -- Daniel Krisher - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m11b2] Ant libraries shipped with 1.1 beta 2
nodeps was the one I needed. And it makes sense to at least provide that for 1.1. For all the other ant optional jars, you would have at least had to add their dependencies in to your own pom to get it to work. At the least, we should add an example on using an optional task. On 10/7/05, Brett Porter [EMAIL PROTECTED] wrote: I'd been considering this. We didn't really support some of them before (due to not having the actual dependencies in the core). We should at least add -nodeps. We could add them all back. It was nice to trim up the distro for unused stuff, but it's not a huge concern. - Brett On 10/7/05, Dion Gillard [EMAIL PROTECTED] wrote: As part of testing maven 1.1, some of our plugins 'broke' as they were relying on Ant tasks that were previously shipped in ant-optional-VERSION.jar. Maven 1.1 beta 2 doesn't provide a full complement of Ant's optional tasks, and hence breaks compatibility with 1.0.2. Is this intentional? -- http://www.multitask.com.au/people/dion/ You are going to let the fear of poverty govern your life and your reward will be that you will eat, but you will not live. - George Bernard Shaw - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.multitask.com.au/people/dion/ You are going to let the fear of poverty govern your life and your reward will be that you will eat, but you will not live. - George Bernard Shaw - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where are the report plugins??
Hi people, Anybody could tell which reports can I use with m2? and where can I checkout it? thanks Cristiano - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m11b2] Long coercion exception
Hi, Thanks for the reply! Actually there is so little information, I do not know even what and where causes the error. Basically I develop a custom goal in a maven.xml (without any project.xml) and use m11b2 to invoke it. And the error came out before build:start is printed out to the console. Also it would remind me to define default goal in build/. I have tried to use maven:genapp to create a dummy project.xml, and the error still occur. But if I run m11b2 on other projects, it runs run... I did not define any email address in either maven.xml or project.xml. Cheers, AK PS. FYI, Here is what I got from maven -i __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.1-beta-2 plugin maven-cruisecontrol-plugin-1.6 is cached (dynatag dep) but no longer present Cache invalidated due to out of date plugins - Environment java.version=1.5.0_04 file.encoding=Cp1252 java.ext.dirs=c:\Program Files\Java\jdk1.5.0_04\jre\lib\ext java.class.path=f:\opt\cygwin\opt\maven-1.1-beta-2/lib/forehead-1.0-beta-5.j ar os.name=Windows XP java.vendor=Sun Microsystems Inc. sun.boot.class.path=c:\Program Files\Java\jdk1.5.0_04\jre\lib\rt.jar;c:\Program Files\Ja va\jdk1.5.0_04\jre\lib\i18n.jar;c:\Program Files\Java\jdk1.5.0_04\jre\lib\sunrsasign.jar;c :\Program Files\Java\jdk1.5.0_04\jre\lib\jsse.jar;c:\Program Files\Java\jdk1.5.0_04\jre\li b\jce.jar;c:\Program Files\Java\jdk1.5.0_04\jre\lib\charsets.jar;c:\Program Files\Java\jdk 1.5.0_04\jre\classes java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition - Installed plugins : icmsbuild-plugin-1.5 maven-abbot-plugin-1.1 maven-announcement-plugin-1.3 maven-ant-plugin-1.9 maven-antlr-plugin-1.2.1 maven-artifact-plugin-1.6 maven-aspectj-plugin-3.2 maven-castor-plugin-1.2 maven-changelog-plugin-1.8.2 maven-changes-plugin-1.5.1 maven-checkstyle-plugin-2.5 maven-clean-plugin-1.3 maven-clover-plugin-1.10 maven-console-plugin-1.1 maven-cruisecontrol-plugin-1.7 maven-dashboard-plugin-1.8 maven-developer-activity-plugin-1.5.2 maven-dist-plugin-1.6.1 maven-ear-plugin-1.7 maven-eclipse-plugin-1.9 maven-ejb-plugin-1.7.1 maven-faq-plugin-1.5 maven-file-activity-plugin-1.5.2 maven-genapp-plugin-2.2.1 maven-gump-plugin-2.0.1 maven-hibernate-plugin-1.3 maven-html2xdoc-plugin-1.3.1 maven-idea-plugin-1.6 maven-j2ee-plugin-1.5.1 maven-jalopy-plugin-1.3.1 maven-jar-plugin-1.7 maven-java-plugin-1.5 maven-javacc-plugin-1.1 maven-javadoc-plugin-1.7 maven-jboss-plugin-1.5 maven-jbuilder-plugin-1.5 maven-jcoverage-plugin-1.0.9 maven-jdepend-plugin-1.5 maven-jdiff-plugin-1.5 maven-jellydoc-plugin-1.3.1 maven-jetty-plugin-1.1 maven-jira-plugin-1.1.2 maven-jnlp-plugin-1.4.1 maven-junit-report-plugin-1.5 maven-jxr-plugin-1.4.3 maven-license-plugin-1.2 maven-linkcheck-plugin-1.3.4 maven-multichanges-plugin-1.1 maven-multiproject-plugin-1.4.1 maven-native-plugin-1.1 maven-nsis-plugin-1.1 maven-pdf-plugin-2.4 maven-plugin-plugin-1.6 maven-pmd-plugin-1.7 maven-pom-plugin-1.4.1 maven-rar-plugin-1.0 maven-release-plugin-1.4.1 maven-repository-plugin-1.2 maven-scm-plugin-1.5 maven-simian-plugin-1.5 maven-site-plugin-1.6.1 maven-tasklist-plugin-2.4 maven-test-plugin-1.7 maven-uberjar-plugin-1.2 maven-war-plugin-1.6.1 maven-xdoc-plugin-1.9.2 -Original Message- From: Dion Gillard [mailto:[EMAIL PROTECTED] Sent: Thursday, 6 October 2005 4:57 PM To: Maven Users List; [EMAIL PROTECTED] Subject: Re: [m11b2] Long coercion exception I'm guessing the expression starting with 'mailto:' is being parsed as a number. Where is it being declared? On 10/6/05, Anthony Kong [EMAIL PROTECTED] wrote: Hi, all, Anyone has any idea what cause this exception? Cheers, AK == Caught exception evaluating: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] Reason: java.l ang.Exception: Long coercion exception java.lang.Exception: Long coercion exception at org.apache.commons.jexl.util.Coercion.coerceLong(Coercion.java:100) at org.apache.commons.jexl.parser.ASTSubtractNode.value(ASTSubtractNode.j ava:81 ) at org.apache.commons.jexl.parser.ASTExpression.value(ASTExpression.java:47) at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:86) at org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(JexlE xpress ion .java:69) at org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$Express ionSup por tLocal.evaluate(JexlExpressionFactory.java:122) at org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse( Expres sio nSupport.java:61) at org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsString (Expre ssi onSupport.java:46) at org.apache.commons.jelly.expression.CompositeExpression.evaluateAsStri ng(Com
Re: [m11b2] Long coercion exception
Try running maven -X whateverGoalCausesTheProblem Somewhere there is an expression, probably with a +/- or other arithmetic expression in it. On 10/7/05, Anthony Kong [EMAIL PROTECTED] wrote: Hi, Thanks for the reply! Actually there is so little information, I do not know even what and where causes the error. Basically I develop a custom goal in a maven.xml (without any project.xml) and use m11b2 to invoke it. And the error came out before build:start is printed out to the console. Also it would remind me to define default goal in build/. I have tried to use maven:genapp to create a dummy project.xml, and the error still occur. But if I run m11b2 on other projects, it runs run... I did not define any email address in either maven.xml or project.xml. Cheers, AK PS. FYI, Here is what I got from maven -i __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.1-beta-2 plugin maven-cruisecontrol-plugin-1.6 is cached (dynatag dep) but no longer present Cache invalidated due to out of date plugins - Environment java.version=1.5.0_04 file.encoding=Cp1252 java.ext.dirs=c:\Program Files\Java\jdk1.5.0_04\jre\lib\ext java.class.path=f:\opt\cygwin\opt\maven-1.1-beta-2/lib/forehead-1.0-beta-5.j ar os.name=Windows XP java.vendor=Sun Microsystems Inc. sun.boot.class.path=c:\Program Files\Java\jdk1.5.0_04\jre\lib\rt.jar;c:\Program Files\Ja va\jdk1.5.0_04\jre\lib\i18n.jar;c:\Program Files\Java\jdk1.5.0_04\jre\lib\sunrsasign.jar;c :\Program Files\Java\jdk1.5.0_04\jre\lib\jsse.jar;c:\Program Files\Java\jdk1.5.0_04\jre\li b\jce.jar;c:\Program Files\Java\jdk1.5.0_04\jre\lib\charsets.jar;c:\Program Files\Java\jdk 1.5.0_04\jre\classes java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition - Installed plugins : icmsbuild-plugin-1.5 maven-abbot-plugin-1.1 maven-announcement-plugin-1.3 maven-ant-plugin-1.9 maven-antlr-plugin-1.2.1 maven-artifact-plugin-1.6 maven-aspectj-plugin-3.2 maven-castor-plugin-1.2 maven-changelog-plugin-1.8.2 maven-changes-plugin-1.5.1 maven-checkstyle-plugin-2.5 maven-clean-plugin-1.3 maven-clover-plugin-1.10 maven-console-plugin-1.1 maven-cruisecontrol-plugin-1.7 maven-dashboard-plugin-1.8 maven-developer-activity-plugin-1.5.2 maven-dist-plugin-1.6.1 maven-ear-plugin-1.7 maven-eclipse-plugin-1.9 maven-ejb-plugin-1.7.1 maven-faq-plugin-1.5 maven-file-activity-plugin-1.5.2 maven-genapp-plugin-2.2.1 maven-gump-plugin-2.0.1 maven-hibernate-plugin-1.3 maven-html2xdoc-plugin-1.3.1 maven-idea-plugin-1.6 maven-j2ee-plugin-1.5.1 maven-jalopy-plugin-1.3.1 maven-jar-plugin-1.7 maven-java-plugin-1.5 maven-javacc-plugin-1.1 maven-javadoc-plugin-1.7 maven-jboss-plugin-1.5 maven-jbuilder-plugin-1.5 maven-jcoverage-plugin-1.0.9 maven-jdepend-plugin-1.5 maven-jdiff-plugin-1.5 maven-jellydoc-plugin-1.3.1 maven-jetty-plugin-1.1 maven-jira-plugin-1.1.2 maven-jnlp-plugin-1.4.1 maven-junit-report-plugin-1.5 maven-jxr-plugin-1.4.3 maven-license-plugin-1.2 maven-linkcheck-plugin-1.3.4 maven-multichanges-plugin-1.1 maven-multiproject-plugin-1.4.1 maven-native-plugin-1.1 maven-nsis-plugin-1.1 maven-pdf-plugin-2.4 maven-plugin-plugin-1.6 maven-pmd-plugin-1.7 maven-pom-plugin-1.4.1 maven-rar-plugin-1.0 maven-release-plugin-1.4.1 maven-repository-plugin-1.2 maven-scm-plugin-1.5 maven-simian-plugin-1.5 maven-site-plugin-1.6.1 maven-tasklist-plugin-2.4 maven-test-plugin-1.7 maven-uberjar-plugin-1.2 maven-war-plugin-1.6.1 maven-xdoc-plugin-1.9.2 -Original Message- From: Dion Gillard [mailto:[EMAIL PROTECTED] Sent: Thursday, 6 October 2005 4:57 PM To: Maven Users List; [EMAIL PROTECTED] Subject: Re: [m11b2] Long coercion exception I'm guessing the expression starting with 'mailto:' is being parsed as a number. Where is it being declared? On 10/6/05, Anthony Kong [EMAIL PROTECTED] wrote: Hi, all, Anyone has any idea what cause this exception? Cheers, AK == Caught exception evaluating: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] Reason: java.l ang.Exception: Long coercion exception java.lang.Exception: Long coercion exception at org.apache.commons.jexl.util.Coercion.coerceLong(Coercion.java:100) at org.apache.commons.jexl.parser.ASTSubtractNode.value(ASTSubtractNode.j ava:81 ) at org.apache.commons.jexl.parser.ASTExpression.value(ASTExpression.java:47) at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:86) at org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(JexlE xpress ion .java:69) at org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$Express ionSup por
RE: [M2] How to add custom entries in a MANIFEST.MF file?
Hi Jason, Jason van Zyl wrote on Thursday, October 06, 2005 10:00 PM: On Thu, 2005-10-06 at 17:49 +1100, Martin Desruisseaux wrote: Hello all How to add custom entries in a JAR file (in addition to the current file created by Maven 2)? To be more specific, I would like to add a RegistrationClassName: org.geotools.openoffice.Registration entry for an OpenOffice.org add-in. I'm just working on the doco so maybe this will help: http://people.apache.org/~jvanzyl/maven2/guides/mini/guide-manifest.html Timothy/Martin, if you see anything missing let me know or patch away. it would be nice if the Specification-Version could be easily generated to be major.minor of pom.currentVersion i.e. that 1.2 == 1.2 1.2.1 == 1.2 1.2-SNAPSHOT == 1.2 for the javaapp-plugin I did something like this in Jelly ... - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]