Unable to parse https authentication on pom upload
Unable to parse https with authentication credentials for pom upload. The server log exceptions consist of 401 without the credentials. INFO | jvm 1| 2006/03/10 06:33:33 | java.io.IOException: Server returned HTTP response code: 401 for URL: https://svn.knowledgestorm.com:8443/trunk/extranet/pom.xml I tried all the following flavors to no avail. https://svn.example.com:8443/trunk/extranet/ Returns: [ You must provide a valid url ] https://continuous:[EMAIL PROTECTED]:8443/trunk/extranet/ Returns: [ You must provide a valid url ] https://svn.example.com:8443/trunk/extranet/pom.xml Returns: [ The URL you provided doesn't exist ] https://continuous:[EMAIL PROTECTED]:8443/trunk/extranet/pom.xm l Returns: [ The URL you provided doesn't exist ] Christiaan I receive this Enter the URL to the Maven 2 POM[ The URL you provided doesn't exist ] -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Thursday, March 09, 2006 4:10 PM To: continuum-users@maven.apache.org Subject: Re: http://jira.codehaus.org/browse/MNG-2006 If you use 1.0.2, the patch is in it. 1.0-alpha-4 is a very old version What is your problem? Emmanuel DISCLAIMER The information contained in this e-mail and attachments, if any, is confidential and may be subject to legal privilege. If you are not the intended recipient, you must not use, copy, distribute or disclose the e-mail and its attachment, or any part of its content or take any action in reliance of it. If you have received this e-mail in error, please e-mail the message back to the sender by replying and then deleting it. We cannot accept responsibility for loss or damage arising from the use of this e-mail or attachments, and recommend that you subject these to your virus checking procedures prior to use
Re: Unable to parse https authentication on pom upload
Yes, the two first urls are invalid. Do you have some trace in your logs for txo last urls? Emmanuel Veerman, Christiaan a écrit : Unable to parse https with authentication credentials for pom upload. The server log exceptions consist of 401 without the credentials. INFO | jvm 1| 2006/03/10 06:33:33 | java.io.IOException: Server returned HTTP response code: 401 for URL: https://svn.knowledgestorm.com:8443/trunk/extranet/pom.xml I tried all the following flavors to no avail. https://svn.example.com:8443/trunk/extranet/ Returns: [ You must provide a valid url ] https://continuous:[EMAIL PROTECTED]:8443/trunk/extranet/ Returns: [ You must provide a valid url ] https://svn.example.com:8443/trunk/extranet/pom.xml Returns: [ The URL you provided doesn't exist ] https://continuous:[EMAIL PROTECTED]:8443/trunk/extranet/pom.xm l Returns: [ The URL you provided doesn't exist ] Christiaan I receive this Enter the URL to the Maven 2 POM[ The URL you provided doesn't exist ] -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Thursday, March 09, 2006 4:10 PM To: continuum-users@maven.apache.org Subject: Re: http://jira.codehaus.org/browse/MNG-2006 If you use 1.0.2, the patch is in it. 1.0-alpha-4 is a very old version What is your problem? Emmanuel DISCLAIMER The information contained in this e-mail and attachments, if any, is confidential and may be subject to legal privilege. If you are not the intended recipient, you must not use, copy, distribute or disclose the e-mail and its attachment, or any part of its content or take any action in reliance of it. If you have received this e-mail in error, please e-mail the message back to the sender by replying and then deleting it. We cannot accept responsibility for loss or damage arising from the use of this e-mail or attachments, and recommend that you subject these to your virus checking procedures prior to use
[m2] war and ear suggestions
We are using maven to build some war and ear files for weblogic. To catch errors early we aree precompiling the ears and wars using a inhouse written weblogic.appc plugin. Two things are a bit annoying :-) 1 The ear and war plugin always overwrites each file, I have tracked this behaviuor to a org.codehaus.plexus.util.FileUtils class. Is it possible to change the behaviuor of this class (add another method) that uses timestamps a la Ant? 2 There would be nice with a phase between 'test' and 'package' where the war/ear would be exploded. Maybe 'mvn assemble'? Then I could call my plugin in that phase and the package would basically just jar the thing together. It would also make development quicker because you could use 'mvn assemble' to deploy your ear/war in an exploded state in your appserver/servletcontainer. /Konstantin
Re: [m2] war and ear suggestions
Sounds interesting. Could you please file something in Jira so that we track your suggestion? Regards, Stéphane On 3/10/06, Konstantin Polyzois [EMAIL PROTECTED] wrote: We are using maven to build some war and ear files for weblogic. To catch errors early we aree precompiling the ears and wars using a inhouse written weblogic.appc plugin. Two things are a bit annoying :-) 1 The ear and war plugin always overwrites each file, I have tracked this behaviuor to a org.codehaus.plexus.util.FileUtils class. Is it possible to change the behaviuor of this class (add another method) that uses timestamps a la Ant? 2 There would be nice with a phase between 'test' and 'package' where the war/ear would be exploded. Maybe 'mvn assemble'? Then I could call my plugin in that phase and the package would basically just jar the thing together. It would also make development quicker because you could use 'mvn assemble' to deploy your ear/war in an exploded state in your appserver/servletcontainer. /Konstantin -- .::You're welcome ::. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I include my ejb3 and par files in ear for Maven2
show your maven projects structure please. s/ On 3/10/06, Nidhi Tuli [EMAIL PROTECTED] wrote: My end goal is to generate ear file using Maven2 for deploying EJB3 in JBoss. For this purpose I wrote some ejb3 code, which I need to 1. compile 2. generate jar 3. generate ejb3 4. generate par 5. generate ear and then I will deploy ear. The ear should contain the ejb3 and par which was generated in previous steps. I found out after posting this question, that ear plugin supports copying ejb3 and par files, but they need to be defined in Dependencies. This is very strange for my situation because, I don't want to load the ejb3 and par files in my repository so that it could be found when I do use ear plugin. Any ideas How can I include the my own generated ejb3 and par files in my final ear file. Thanks Nidhi -Original Message- From: John Tolentino [mailto:[EMAIL PROTECTED] Sent: Thursday, March 09, 2006 4:17 PM To: Maven Users List Subject: Re: How do I include my ejb3 and par files in ear. By the way, please include [m1] or [m2] in your subject for faster response. Here's the M2 project descriptor for your reference, again, I'm assuming this is an M2 question: http://maven.apache.org/maven-model/maven.html I've just noticed that type is not part of the plugin section. It's not clear what you want to achieve in your POM. Is this part of your configuration? Nidhi Tuli wrote: EAR plugin only supports jar, war, ejb, rar, sar types. If I try to include ejb3 and par file for ejb3 deplyment. It throws exception. Code: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ear-plugin/artifactId typeejb3/type typepar/type properties ear.bundletrue/ear.bundle /properties /plugin Exception: Caused by: org.apache.maven.project.InvalidProjectModelException: Parse error reading POM. Reason: Unrecognised tag: 'type' (position: START_TAG seen .../artif actId\n\t\t type... @102:11) at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default MavenProjectBuilder.java:1134)at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default MavenProjectBuilder.java:1094) Any suggestions? Also please provide a sample code for better understanding. /Nidhi - 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] -- .::You're welcome ::. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : [m2] war and ear suggestions
Look at http://jira.codehaus.org/browse/MNG-2097. Just push a vote ;-) - Olivier -Message d'origine- De : Stephane Nicoll [mailto:[EMAIL PROTECTED] Envoyé : vendredi 10 mars 2006 10:37 À : Maven Users List Objet : Re: [m2] war and ear suggestions Sounds interesting. Could you please file something in Jira so that we track your suggestion? Regards, Stéphane On 3/10/06, Konstantin Polyzois [EMAIL PROTECTED] wrote: We are using maven to build some war and ear files for weblogic. To catch errors early we aree precompiling the ears and wars using a inhouse written weblogic.appc plugin. Two things are a bit annoying :-) 1 The ear and war plugin always overwrites each file, I have tracked this behaviuor to a org.codehaus.plexus.util.FileUtils class. Is it possible to change the behaviuor of this class (add another method) that uses timestamps a la Ant? 2 There would be nice with a phase between 'test' and 'package' where the war/ear would be exploded. Maybe 'mvn assemble'? Then I could call my plugin in that phase and the package would basically just jar the thing together. It would also make development quicker because you could use 'mvn assemble' to deploy your ear/war in an exploded state in your appserver/servletcontainer. /Konstantin -- .::You're welcome ::. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. -- Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après le message ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Where are the sources of the maven-model component ?
Hi, I am writing a m2 plugin and I am looking for the sources for the maven-model component. Or the http://svn.apache.org/viewcvs.cgi/maven/components/branches/maven-2.0.x/maven-model/src/ is empty. So where I can find its sources ? Thinks, J. -Message d'origine- De : KC Baltz [mailto:[EMAIL PROTECTED] Envoyé : mercredi 8 mars 2006 17:49 À : Maven Users List (E-mail) Objet : [m2] Is Eclipse WTP 1.0.1 support working in the eclipse:eclipse plugin yet? I'm trying to use the 1.0.1 release of the Eclipse Web Tools with my Maven web project and not having much luck. I've called maven with the following: mvn eclipse:clean eclipse:eclipse -Dwtpversion=1.0 It seems to be happy with that and even says: [INFO] [eclipse:eclipse] [INFO] Adding support for WTP version 1.0. [INFO] Wrote settings to C:\cvs\myProject\.settings\org.eclipse.jdt.core.prefs However, in Eclipse, I can't get it to let me add the project to the Tomcat server I have defined. This worked with the 0.7 support, but does not appear to be working with 1.0 K.C. -- Ce message est protege par les regles relatives au secret des correspondances ; il peut en outre contenir des informations a caractere confidentiel ou protegees par differentes regles et notamment le secret des affaires ; il est etabli a destination exclusive de son destinataire. Toute divulgation, utilisation, diffusion ou reproduction (totale ou partielle) de ce message, ou des informations qu'il contient, doit etre prealablement autorisee. Tout message electronique est susceptible d'alteration et son integrite ne peut etre assuree. Les AGF declinent toute responsabilite au titre de ce message s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de distribution et de la destruction du message. This message is protected by the secrecy of correspondence rules ; furthermore it may contain privileged or confidential information that is protected by law, notably by the secrecy of business relations rule ; it is intended solely for the attention of the addressee . Any disclosure, use, dissemination or reproduction (either whole or partial) of this message or the information contained herein is strictly prohibited without prior consent. Any electronic message is susceptible to alteration and its integrity can not be assured. AGF declines any responsibility for this message in the event of alteration or falsification.. If you are not the intended recipient, please destroy it immediately and notify the sender of the wrong delivery and the mail deletion. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Create J2EE module
How can I create a J2EE module with archetype:create? Wich archetypeArtifactId value must I used?
Re: [m2] war and ear suggestions
Filed as http://jira.codehaus.org/browse/MNG-2141 On 3/10/06, Stephane Nicoll [EMAIL PROTECTED] wrote: Sounds interesting. Could you please file something in Jira so that we track your suggestion? Regards, Stéphane On 3/10/06, Konstantin Polyzois [EMAIL PROTECTED] wrote: We are using maven to build some war and ear files for weblogic. To catch errors early we aree precompiling the ears and wars using a inhouse written weblogic.appc plugin. Two things are a bit annoying :-) 1 The ear and war plugin always overwrites each file, I have tracked this behaviuor to a org.codehaus.plexus.util.FileUtils class. Is it possible to change the behaviuor of this class (add another method) that uses timestamps a la Ant? 2 There would be nice with a phase between 'test' and 'package' where the war/ear would be exploded. Maybe 'mvn assemble'? Then I could call my plugin in that phase and the package would basically just jar the thing together. It would also make development quicker because you could use 'mvn assemble' to deploy your ear/war in an exploded state in your appserver/servletcontainer. /Konstantin -- .::You're welcome ::. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Where are the sources of the maven-model component ?
If you don't see the sources then I believe they generated by modello plugin. Just start mvn compile and the sources will be generated in target folder. Best regards, Juri. -Original Message- From: COUVREUR jacques [mailto:[EMAIL PROTECTED] Sent: Friday, March 10, 2006 11:44 AM To: Maven Users List Subject: [m2] Where are the sources of the maven-model component ? Hi, I am writing a m2 plugin and I am looking for the sources for the maven-model component. Or the http://svn.apache.org/viewcvs.cgi/maven/components/branches/maven-2.0.x/maven-model/src/ is empty. So where I can find its sources ? Thinks, J. -Message d'origine- De : KC Baltz [mailto:[EMAIL PROTECTED] Envoyé : mercredi 8 mars 2006 17:49 À : Maven Users List (E-mail) Objet : [m2] Is Eclipse WTP 1.0.1 support working in the eclipse:eclipse plugin yet? I'm trying to use the 1.0.1 release of the Eclipse Web Tools with my Maven web project and not having much luck. I've called maven with the following: mvn eclipse:clean eclipse:eclipse -Dwtpversion=1.0 It seems to be happy with that and even says: [INFO] [eclipse:eclipse] [INFO] Adding support for WTP version 1.0. [INFO] Wrote settings to C:\cvs\myProject\.settings\org.eclipse.jdt.core.prefs However, in Eclipse, I can't get it to let me add the project to the Tomcat server I have defined. This worked with the 0.7 support, but does not appear to be working with 1.0 K.C. -- Ce message est protege par les regles relatives au secret des correspondances ; il peut en outre contenir des informations a caractere confidentiel ou protegees par differentes regles et notamment le secret des affaires ; il est etabli a destination exclusive de son destinataire. Toute divulgation, utilisation, diffusion ou reproduction (totale ou partielle) de ce message, ou des informations qu'il contient, doit etre prealablement autorisee. Tout message electronique est susceptible d'alteration et son integrite ne peut etre assuree. Les AGF declinent toute responsabilite au titre de ce message s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de distribution et de la destruction du message. This message is protected by the secrecy of correspondence rules ; furthermore it may contain privileged or confidential information that is protected by law, notably by the secrecy of business relations rule ; it is intended solely for the attention of the addressee . Any disclosure, use, dissemination or reproduction (either whole or partial) of this message or the information contained herein is strictly prohibited without prior consent. Any electronic message is susceptible to alteration and its integrity can not be assured. AGF declines any responsibility for this message in the event of alteration or falsification.. If you are not the intended recipient, please destroy it immediately and notify the sender of the wrong delivery and the mail deletion. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven Report Error
Dear Alexandre, Below my dependency section: regards, Adel dependencies dependency groupIdstruts/groupId artifactIdstruts/artifactId version1.2.8/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.4-20040521/version /dependency dependency groupIdmaven/groupId artifactIdmaven-ejb-plugin/artifactId version1.5/version /dependency dependency groupIdjboss/groupId artifactIdejb3-persistence/artifactId version3/version scopesystem/scope systemPath${basedir}\lib\ejb3-persistence.jar/systemPath /dependency dependency groupIdjboss/groupId artifactIdjboss-ejb3x/artifactId version3/version scopesystem/scope systemPath${basedir}\lib\jboss-ejb3x.jar/systemPath /dependency /dependencies Please consider AJ Business Solutions Ltd's disclaimer at the end of this email before reading this message or opening any attachments. Adel Aneiba Software Development For and on Behalf of AJ Business Solutions Ltd. Tel : 0870 7518 900 Ext 42 // Fax : 0870 4 10 14 15 This message is confidential and may be legally privileged. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient please delete it and all copies of it from your system, destroy any hard copies of it and notify the sender immediately. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message or any attachment if you are not the intended recipient. We will not accept any liability for damage caused by computer viruses and it is your responsibility to scan attachments (if any). We may for the better performance of our business monitor incoming e-mails sent through our e-mail system.
Re: Maven Report Error
I had the same problem on generating the dependency report. After commenting out all the following dependencies the report was generated: !--dependency groupIdorg.springframework/groupId artifactIdspring-dao/artifactId version1.2.1/version scopecompile/scope /dependency dependency groupIdorg.springframework/groupId artifactIdspring-jdbc/artifactId version1.2.1/version scopecompile/scope /dependency-- Is there a problem with the transitive dependencies of spring? Rik
custom src directory layout - how to get it to not checkstyle/javadoc the tests too.
Hi All, I am beginning now to migrate many of our projects to maven 2, but I am not permitted to move the location of the stuff in the src directory as CVS is unable to retain the history in this case and we have no plans to move to something more useful such as subversion. the directory structure we have is pom.xml src/ - org/ -- epo/ -- etc - site/ -- apt/ --- index.apt -- fml/ --- faq.fml -- site.xml -test/ -- java/ --- org/ epo/ - etc i tried setting my sourceDirectory to src/ but the compiler then tries to build everything in the test directory as well. so i tell maven2 to exclude src/test and src/site from the main compile goal excludes exclude**/test/**/exclude exclude**/site/**/exclude /excludes into my parent pom's compiler config, and that works fine, but now cobertura is not instrumenting any of my classes (or indeed even being invoked as far as i can tell) running mvn site however pretends to generate a cobertura report but it just ends up being blank - this is a showstopper for me. cobertura generates the following error: net.sourceforge.cobertura.reporting.ComplexityCalculator - cannot find source file during CNN computation ... so clearly cobertura is not finding the source files. (i have added a comment to this effect to http://jira.codehaus.org/browse/MCOBERTURA-2) the following problems are annoying but i have live with them for now: also the javadocs are being generated for the test classes. there is no excludes config for the javadoc tool according to the documentation. i tried adding an excludes config as per the compiler plugin but, while it threw no error, neither did it actually have any effect. checkstyle's excludes config param uses a different syntax to the compiler's excludes syntax and the format is not documented. is it a comma separated list of paths? either way i tried adding excludes**/test/**/excludes but that made no difference at all. pmd reports fail as they are looking for the src in src/main/java and ignoring the sourceDirectory (but PMD is being a pain anyway so i am not so concerned with this at the moment) it seems to me that the sourceDirectory tag could do with having some in-build excludes and includes sub-tags Kind regards, Dave Sag
finding JBoss EJB3 Jars on ibiblio ?
I was looking for the JBoss EJB JARS on http://www.ibiblio.org/maven2/jboss/ Are they not there yet ? e.g. jboss-ejb3.jar jboss-ejb3x.jar ejb3-persistence.jar I was also looking for hibernate-ejb3-persistence.jar (used by JBoss EJB3TrailBlazer ) any ideas where to find this on ibiblio ? not under hibernate Is this best workaround to deploy these to my internal repository for now ? Pete
M2: JBoss EJB3 Examples ?
Does anyone out there have a JBoss EJB3 Maven2 working example / POMs. This is what I'm attempting to do, any ideas or samples would be much appreciated. thanks Pete
version 4.0.3 of jboss's jar ?
Hi, I can't find version 4.0.3 of the JBoss' jar. (for exemple http://www.ibiblio.org/maven2/jboss/jboss-client/4.0.3). Is it possible to put them in ibiblio.org ? Thanks, Yan. ___ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2: JBoss EJB3 Examples ?
hello... i have done a very small app with EJB3 that urns on jboss. i have done it using maven1.1 2.0., but for maven2 i am NOT using ejb3 plugins... but just creating the ejb archive and rename it.. if it is worth... i can mail to you privately.. rgds marco On 3/10/06, Pete [EMAIL PROTECTED] wrote: Does anyone out there have a JBoss EJB3 Maven2 working example / POMs. This is what I'm attempting to do, any ideas or samples would be much appreciated. thanks Pete
RE: Passing maven variables as system properties
Hi Try project.build.directory Hermod -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Friday, March 10, 2006 3:53 AM To: users@maven.apache.org Subject: Passing maven variables as system properties Hi, I'm trying to store some maven vars into system properties so I can access them from unit test code: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId configuration systemProperties property namecore-static/name value${project.build.outputDirectory}//value /property property namecore-static-tests/name value${project.build.testOutputDirectory}//value /property /systemProperties /configuration /plugin /plugins However the value of System.getProperty(core-static) is literally ${project.build.outputDirectory}, not the expanded value. Does anyone know how I can pass the value of this expression? Thanks, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that DnB NOR cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] software component dependency
Hi, I have a project that depends on/bundles binary versions of jboss, mysql, maven and continuum. I know I can get the java EE jar dependencies for all of the above via a public repository for my application development module. Can I also obtain binary gzipped versions of the above from a public repository for my top level pom module which provides a runtime for my app? I was wondering if I could adopt the same approach as continuum (which I believe uses jetty) or the apache portals project (tomcat). How are these application binary dependencies specified in a pom? Or are they ever? If anyone has done this and can recommend a multi module structure (if necessary containing the runtime binaries rather than listing as dependencies) that would be fantastic. Many TIA Adam Adam Leggett [EMAIL PROTECTED] Senior Consultant UPCO Direct Line: 0113 20 10 631 Fax: 0113 20 10 666 http://www.upco.co.uk === The contents of this email are intended for the named addresses and may contain confidential and/or privileged material. If received in error, please contact UPCO head office on +44(0)113 201 0600 and then delete the entire mail from your system. Unauthorised review, distribution, disclosure or other use of information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. Every effort has been taken to ensure that this email and any attachments are virus-free. However, UPCO does not make any warranty to this effect, and is not liable for any damage done by an infected email message or attachment. UPCO recommends that all emails and attachments are checked before opening. All views or opinions expressed in this electronic message and its attachements are those of the sender and do not necessarily reflect the views and opinions of The Ultimate People Company Ltd. === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Report Error
Is this because the pom files for 1.2.1 versions (and below) in the repository do not contain the following part? distributionManagement statusdeployed/status /distributionManagement
RE: rpm-plugin mapping file rename
I believe the answer is that it will not unless the item to be renamed is the item specified in the mapping. I would say to give it a try and let me know if it works or doesn't work. If it works, I can add that information to the docs; if it doesn't work, send me more info on what you are doing and I can see what I might be able to do so it will. -Original Message- From: Xavier Toth [mailto:[EMAIL PROTECTED] Sent: Thursday, March 09, 2006 4:31 PM To: Maven Users List Subject: rpm-plugin mapping file rename Can the mapping element be used to rename a file being installed? Xavier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Where are the sources of the maven-model component ?
Run mvn generate-sources on maven-model. On 3/10/06, COUVREUR jacques [EMAIL PROTECTED] wrote: Hi, I am writing a m2 plugin and I am looking for the sources for the maven-model component. Or the http://svn.apache.org/viewcvs.cgi/maven/components/branches/maven-2.0.x/maven-model/src/ is empty. So where I can find its sources ? Thinks, J. -Message d'origine- De: KC Baltz [mailto:[EMAIL PROTECTED] Envoyé: mercredi 8 mars 2006 17:49 À: Maven Users List (E-mail) Objet: [m2] Is Eclipse WTP 1.0.1 support working in the eclipse:eclipse plugin yet? I'm trying to use the 1.0.1 release of the Eclipse Web Tools with my Maven web project and not having much luck. I've called maven with the following: mvn eclipse:clean eclipse:eclipse -Dwtpversion=1.0 It seems to be happy with that and even says: [INFO] [eclipse:eclipse] [INFO] Adding support for WTP version 1.0. [INFO] Wrote settings to C:\cvs\myProject\.settings\org.eclipse.jdt.core.prefs However, in Eclipse, I can't get it to let me add the project to the Tomcat server I have defined. This worked with the 0.7 support, but does not appear to be working with 1.0 K.C. -- Ce message est protege par les regles relatives au secret des correspondances ; il peut en outre contenir des informations a caractere confidentiel ou protegees par differentes regles et notamment le secret des affaires ; il est etabli a destination exclusive de son destinataire. Toute divulgation, utilisation, diffusion ou reproduction (totale ou partielle) de ce message, ou des informations qu'il contient, doit etre prealablement autorisee. Tout message electronique est susceptible d'alteration et son integrite ne peut etre assuree. Les AGF declinent toute responsabilite au titre de ce message s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de distribution et de la destruction du message. This message is protected by the secrecy of correspondence rules ; furthermore it may contain privileged or confidential information that is protected by law, notably by the secrecy of business relations rule ; it is intended solely for the attention of the addressee . Any disclosure, use, dissemination or reproduction (either whole or partial) of this message or the information contained herein is strictly prohibited without prior consent. Any electronic message is susceptible to alteration and its integrity can not be assured. AGF declines any responsibility for this message in the event of alteration or falsification.. If you are not the intended recipient, please destroy it immediately and notify the sender of the wrong delivery and the mail deletion. -- - 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] Internal Repositories
Hi! Being a newbie to maven, I wonder if this idea could work: I want to have my own remote repository with a subset of the content of http://www.ibiblio.org/maven2/ http://www.ibiblio.org/maven2/ located at my local machine where I could access it using the file: protocol. And in addition I want to prevent maven from accessing http://www.ibiblio.org/maven2/ http://www.ibiblio.org/maven2/ any longer so that my own remote repository will be the only one to be used. My idea was to start with using the standard repository http://www.ibiblio.org/maven2/ http://www.ibiblio.org/maven2/ as usual, so that my local repository got populated. Then I copied the content of my local repository to the directory where the location of my remote repository should be. My pom.xml looks like this: repositories repository idwollox-repo/id urlfile:U:///Modules/my-remote-repo//url layoutdefault/layout /repository /repositories pluginRepositories pluginRepository idwollox-plugin-repo/id urlfile:U:///Modules/my-remote-repo//url snapshots enabledtrue/enabled /snapshots releases enabledtrue/enabled /releases /pluginRepository /pluginRepositories After deleting my local repository and disconnecting from the internet I called maven on my project (mvn clean), but it showed this error: [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for updates from wollox-plugin-repo [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for updates from central [WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-clean-plugin' could not be retrieved from re pository: central due to an error: Error transferring file [INFO] Repository 'central' will be blacklisted [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not exist or no valid version could be found So I wonder if it is possible at all to take the local repository as base of my own remote repository? And how can I disable that checking for updates from central? Regards Gerald
Re: how to use my own jar as dependencies
Hi To run install:install-file you don't need to create pomfile. Sorry .Gautham is wright. you can run directly the command i gave you under your directory. So you can use the jar as a dependency . Tom. 2006/3/9, Ashish Srivastava [EMAIL PROTECTED]: Thanks Tom. Where do I need to create the library-version.pom file? If say I have a a.jar file in lib/ where to put the following in? project modelVersion4.0.0/modelVersion groupIdGROUIDYOUDEFINE /groupId artifactIdARTIFACTIDYOUDEFINE /artifactId versionYOUVERSION /version /project Thanks, -Ashish --- Tom Joad [EMAIL PROTECTED] wrote: You can install your jar in your local repository. Run command mvn -e -X install:install-file -Dfile=(Relative or absolute path)ServletPortlet .jar -Dversion=YOUVERSION -Dartifactid=ARTIFACTIDYOUDEFINE -DgroupId=GROUIDYOUDEFINE -Dpackaging=jar -Dgeneratepom=true It's install your local repository with maven standard tree structrur GROUIDYOUDEFINE/ARTIFACTIDYOUDEFINE/YOUVERSION/ServletPortlet.jar ~/ServletPortlet.pom You must declare your jar as dependency inside your project pom file. If this command needs a project with pomfile Create a directory and copy in your jar create a simple pom.xml file project modelVersion4.0.0/modelVersion groupIdGROUIDYOUDEFINE /groupId artifactIdARTIFACTIDYOUDEFINE /artifactId nameClover/name versionYOUVERSION /version /project and run the above command. Tom. 2006/2/24, Srikanth Reddy [EMAIL PROTECTED]: Hi, I am new to maven environment i started intigrating an already existing project with maven, i have to use ServletPortlet jar in one of the files but http://www.ibiblio.org/maven2 dosent have any thing by which i could map to that repositry and download that jar into my local repository by providing that info in dependency/dependency in pom.xml right. Can u plz let me know how to compile my project by specifing ServletPortal.jar externally or any other way by which I can compiling my project Regards Srikanth Reddy - Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: custom src directory layout - how to get it to not checkstyle/javadoc the tests too.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, the directory structure we have is pom.xml src/ - org/ Maven uses src/java/... per default. Have you tried that? Regards Thorsten -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.1 (MingW32) iD8DBQFEEXUbQvObkgCcDe0RAurvAJ9R6yQpsS7OKSBa+mnJkkwvNkTVTQCfWdx9 PKyRi1m9fa9lNLqFYjMP1uU= =Jkxh -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Building J2EE project using Maven2
Dear People, I am trying for three days to sort my problem, but i could not :(, what i am trying to do is that to build my j2ee project (WAR, JAR and EAR) and then deploy the ear into Jboss, i have done all that in ANT but i could not do it in Mavevn 2, so there is any full example for this please Regards, Adel Please consider AJ Business Solutions Ltd's disclaimer at the end of this email before reading this message or opening any attachments. Adel Aneiba Software Development For and on Behalf of AJ Business Solutions Ltd. Tel : 0870 7518 900 Ext 42 // Fax : 0870 4 10 14 15 This message is confidential and may be legally privileged. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient please delete it and all copies of it from your system, destroy any hard copies of it and notify the sender immediately. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message or any attachment if you are not the intended recipient. We will not accept any liability for damage caused by computer viruses and it is your responsibility to scan attachments (if any). We may for the better performance of our business monitor incoming e-mails sent through our e-mail system.
Maven 1.x site plugin
Hi! I wondered if anybody could provide some assistance with getting Maven1 to setup up correct privileges on a site remotely deployed using ssh (plink and pscp). I am trying to use the maven.site.chmod.mode property to set up the privileges, but it seems no matter how I define it, the resulting privileges are rw-rw--- for files and rwxrwx--- for dirs. I want to make the site readable to everybody, and therefore specified this in project.properties: maven.site.chmod.mode=u+rwX,go+rX-w I also tried to set a numeric mode to see if it worked. It didn't (not optimal since every file gets executable bit, but usable): maven.site.chmod.mode=644 I've also tried to specify maven.site.chmod.options=-R (as opposed to the default -Rf) to maybe display error messages, but nothing. I assume the setting of privileges is supposed to happen after the tar has been extracted on the remote system, but the only message I get from Maven before BUILD SUCCESSFUL is [delete] Deleting: XYZ--site.tar.gz Can anyone shed some light on this matter? Are the maven.site.chmod.mode and maven.site.chmod.options properties being read at all? I am using v1.6.1 of the maven-site-plugin. Thanks cheers :) Rune Flobakk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Additional file sincluded while building an EAR
hello all, i have a project whichcontains some subprojects.. i am trying to build an ear out of my project, and when the ear is built there are additional jar file included that i don't need... i end up with my projects files plus - geronimo-spec-j2ee-1.4-rc4.jar, - ejb3-persistence-4.0.3 - jboss-ejb3x-4.0.3.jar anyone could help me out? my dir structure is: main -- shared -- ejbs -- web -- ear here are the correspondent pom.xml * main pom.xml project modelVersion4.0.0/modelVersion groupIdroot/groupId version1.0/version artifactIdproject/artifactId packagingpom/packaging nameproject/name modules moduleshared/module moduleejbs/module moduleweb/module moduleear/module modulesite/module /modules build pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId configuration unzipCommand/usr/bin/unzip -o err.txt/unzipCommand /configuration /plugin /plugins /pluginManagement /build dependencyManagement dependencies dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-j2ee/artifactId version1.4-rc4/version /dependency dependency groupIdfop/groupId artifactIdfop/artifactId version0.20.5rc2/version /dependency dependency groupIdaxis/groupId artifactIdaxis-saaj/artifactId version1.3/version /dependency dependency groupIdaxis/groupId artifactIdaxis/artifactId version1.3/version /dependency dependency groupIdroot/groupId artifactIdshared/artifactId version1.0/version /dependency dependency groupIdroot/groupId artifactIdejbs/artifactId version1.0/version /dependency dependency groupIdroot/groupId artifactIdweb/artifactId version1.0/version /dependency /dependencies /dependencyManagement distributionManagement site idsite/id nameproject website/name urlscp://local.company.com/websites/project.company.com//url /site /distributionManagement /project *** shared pom.xml ** project modelVersion4.0.0/modelVersion groupIdroot/groupId artifactIdshared/artifactId packagingjar/packaging namecore project classes/name parent groupIdroot/groupId artifactIdproject/artifactId version1.0/version /parent pluginRepositories pluginRepository idapache.snapshots/id urlhttp://cvs.apache.org/maven-snapshot-repository/url /pluginRepository /pluginRepositories repositories repository idapache.snapshots/id urlhttp://cvs.apache.org/maven-snapshot-repository/url /repository /repositories dependencies dependency groupIdorg.testng/groupId artifactIdtestng/artifactId version4.6.1/version scopetest/scope classifierjdk15/classifier /dependency /dependencies build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration encodingiso-8859-1/encoding /configuration /plugin /plugins /build /project *** ejbs pom.xml ** project modelVersion4.0.0/modelVersion groupIdroot/groupId artifactIdejbs/artifactId packagingejb/packaging version1.0/version nameenterprise java beans/name parent groupIdroot/groupId artifactIdproject/artifactId version1.0/version /parent pluginRepositories pluginRepository idapache.snapshots/id urlhttp://cvs.apache.org/maven-snapshot-repository/url /pluginRepository /pluginRepositories repositories repository idapache.snapshots/id urlhttp://cvs.apache.org/maven-snapshot-repository/url /repository /repositories dependencies dependency groupIdroot/groupId artifactIdshared/artifactId /dependency dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-j2ee/artifactId /dependency dependency groupIdjboss/groupId
Re: Maven 1.x site plugin
Hi Rune, It seems that we fixed several problems about rights in the current SNAPSHOT. http://maven.apache.org/maven-1.x/plugins/site/changes-report.html#Release1_7-SNAPSHOT Can you try the 1.7-SNAPSHOT to see if it helps? Arnaud On 3/10/06, Rune Flobakk [EMAIL PROTECTED] wrote: Hi! I wondered if anybody could provide some assistance with getting Maven1 to setup up correct privileges on a site remotely deployed using ssh (plink and pscp). I am trying to use the maven.site.chmod.mode property to set up the privileges, but it seems no matter how I define it, the resulting privileges are rw-rw--- for files and rwxrwx--- for dirs. I want to make the site readable to everybody, and therefore specified this in project.properties: maven.site.chmod.mode=u+rwX,go+rX-w I also tried to set a numeric mode to see if it worked. It didn't (not optimal since every file gets executable bit, but usable): maven.site.chmod.mode=644 I've also tried to specify maven.site.chmod.options=-R (as opposed to the default -Rf) to maybe display error messages, but nothing. I assume the setting of privileges is supposed to happen after the tar has been extracted on the remote system, but the only message I get from Maven before BUILD SUCCESSFUL is [delete] Deleting: XYZ--site.tar.gz Can anyone shed some light on this matter? Are the maven.site.chmod.mode and maven.site.chmod.options properties being read at all? I am using v1.6.1 of the maven-site-plugin. Thanks cheers :) Rune Flobakk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: release:prepare errors
This is exactly what I have to do. I use a tool to find and replace across files. Fortunately, we are using 4 digit build numbers so I know I'm not replacing something incorrectly (example: 2.1.0.7). So it goes like this: Replace x.x.x.x-SNAPSHOT with x.x.x.x Check in. Tag. Replace x.x.x.x with x.x.x.x+1-SNAPSHOT Check in. Deploy. Check out tag. Deploy (doing all the above as fast as possible so continuum doesn't find mismatched versions) -Original Message- From: Barrie Treloar [mailto:[EMAIL PROTECTED] Sent: Thursday, March 09, 2006 10:08 PM To: Maven Users List Subject: Re: release:prepare errors On 3/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: The pom in the scm, I then check out the project then, I can run maven from the work directory. Then the release:prepare replaces the current pom with the tag pom that is generated. Can someone help with this problem? Thanks, Caveat: I have not done any of this yet, we are nowhere near needing to build a release, however I scraped this off the list somewhere so I am including it here in case it offers you any help. I have no idea whether the release plugin has had the known issues fixed. I would suggest checking JIRA. Notes I have collected follow: - Given that the mvn release:prepare / perform still has known major issues. Does anyone out there have a reliable method for doing a manual release. e.g . 1) Can you just do a search and replace version1.0-SNAPSHOT/version replace with version1.0/version I guess you have to look at each dependency first ? 2) Then check into SCM 3) Then do you do a CVS label / tag 4) Then do you do a second search and replace for version1.0 version1.0/version replace with version1.1-SNAPSHOT/version Again I guess you have to look at all dependencies first ? 5) Then check into SCM again ? Any thoughts on how to semi automate the replace steps ? or at least document how to do a manual mvn release. - 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 1.x site plugin
Thanks for your quick reply! I was actually just getting to checking out the 1.7-snapshot, as I noticed (in small prints) at the bottom of the site-plugin page: Doc for 1.7-SNAPSHOT Doh... ;) Thanks again. Rune Arnaud HERITIER wrote: Hi Rune, It seems that we fixed several problems about rights in the current SNAPSHOT. http://maven.apache.org/maven-1.x/plugins/site/changes-report.html#Release1_7-SNAPSHOT Can you try the 1.7-SNAPSHOT to see if it helps? Arnaud On 3/10/06, Rune Flobakk [EMAIL PROTECTED] wrote: Hi! I wondered if anybody could provide some assistance with getting Maven1 to setup up correct privileges on a site remotely deployed using ssh (plink and pscp). I am trying to use the maven.site.chmod.mode property to set up the privileges, but it seems no matter how I define it, the resulting privileges are rw-rw--- for files and rwxrwx--- for dirs. I want to make the site readable to everybody, and therefore specified this in project.properties: maven.site.chmod.mode=u+rwX,go+rX-w I also tried to set a numeric mode to see if it worked. It didn't (not optimal since every file gets executable bit, but usable): maven.site.chmod.mode=644 I've also tried to specify maven.site.chmod.options=-R (as opposed to the default -Rf) to maybe display error messages, but nothing. I assume the setting of privileges is supposed to happen after the tar has been extracted on the remote system, but the only message I get from Maven before BUILD SUCCESSFUL is [delete] Deleting: XYZ--site.tar.gz Can anyone shed some light on this matter? Are the maven.site.chmod.mode and maven.site.chmod.options properties being read at all? I am using v1.6.1 of the maven-site-plugin. Thanks cheers :) Rune Flobakk - 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] Multiproject - decoupling build and deployment
Hi, Does anyone have any advice on decoupling build and deployment in a multiproject system where components can be deployed in several different environments? We have a service oriented architecture, and some components can be deployed in various different ways. We can also separate components into message/process and service sub-components, where the message/process part typically has much smaller dependencies. At the moment we are considering a structure like: root +- pom describing project-wide settings +- iface | +- pom describing message/process dependencies | +- comp1-iface | | +- pom and code for comp1 message/process sub-component | +- comp2-iface | | +- pom and code for comp2 message/process sub-component | : etc +- j2ee | +- pom describing j2ee deploy environment (supplied jars) | : +- comp1-service | | +- pom and code for comp1 services | +-comp1-ear | +- pom for packaging comp1 +- spring +- pom describing spring deploy environment : +- comp2-service | +- pom and code for comp2 services +- comp2-jar +- pom for packaging comp2 This specifies the correct dependencies for compiling/packaging, but means that code for the service components is fixed under one deploy environment. Since we spend a fair amount of engineering effort making our components deployable in multiple environments this is rather annoying. When we want to change the deploy of a component we need to move its location! Clearly this is not good. How do people manage this better? We have considered making the environment a project (jar) that is depended on explicitly, rather than as something inherited from the pom. But that felt wrong - maven seems to use pom inheritance for this. Or am I mistaken? Thanks, Andrew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: rpm-plugin mapping file rename
I'm not sure how I'd do a rename. Here is an example where I'd like what ends up in /etc/xinetd.d to be simple micro_proxy and not micro_proxy.xinetd, any idea how I'd do this? mapping directory/etc/xinetd.d/directory filemode755/filemode sources source location../../micro_proxy/location includes includemicro_proxy.xinetd/include /includes /source /sources /mapping On 3/10/06, Allison, Bob [EMAIL PROTECTED] wrote: I believe the answer is that it will not unless the item to be renamed is the item specified in the mapping. I would say to give it a try and let me know if it works or doesn't work. If it works, I can add that information to the docs; if it doesn't work, send me more info on what you are doing and I can see what I might be able to do so it will. -Original Message- From: Xavier Toth [mailto:[EMAIL PROTECTED] Sent: Thursday, March 09, 2006 4:31 PM To: Maven Users List Subject: rpm-plugin mapping file rename Can the mapping element be used to rename a file being installed? Xavier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Multiproject - separating version and use dependencies
With Maven 2, is it possible to specify a *version* for a package in the pom at the top of a multiproject tree, but only specify dependencies on that package lower down, in specific projects? I would like to say at the top level use version X of package Y, but not have every child dependent on package Y. Thanks, Andrew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 1.x site plugin
I will change that to move the doc for in a better visible location on the page (I was thinking to put it at the top of the menu). Don't hesitate to give us your feedback. Arnaud On 3/10/06, Rune Flobakk [EMAIL PROTECTED] wrote: Thanks for your quick reply! I was actually just getting to checking out the 1.7-snapshot, as I noticed (in small prints) at the bottom of the site-plugin page: Doc for 1.7-SNAPSHOT Doh... ;) Thanks again. Rune Arnaud HERITIER wrote: Hi Rune, It seems that we fixed several problems about rights in the current SNAPSHOT. http://maven.apache.org/maven-1.x/plugins/site/changes-report.html#Release1_7-SNAPSHOT Can you try the 1.7-SNAPSHOT to see if it helps? Arnaud On 3/10/06, Rune Flobakk [EMAIL PROTECTED] wrote: Hi! I wondered if anybody could provide some assistance with getting Maven1 to setup up correct privileges on a site remotely deployed using ssh (plink and pscp). I am trying to use the maven.site.chmod.mode property to set up the privileges, but it seems no matter how I define it, the resulting privileges are rw-rw--- for files and rwxrwx--- for dirs. I want to make the site readable to everybody, and therefore specified this in project.properties: maven.site.chmod.mode=u+rwX,go+rX-w I also tried to set a numeric mode to see if it worked. It didn't (not optimal since every file gets executable bit, but usable): maven.site.chmod.mode=644 I've also tried to specify maven.site.chmod.options=-R (as opposed to the default -Rf) to maybe display error messages, but nothing. I assume the setting of privileges is supposed to happen after the tar has been extracted on the remote system, but the only message I get from Maven before BUILD SUCCESSFUL is [delete] Deleting: XYZ--site.tar.gz Can anyone shed some light on this matter? Are the maven.site.chmod.mode and maven.site.chmod.options properties being read at all? I am using v1.6.1 of the maven-site-plugin. Thanks cheers :) Rune Flobakk - 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: Additional file sincluded while building an EAR
Hello, i sorted out why, it was due to the 'scope' of the dependency. But htis raises another problem: i was not able to find ejb3 jars in maven2 repositories... and if i use the systemPath they will be included in my .ear. can anyone suggest me a workaround? thanx and regards marco On 3/10/06, Marco Mistroni [EMAIL PROTECTED] wrote: hello all, i have a project whichcontains some subprojects.. i am trying to build an ear out of my project, and when the ear is built there are additional jar file included that i don't need... i end up with my projects files plus - geronimo-spec-j2ee-1.4-rc4.jar, - ejb3-persistence-4.0.3 - jboss-ejb3x-4.0.3.jar anyone could help me out? my dir structure is: main -- shared -- ejbs -- web -- ear here are the correspondent pom.xml * main pom.xml project modelVersion4.0.0/modelVersion groupIdroot/groupId version 1.0/version artifactIdproject/artifactId packagingpom/packaging nameproject/name modules moduleshared/module moduleejbs/module moduleweb/module moduleear/module modulesite/module /modules build pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin groupId org.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId configuration unzipCommand/usr/bin/unzip -o err.txt/unzipCommand /configuration /plugin /plugins /pluginManagement /build dependencyManagement dependencies dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-j2ee/artifactId version1.4-rc4 /version /dependency dependency groupIdfop/groupId artifactIdfop/artifactId version0.20.5rc2 /version /dependency dependency groupIdaxis/groupId artifactIdaxis-saaj/artifactId version 1.3/version /dependency dependency groupIdaxis/groupId artifactIdaxis/artifactId version1.3/version /dependency dependency groupIdroot/groupId artifactIdshared/artifactId version 1.0/version /dependency dependency groupIdroot/groupId artifactIdejbs/artifactId version1.0 /version /dependency dependency groupIdroot/groupId artifactIdweb/artifactId version1.0/version /dependency /dependencies /dependencyManagement distributionManagement site idsite/id nameproject website/name urlscp://local.company.com/websites/project.company.com//url /site /distributionManagement /project *** shared pom.xml ** project modelVersion4.0.0/modelVersion groupIdroot/groupId artifactIdshared/artifactId packagingjar/packaging namecore project classes/name parent groupIdroot/groupId artifactIdproject/artifactId version1.0/version /parent pluginRepositories pluginRepository idapache.snapshots/id urlhttp://cvs.apache.org/maven-snapshot-repository /url /pluginRepository /pluginRepositories repositories repository idapache.snapshots/id url http://cvs.apache.org/maven-snapshot-repository/url /repository /repositories dependencies dependency groupIdorg.testng/groupId artifactIdtestng/artifactId version4.6.1/version scopetest/scope classifierjdk15/classifier /dependency /dependencies build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration encodingiso-8859-1/encoding /configuration /plugin /plugins /build /project *** ejbs pom.xml ** project modelVersion4.0.0/modelVersion groupIdroot/groupId artifactIdejbs/artifactId packagingejb/packaging version1.0/version nameenterprise java beans/name parent groupIdroot/groupId artifactIdproject/artifactId version1.0/version /parent pluginRepositories pluginRepository idapache.snapshots/id url http://cvs.apache.org/maven-snapshot-repository/url
rpm plugin location
I can't find the rpm plugin source. The links and svn commands at http://www.codehaus.org/~boba/rpm-plugin/source-repository.html don't work. Anyone know where this plugin is now?
Google Analytics
Hi, I have the impression, that the Maven and Plexus websites are both suffering seriously from problems with Google Analytics today. Is this the case? If so, is it wise to use GA? Thanks, Jochen -- Whenever you find yourself on the side of the majority, it is time to pause and reflect. (Mark Twain) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
POM Reference page updates (was RE: Maven documentation (was Re: how to include all dependencies in your jar))
Nice improvements Brett, thank you. This is turning into a very nice reference document. It is vastly improved over recent time with your and others checkins. (so everyone please file JIRAs for items that still need improvement! :-) -Original Message- From: Jeff Jensen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 07, 2006 8:18 PM To: 'Maven Users List' Subject: RE: Maven documentation (was Re: how to include all dependencies in your jar) Thanks Brett. Reopened http://jira.codehaus.org/browse/MNG-1479. -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 07, 2006 12:23 PM To: Maven Users List Subject: Re: Maven documentation (was Re: how to include all dependencies in your jar) Thanks. I think someone took a pass at this recently, but it could definitely use some more (and probably an improved presentation). Can you articulate that in a JIRA entry? (I prefer folks that suggest things file their own so they get to see it followed through to completion and take a little credit for pointing it out. If you'd rather I just file it myself, just say so). Cheers, Brett On 3/8/06, Jeff Jensen [EMAIL PROTECTED] wrote: I suggest starting with getting the POM reference really well documented, improving any entries with short, vague explanations. (And before I receive the contributions welcome, I did :-). I reviewed it for what I understood and saw was vague. I even looked in code for values, etc. Now it is time for the next much more expert person to do same...) -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Monday, March 06, 2006 11:00 PM To: Maven Users List Subject: Re: Maven documentation (was Re: how to include all dependencies in your jar) We're all suffering the same problem - knowing where to start. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Google Analytics
I'm not noticing, and plexus doesn't use it (it uses google ads, which is just something codehaus does). Are others seeing it? - Brett On 3/11/06, Jochen Wiedmann [EMAIL PROTECTED] wrote: Hi, I have the impression, that the Maven and Plexus websites are both suffering seriously from problems with Google Analytics today. Is this the case? If so, is it wise to use GA? Thanks, Jochen -- Whenever you find yourself on the side of the majority, it is time to pause and reflect. (Mark Twain) - 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] multiproject using plugin
I have a project that builds an rpm with the rpm plugin which works fine. Now I want to build several rpms so I've made several projects and a parent project to run them all. However when I run the parent (mvn -o clean rpm:rpm) I get the following output: NOTE: Maven is executing in offline mode. Any artifacts not already in your local repository will be inaccessible. [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] micro_proxy [INFO] sockd [INFO] JWSS [INFO] rpm [INFO] Searching repository for plugin with prefix: 'rpm'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-rpm-plugin' does not exist or no valid version could be found [INFO] My parent pom looks like: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdorg.jcdx.jwss/groupId artifactIdrpm/artifactId version1.0/version packagingpom/packaging namerpm/name urlhttp://jcdx.org/url parent groupIdorg.jcdx.jwss/groupId artifactIdjwss/artifactId version1.0.0/version /parent modules modulemicro_proxy/module modulesocks/module modulejwss/module /modules build pluginManagement plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdrpm-maven-plugin/artifactId version1.0-alpha-2-SNAPSHOT/version /plugin /plugins /pluginManagement /build /project I don't think the pluginManagement does anything in this instance. I can run this command successfully in the suprojects why doesn't it work from the parent? Is there a way in the parent to specify the goals for the children? Xavier
Re: Building J2EE project using Maven2
Is this separate from your site problem? I'm about at the same point you are in picking up Maven2. I haven't seen a comprehensive example, but I can build through the EAR file and am having some problems doing a remote deploy to another box using scp. A comprehensive example would be valuable. I'm reading a book on Java tools for extreme programming and they use a Hello-World app that is usefully -- if a little absurdly -- implemented as class, JSP, Servlet, EJB, with JAR, WAR and EAR files. But they use Ant as the build tool! :-( We probably need to do something similar for m2. In the meantime, does anyone know if there are a few projects of that complexity that use m2? I recall seeing them on the list, but don't remember if they were m1 or m2. Ray On 10 Mar 2006 11:45:25 UT, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear People, I am trying for three days to sort my problem, but i could not :(, what i am trying to do is that to build my j2ee project (WAR, JAR and EAR) and then deploy the ear into Jboss, i have done all that in ANT but i could not do it in Mavevn 2, so there is any full example for this please Regards, Adel Please consider AJ Business Solutions Ltd's disclaimer at the end of this email before reading this message or opening any attachments. Adel Aneiba Software Development For and on Behalf of AJ Business Solutions Ltd. Tel : 0870 7518 900 Ext 42 // Fax : 0870 4 10 14 15 This message is confidential and may be legally privileged. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient please delete it and all copies of it from your system, destroy any hard copies of it and notify the sender immediately. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message or any attachment if you are not the intended recipient. We will not accept any liability for damage caused by computer viruses and it is your responsibility to scan attachments (if any). We may for the better performance of our business monitor incoming e-mails sent through our e-mail system.
RE: Unable to parse https authentication on pom upload
Input: https://svn.example.com:8443/trunk/extranet/pom.xml NFO | jvm 1| 2006/03/10 10:18:19 | java.io.IOException: Server returned HTTP response code: 401 for URL: https://svn.example.com:8443/trunk/extranet/pom.xml INFO | jvm 1| 2006/03/10 10:18:19 | at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:800) INFO | jvm 1| 2006/03/10 10:18:19 | at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(DashoA12275) INFO | jvm 1| 2006/03/10 10:18:19 | at java.net.URL.openStream(URL.java:913) INFO | jvm 1| 2006/03/10 10:18:19 | at org.codehaus.plexus.formica.util.MungedHttpsURL.isValid(MungedHttpsURL.java:111) INFO | jvm 1| 2006/03/10 10:18:19 | at org.codehaus.plexus.formica.validation.UrlSourceValidator.validate(UrlSourceValidator.java:63) INFO | jvm 1| 2006/03/10 10:18:19 | at org.codehaus.plexus.formica.DefaultFormManager.validateElements(DefaultFormManager.java:195) INFO | jvm 1| 2006/03/10 10:18:19 | at org.codehaus.plexus.formica.DefaultFormManager.validate(DefaultFormManager.java:124) INFO | jvm 1| 2006/03/10 10:18:19 | at org.codehaus.plexus.formica.DefaultFormManager.validate(DefaultFormManager.java:114) INFO | jvm 1| 2006/03/10 10:18:19 | at org.codehaus.plexus.formica.action.AbstractEntityAction.execute(AbstractEntityAction.java:107) INFO | jvm 1| 2006/03/10 10:18:19 | at org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve.java:68) INFO | jvm 1| 2006/03/10 10:18:19 | at org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipeline.java:70) INFO | jvm 1| 2006/03/10 10:18:19 | at org.codehaus.plexus.summit.Summit.doGet(Summit.java:54) INFO | jvm 1| 2006/03/10 10:18:19 | at org.codehaus.plexus.summit.Summit.doPost(Summit.java:108) INFO | jvm 1| 2006/03/10 10:18:19 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) INFO | jvm 1| 2006/03/10 10:18:19 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.http.HttpServer.service(HttpServer.java:879) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.http.HttpConnection.service(HttpConnection.java:789) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520) Input: https://continuous:[EMAIL PROTECTED]/trunk/extranet/pom.xml INFO | jvm 1| 2006/03/10 10:21:25 | java.io.IOException: Server returned HTTP response code: 401 for URL: https://svn.example.com/trunk/extranet/pom.xml INFO | jvm 1| 2006/03/10 10:21:25 | at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:800) INFO | jvm 1| 2006/03/10 10:21:25 | at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(DashoA12275) INFO | jvm 1| 2006/03/10 10:21:25 | at java.net.URL.openStream(URL.java:913) INFO | jvm 1| 2006/03/10 10:21:25 | at org.codehaus.plexus.formica.util.MungedHttpsURL.isValid(MungedHttpsURL.java:111) INFO | jvm 1| 2006/03/10 10:21:25 | at org.codehaus.plexus.formica.validation.UrlSourceValidator.validate(UrlSourceValidator.java:63) INFO | jvm 1| 2006/03/10 10:21:25 | at org.codehaus.plexus.formica.DefaultFormManager.validateElements(DefaultFormManager.java:195) INFO | jvm 1| 2006/03/10 10:21:25 | at org.codehaus.plexus.formica.DefaultFormManager.validate(DefaultFormManager.java:124) INFO | jvm 1| 2006/03/10 10:21:25 | at
Re: Additional file sincluded while building an EAR
Your ejb pom has: dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-j2ee/artifactId /dependency Without a scope, it defaults to compile. Specify scopeprovided/scope. Also your ejb pom has the other two ejb3 jars specified as scope system. I don't use system, but I'm guessing it works like compile since the dependencies are being included. I think you should be able to exclude it by adding it as an excluded dependency in your EAR pom (??). Wayne On 3/10/06, Marco Mistroni [EMAIL PROTECTED] wrote: hello all, i have a project whichcontains some subprojects.. i am trying to build an ear out of my project, and when the ear is built there are additional jar file included that i don't need... i end up with my projects files plus - geronimo-spec-j2ee-1.4-rc4.jar, - ejb3-persistence-4.0.3 - jboss-ejb3x-4.0.3.jar anyone could help me out? my dir structure is: main -- shared -- ejbs -- web -- ear here are the correspondent pom.xml
RE: Building J2EE project using Maven2
-Original Message- From: Ray Ward [mailto:[EMAIL PROTECTED] Sent: vendredi 10 mars 2006 16:08 To: Maven Users List Subject: Re: Building J2EE project using Maven2 Is this separate from your site problem? I'm about at the same point you are in picking up Maven2. I haven't seen a comprehensive example, but I can build through the EAR file and am having some problems doing a remote deploy to another box using scp. A comprehensive example would be valuable. I'm reading a book on Java tools for extreme programming and they use a Hello-World app that is usefully -- if a little absurdly -- implemented as class, JSP, Servlet, EJB, with JAR, WAR and EAR files. But they use Ant as the build tool! :-( We probably need to do something similar for m2. Be patient it's coming... See http://mavenbook.xwiki.com/xwiki/bin/view/Main/Maven2Book There's a full big chapter on J2EE and Maven2. [snip] Thanks -Vincent ___ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Additional file sincluded while building an EAR
Hi Marco, If you have a third-party JAR that you want your project(s) to depend on, you can install it into your local repository following the instructions here: http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html You can then include it as a dependency within your pom.xml as you would any other dependency, including setting the scope to provided HTH, Ian It's better to be hated for who you are than loved for who you are not Ian D. Stewart Appl Dev Analyst-Advisory, DCS Automation JPMorganChase Global Technology Infrastructure Phone: (614) 244-2564 Pager: (888) 260-0078 Marco Mistroni [EMAIL PROTECTED]To: Maven Users List users@maven.apache.org com cc: Subject: Re: Additional file sincluded while building an EAR 03/10/2006 09:00 AM Please respond to Maven Users List Hello, i sorted out why, it was due to the 'scope' of the dependency. But htis raises another problem: i was not able to find ejb3 jars in maven2 repositories... and if i use the systemPath they will be included in my .ear. can anyone suggest me a workaround? thanx and regards marco On 3/10/06, Marco Mistroni [EMAIL PROTECTED] wrote: hello all, i have a project whichcontains some subprojects.. i am trying to build an ear out of my project, and when the ear is built there are additional jar file included that i don't need... i end up with my projects files plus - geronimo-spec-j2ee-1.4-rc4.jar, - ejb3-persistence-4.0.3 - jboss-ejb3x-4.0.3.jar anyone could help me out? my dir structure is: main -- shared -- ejbs -- web -- ear here are the correspondent pom.xml * main pom.xml project modelVersion4.0.0/modelVersion groupIdroot/groupId version 1.0/version artifactIdproject/artifactId packagingpom/packaging nameproject/name modules moduleshared/module moduleejbs/module moduleweb/module moduleear/module modulesite/module /modules build pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin groupId org.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId configuration unzipCommand/usr/bin/unzip -o err.txt/unzipCommand /configuration /plugin /plugins /pluginManagement /build dependencyManagement dependencies dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-j2ee/artifactId version1.4-rc4 /version /dependency dependency groupIdfop/groupId artifactIdfop/artifactId version0.20.5rc2 /version /dependency dependency groupIdaxis/groupId artifactIdaxis-saaj/artifactId version 1.3/version /dependency dependency groupIdaxis/groupId artifactIdaxis/artifactId version1.3/version /dependency dependency groupIdroot/groupId artifactIdshared/artifactId version 1.0/version /dependency dependency groupIdroot/groupId artifactIdejbs/artifactId version1.0 /version /dependency dependency groupIdroot/groupId
Re: Building J2EE project using Maven2
Personally I'm doing all the steps up to deploy with Maven, and then actually deploying into oc4j using ant. I tried to use cargo briefly and gave up since I had a working process in ant. I'm not aware of any full examples. But look at the pom.xml files sent by Marco in another thread titled Additional file sincluded while building an EAR for some help -- he provided poms for all his jar, ejb, web, and ear files. That will probably be a big help to you. Wayne On 10 Mar 2006 11:45:25 UT, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear People, I am trying for three days to sort my problem, but i could not :(, what i am trying to do is that to build my j2ee project (WAR, JAR and EAR) and then deploy the ear into Jboss, i have done all that in ANT but i could not do it in Mavevn 2, so there is any full example for this please Regards, Adel Please consider AJ Business Solutions Ltd's disclaimer at the end of this email before reading this message or opening any attachments. Adel Aneiba Software Development For and on Behalf of AJ Business Solutions Ltd. Tel : 0870 7518 900 Ext 42 // Fax : 0870 4 10 14 15 This message is confidential and may be legally privileged. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient please delete it and all copies of it from your system, destroy any hard copies of it and notify the sender immediately. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message or any attachment if you are not the intended recipient. We will not accept any liability for damage caused by computer viruses and it is your responsibility to scan attachments (if any). We may for the better performance of our business monitor incoming e-mails sent through our e-mail system.
Re: [m2] Multiproject - separating version and use dependencies
Take a look at the dependencyManagement tag. Sounds like its what you're looking for. Marco just sent his pom.xml files in another thread titled Additional file sincluded while building an EAR which includes a dependencyManagement section, might be helpful? Basically you put the depMgmt tag in your top pom with the dep and version, then in lower poms you just include the artifactId, groupId, and scope. Wayne On 3/10/06, andrew cooke [EMAIL PROTECTED] wrote: With Maven 2, is it possible to specify a *version* for a package in the pom at the top of a multiproject tree, but only specify dependencies on that package lower down, in specific projects? I would like to say at the top level use version X of package Y, but not have every child dependent on package Y. Thanks, Andrew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: finding JBoss EJB3 Jars on ibiblio ?
If you don't see them, then they are probably not there. ;-) So you can either: 1. Use your own internal repository 2. Wait until someone else uploads them 3. Use your JBoss support contract hours to ask that they be uploaded 4. Upload them yourself following the directions on Maven site: http://maven.apache.org/guides/mini/guide-ibiblio-upload.html Carlos is increasingly interested in getting the source and Javadocs included with bundles, so be sure to include them too if you take choice 4... Wayne On 3/10/06, Pete [EMAIL PROTECTED] wrote: I was looking for the JBoss EJB JARS on http://www.ibiblio.org/maven2/jboss/ Are they not there yet ? e.g. jboss-ejb3.jar jboss-ejb3x.jar ejb3-persistence.jar I was also looking for hibernate-ejb3-persistence.jar (used by JBoss EJB3TrailBlazer ) any ideas where to find this on ibiblio ? not under hibernate Is this best workaround to deploy these to my internal repository for now ? Pete
RE: Building J2EE project using Maven2
I've been using maven2 (and continuum) to build/deploy a j2ee project to jboss for the last couple of weeks. Heres what ive done (im not sure if its best practice, but it works): I have a folder structure as follows toplevelmodule pom.xml /coremodule pom.xml /src etc.. /ejbmodule pom.xml /src etc.. /webmodule pom.xml /src etc.. /earmodule pom.xml /src etc.. The top level pom defines all dependencies and is a packagingpom/packaging type pom. It lists all the submodules as follows: modules modulecoremodule/module moduleejbmodule/module modulewebmodule/module moduleearmodule/module /modules The submodules are respectively jar, jar, war and ear packaging types. The build section of my ejb pom looks like this: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration /plugin /plugins /build My ear pom uses the jboss plugin in the build section plugin groupIdorg.codehaus.mojo/groupId artifactIdjboss-maven-plugin/artifactId configuration jbossHome\jclickstart\jboss-3.2.7/jbossHome /configuration /plugin To build I first navigate to my toplevelmodule directory and type 'mvn clean install' To deploy I cd into my earmodule dir and type 'mvn jboss:harddeploy'. Hope this is useful. Adam -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Friday, March 10, 2006 3:34 PM To: Maven Users List Subject: Re: Building J2EE project using Maven2 Personally I'm doing all the steps up to deploy with Maven, and then actually deploying into oc4j using ant. I tried to use cargo briefly and gave up since I had a working process in ant. I'm not aware of any full examples. But look at the pom.xml files sent by Marco in another thread titled Additional file sincluded while building an EAR for some help -- he provided poms for all his jar, ejb, web, and ear files. That will probably be a big help to you. Wayne On 10 Mar 2006 11:45:25 UT, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear People, I am trying for three days to sort my problem, but i could not :(, what i am trying to do is that to build my j2ee project (WAR, JAR and EAR) and then deploy the ear into Jboss, i have done all that in ANT but i could not do it in Mavevn 2, so there is any full example for this please Regards, Adel Please consider AJ Business Solutions Ltd's disclaimer at the end of this email before reading this message or opening any attachments. Adel Aneiba Software Development For and on Behalf of AJ Business Solutions Ltd. Tel : 0870 7518 900 Ext 42 // Fax : 0870 4 10 14 15 This message is confidential and may be legally privileged. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient please delete it and all copies of it from your system, destroy any hard copies of it and notify the sender immediately. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message or any attachment if you are not the intended recipient. We will not accept any liability for damage caused by computer viruses and it is your responsibility to scan attachments (if any). We may for the better performance of our business monitor incoming e-mails sent through our e-mail system. === The contents of this email are intended for the named addresses and may contain confidential and/or privileged material. If received in error, please contact UPCO head office on +44(0)113 201 0600 and then delete the entire mail from your system. Unauthorised review, distribution, disclosure or other use of information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. Every effort has been taken to ensure that this email and any attachments are virus-free. However, UPCO does not make any warranty to this effect, and is not liable for any damage done by an infected email message or attachment. UPCO recommends that all emails and attachments are checked before opening. All views or opinions expressed in this electronic message and its attachements are those
Re: [m2] Multiproject - decoupling build and deployment
Another approach I forgot to mention was to have separate environment jars that can be added to each environment to bring it in line with some maximal standard, and then write all services assuming the environment provides that standard. Andrew andrew cooke wrote: Hi, Does anyone have any advice on decoupling build and deployment in a multiproject system where components can be deployed in several different environments? We have a service oriented architecture, and some components can be deployed in various different ways. We can also separate components into message/process and service sub-components, where the message/process part typically has much smaller dependencies. At the moment we are considering a structure like: root +- pom describing project-wide settings +- iface | +- pom describing message/process dependencies | +- comp1-iface | | +- pom and code for comp1 message/process sub-component | +- comp2-iface | | +- pom and code for comp2 message/process sub-component | : etc +- j2ee | +- pom describing j2ee deploy environment (supplied jars) | : +- comp1-service | | +- pom and code for comp1 services | +-comp1-ear | +- pom for packaging comp1 +- spring +- pom describing spring deploy environment : +- comp2-service | +- pom and code for comp2 services +- comp2-jar +- pom for packaging comp2 This specifies the correct dependencies for compiling/packaging, but means that code for the service components is fixed under one deploy environment. Since we spend a fair amount of engineering effort making our components deployable in multiple environments this is rather annoying. When we want to change the deploy of a component we need to move its location! Clearly this is not good. How do people manage this better? We have considered making the environment a project (jar) that is depended on explicitly, rather than as something inherited from the pom. But that felt wrong - maven seems to use pom inheritance for this. Or am I mistaken? Thanks, Andrew - 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]
Altering plugin configuration based on lifecycle phase?
Is it possible to have different configurations for a plugin based on lifecycle phase? Here is an example, with using the tomcat plugin. I currently have the following configuration which allows me to deploy the Maven built WAR into my local tomcat server: *plugin* *groupId*org.codehaus.mojo*/groupId* *artifactId*tomcat-maven-plugin*/artifactId* *version*1.0-SNAPSHOT*/version* *configuration* *server*MyLocalTomcatServer*/server* */configuration* */plugin* I would like it to be configured that way up until the integration-test phase, when I would like to change the server specified so that it switches to deploy the WAR remotely. Brian N. Burridge
Re: Altering plugin configuration based on lifecycle phase?
Sure. Here's an example: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId version1.1/version executions execution idproc/id phaseprocess-resources/phase configuration tasks echothis is maven-antrun-plugin : process-resources/echo /tasks /configuration goals goalrun/goal /goals /execution execution idpkg/id phasepackage/phase configuration copy file=${basedir}/../Lib/target/lib-2.1.2.jar tofile=${basedir}/target/classes/lib/lib-2.1.2.jar/ /configuration goals goalrun/goal /goals /execution execution iddep/id phasedeploy/phase configuration tasks echo message=Deploying.../ /tasks /configuration goals goalrun/goal /goals /execution /executions You'll want to make something similar with Executions and Configurations specific to your usage. Wayne On 3/10/06, Brian Burridge [EMAIL PROTECTED] wrote: Is it possible to have different configurations for a plugin based on lifecycle phase? Here is an example, with using the tomcat plugin. I currently have the following configuration which allows me to deploy the Maven built WAR into my local tomcat server: *plugin* *groupId*org.codehaus.mojo*/groupId* *artifactId*tomcat-maven-plugin*/artifactId* *version*1.0-SNAPSHOT*/version* *configuration* *server*MyLocalTomcatServer*/server* */configuration* */plugin* I would like it to be configured that way up until the integration-test phase, when I would like to change the server specified so that it switches to deploy the WAR remotely. Brian N. Burridge
Re: custom src directory layout - how to get it to not checkstyle/javadoc the tests too.
Easiest answer is to move to Subversion. There are tools to facilitate this so you can save your history out of CVS. Then restructure your project. Wayne On 3/10/06, Thorsten Heit [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, the directory structure we have is pom.xml src/ - org/ Maven uses src/java/... per default. Have you tried that? Regards Thorsten -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.1 (MingW32) iD8DBQFEEXUbQvObkgCcDe0RAurvAJ9R6yQpsS7OKSBa+mnJkkwvNkTVTQCfWdx9 PKyRi1m9fa9lNLqFYjMP1uU= =Jkxh -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: version 4.0.3 of jboss's jar ?
Hi Yan, Please read : http://maven.apache.org/guides/mini/guide-ibiblio-upload.html Examples of upload issues for 4.0.2 : http://jira.codehaus.org/browse/MAVENUPLOAD-762 http://jira.codehaus.org/browse/MAVENUPLOAD-764 http://www.ibiblio.org/maven2/jboss/jboss-client/4.0.2/ - Yann On 3/10/06, langlois yan [EMAIL PROTECTED] wrote: Hi, I can't find version 4.0.3 of the JBoss' jar. (for exemple http://www.ibiblio.org/maven2/jboss/jboss-client/4.0.3). Is it possible to put them in ibiblio.org ? Thanks, Yan. ___ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to bind execution of integration tests to integration-test phase
Back on Feb 11 there was a thread regarding integration testing with the subject line How to bind execution of integration tests to integration-test phase. Like Pete, who offered good advice in that thread, I also need to do in-container testing via Cactus, run CruiseControl and deploy to OAS/OC4J. Pete, if you see this posting, I'm interested in a few additional details about your approach. 1) does your runtests-integration project (or sub-projects) deploy the application (ear file) under test, or does it assume that the application under test is already deployed? 2) You said in your posting that With m2.02 I should now convert the Antruns to Ant Plugins. Why is that? Is there a new version of the Ant plugin that provides some new functionality that obviates the need for Antrun? I couldn't find any release notes or other info about the Ant Plugin that suggested anything new. Can you explain further? 3) You refer to two other modules - tests-serverside and tests-incontainer. What is the relationship of the tests-incontainer modules to your runtests-integration module(s) and/or your application module(s)? Is the tests-incontainer artifact (jar) packaged into, and deployed with, your application ear? Is it packaged and deployed separately? If the latter, is your runtests-integration module responsible for deploying that (perhaps inside of a war with the Cactus jar and its dependency jars)? 4) How do you deploy and configure Cactus and all its dependencies? Did you set up a shared library in OC4J or deploy them along with the tests? 5) You must have a web app somewhere that gets the Cactus servlets, filters, etc. in the game, right? Is it packaged in the ear or separate? Thanks for any additional info about your approach. Dave Dave Muirhead 303-638-4618 [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] multiproject using plugin
I am guessing that you need to specify the groupId and artifactId of the RPM plugin in any project that uses it. I think you can only inherit the version with the pluginManagement in the parent POM. Of course, in the case of the RPM plugin, the configuration is likely to be different for each project, so I would assume you still have the RPM plugin configuration in each project. -Original Message- From: Xavier Toth [mailto:[EMAIL PROTECTED] Sent: Friday, March 10, 2006 9:34 AM To: Maven Users List Subject: [m2] multiproject using plugin I have a project that builds an rpm with the rpm plugin which works fine. Now I want to build several rpms so I've made several projects and a parent project to run them all. However when I run the parent (mvn -o clean rpm:rpm) I get the following output: NOTE: Maven is executing in offline mode. Any artifacts not already in your local repository will be inaccessible. [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] micro_proxy [INFO] sockd [INFO] JWSS [INFO] rpm [INFO] Searching repository for plugin with prefix: 'rpm'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-rpm-plugin' does not exist or no valid version could be found [INFO] My parent pom looks like: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdorg.jcdx.jwss/groupId artifactIdrpm/artifactId version1.0/version packagingpom/packaging namerpm/name urlhttp://jcdx.org/url parent groupIdorg.jcdx.jwss/groupId artifactIdjwss/artifactId version1.0.0/version /parent modules modulemicro_proxy/module modulesocks/module modulejwss/module /modules build pluginManagement plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdrpm-maven-plugin/artifactId version1.0-alpha-2-SNAPSHOT/version /plugin /plugins /pluginManagement /build /project I don't think the pluginManagement does anything in this instance. I can run this command successfully in the suprojects why doesn't it work from the parent? Is there a way in the parent to specify the goals for the children? Xavier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do I include my ejb3 and par files in ear for Maven2
The problem in this approach is that the ejb3 files and war files I created needs to be in repository. I don't want to do that because we will not need these files individually as par of any deployable. /Nidhi -Original Message- From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent: Friday, March 10, 2006 3:10 AM To: Maven Users List Subject: Re: How do I include my ejb3 and par files in ear for Maven2 Hello, here's y pom.xml for creating an ear... give it a try if it helps 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 groupIdroot/groupId artifactIdproject/artifactId version1.0/version /parent modelVersion4.0.0/modelVersion artifactIdejb3-deploy/artifactId packagingear/packaging build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ear-plugin/artifactId configuration modules ejbModule groupIdroot/groupId artifactIdejbs/artifactId bundleFileName ejb3-app-1.0-SNAPSHOT.par /bundleFileName /ejbModule webModule groupIdroot/groupId artifactIdweb/artifactId bundleFileName ejb3-web.war /bundleFileName /webModule javaModule groupIdroot/groupId artifactIdshared/artifactId bundleFileNamesharedlib.jar /bundleFileName /javaModule /modules /configuration /plugin /plugins /build dependencies dependency groupIdroot/groupId artifactIdejbs/artifactId version1.0/version typeejb/type /dependency dependency groupIdroot/groupId artifactIdshared/artifactId version1.0/version typejar/type /dependency dependency groupIdroot/groupId artifactIdweb/artifactId version1.0/version typewar/type /dependency /dependencies /project - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] software component dependency
I figured this out. I set up my own file: based internal repo and used typezip/type for my bootstrap dependencies. Simple! -Original Message- From: Adam Leggett [mailto:[EMAIL PROTECTED] Sent: Friday, March 10, 2006 11:24 AM To: users@maven.apache.org Subject: [m2] software component dependency Hi, I have a project that depends on/bundles binary versions of jboss, mysql, maven and continuum. I know I can get the java EE jar dependencies for all of the above via a public repository for my application development module. Can I also obtain binary gzipped versions of the above from a public repository for my top level pom module which provides a runtime for my app? I was wondering if I could adopt the same approach as continuum (which I believe uses jetty) or the apache portals project (tomcat). How are these application binary dependencies specified in a pom? Or are they ever? If anyone has done this and can recommend a multi module structure (if necessary containing the runtime binaries rather than listing as dependencies) that would be fantastic. Many TIA Adam Adam Leggett [EMAIL PROTECTED] Senior Consultant UPCO Direct Line: 0113 20 10 631 Fax: 0113 20 10 666 http://www.upco.co.uk === The contents of this email are intended for the named addresses and may contain confidential and/or privileged material. If received in error, please contact UPCO head office on +44(0)113 201 0600 and then delete the entire mail from your system. Unauthorised review, distribution, disclosure or other use of information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. Every effort has been taken to ensure that this email and any attachments are virus-free. However, UPCO does not make any warranty to this effect, and is not liable for any damage done by an infected email message or attachment. UPCO recommends that all emails and attachments are checked before opening. All views or opinions expressed in this electronic message and its attachements are those of the sender and do not necessarily reflect the views and opinions of The Ultimate People Company Ltd. === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
M2: changelog plugin password issue
Hi, I am using maven 2.0.2 and changelog plugin 2.0-beta-1. running mvn site or mvn changelog:changelog results in the stacktrace below and an empty changelog.xml file. running mvn scm:changelog however works, I mean in the logging I can see clearly that it's connecting to cvs. thanks for your help, Peter part of my pom.xml: scm connectionscm:cvs:pserver:[EMAIL PROTECTED]:path:tofolder /connection developerConnection scm:cvs:pserver:[EMAIL PROTECTED]:path:tofolder/developerConnection /scm plugin groupIdorg.codehaus.mojo/groupId artifactIdchangelog-maven-plugin/artifactId version2.0-beta-1/version reportSets reportSet iddual-report/id configuration typerange/type range30/range /configuration reports reportchangelog/report reportfile-activity/report reportdev-activity/report /reports /reportSet /reportSets /plugin This is the resulting changelog.xml file: ?xml version=1.0 encoding=ISO-8859-1 ? changelog changeset start=2006-02-08 end=2006-03-11 /changeset /changelog and here is the stack trace: [INFO] [changelog:changelog] [INFO] Generating changed sets xml to: C:\development\eclipse\workspace\aa\b\target\changelog.xml [ERROR] Error processing command org.netbeans.lib.cvsclient.connection.AuthenticationException: Wrong Password. at org.netbeans.lib.cvsclient.connection.PServerConnection.openConnection(PServerConnection.java:202) at org.netbeans.lib.cvsclient.connection.PServerConnection.open(PServerConnection.java:298) at org.apache.maven.cvslib.CvsConnection.connect(CvsConnection.java:119) at org.apache.maven.cvslib.CvsConnection.processCommand(CvsConnection.java:433) at org.apache.maven.cvslib.CvsChangeLogGenerator.getEntries(CvsChangeLogGenerator.java:98) at org.apache.maven.changelog.ChangeLog.generateSets(ChangeLog.java:430) at org.apache.maven.changelog.ChangeLog.doExecute(ChangeLog.java:369) at org.apache.maven.changelog.ChangeLogReport.getChangeLog(ChangeLogReport.java:263) at org.apache.maven.changelog.ChangeLogReport.generateChangeSetsFromSCM(ChangeLogReport.java:218) at org.apache.maven.changelog.ChangeLogReport.getChangedSets(ChangeLogReport.java:198) at org.apache.maven.changelog.ChangeLogReport.executeReport(ChangeLogReport.java:173) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:117) at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:92) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:485) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:455) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) 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) [INFO] ChangeSet between 2006-02-08 and 2006-03-11: 0 entries [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 3 seconds [INFO] Finished at: Fri Mar 10 17:57:25 CET 2006 [INFO] Final Memory: 4M/9M [INFO]
Re: Maven 1.x site plugin
Wohoo! It worked! Struggled a bit with the svn checkout only. The url for the repository for anonymous access appears to be wrong on this page: http://maven.apache.org/maven-1.x/plugins/site/scm-usage.html I had to use svn checkout http://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk/site/ maven-site-plugin (ommitting the scm:svn: part) to get the plugin source. But anyway, it works now, and I am happy! A beautiful 1 minutes and 30 seconds build resulting in a nice public website ;) And now, only thing left is to dive into Maven 2... which in turn means, you have probably not seen the last of me on this mailinglist ;) Rune Arnaud HERITIER wrote: I will change that to move the doc for in a better visible location on the page (I was thinking to put it at the top of the menu). Don't hesitate to give us your feedback. Arnaud On 3/10/06, Rune Flobakk [EMAIL PROTECTED] wrote: Thanks for your quick reply! I was actually just getting to checking out the 1.7-snapshot, as I noticed (in small prints) at the bottom of the site-plugin page: Doc for 1.7-SNAPSHOT Doh... ;) Thanks again. Rune Arnaud HERITIER wrote: Hi Rune, It seems that we fixed several problems about rights in the current SNAPSHOT. http://maven.apache.org/maven-1.x/plugins/site/changes-report.html#Release1_7-SNAPSHOT Can you try the 1.7-SNAPSHOT to see if it helps? Arnaud On 3/10/06, Rune Flobakk [EMAIL PROTECTED] wrote: Hi! I wondered if anybody could provide some assistance with getting Maven1 to setup up correct privileges on a site remotely deployed using ssh (plink and pscp). I am trying to use the maven.site.chmod.mode property to set up the privileges, but it seems no matter how I define it, the resulting privileges are rw-rw--- for files and rwxrwx--- for dirs. I want to make the site readable to everybody, and therefore specified this in project.properties: maven.site.chmod.mode=u+rwX,go+rX-w I also tried to set a numeric mode to see if it worked. It didn't (not optimal since every file gets executable bit, but usable): maven.site.chmod.mode=644 I've also tried to specify maven.site.chmod.options=-R (as opposed to the default -Rf) to maybe display error messages, but nothing. I assume the setting of privileges is supposed to happen after the tar has been extracted on the remote system, but the only message I get from Maven before BUILD SUCCESSFUL is [delete] Deleting: XYZ--site.tar.gz Can anyone shed some light on this matter? Are the maven.site.chmod.mode and maven.site.chmod.options properties being read at all? I am using v1.6.1 of the maven-site-plugin. Thanks cheers :) Rune Flobakk - 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: Maven2, antrun and script task
Thanks for the link, I missed that page when I was documentation hunting. However, I don't quite see how it helps in this case, since (a) the script task doesn't accept a nested classpath and (b) I want to set the classpath Ant gets called with, not modify the Ant build in a way that would make it break outside of Maven. What I really need is a way to configure the plugin such that it invokes Ant with a specified system classpath (assuming the script and other tasks I need to get working define build.sysclasspath behaviour equivalent to 'only' or 'first', that is). L. Carlos Sanchez wrote: http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html Using optional ant tasks On 3/9/06, Laurie Harper [EMAIL PROTECTED] wrote: I'm trying to integrate a third-party, ant-based build into a Maven2 build using the antrun plugin. The problem is the ant build uses optional tasks, and I can't figure out how to get that to work. The ant build as shipped copies the required dependencies (jar files) for the optional tasks to ~/.ant/lib to make them available to ant and this works fine when calling ant from the command line, but not when invoking ant from Maven. In any case, I'd rather skip that requirement by putting the jars on ant's classpath via some configuration in my POM. I've tried everything I can think of, but the antrun plugin always gives me the standard ant error message, 'Ant could not find the task or a class this task relies upon.'. For example, a simple test: build.xml: ?xml version=1.0 encoding=iso-8859-1? project name=script-test default=script-test basedir=. target name=script-test script language=javascript![CDATA[ //alert(Javascript OK); ]]/script /target /project pom.xml: project xmlns=... modelVersion4.0.0/modelVersion groupIdtmp/groupId artifactIdtmp/artifactId version1.0-SNAPSHOT/version build plugins plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasecompile/phase !--phasegenerate-resources/phase-- configuration tasks ant dir=./ /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin /plugins /build dependencies dependency groupIdant/groupId artifactIdant-optional/artifactId version1.5.2/version scopecompile/scope /dependency dependency groupIdbsf/groupId artifactIdbsf/artifactId systemPath${basedir}/bsf.jar/systemPath versionBUNDLED/version scopesystem/scope /dependency dependency groupIdjs/groupId artifactIdjs/artifactId systemPath${basedir}/js.jar/systemPath versionBUNDLED/version scopesystem/scope /dependency /dependencies /project Result: $ mvn compile [INFO] Scanning for projects... [INFO] [INFO] Building Unnamed - tmp:tmp:jar:1.0-SNAPSHOT [INFO]task-segment: [compile] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] No sources to compile [INFO] [antrun:run {execution: default}] [INFO] Executing tasks script-test: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error executing ant tasks Embedded error: The following error occurred while executing this line: /Users/laurie/tmp/mvn-ant-script/build.xml:4: Could not create task or type of type: script. Ant could not find the task or a class this task relies upon. This is common and has a number of causes; the usual solutions are to read the manual pages then download and install needed JAR files, or fix the build file: - You have misspelt 'script'. Fix: check your spelling. - The task needs an external JAR file to execute and this is not found at the right place in the classpath. Fix: check the documentation for dependencies. Fix: declare the task. - The task is an Ant optional task and the JAR file and/or libraries implementing the functionality were not found at the time you yourself built your installation of Ant from the Ant sources. Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the task and make sure it contains more than merely a META-INF/MANIFEST.MF. If all it contains is the manifest, then rebuild Ant with the needed libraries present in ${ant.home}/lib/optional/ , or alternatively, download a pre-built release version from apache.org - The build file was written for a later version of Ant Fix: upgrade to at
Re: Unable to parse https authentication on pom upload
Perhaps we have a bug in our downloader. Can you look at it? http://svn.codehaus.org/trunk/plexus-components/plexus-formica/src/main/java/org/codehaus/plexus/formica/util/MungedHttpsURL.java?rev=2921root=plexusview=auto I don't have an authenticated https server, so i can't test it. Emmanuel Veerman, Christiaan a écrit : Input: https://svn.example.com:8443/trunk/extranet/pom.xml NFO | jvm 1| 2006/03/10 10:18:19 | java.io.IOException: Server returned HTTP response code: 401 for URL: https://svn.example.com:8443/trunk/extranet/pom.xml INFO | jvm 1| 2006/03/10 10:18:19 | at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:800) INFO | jvm 1| 2006/03/10 10:18:19 | at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(DashoA12275) INFO | jvm 1| 2006/03/10 10:18:19 | at java.net.URL.openStream(URL.java:913) INFO | jvm 1| 2006/03/10 10:18:19 | at org.codehaus.plexus.formica.util.MungedHttpsURL.isValid(MungedHttpsURL.java:111) INFO | jvm 1| 2006/03/10 10:18:19 | at org.codehaus.plexus.formica.validation.UrlSourceValidator.validate(UrlSourceValidator.java:63) INFO | jvm 1| 2006/03/10 10:18:19 | at org.codehaus.plexus.formica.DefaultFormManager.validateElements(DefaultFormManager.java:195) INFO | jvm 1| 2006/03/10 10:18:19 | at org.codehaus.plexus.formica.DefaultFormManager.validate(DefaultFormManager.java:124) INFO | jvm 1| 2006/03/10 10:18:19 | at org.codehaus.plexus.formica.DefaultFormManager.validate(DefaultFormManager.java:114) INFO | jvm 1| 2006/03/10 10:18:19 | at org.codehaus.plexus.formica.action.AbstractEntityAction.execute(AbstractEntityAction.java:107) INFO | jvm 1| 2006/03/10 10:18:19 | at org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve.java:68) INFO | jvm 1| 2006/03/10 10:18:19 | at org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipeline.java:70) INFO | jvm 1| 2006/03/10 10:18:19 | at org.codehaus.plexus.summit.Summit.doGet(Summit.java:54) INFO | jvm 1| 2006/03/10 10:18:19 | at org.codehaus.plexus.summit.Summit.doPost(Summit.java:108) INFO | jvm 1| 2006/03/10 10:18:19 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) INFO | jvm 1| 2006/03/10 10:18:19 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.http.HttpServer.service(HttpServer.java:879) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.http.HttpConnection.service(HttpConnection.java:789) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331) INFO | jvm 1| 2006/03/10 10:18:19 | at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520) Input: https://continuous:[EMAIL PROTECTED]/trunk/extranet/pom.xml INFO | jvm 1| 2006/03/10 10:21:25 | java.io.IOException: Server returned HTTP response code: 401 for URL: https://svn.example.com/trunk/extranet/pom.xml INFO | jvm 1| 2006/03/10 10:21:25 | at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:800) INFO | jvm 1| 2006/03/10 10:21:25 | at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(DashoA12275) INFO | jvm 1| 2006/03/10 10:21:25 | at java.net.URL.openStream(URL.java:913) INFO | jvm 1| 2006/03/10 10:21:25 | at org.codehaus.plexus.formica.util.MungedHttpsURL.isValid(MungedHttpsURL.java:111) INFO | jvm 1| 2006/03/10 10:21:25 | at org.codehaus.plexus.formica.validation.UrlSourceValidator.validate(UrlSourceValidator.java:63) INFO | jvm 1| 2006/03/10 10:21:25 | at
RE: How do I include my ejb3 and par files in ear for Maven2
The problem in this approach is that the ejb3 files and war files I created needs to be in repository. I don't want to do that because we will not need these files individually as par of any deployable. That's not the spirit of Maven, since if _you_ wanted to use them, then there is a chance _others_ would want to use them, too. Also, if you insist that they should not be deployed, don't confuse installing them in your maven.repo.local with deploying them to your internal repository. I don't know for sure that you can skip the deploy phase for an artifact, but I'd bet it's easier than skipping the install phase (and still having a working build). My USD$0.02, -- /v\atthew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ejb3 plugin -- URGENT
Hi Tim, I tried using the plugins you gave me for par and ejb3 files. They generate the *.ejb3 and *.par but it is including all the files in both ejb3 and par. The problem with ejb3 and par including all the files are that ear contains the duplicate copy of EJBs and when it tries to deploy it tries to deploy 2 times and hence throws JNDI Name Already Bound Exception. Ideally par should only have persistence files(Entity Bean) and rest should be in ejb3. Is there a way I can configure these plugins to only include the wanted file? Also when do you think the fix you did in maven-ejb-plugin for making 'ejb-jar.xml' will be made available? Thanks Nidhi -Original Message- From: Tim Kettler [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 07, 2006 11:53 AM To: Maven Users List Subject: Re: ejb3 plugin Tim Kettler schrieb: Hi Nidhi, you can checkout the maven-ejb3-plugin vie svn from the maven sandbox at: http://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-ejb3-plugin you then probably also want the maven-par-plugin from: http://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-par-plugin Once you have the plugins on your harddrive you can install them to your local repository by executing 'mvn install' in the project root directories. There is an attached zip file (test-prj.zip) at http://jira.codehaus.org/browse/MNG-1723 which contains a very minimalistic test project with an EJB3 project and an EAR project that packages the EJB file. You can use that as an starting point for your project. However, according to the latest draft of the spec (see section 6.2 of ejb-3_0-pfd-spec-persistence.pdf and chapter 19 of ejb-3_0-pfd-spec-ejbcore.pdf) Enterprise Beans are packaged in plain Jar files (not .ejb3 and .par). So if you use an EJB3 implementation that implements the latest spec (like the one from JBoss) you can use the 'standard' maven-ejb-plugin. The only problem with this is that the plugin enforces the presence of an 'ejb-jar.xml' file which is not needed with EJB3 if you use annotations. I submitted a patch for the plugin (http://jira.codehaus.org/browse/MEJB-6) to make the 'ejb-jar.xml' optional but i don't know if this will be applyed in the near furure. ...applied in the near future. Grmmph. -Tim Nidhi Tuli schrieb: Hi, I just started working on Maven 2 and trying to build my EJB3 project using maven2. Any ideas what plug-in should I use? In one of the articles I am advised to do ejb3 on the jar file which I created. The package for that is suggested to be maven-ejb3-plugin with groupId of goal bindings org.apache.maven.plugins. But I am not able to find this plugin? Any suggestions? Thanks Nidhi - 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]
maven-corburtura POM v3 in repo
The repository has POM v3 of corburtura plugin: http://www.ibiblio.org/maven2/maven-plugins/maven-cobertura-plugin/1.1.1/maven-cobertura-plugin-1.1.1.pom When i try to build a report using this plugin using M2.0.2, I get: org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project for plugin 'maven-plugins:maven-cobertura-plugin': Not a v4.0.0 POM. When is the latest edition supporting POM v4.0.0 expected? -- Regards, Subhash Chandran S Cross platform OpenSource Java based file encryption software: http://www.WizTools.org/project/WizCrypt/
Re: [m2] multiproject using plugin
Indeed I'm specifying the groupId and artifactId in each submodule. Individually I can build the submodules the problem seems to be with the parent module. When I remove the pluginManagement element then the submodules build but this seems a bit bogus. Why should I have to specify the build-plugins-plugin at all?? On 3/10/06, Allison, Bob [EMAIL PROTECTED] wrote: I am guessing that you need to specify the groupId and artifactId of the RPM plugin in any project that uses it. I think you can only inherit the version with the pluginManagement in the parent POM. Of course, in the case of the RPM plugin, the configuration is likely to be different for each project, so I would assume you still have the RPM plugin configuration in each project. -Original Message- From: Xavier Toth [mailto:[EMAIL PROTECTED] Sent: Friday, March 10, 2006 9:34 AM To: Maven Users List Subject: [m2] multiproject using plugin I have a project that builds an rpm with the rpm plugin which works fine. Now I want to build several rpms so I've made several projects and a parent project to run them all. However when I run the parent (mvn -o clean rpm:rpm) I get the following output: NOTE: Maven is executing in offline mode. Any artifacts not already in your local repository will be inaccessible. [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] micro_proxy [INFO] sockd [INFO] JWSS [INFO] rpm [INFO] Searching repository for plugin with prefix: 'rpm'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-rpm-plugin' does not exist or no valid version could be found [INFO] My parent pom looks like: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdorg.jcdx.jwss/groupId artifactIdrpm/artifactId version1.0/version packagingpom/packaging namerpm/name urlhttp://jcdx.org/url parent groupIdorg.jcdx.jwss/groupId artifactIdjwss/artifactId version1.0.0/version /parent modules modulemicro_proxy/module modulesocks/module modulejwss/module /modules build pluginManagement plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdrpm-maven-plugin/artifactId version1.0-alpha-2-SNAPSHOT/version /plugin /plugins /pluginManagement /build /project I don't think the pluginManagement does anything in this instance. I can run this command successfully in the suprojects why doesn't it work from the parent? Is there a way in the parent to specify the goals for the children? Xavier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] multiproject using plugin
Well I spoke too soon it blowsup in the parent after building the submodules because I didn't do any configuration. At the parent I don't rpm:rpm to do anything:( On 3/10/06, Xavier Toth [EMAIL PROTECTED] wrote: Indeed I'm specifying the groupId and artifactId in each submodule. Individually I can build the submodules the problem seems to be with the parent module. When I remove the pluginManagement element then the submodules build but this seems a bit bogus. Why should I have to specify the build-plugins-plugin at all?? On 3/10/06, Allison, Bob [EMAIL PROTECTED] wrote: I am guessing that you need to specify the groupId and artifactId of the RPM plugin in any project that uses it. I think you can only inherit the version with the pluginManagement in the parent POM. Of course, in the case of the RPM plugin, the configuration is likely to be different for each project, so I would assume you still have the RPM plugin configuration in each project. -Original Message- From: Xavier Toth [mailto:[EMAIL PROTECTED] Sent: Friday, March 10, 2006 9:34 AM To: Maven Users List Subject: [m2] multiproject using plugin I have a project that builds an rpm with the rpm plugin which works fine. Now I want to build several rpms so I've made several projects and a parent project to run them all. However when I run the parent (mvn -o clean rpm:rpm) I get the following output: NOTE: Maven is executing in offline mode. Any artifacts not already in your local repository will be inaccessible. [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] micro_proxy [INFO] sockd [INFO] JWSS [INFO] rpm [INFO] Searching repository for plugin with prefix: 'rpm'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-rpm-plugin' does not exist or no valid version could be found [INFO] My parent pom looks like: project xmlns=http://maven.apache.org/POM/4.0.0 xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdorg.jcdx.jwss/groupId artifactIdrpm/artifactId version1.0/version packagingpom/packaging namerpm/name urlhttp://jcdx.org/url parent groupId org.jcdx.jwss/groupId artifactIdjwss/artifactId version1.0.0/version /parent modules modulemicro_proxy/module modulesocks/module modulejwss/module /modules build pluginManagement plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdrpm-maven-plugin/artifactId version1.0-alpha-2-SNAPSHOT/version /plugin /plugins /pluginManagement /build /project I don't think the pluginManagement does anything in this instance. I can run this command successfully in the suprojects why doesn't it work from the parent? Is there a way in the parent to specify the goals for the children? Xavier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven 2 with jdk 1.3
Hi All, I have an application that run's on JDK 1.3. In the POM's I have the following setting plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerVersion1.3/compilerVersion target1.3/target showDeprecationtrue/showDeprecation showWarningstrue/showWarnings /configuration inheritedtrue/inherited /plugin Is there anything else I need to do to make it work with JDK 1.3? If not, why will I get an error, [3/10/06 11:24:10:538 PST] 65795dd9 WebGroup E SRVE0026E: [Servlet Error]-[java.lang.StringBuffer: method append#40; Ljava/lang/StringBuffer#59;#41;Ljava/lang/StringBuffer#59; not found]: javax.servlet.jsp.JspException: java.lang.String Buffer: method append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not found at org.apache.struts.taglib.template.InsertTag.doEndTag( InsertTag.java:164) at org.apache.jsp._index._jspService(_index.java:344) at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service( HttpJspBase.java:89) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) StringBuffer.append(StringBuffer) is JDK 1.4. Please advice, Sanjay
Re: How do I include my ejb3 and par files in ear for Maven2
Is installing the ejb3 and war files into your own local repository such a big deal?? What's the harm/negative of this?? i don't want X != can't allow X for specific reason Y and Z I guess I'm just too pragmatic for this problem... The solution is obvious, install locally, and proceed to the next step... Wayne On 3/10/06, Nidhi Tuli [EMAIL PROTECTED] wrote: The problem in this approach is that the ejb3 files and war files I created needs to be in repository. I don't want to do that because we will not need these files individually as par of any deployable. /Nidhi -Original Message- From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent: Friday, March 10, 2006 3:10 AM To: Maven Users List Subject: Re: How do I include my ejb3 and par files in ear for Maven2 Hello, here's y pom.xml for creating an ear... give it a try if it helps 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 groupIdroot/groupId artifactIdproject/artifactId version1.0/version /parent modelVersion4.0.0/modelVersion artifactIdejb3-deploy/artifactId packagingear/packaging build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ear-plugin/artifactId configuration modules ejbModule groupIdroot/groupId artifactIdejbs/artifactId bundleFileName ejb3-app-1.0-SNAPSHOT.par /bundleFileName /ejbModule webModule groupIdroot/groupId artifactIdweb/artifactId bundleFileName ejb3-web.war /bundleFileName /webModule javaModule groupIdroot/groupId artifactIdshared/artifactId bundleFileNamesharedlib.jar /bundleFileName /javaModule /modules /configuration /plugin /plugins /build dependencies dependency groupIdroot/groupId artifactIdejbs/artifactId version1.0/version typeejb/type /dependency dependency groupIdroot/groupId artifactIdshared/artifactId version1.0/version typejar/type /dependency dependency groupIdroot/groupId artifactIdweb/artifactId version1.0/version typewar/type /dependency /dependencies /project - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven 2 with jdk 1.3
I suspect that you are using javax.servlet library which was compiled with JDK 1.4. Download the code and recompile with JDK 1.3 if you must use it along with code that targets 1.3. Wayne On 3/10/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: Hi All, I have an application that run's on JDK 1.3. In the POM's I have the following setting plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerVersion1.3/compilerVersion target1.3/target showDeprecationtrue/showDeprecation showWarningstrue/showWarnings /configuration inheritedtrue/inherited /plugin Is there anything else I need to do to make it work with JDK 1.3? If not, why will I get an error, [3/10/06 11:24:10:538 PST] 65795dd9 WebGroup E SRVE0026E: [Servlet Error]-[java.lang.StringBuffer: method append#40; Ljava/lang/StringBuffer#59;#41;Ljava/lang/StringBuffer#59; not found]: javax.servlet.jsp.JspException: java.lang.String Buffer: method append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not found at org.apache.struts.taglib.template.InsertTag.doEndTag( InsertTag.java:164) at org.apache.jsp._index._jspService(_index.java:344) at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service( HttpJspBase.java:89) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) StringBuffer.append(StringBuffer) is JDK 1.4. Please advice, Sanjay
Re: maven 2 with jdk 1.3
No, I am sure that javax.servlet library is JDK 1.3. It is provided by ibm was 5 and we used it to compile it. -Sanjay On 3/10/06, Wayne Fay [EMAIL PROTECTED] wrote: I suspect that you are using javax.servlet library which was compiled with JDK 1.4. Download the code and recompile with JDK 1.3 if you must use it along with code that targets 1.3. Wayne On 3/10/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: Hi All, I have an application that run's on JDK 1.3. In the POM's I have the following setting plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerVersion1.3/compilerVersion target1.3/target showDeprecationtrue/showDeprecation showWarningstrue/showWarnings /configuration inheritedtrue/inherited /plugin Is there anything else I need to do to make it work with JDK 1.3? If not, why will I get an error, [3/10/06 11:24:10:538 PST] 65795dd9 WebGroup E SRVE0026E: [Servlet Error]-[java.lang.StringBuffer: method append#40; Ljava/lang/StringBuffer#59;#41;Ljava/lang/StringBuffer#59; not found]: javax.servlet.jsp.JspException: java.lang.String Buffer: method append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not found at org.apache.struts.taglib.template.InsertTag.doEndTag( InsertTag.java:164) at org.apache.jsp._index._jspService(_index.java:344) at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service( HttpJspBase.java:89) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) StringBuffer.append(StringBuffer) is JDK 1.4. Please advice, Sanjay
Re: [m2] Internal Repositories
mvn -o tells maven to work offline. Not sure if that affects repos specified with file:/// or not, assume it does. I'm not sure but there's probably a way to automatically blacklist a repo. So you could add your own repo, blacklist ibiblio, and be on your way. If this isn't already a feature, it seems like it could (and perhaps should) be added. File a new JIRA issue if you can't find a way to do this so someone can work on it. Or you could edit your host file on your systems so ibiblio points to your local server instead. ;-) Wayne On 3/10/06, Khin, Gerald [EMAIL PROTECTED] wrote: Hi! Being a newbie to maven, I wonder if this idea could work: I want to have my own remote repository with a subset of the content of http://www.ibiblio.org/maven2/ http://www.ibiblio.org/maven2/ located at my local machine where I could access it using the file: protocol. And in addition I want to prevent maven from accessing http://www.ibiblio.org/maven2/ http://www.ibiblio.org/maven2/ any longer so that my own remote repository will be the only one to be used. My idea was to start with using the standard repository http://www.ibiblio.org/maven2/ http://www.ibiblio.org/maven2/ as usual, so that my local repository got populated. Then I copied the content of my local repository to the directory where the location of my remote repository should be. My pom.xml looks like this: repositories repository idwollox-repo/id urlfile:U:///Modules/my-remote-repo//url layoutdefault/layout /repository /repositories pluginRepositories pluginRepository idwollox-plugin-repo/id urlfile:U:///Modules/my-remote-repo//url snapshots enabledtrue/enabled /snapshots releases enabledtrue/enabled /releases /pluginRepository /pluginRepositories After deleting my local repository and disconnecting from the internet I called maven on my project (mvn clean), but it showed this error: [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for updates from wollox-plugin-repo [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for updates from central [WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-clean-plugin' could not be retrieved from re pository: central due to an error: Error transferring file [INFO] Repository 'central' will be blacklisted [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not exist or no valid version could be found So I wonder if it is possible at all to take the local repository as base of my own remote repository? And how can I disable that checking for updates from central? Regards Gerald
Re: maven 2 with jdk 1.3
OK then perhaps your Struts library was compiled with JDK 1.4. That's probably it, take a look at the stack trace again: javax.servlet.jsp.JspException: java.lang.StringBuffer: method append (Ljava/lang/StringBuffer;) Ljava/lang/StringBuffer; not found at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:164) Wayne On 3/10/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: No, I am sure that javax.servlet library is JDK 1.3. It is provided by ibm was 5 and we used it to compile it. -Sanjay On 3/10/06, Wayne Fay [EMAIL PROTECTED] wrote: I suspect that you are using javax.servlet library which was compiled with JDK 1.4. Download the code and recompile with JDK 1.3 if you must use it along with code that targets 1.3. Wayne On 3/10/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: Hi All, I have an application that run's on JDK 1.3. In the POM's I have the following setting plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerVersion1.3/compilerVersion target1.3/target showDeprecationtrue/showDeprecation showWarningstrue/showWarnings /configuration inheritedtrue/inherited /plugin Is there anything else I need to do to make it work with JDK 1.3? If not, why will I get an error, [3/10/06 11:24:10:538 PST] 65795dd9 WebGroup E SRVE0026E: [Servlet Error]-[java.lang.StringBuffer: method append#40; Ljava/lang/StringBuffer#59;#41;Ljava/lang/StringBuffer#59; not found]: javax.servlet.jsp.JspException: java.lang.String Buffer: method append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not found at org.apache.struts.taglib.template.InsertTag.doEndTag( InsertTag.java:164) at org.apache.jsp._index._jspService(_index.java:344) at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service( HttpJspBase.java:89) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) StringBuffer.append(StringBuffer) is JDK 1.4. Please advice, Sanjay
Re: maven 2 with jdk 1.3
It worked fine until y'day. It broke when I changed the dependency version of some other home build artifacts. Not sure what would have caused it. Definitly it looks like JDK issue. BTW, we use struts 1.1. -Sanjay On 3/10/06, Wayne Fay [EMAIL PROTECTED] wrote: OK then perhaps your Struts library was compiled with JDK 1.4. That's probably it, take a look at the stack trace again: javax.servlet.jsp.JspException: java.lang.StringBuffer: method append (Ljava/lang/StringBuffer;) Ljava/lang/StringBuffer; not found at org.apache.struts.taglib.template.InsertTag.doEndTag( InsertTag.java:164) Wayne On 3/10/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: No, I am sure that javax.servlet library is JDK 1.3. It is provided by ibm was 5 and we used it to compile it. -Sanjay On 3/10/06, Wayne Fay [EMAIL PROTECTED] wrote: I suspect that you are using javax.servlet library which was compiled with JDK 1.4. Download the code and recompile with JDK 1.3 if you must use it along with code that targets 1.3. Wayne On 3/10/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: Hi All, I have an application that run's on JDK 1.3. In the POM's I have the following setting plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerVersion1.3/compilerVersion target1.3/target showDeprecationtrue/showDeprecation showWarningstrue/showWarnings /configuration inheritedtrue/inherited /plugin Is there anything else I need to do to make it work with JDK 1.3 ? If not, why will I get an error, [3/10/06 11:24:10:538 PST] 65795dd9 WebGroup E SRVE0026E: [Servlet Error]-[java.lang.StringBuffer: method append#40; Ljava/lang/StringBuffer#59;#41;Ljava/lang/StringBuffer#59; not found]: javax.servlet.jsp.JspException: java.lang.String Buffer: method append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not found at org.apache.struts.taglib.template.InsertTag.doEndTag( InsertTag.java:164) at org.apache.jsp._index._jspService(_index.java:344) at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service( HttpJspBase.java:89) at javax.servlet.http.HttpServlet.service(HttpServlet.java :853) StringBuffer.append(StringBuffer) is JDK 1.4. Please advice, Sanjay
Re: maven-corburtura POM v3 in repo
that's the plugin for maven 1 http://mojo.codehaus.org/cobertura-maven-plugin/usage.html On 3/10/06, Subhash Chandran [EMAIL PROTECTED] wrote: The repository has POM v3 of corburtura plugin: http://www.ibiblio.org/maven2/maven-plugins/maven-cobertura-plugin/1.1.1/maven-cobertura-plugin-1.1.1.pom When i try to build a report using this plugin using M2.0.2, I get: org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project for plugin 'maven-plugins:maven-cobertura-plugin': Not a v4.0.0 POM. When is the latest edition supporting POM v4.0.0 expected? -- Regards, Subhash Chandran S Cross platform OpenSource Java based file encryption software: http://www.WizTools.org/project/WizCrypt/ -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building J2EE project using Maven2
Vincent, Patience is not easy... Are there any chapters ready (maybe for review?) Rik 2006/3/10, Vincent Massol [EMAIL PROTECTED]: -Original Message- From: Ray Ward [mailto:[EMAIL PROTECTED] Sent: vendredi 10 mars 2006 16:08 To: Maven Users List Subject: Re: Building J2EE project using Maven2 Is this separate from your site problem? I'm about at the same point you are in picking up Maven2. I haven't seen a comprehensive example, but I can build through the EAR file and am having some problems doing a remote deploy to another box using scp. A comprehensive example would be valuable. I'm reading a book on Java tools for extreme programming and they use a Hello-World app that is usefully -- if a little absurdly -- implemented as class, JSP, Servlet, EJB, with JAR, WAR and EAR files. But they use Ant as the build tool! :-( We probably need to do something similar for m2. Be patient it's coming... See http://mavenbook.xwiki.com/xwiki/bin/view/Main/Maven2Book There's a full big chapter on J2EE and Maven2. [snip] Thanks -Vincent ___ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-corburtura POM v3 in repo
When is the latest edition supporting POM v4.0.0 expected? I wondered about this as well when I was trying to get the xdoclet2 maven2 plugin up and running. It would find poms, but they weren't Maven2 poms and it was MOST upset. It was my thought that either M2 take that logical step and say, oh, this is a v3 pom, I'll use the v3 reader or if no one likes that idea, have .pom3, .pom4 etc so when Maven3.14 ships with its Own Metadata Format(tm), we won't have to ask what version your pom is. I cheat lots: I have an xslt that migrates the v3 to v4 poms. :-) -- /v\atthew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
test report in m2
anyone being able to use surfire test report in m2? I have a project with 2000+ tests, with m2 dir layout and test report says all zero... any ideas? -- Miguel Griffa Skype: miguel.griffa Y!: m_griffa MSN: [EMAIL PROTECTED] Cell: 15-62519355
Jabber not working
Hi All, I'm using continuum 1.0.3 and added a shell project. then in my pom notifiers i have typejabber/type configuration hostmx.company.com/host port5222/port loginraghu guru/login passwordpassword/password domainNamecompany.com/domainName sslConnectionfalse/sslConnection address[EMAIL PROTECTED]/address isGroupfalse/isGroup /configuration sendOnErrortrue/sendOnError sendOnFailuretrue/sendOnFailure sendOnWarningfalse/sendOnWarning but when i build it, getting the error as 4377956 [Thread-1] INFO org.codehaus.plexus.notification.notifier.Notifier:jabber - Current build state: 2, previous build state: 3 4383040 [Thread-1] ERROR org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor:build-project - Error while executing task. java.lang.NullPointerException at org.codehaus.plexus.jabber.DefaultJabberClient.logon(DefaultJabberClient.java:103) at org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendMessage(JabberContinuumNotifier.java:218) at org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendNotification(JabberContinuumNotifier.java:135) at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDispatcher.java:170) at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete(DefaultContinuumNotificationDispatcher.java:96) at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:363) at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:53) at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103) at java.lang.Thread.run(Thread.java:534) I guess i'm missing something thats why getting NullPointer , anyone has any idea on this?? Thanks, Raghu
Re: maven-corburtura POM v3 in repo
He was lookin at the wrong plugin. It wasn't a problem of the pom v3 but the plugin NOT working on maven 2, so no need for a m2 pom On 3/10/06, Matthew L Daniel [EMAIL PROTECTED] wrote: When is the latest edition supporting POM v4.0.0 expected? I wondered about this as well when I was trying to get the xdoclet2 maven2 plugin up and running. It would find poms, but they weren't Maven2 poms and it was MOST upset. It was my thought that either M2 take that logical step and say, oh, this is a v3 pom, I'll use the v3 reader or if no one likes that idea, have .pom3, .pom4 etc so when Maven3.14 ships with its Own Metadata Format(tm), we won't have to ask what version your pom is. I cheat lots: I have an xslt that migrates the v3 to v4 poms. :-) -- /v\atthew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Building J2EE project using Maven2
-Original Message- From: Rik Bosman [mailto:[EMAIL PROTECTED] Sent: vendredi 10 mars 2006 21:29 To: Maven Users List Subject: Re: Building J2EE project using Maven2 Vincent, Patience is not easy... Are there any chapters ready (maybe for review?) We'll make the chapters available as soon as they can be seen! :-) Thanks -Vincent 2006/3/10, Vincent Massol [EMAIL PROTECTED]: -Original Message- From: Ray Ward [mailto:[EMAIL PROTECTED] Sent: vendredi 10 mars 2006 16:08 To: Maven Users List Subject: Re: Building J2EE project using Maven2 Is this separate from your site problem? I'm about at the same point you are in picking up Maven2. I haven't seen a comprehensive example, but I can build through the EAR file and am having some problems doing a remote deploy to another box using scp. A comprehensive example would be valuable. I'm reading a book on Java tools for extreme programming and they use a Hello-World app that is usefully -- if a little absurdly -- implemented as class, JSP, Servlet, EJB, with JAR, WAR and EAR files. But they use Ant as the build tool! :-( We probably need to do something similar for m2. Be patient it's coming... See http://mavenbook.xwiki.com/xwiki/bin/view/Main/Maven2Book There's a full big chapter on J2EE and Maven2. [snip] Thanks -Vincent __ _ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-corburtura POM v3 in repo
He was lookin at the wrong plugin. It wasn't a problem of the pom v3 but the plugin NOT working on maven 2, so no need for a m2 pom I admit I hijacked this thread, but I did want to make mention of the point while I was thinking about it. When one specifies layoutlegacy/layout, as is required sometimes, it seems that m2 will find the pom but ignore its metadata, which is a tad silly, IMHO. Further, to be frank, I have not gone through the effort of searching Jira to see if this is already filed as a feature-request. Sorry for the doubly bad netiquette. -- /v\atthew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Internal Repositories
On 3/10/06, Khin, Gerald [EMAIL PROTECTED] wrote: Hi! Being a newbie to maven, I wonder if this idea could work: [del] The first question that springs to mind is Why? What benefit is there to restrict maven in this way, it makes no sense. Control the version numbers of artifacts that you have sanctioned is a better way of enforcing standards in the organisation that banning maven from downloading more plugins. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Internal Repositories
You should probably use Maven-Proxy instead. On 3/10/06, Barrie Treloar [EMAIL PROTECTED] wrote: On 3/10/06, Khin, Gerald [EMAIL PROTECTED] wrote: Hi! Being a newbie to maven, I wonder if this idea could work: [del] The first question that springs to mind is Why? What benefit is there to restrict maven in this way, it makes no sense. Control the version numbers of artifacts that you have sanctioned is a better way of enforcing standards in the organisation that banning maven from downloading more plugins. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: Re%3A%20Maven%20Report%20Error
Please keep this discussion on the list so everyone can participate and learn from it :) -- Forwarded message -- From: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: 10 Mar 2006 10:47:22 UT Subject: Re%3A%20Maven%20Report%20Error To: [EMAIL PROTECTED] Here my dependency section to have a look regards, Adel dependencies dependency groupIdstruts/groupId artifactIdstruts/artifactId version1.2.8/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.4-20040521/version /dependency dependency groupIdjboss/groupId artifactIdejb3-persistence/artifactId version3/version scopesystem/scope systemPath${basedir}\lib\ejb3-persistence.jar/systemPath /dependency dependency groupIdjboss/groupId artifactIdjboss-ejb3x/artifactId version3/version scopesystem/scope systemPath${basedir}\lib\jboss-ejb3x.jar/systemPath /dependency dependency groupIdmaven/groupId artifactIdmaven-site-plugin/artifactId version1.6/version /dependency /dependencies Please consider AJ Business Solutions Ltd's disclaimer at the end of this email before reading this message or opening any attachments. Adel Aneiba Software Development For and on Behalf of AJ Business Solutions Ltd. Tel : 0870 7518 900 Ext 42 // Fax : 0870 4 10 14 15 This message is confidential and may be legally privileged. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient please delete it and all copies of it from your system, destroy any hard copies of it and notify the sender immediately. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message or any attachment if you are not the intended recipient. We will not accept any liability for damage caused by computer viruses and it is your responsibility to scan attachments (if any). We may for the better performance of our business monitor incoming e-mails sent through our e-mail system. -- Alexandre Poitras Québec, Canada
Re: Create J2EE module
You have to install J2EE artifact first and since it hasn't been voted as a standard yet, you have to check it out from svn and install it (using maven of course :)). You can find all the official archetypes there : http://www.ibiblio.org/maven2/org/apache/maven/archetypes/ And you can find all the unofficial archetypes there : http://svn.apache.org/viewcvs.cgi/maven/archetype/trunk/maven-archetypes/ On 3/10/06, Patrick GIRY [EMAIL PROTECTED] wrote: How can I create a J2EE module with archetype:create? Wich archetypeArtifactId value must I used? -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Create J2EE module
You have to install J2EE artifact should have been You have to install the J2EE archetype. On 3/10/06, Alexandre Poitras [EMAIL PROTECTED] wrote: You have to install J2EE artifact first and since it hasn't been voted as a standard yet, you have to check it out from svn and install it (using maven of course :)). You can find all the official archetypes there : http://www.ibiblio.org/maven2/org/apache/maven/archetypes/ And you can find all the unofficial archetypes there : http://svn.apache.org/viewcvs.cgi/maven/archetype/trunk/maven-archetypes/ On 3/10/06, Patrick GIRY [EMAIL PROTECTED] wrote: How can I create a J2EE module with archetype:create? Wich archetypeArtifactId value must I used? -- Alexandre Poitras Québec, Canada -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: test report in m2
I use it without any problems. What are you test methods names ? textXXX ? Or you prefer to use test suites? On 3/10/06, Miguel Griffa [EMAIL PROTECTED] wrote: anyone being able to use surfire test report in m2? I have a project with 2000+ tests, with m2 dir layout and test report says all zero... any ideas? -- Miguel Griffa Skype: miguel.griffa Y!: m_griffa MSN: [EMAIL PROTECTED] Cell: 15-62519355 -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Plugin Classloaders
Brett Porter wrote: To add a bit of detail for a volunteer to submit as documentation... :) m2/core/boot is what is in the java classpath (ie, just classworlds, which constructs classloaders for the rest of the system) the top level classloader contains plexus container and plexus utils (see m2/core), and also has access to classworlds the next classloader has the libraries in m2/lib (a bug in beta 1 incorporated commons-logging and -lang, sorry about that!) In general these are just maven libraries. We hope to further separate these in future to just be maven apis. after that, each plugin has its own classloader, including its dependencies, itself, and the libraries above. It *does not* contain the project dependencies like in m1, but instead has access to a list of JAR files in case they are needed. In addition, a project can list extensions. These are loaded into the same place as m2/lib and so available to the maven core and all plugins for the currnet project and subsequent projects (in future, we plan to remove it from subsequent projects). - Brett So, if one is developing a plugin, what is the appropriate strategy to take if you want to make the project's artifact (or an intermediate stage thereof, like the target/classes directory) available to that plugin? I've tried the following (this is in the execute() method of my Mojo): URL[] urls = { classesDirectory.toURL() }; ClassLoader originalContextClassLoader = Thread.currentThread().getContextClassLoader(); URLClassLoader executionClassLoader = new URLClassLoader(urls, ClassLoader.getSystemClassLoader()); //enable the new classloader, execute, then restore the old classloader Thread.currentThread().setContextClassLoader(executionClassLoader); this.exec(); Thread.currentThread().setContextClassLoader(originalContextClassLoader); I know that I'm getting the URL to target/classes correctly, but I'm still getting ClassNotFoundException when my exec() method goes to load one of those classes. Any ideas? I've also tried replacing line 3 with: URLClassLoader executionClassLoader = new URLClassLoader(urls, originalContextClassLoader); without success. Thanks for your help, Kris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Report Error
Here's the dependencies section of his pom he sent to me : dependencies dependency groupIdstruts/groupId artifactIdstruts/artifactId version1.2.8/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.4-20040521/version /dependency dependency groupIdmaven/groupId artifactIdmaven-ejb-plugin/artifactId version1.5/version /dependency dependency groupIdjboss/groupId artifactIdejb3-persistence/artifactId version3/version scopesystem/scope systemPath${basedir}\lib\ejb3-persistence.jar/systemPath /dependency dependency groupIdjboss/groupId artifactIdjboss-ejb3x/artifactId version3/version scopesystem/scope systemPath${basedir}\lib\jboss-ejb3x.jar/systemPath /dependency /dependencies I think it has to do with using a system scope. I wouldn't touch this kind of dependency unless I really have to. And I think it is going to be deprecated in the future. If it isn't on ibiblio just fill an upload request or add it in your internal corporation repository (or local repository in case you don't have one). On 3/10/06, Rik Bosman [EMAIL PROTECTED] wrote: Is this because the pom files for 1.2.1 versions (and below) in the repository do not contain the following part? distributionManagement statusdeployed/status /distributionManagement -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
plugin use in multiprojects seems broken
Maybe I'm missing something but the use of plugins in multiprojects seems broken to me. I've got three projects that build rpms so I made a parent projects to run them all. However unless I add the plugin into the parent as in : modules modulemicro_proxy/module modulesocks/module modulejwss/module /modules build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdrpm-maven-plugin/artifactId version1.0-alpha-2-SNAPSHOT/version configuration release1/release mappings /mappings /configuration /plugin /plugins /build the submodules won't build. I really don't want to run the plugin (rpm:rpm) goal in the parent project. It seem to me that a mulitproject parent ought to be able to ignore plugin goals that it doesn't have build information for and simple pass them along to its submodules. Xavier
Re: Maven 1.x site plugin
On 3/10/06, Rune Flobakk [EMAIL PROTECTED] wrote: Wohoo! It worked! ;-) Struggled a bit with the svn checkout only. The url for the repository for anonymous access appears to be wrong on this page: http://maven.apache.org/maven-1.x/plugins/site/scm-usage.html I had to use svn checkout http://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk/site/ maven-site-plugin (ommitting the scm:svn: part) to get the plugin source. you're right. it's a bug. I'm fixing it. you could also directly download the snapshot with : maven plugin:download -Dmaven.repo.remote=http://www.ibiblio.org/maven ,http://cvs.apache.org/repository/ -DgroupId=maven -DartifactId=maven-site- plugin -Dversion=1.7-SNAPSHOT But anyway, it works now, and I am happy! A beautiful 1 minutes and 30 seconds build resulting in a nice public website ;) ;-) Maven is magic (when it works !!) And now, only thing left is to dive into Maven 2... which in turn means, you have probably not seen the last of me on this mailinglist ;) Cheers arnaud Rune Arnaud HERITIER wrote: I will change that to move the doc for in a better visible location on the page (I was thinking to put it at the top of the menu). Don't hesitate to give us your feedback. Arnaud On 3/10/06, Rune Flobakk [EMAIL PROTECTED] wrote: Thanks for your quick reply! I was actually just getting to checking out the 1.7-snapshot, as I noticed (in small prints) at the bottom of the site-plugin page: Doc for 1.7-SNAPSHOT Doh... ;) Thanks again. Rune Arnaud HERITIER wrote: Hi Rune, It seems that we fixed several problems about rights in the current SNAPSHOT. http://maven.apache.org/maven-1.x/plugins/site/changes-report.html#Release1_7-SNAPSHOT Can you try the 1.7-SNAPSHOT to see if it helps? Arnaud On 3/10/06, Rune Flobakk [EMAIL PROTECTED] wrote: Hi! I wondered if anybody could provide some assistance with getting Maven1 to setup up correct privileges on a site remotely deployed using ssh (plink and pscp). I am trying to use the maven.site.chmod.mode property to set up the privileges, but it seems no matter how I define it, the resulting privileges are rw-rw--- for files and rwxrwx--- for dirs. I want to make the site readable to everybody, and therefore specified this in project.properties: maven.site.chmod.mode=u+rwX,go+rX-w I also tried to set a numeric mode to see if it worked. It didn't (not optimal since every file gets executable bit, but usable): maven.site.chmod.mode=644 I've also tried to specify maven.site.chmod.options=-R (as opposed to the default -Rf) to maybe display error messages, but nothing. I assume the setting of privileges is supposed to happen after the tar has been extracted on the remote system, but the only message I get from Maven before BUILD SUCCESSFUL is [delete] Deleting: XYZ--site.tar.gz Can anyone shed some light on this matter? Are the maven.site.chmod.mode and maven.site.chmod.options properties being read at all? I am using v1.6.1 of the maven-site-plugin. Thanks cheers :) Rune Flobakk - 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: test report in m2
I also use it with zero issues. Tests are in src/tests/java and named BlahVOTest.java with methods setUp, tearDown, and testBlah1, testBlah2, etc. I can only think you are doing something strange, Miguel. ;-) Wayne On 3/10/06, Alexandre Poitras [EMAIL PROTECTED] wrote: I use it without any problems. What are you test methods names ? textXXX ? Or you prefer to use test suites? On 3/10/06, Miguel Griffa [EMAIL PROTECTED] wrote: anyone being able to use surfire test report in m2? I have a project with 2000+ tests, with m2 dir layout and test report says all zero... any ideas? -- Miguel Griffa Skype: miguel.griffa Y!: m_griffa MSN: [EMAIL PROTECTED] Cell: 15-62519355 -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven 2 with jdk 1.3
Hi Sanjay, Regarding the error you are getting, I would agree with Wayne that it looks like you're using a struts jar compiled against java 1.4. Regarding the rest of your pom, though, it looks like you're trying to compile your code to run against java 1.3. I'm not sure it's going to do what you want though. As far as I know, Maven requires java 1.4 to run, so I presume you're using java1.4 or 1.5 to run maven. Without setting the fork attribute for the maven-compiler-plugin, I think the same JVM used to run maven is used to compile the code. I don't know what the compilerVersion tag does; if anyone knows please say so! The target tag is presumably equivalent to the -target javac option, which controls the .class file version, but does NOT affect which java core library the code is compiled against. Setting this attribute is therefore *not* enough in your case. I have been trying myself to compile code with a different version of java than used to run maven but have not been successful; see my posting of yesterday. In particular, I have been trying to use the executable property of the maven-compiler-plugin to point to a specific JVM (together with fork=true of course). From reading the sourcecode of the maven-compiler-plugin and the plexus compiler classes this looks like it should work but so far I've had no success. Cheers, Simon On Fri, 2006-03-10 at 14:02 -0600, Wayne Fay wrote: I suspect that you are using javax.servlet library which was compiled with JDK 1.4. Download the code and recompile with JDK 1.3 if you must use it along with code that targets 1.3. Wayne On 3/10/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: Hi All, I have an application that run's on JDK 1.3. In the POM's I have the following setting plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerVersion1.3/compilerVersion target1.3/target showDeprecationtrue/showDeprecation showWarningstrue/showWarnings /configuration inheritedtrue/inherited /plugin Is there anything else I need to do to make it work with JDK 1.3? If not, why will I get an error, [3/10/06 11:24:10:538 PST] 65795dd9 WebGroup E SRVE0026E: [Servlet Error]-[java.lang.StringBuffer: method append#40; Ljava/lang/StringBuffer#59;#41;Ljava/lang/StringBuffer#59; not found]: javax.servlet.jsp.JspException: java.lang.String Buffer: method append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not found at org.apache.struts.taglib.template.InsertTag.doEndTag( InsertTag.java:164) at org.apache.jsp._index._jspService(_index.java:344) at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service( HttpJspBase.java:89) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) StringBuffer.append(StringBuffer) is JDK 1.4. Please advice, Sanjay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven 2 with jdk 1.3
I have an application that run's on JDK 1.3. I don't know if this will help you, but I too have had to set up applications that must run on 1.3 using Maven2. Here is what I have in my POM: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration forktrue/fork source1.3/source target1.3/target compilerArguments bootclasspath..\..\tools\jdk\1.3.1_15\jre\lib\rt.jar/bootclasspath /compilerArguments /configuration /plugin This makes sure it gets compiled as 1.3 code, for a 1.3 JVM, using the 1.3 runtime. -- Daniel Siegmann FJA-US, Inc. (212) 840-2618 ext. 139 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven 2 with jdk 1.3
On Fri, 2006-03-10 at 23:18 +0100, Siegmann Daniel, NY wrote: I have an application that run's on JDK 1.3. I don't know if this will help you, but I too have had to set up applications that must run on 1.3 using Maven2. Here is what I have in my POM: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration forktrue/fork source1.3/source target1.3/target compilerArguments bootclasspath..\..\tools\jdk\1.3.1_15\jre\lib\rt.jar/bootclasspath /compilerArguments /configuration /plugin This makes sure it gets compiled as 1.3 code, for a 1.3 JVM, using the 1.3 runtime. Cool -- compile using the latest javac version, but using the target runtime library and outputting the target .class format. I'll try that ASAP...though it would still be nice to know why executable doesn't work. Cheers, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven 2 with jdk 1.3
I have a solution... Everyone should just use JDK 1.5. ;-) PS Sanjay, you can find out what version a given class was compiled if you look at the unsigned short integers starting at byte offset 4, right after 0xCAFEBABE in every class file. See this Javaworld article for more details, page 2: http://www.javaworld.com/javaqa/2003-05/02-qa-0523-version.html Wayne On 3/10/06, Simon Kitching [EMAIL PROTECTED] wrote: Hi Sanjay, Regarding the error you are getting, I would agree with Wayne that it looks like you're using a struts jar compiled against java 1.4. Regarding the rest of your pom, though, it looks like you're trying to compile your code to run against java 1.3. I'm not sure it's going to do what you want though. As far as I know, Maven requires java 1.4 to run, so I presume you're using java1.4 or 1.5 to run maven. Without setting the fork attribute for the maven-compiler-plugin, I think the same JVM used to run maven is used to compile the code. I don't know what the compilerVersion tag does; if anyone knows please say so! The target tag is presumably equivalent to the -target javac option, which controls the .class file version, but does NOT affect which java core library the code is compiled against. Setting this attribute is therefore *not* enough in your case. I have been trying myself to compile code with a different version of java than used to run maven but have not been successful; see my posting of yesterday. In particular, I have been trying to use the executable property of the maven-compiler-plugin to point to a specific JVM (together with fork=true of course). From reading the sourcecode of the maven-compiler-plugin and the plexus compiler classes this looks like it should work but so far I've had no success. Cheers, Simon On Fri, 2006-03-10 at 14:02 -0600, Wayne Fay wrote: I suspect that you are using javax.servlet library which was compiled with JDK 1.4. Download the code and recompile with JDK 1.3 if you must use it along with code that targets 1.3. Wayne On 3/10/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: Hi All, I have an application that run's on JDK 1.3. In the POM's I have the following setting plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerVersion1.3/compilerVersion target1.3/target showDeprecationtrue/showDeprecation showWarningstrue/showWarnings /configuration inheritedtrue/inherited /plugin Is there anything else I need to do to make it work with JDK 1.3? If not, why will I get an error, [3/10/06 11:24:10:538 PST] 65795dd9 WebGroup E SRVE0026E: [Servlet Error]-[java.lang.StringBuffer: method append#40; Ljava/lang/StringBuffer#59;#41;Ljava/lang/StringBuffer#59; not found]: javax.servlet.jsp.JspException: java.lang.String Buffer: method append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not found at org.apache.struts.taglib.template.InsertTag.doEndTag( InsertTag.java:164) at org.apache.jsp._index._jspService(_index.java:344) at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service( HttpJspBase.java:89) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) StringBuffer.append(StringBuffer) is JDK 1.4. Please advice, Sanjay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: finding JBoss EJB3 Jars on ibiblio ?
Hello, yes Wayne ac tually suggested one of proper steps that was already suggested to me you should install them in yhour local repository hth marco On 3/10/06, Wayne Fay [EMAIL PROTECTED] wrote: If you don't see them, then they are probably not there. ;-) So you can either: 1. Use your own internal repository 2. Wait until someone else uploads them 3. Use your JBoss support contract hours to ask that they be uploaded 4. Upload them yourself following the directions on Maven site: http://maven.apache.org/guides/mini/guide-ibiblio-upload.html Carlos is increasingly interested in getting the source and Javadocs included with bundles, so be sure to include them too if you take choice 4... Wayne On 3/10/06, Pete [EMAIL PROTECTED] wrote: I was looking for the JBoss EJB JARS on http://www.ibiblio.org/maven2/jboss/ Are they not there yet ? e.g. jboss-ejb3.jar jboss-ejb3x.jar ejb3-persistence.jar I was also looking for hibernate-ejb3-persistence.jar (used by JBoss EJB3TrailBlazer ) any ideas where to find this on ibiblio ? not under hibernate Is this best workaround to deploy these to my internal repository for now ? Pete
Re: maven 2 with jdk 1.3
On Fri, 2006-03-10 at 16:30 -0600, Wayne Fay wrote: I have a solution... Everyone should just use JDK 1.5. ;-) PS Sanjay, you can find out what version a given class was compiled if you look at the unsigned short integers starting at byte offset 4, right after 0xCAFEBABE in every class file. See this Javaworld article for more details, page 2: http://www.javaworld.com/javaqa/2003-05/02-qa-0523-version.html An easier way to find the classfile version is to run javap -classpath {jarfile} -verbose {classname} eg javap -verbose java.lang.String For javap v1.4 or later the output includes: ... minor version: 0 major version: 49 ... These versions mean this particular String can only be run with java 1.5 or later. I did see an official document somewhere that listed the actual versions (the vm spec?) but this doc has enough info: http://alumnus.caltech.edu/~leif/opensource/bcver/BcVerApp.html Cheers, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]