RE: Maven-Proxy
Cool, so i should throw away my print version of Using+Maven+in+a+corporate+enviro. Thanks! Maven Users List users@maven.apache.org schrieb am 30.01.06 23:32:03: -Original Message- From: Fredy [mailto:[EMAIL PROTECTED] Sent: Monday, 30 January 2006 11:02 PM To: users@maven.apache.org Subject: Maven-Proxy Hey all, is it possible to use a http-proxy in the maven-proxy? What is this configuration for= does it work? Fredy PROXIES #This is just a hack, it should auto discover them proxy.list=one,two,three #Unauthenticated proxy proxy.one.host=proxy1.example.com proxy.one.port=3128 Tom's response was missing the fact you need to tell the maven-proxy repo setting to use the proxy you have defined. Do the following: 1) Specify proxy.list to include all the proxies you use, most likely you use just one proxy. proxy.list=one 2) Define the proxy details. Use one of the three examples in the properties file. I am assuming you have an unauthenticated proxy in this example. proxy.one.host=ip or dns name to your proxy proxy.one.port=port number of your proxy 3) Configure the repositories that are being proxied by maven-proxy to use the internet proxy just configured. repo.www-ibiblio-org.proxy=one repo.dist-codehaus-org.proxy=one If you need more details, I am in the process of updating http://docs.codehaus.org/display/MAVENUSER/Using+Maven+in+a+corporate+enviro nment in the next day or two with all the steps I used to configure Maven and maven-proxy in our environment. Barrie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mit freundlichen Grüßen Fred Robert Hauschel http://www.Hauschel.de Mobil:0179 - 6917092 Telefon: 07427 - 91179 Fax: 07427 - 91178 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2.02 - mvn site now triggers a compile!
Brett Porter [EMAIL PROTECTED] wrote on 30-01-2006 22:22:47: On 1/30/06, David Sag [EMAIL PROTECTED] wrote: so my questions: 1) could someone with a working (with maven 2.0.2) cobertura plugin please send it to me with the correct pom.xml - jason z only sent me the compiled plugin without any pom.xml so it is entirely possible this is a big part of my problem. I'll deploy a snapshot, so you can follow the instructions on the maven website to use it. Okay that would be great. Will you announce it to this list when you do please? I'll focus on something else until that point. 2) why would [mvn install site] fail, but separate [mvn install] followed by [mvn site] work okay? (once i have removed cobertura from the reporting) I'm not sure on this one. Would need to boil it down to something simple and reproducible to look at it I think. shall i raise a Jira issue? Unfortunately I can't supply the pom.xml and code I am using as it's internal to the EPO. 3) if the site phase is not supposed to trigger the compile and other phases then why would it be doing so, with or without the presence of thecobertura plugin? I suspect one of the other plugins is doing this (eg surefire-report?) hmm. there's nothing non-standard about the way I generate my surefire report so this is a bit of a mystery. All this used to work fine using maven 2.0, and i was supposed to demo this last friday so you can imagine my frustration. Sure, sorry about that. Any idea when the fixed cobertura plugin will be released properly? It's really not very acceptable to update the core maven project and then expect that we'll know to go build some plugins from source because they have been broken by the upgrade. I would prefer to see more comprehensive testing followed by simultanious release of a new core with new plugins and some mention in the release notes of any gotchas. As it is I am fighting an uphill battle to be able to recommend use of maven 2 for production systems as I have not been able to demonstrate that it is in fact stable for even pilot-project use. Ok, you have to understand - the cobertura plugin has not ever been released. Please don't generalise the situation. Simultaneous releases should never be required as updates shouldn't break old released plugins using documented and finalised APIs. so you are telling me I have stumbled upon a very isolated case of the new release breaking a a plugin. Okay I can accept that. For now I will just have to make do without my lovely cobertura reports. Please let us know when you do deploy a snapshot of the working cobertura plugin however, as it really is a critical part of my project. dave
Re: Executing mvn test (JUnit)
Hmmm.. thats weird, I think you got it right. Could you paste the stacktrace and your directory layout ? Regards, -allan Edgar Silva wrote: Hi Allan, Thanks to help me, but it doesn't work yet. I am not doing nothing really HARD, is just a simple test using just one class, my folders as according Maven2 structure, are there some additional configuration, take a look on my pom.xml portion: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId configuration includes include**/*.java/include /includes /configuration /plugin /plugins /build reporting plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdjxr-maven-plugin/artifactId /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdchanges-maven-plugin/artifactId /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdsurefire-report-maven-plugin/artifactId /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-clover-plugin/artifactId /plugin /plugins /reporting dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdvelocity/groupId artifactIdvelocity/artifactId version1.4/version /dependency /dependencies /project My test is really simple, is something like this: public void testGetInstance() { EnviromentProperties result = EnviromentProperties.getInstance(); assertEquals(java.lang.String,result.replaceDataType(VARCHAR)); } When I am executing mvn test sounds like the EnviromentProperties class, was not found on classpath, but I have everything exactlly created by maven2 structure. The strange bahaviour is when I test with a code as the following: public void testGetInstance() { // EnviromentProperties result = EnviromentProperties.getInstance(); assertEquals(java.lang.String,java.lang.String); } And everything works fine. any idea? I am using Maven 2.0.1 Thanks Ed On Mon, 30 Jan 2006 17:52:28 +0800, Allan Ramirez [EMAIL PROTECTED] escreveu: De: Allan Ramirez [EMAIL PROTECTED] Data: Mon, 30 Jan 2006 17:52:28 +0800 Para: Maven Users List users@maven.apache.org Assunto: Re: Executing mvn test (JUnit) Try this http://maven.apache.org/plugins/maven-surefire-plugin/howto.html -allan [EMAIL PROTECTED] wrote: Hi Folks Perhaps my problems is very simple: I am creating very simple tests creating simple testcases, when I do the smaller and easier test using some class as which is src folder structure, my tests doesn't work, when I do some foo test, it works, are there some additional information I must to inform in pom.xml to execute the tests ? Thanks in adv Ed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven 2 and Eclipse
Maciej Mastalarczuk wrote on Tuesday, January 31, 2006 3:39 AM: Hi, Has anyone had any luck with using Maven 2 with Eclipse? It can be easily integrated through external launch configuration, but Eclipse build paths are pain. I know there is a plugin for Eclipse (http://m2eclipse.codehaus.org), but the latest version (0.0.4) seems to be completely broken as it does not want to download anything; just says something about authentication being cancelled. The previous version (0.0.3) is slightly better, but it has the older version of Maven embedder (2.0 beta 4 SNAPSHOT) and seems to download wrong stuff. I am using maven 2.0.2. Has anybody got it working properly? I mean having a Maven 2 project with all dependencies resolved in Eclipse. I can run Maven 2.0.0 with an External Tool definition (using Eclipse 3.2M4): ?xml version=1.0 encoding=UTF-8? launchConfiguration type=org.eclipse.ui.externaltools.ProgramLaunchConfigurationType stringAttribute key=org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS value=-Xmx384M#13;#10;-cp quot;${maven_2_home}/core/boot/classworlds-1.1-alpha-2.jarquot;#13;#10;-Dclassworlds.conf=quot;${maven_2_home}/bin/m2.confquot;#13;#10;-Dmaven.home=quot;${maven_2_home}quot;#13;#10;org.codehaus.classworlds.Launcher#13;#10;${string_prompt}/ stringAttribute key=org.eclipse.debug.core.ATTR_REFRESH_SCOPE value=${project}/ listAttribute key=org.eclipse.debug.ui.favoriteGroups listEntry value=org.eclipse.ui.externaltools.launchGroup/ /listAttribute stringAttribute key=org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY value=${project_loc}/ stringAttribute key=org.eclipse.ui.externaltools.ATTR_LOCATION value=${system_property:java.home}/bin/java.exe/ booleanAttribute key=org.eclipse.debug.core.appendEnvironmentVariables value=true/ /launchConfiguration You just have to define maven_2_home in the Preferences/Debug/String Substitution for your Maven 2 home. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2.02 - mvn site now triggers a compile!
Brett Porter [EMAIL PROTECTED] wrote on 31-01-2006 10:44:57: On 1/31/06, David Sag [EMAIL PROTECTED] wrote: I'll deploy a snapshot, so you can follow the instructions on the maven website to use it. Okay that would be great. Will you announce it to this list when you do please? I'll focus on something else until that point. Yep, already done. ah thanks. i guess i am stupid but i can't see it in http://maven.apache.org/plugins/ is there somewhere more specific in the maven website i should look? I looked in http://www.ibiblio.org/maven2/maven-plugins/maven-cobertura-plugin/ but the latest version there is 1.1.1 dated 5 dec 2005. and there is no sign of it in http://www.ibiblio.org/maven2/org/apache/maven/plugins/ the version jason sent me was 2.0-SNAPSHOT I'm not sure on this one. Would need to boil it down to something simple and reproducible to look at it I think. shall i raise a Jira issue? Unfortunately I can't supply the pom.xml and code I am using as it's internal to the EPO. Yes, I meant if you could reproduce it with something similar to your build, without the variables. i'll try out the new cobertural plugin first. Do you know what versions of plugins you are using? A safe bet is to remove ~/.m2/repository/org/apache/maven/plugins to ensure you are on the last releases. ok I suspect one of the other plugins is doing this (eg surefire-report?) hmm. there's nothing non-standard about the way I generate my surefire report so this is a bit of a mystery. But surefire-report does invoke compile and test to generate the report - it has always done so. I thought you meant something was happening in addition to that? so site *does* invoke compile and test then. for after all imho what use is the site without the surefire reports? Why does it need to do this though? Surely if the tests have already been run and some sort of xml report has already been generated then the site report could simply transform that xml into a site with no need to recompile and run the tests. Either way I probably need to bind checkstyle, pmd, findbugs etc to a phase other than compile then, perhaps verify. Hmm will ponder this. cheers dave
[m2] Error in dependencyCheck starting tomcat - Bug or Feature?
Hi, the last weeks, I often test to deploy an axis webapp depending on an jar and have always the following error: SCHWERWIEGEND: Error in dependencyCheck java.io.IOException: invalid header field Today I have searched for the error and found the Problem in my Manifest.mf of the jar. Maven takes the pom.description an place it to Manifest.mf - Specification-Title:. Now my description is a sentence and was edited wiht an editor. Now there are bad charakters (CR) in the description and Tomcat have problems with this characters! Fredy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2 and Eclipse
Hello, I'm a little desesperate with this m2 eclipse plugin while everything works so good with configuring externa tools like indicate on maven sit guide http://maven.apache.org/guides/mini/guide-ide-eclipse.html I never succeed to build anyone with. I get error below on compile or package. I see that on launching it's invoke plugin-registry.xml in which maven-package and maven-compile plugin are RELEASE or LATEST version. I don't want delete plugin-registry file. Because i don't know the result on maven behaviour. adding dependency is well managed. But for me it is not sufficient. Where's wrong ? any Idea? Could you give me some hint of your configuration? Thanks in advance, Tom INFO] [INFO] Building Maven Webapp Archetype [INFO]task-segment: [compile] [INFO] [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from central [WARN] repository metadata for: 'artifact org.apache.maven.plugins:maven-resources-plugin' could not be retrieved from repository: central due to an error: Error transferring file [INFO] Repository 'central' will be blacklisted [DEBUG] Exception Error transferring file [DEBUG] maven-resources-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the latest version org.apache.maven.plugins:maven-resources-plugin:pom:LATEST [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-resources-plugin:pom:LATEST [DEBUG] maven-resources-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the release version org.apache.maven.plugins:maven-resources-plugin:pom:RELEASE 2006/1/31, Kathryn Huxtable [EMAIL PROTECTED]: Yes. It sort of works for me. The 0.0.4 plugin does *not* read the settings.xml file, which is pretty limiting, but I have used it successfully. It works best, IMHO, if you enable the Maven2 nature, which puts a Maven2 container in your .classpath file instead of listing each jar separately. That way, when you edit your pom.xml the dependencies are automatically updated. But since it doesn't read your settings.xml, it will have trouble getting to a local repository if that repository requires authentication. -K -- Kathryn Huxtable Middleware Architect Core Middleware Information Technology, a division of Information Services The University of Kansas On 1/30/06 8:39 PM, Maciej Mastalarczuk [EMAIL PROTECTED] wrote: Hi, Has anyone had any luck with using Maven 2 with Eclipse? It can be easily integrated through external launch configuration, but Eclipse build paths are pain. I know there is a plugin for Eclipse (http://m2eclipse.codehaus.org), but the latest version (0.0.4) seems to be completely broken as it does not want to download anything; just says something about authentication being cancelled. The previous version (0.0.3) is slightly better, but it has the older version of Maven embedder (2.0 beta 4 SNAPSHOT) and seems to download wrong stuff. I am using maven 2.0.2. Has anybody got it working properly? I mean having a Maven 2 project with all dependencies resolved in Eclipse. Thanks in advance Maciej Mastalarczuk - 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]
Dependency version problem in multi-module project
Hi, Layout: /pom.xml-- no dependencies /A/pom.xml -- no dependencies (Versions 1.0.2 and 1.0.3-SNAPSHOT) /B/pom.xml -- Depends on A-1.0.2 /C/pom.xml -- Depends on A-1.0.3-SNAPSHOT Here's the problem: When building all modules using the reactor: / mvn clean package B contains A-1.0.3-SNAPSHOT instead of A-1.0.2 while C is correct (A-1.0.3-SNAPSHOT) When building B separate, it is correctly built with A-1.0.2 Has anyone had a similar problem? - Espen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Wrong SCM info put by the release plugin
Hi, I have a project with several modules in it. The entire project is stored in one SVN repository, in the following layout: myproject | +-- module A | +-- module B | +-- . The root pom has a scm url like http://svn.myserver/.../trunk/;, and each sub module also has its own scm tag with a url such as http://svn.myserver/.../trunk/moduleA;, etc. 1. Is this the best practice, or can the release plugin guess the correct scm url for sub modules based on the parent module? 2. If this is the correct way, then there's a bug in the release plugin: after release:prepare, the URL encoded back into the modules' POMs is the same URL as the root POM, rather than the original module's SCM url. Should I fire a JIRA, or remove my modules' scm urls? Kind regards, _ Arik Kfir[EMAIL PROTECTED]
Re: [m2] Wrong SCM info put by the release plugin
The best practice is to define scm url in parent pom if modules are in a sub-directory. maven will calculate the correct url for submodules. File an issue for 2. Emmanuel Arik Kfir a écrit : Hi, I have a project with several modules in it. The entire project is stored in one SVN repository, in the following layout: myproject | +-- module A | +-- module B | +-- . The root pom has a scm url like http://svn.myserver/.../trunk/;, and each sub module also has its own scm tag with a url such as http://svn.myserver/.../trunk/moduleA;, etc. 1. Is this the best practice, or can the release plugin guess the correct scm url for sub modules based on the parent module? 2. If this is the correct way, then there's a bug in the release plugin: after release:prepare, the URL encoded back into the modules' POMs is the same URL as the root POM, rather than the original module's SCM url. Should I fire a JIRA, or remove my modules' scm urls? Kind regards, _ Arik Kfir[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn: Error resolving case of
I would appreciate your help to troubleshoot the following error. I can't figure out why it is not working. I have try in several ways with the same result. Command: mvn release:prepare - Dproject.scm.developerConnection=scm:svn:svn://localhost/CVS/maven-deployment/trunk-DtagBase=scm:svn:svn://localhost/CVS/maven-deployment/tags Result: [INFO] Tagging release with the label 1.0. Provider message: The svn tag command failed. Command output: svn: Error resolving case of 'scm:svn:svn:\localhost\CVS\maven-deployment\tags\1.0' POM.xml fragment: scm developerConnectionscm:svn:svn://localhost/CVS/maven-deployment/trunk/developerConnection /scm build plugins plugin artifactIdmaven-release-plugin/artifactId configuration tagBasescm:svn:svn://localhost/CVS/maven-deployment/tags/tagBase /configuration /plugin /plugins /build Thanks!!! P.S.: is there a way to search in the mailing-list database, appart from Google? I'm sorry if my question has been previously posted.
Re: svn: Error resolving case of
Thanks for your quick answer! ;) Regarding the space before -DtabBase, you know... issues of copy paste from command line. :$ Do you know whether best practices information about Maven 2 integration with SCM exist somewhere? Regards, Alex On 1/31/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: 1- you need a space before -DtagBase ;-) 2- tagbase is a svn url ant not a maven scm url, so replace your tagBase with svn://localhost/CVS/maven-deployment/tags You can use Nabble to search in ML archives ( http://www.nabble.com/forum/Search.jtp?query=maven) Emmanuel Alejandro Nicolas Mascarell a écrit : I would appreciate your help to troubleshoot the following error. I can't figure out why it is not working. I have try in several ways with the same result. Command: mvn release:prepare - Dproject.scm.developerConnection=scm:svn:svn://localhost/CVS/maven-deployment/trunk-DtagBase=scm:svn:svn://localhost/CVS/maven-deployment/tags Result: [INFO] Tagging release with the label 1.0. Provider message: The svn tag command failed. Command output: svn: Error resolving case of 'scm:svn:svn:\localhost\CVS\maven-deployment\tags\1.0' POM.xml fragment: scm developerConnectionscm:svn:svn://localhost/CVS/maven-deployment/trunk/developerConnection /scm build plugins plugin artifactIdmaven-release-plugin/artifactId configuration tagBasescm:svn:svn://localhost/CVS/maven-deployment/tags/tagBase /configuration /plugin /plugins /build Thanks!!! P.S.: is there a way to search in the mailing-list database, appart from Google? I'm sorry if my question has been previously posted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Forcing the order of plugins bound to the same phase (was Re: M2.02 - mvn site now triggers a compile!)
Brett Porter [EMAIL PROTECTED] wrote on 31-01-2006 11:16:29: On 1/31/06, David Sag [EMAIL PROTECTED] wrote: Either way I probably need to bind checkstyle, pmd, findbugs etc to a phase other than compile then, perhaps verify. Hmm will ponder this. The reports, or the checks? The reports should be part of the site generation and not bound to any phases. The checks definitely belong in verify if they don't require any extra steps such as compilation. the checks. i run the checkstyle, pmd and findbugs checks and then in the verify stage pipe those checks into the qalab plugin to generate historical dev stats. ideally i'd run these as part of verify and then once they had run pipe them trhough qalab, but i have never been able to work out how to specify the order that plugins run when bound to the same phase. any clues how to do that? dave
[m2] maven-checkstyle-plugin 2.0 can't be retrieved
Hi, I've seen maven-checkstyle-plugin 2.0 is available since yesterday, which is good news ! http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven-checkstyle-plugin/ Though, I'm still retrieving 2.0-beta-1, even with plugin update. maven-metadata still contains release2.0-beta-1/release , this may be the cause - or is it on purpose ? http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven-checkstyle-plugin/maven-metadata.xml - Yann
Profiling with Maven 2
Hi all, how did you handle the automatic profiling of code in Maven 2? I was looking for a plugin that does these kind of things, but it seems there isn't one. If I had to resort to making my own plugin, which tool could be suitable? Or maybe someone has experience using ANT tasks for that? Any thoughts are highly appreciated! Bye, Michael -- Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel P: +41 61 226 99 63 - F: +41 61 226 99 69 [EMAIL PROTECTED]; http://www.giniality.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: svn: Error resolving case of
I don't think some docs exists somewhere about it, sorry. Emmanuel Alejandro Nicolas Mascarell a écrit : Thanks for your quick answer! ;) Regarding the space before -DtabBase, you know... issues of copy paste from command line. :$ Do you know whether best practices information about Maven 2 integration with SCM exist somewhere? Regards, Alex On 1/31/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: 1- you need a space before -DtagBase ;-) 2- tagbase is a svn url ant not a maven scm url, so replace your tagBase with svn://localhost/CVS/maven-deployment/tags You can use Nabble to search in ML archives ( http://www.nabble.com/forum/Search.jtp?query=maven) Emmanuel Alejandro Nicolas Mascarell a écrit : I would appreciate your help to troubleshoot the following error. I can't figure out why it is not working. I have try in several ways with the same result. Command: mvn release:prepare - Dproject.scm.developerConnection=scm:svn:svn://localhost/CVS/maven-deployment/trunk-DtagBase=scm:svn:svn://localhost/CVS/maven-deployment/tags Result: [INFO] Tagging release with the label 1.0. Provider message: The svn tag command failed. Command output: svn: Error resolving case of 'scm:svn:svn:\localhost\CVS\maven-deployment\tags\1.0' POM.xml fragment: scm developerConnectionscm:svn:svn://localhost/CVS/maven-deployment/trunk/developerConnection /scm build plugins plugin artifactIdmaven-release-plugin/artifactId configuration tagBasescm:svn:svn://localhost/CVS/maven-deployment/tags/tagBase /configuration /plugin /plugins /build Thanks!!! P.S.: is there a way to search in the mailing-list database, appart from Google? I'm sorry if my question has been previously posted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] parent pom
I have a question in regards to this. Is there a way to build the projects as a whole, as you say? As of now, I have to run maven on each individual child, and I'm not sure if there is one way to call maven to run the parent and all children at once. Does anyone know if this is doable? Frank Russo Senior Developer FX Alliance, LLC -Original Message- From: Maria Odea Ching [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 10:17 PM To: Maven Users List Subject: Re: [m2] parent pom Hi Fredy, The concept of parent poms can be applied to multi-module projects wherein it provides you the priviledge of building your modules individually or as a whole (project). You need to define your parent pom in your project's root directory (ex. C:\Project\pom.xml ) and the children pom in each module's root directory (ex. C:\Project\module-1\pom.xml). Please take a look below at the sample parent and child poms. Parent POM: project modelVersion4.0.0/modelVersion groupIdsample.project/groupId artifactIdsample/artifactId packagingpom/packaging nameSample Project/name version1.0-SNAPSHOT/version descriptionThis is a sample project/description modules modulemodule-1/module modulemodule-2/module modulemodule-3/module /modules dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies dependencyManagement dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-model/artifactId version2.0/version /dependency /dependencies /dependencyManagement /project Module-1 Child POM: 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 groupIdsample.project/groupId artifactIdsample/artifactId version1.0-SNAPSHOT/version /parent modelVersion4.0.0/modelVersion artifactIdmodule-1/artifactId nameSample Project Module 1/name dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-model/artifactId /dependency /dependencies /project Thanks, Odea Fredy wrote: hi, i've read something about the parent pom at multiple places, but have not found an explanation about it. Is there a doc about parent pom's? Where to define it, how to extend it?? Do it mean a pom in a multi module project like mojo-sandbox? Fredy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] parent pom
If your parent project POM lists modules, then those projects will be built when the parent is built. Richard Allen Frank Russo wrote: I have a question in regards to this. Is there a way to build the projects as a whole, as you say? As of now, I have to run maven on each individual child, and I'm not sure if there is one way to call maven to run the parent and all children at once. Does anyone know if this is doable? Frank Russo Senior Developer FX Alliance, LLC -Original Message- From: Maria Odea Ching [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 10:17 PM To: Maven Users List Subject: Re: [m2] parent pom Hi Fredy, The concept of parent poms can be applied to multi-module projects wherein it provides you the priviledge of building your modules individually or as a whole (project). You need to define your parent pom in your project's root directory (ex. C:\Project\pom.xml ) and the children pom in each module's root directory (ex. C:\Project\module-1\pom.xml). Please take a look below at the sample parent and child poms. Parent POM: project modelVersion4.0.0/modelVersion groupIdsample.project/groupId artifactIdsample/artifactId packagingpom/packaging nameSample Project/name version1.0-SNAPSHOT/version descriptionThis is a sample project/description modules modulemodule-1/module modulemodule-2/module modulemodule-3/module /modules dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies dependencyManagement dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-model/artifactId version2.0/version /dependency /dependencies /dependencyManagement /project Module-1 Child POM: 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 groupIdsample.project/groupId artifactIdsample/artifactId version1.0-SNAPSHOT/version /parent modelVersion4.0.0/modelVersion artifactIdmodule-1/artifactId nameSample Project Module 1/name dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-model/artifactId /dependency /dependencies /project Thanks, Odea Fredy wrote: hi, i've read something about the parent pom at multiple places, but have not found an explanation about it. Is there a doc about parent pom's? Where to define it, how to extend it?? Do it mean a pom in a multi module project like mojo-sandbox? Fredy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: svn: Error resolving case of
Don't worry. I would like to prepare some docs about the subject (Maven 2 and Subversion) for beginners. I'll make you know if I finally complete it. Another question... where is the SCM user password provided when using SCM url? As from the specification (and checked on svnScmProviderRepository class) the password is not gathered for the URL, as in the case on CVS. I have checked whether the password was taken from settings.xml file but it seems it is not the case. Alex On 1/31/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: I don't think some docs exists somewhere about it, sorry. Emmanuel Alejandro Nicolas Mascarell a écrit : Thanks for your quick answer! ;) Regarding the space before -DtabBase, you know... issues of copy paste from command line. :$ Do you know whether best practices information about Maven 2 integration with SCM exist somewhere? Regards, Alex On 1/31/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: 1- you need a space before -DtagBase ;-) 2- tagbase is a svn url ant not a maven scm url, so replace your tagBase with svn://localhost/CVS/maven-deployment/tags You can use Nabble to search in ML archives ( http://www.nabble.com/forum/Search.jtp?query=maven) Emmanuel Alejandro Nicolas Mascarell a écrit : I would appreciate your help to troubleshoot the following error. I can't figure out why it is not working. I have try in several ways with the same result. Command: mvn release:prepare - Dproject.scm.developerConnection=scm:svn:svn://localhost/CVS/maven-deployment/trunk-DtagBase=scm:svn:svn://localhost/CVS/maven-deployment/tags Result: [INFO] Tagging release with the label 1.0. Provider message: The svn tag command failed. Command output: svn: Error resolving case of 'scm:svn:svn:\localhost\CVS\maven-deployment\tags\1.0' POM.xml fragment: scm developerConnectionscm:svn:svn://localhost/CVS/maven-deployment/trunk/developerConnection /scm build plugins plugin artifactIdmaven-release-plugin/artifactId configuration tagBasescm:svn:svn://localhost/CVS/maven-deployment/tags/tagBase /configuration /plugin /plugins /build Thanks!!! P.S.: is there a way to search in the mailing-list database, appart from Google? I'm sorry if my question has been previously posted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] parent pom
Do you or anyone else know where (if it exists) the documention is for this? The pom descriptor only shows modules/. If anyone knows how to use this, please pass along. Thanks... Frank Russo Senior Developer FX Alliance, LLC -Original Message- From: Richard Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 8:57 AM To: Maven Users List Subject: Re: [m2] parent pom If your parent project POM lists modules, then those projects will be built when the parent is built. Richard Allen Frank Russo wrote: I have a question in regards to this. Is there a way to build the projects as a whole, as you say? As of now, I have to run maven on each individual child, and I'm not sure if there is one way to call maven to run the parent and all children at once. Does anyone know if this is doable? Frank Russo Senior Developer FX Alliance, LLC -Original Message- From: Maria Odea Ching [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 10:17 PM To: Maven Users List Subject: Re: [m2] parent pom Hi Fredy, The concept of parent poms can be applied to multi-module projects wherein it provides you the priviledge of building your modules individually or as a whole (project). You need to define your parent pom in your project's root directory (ex. C:\Project\pom.xml ) and the children pom in each module's root directory (ex. C:\Project\module-1\pom.xml). Please take a look below at the sample parent and child poms. Parent POM: project modelVersion4.0.0/modelVersion groupIdsample.project/groupId artifactIdsample/artifactId packagingpom/packaging nameSample Project/name version1.0-SNAPSHOT/version descriptionThis is a sample project/description modules modulemodule-1/module modulemodule-2/module modulemodule-3/module /modules dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies dependencyManagement dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-model/artifactId version2.0/version /dependency /dependencies /dependencyManagement /project Module-1 Child POM: 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 groupIdsample.project/groupId artifactIdsample/artifactId version1.0-SNAPSHOT/version /parent modelVersion4.0.0/modelVersion artifactIdmodule-1/artifactId nameSample Project Module 1/name dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-model/artifactId /dependency /dependencies /project Thanks, Odea Fredy wrote: hi, i've read something about the parent pom at multiple places, but have not found an explanation about it. Is there a doc about parent pom's? Where to define it, how to extend it?? Do it mean a pom in a multi module project like mojo-sandbox? Fredy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] parent pom
See How do I build more than one project at once? here: http://maven.apache.org/guides/getting-started/index.html If you are using Eclipse, this can be useful: http://maven.apache.org/guides/mini/guide-ide-eclipse.html Otherwise, search the mail: http://www.nabble.com/Maven---Users-f178.html Richard Allen Frank Russo wrote: Do you or anyone else know where (if it exists) the documention is for this? The pom descriptor only shows modules/. If anyone knows how to use this, please pass along. Thanks... Frank Russo Senior Developer FX Alliance, LLC -Original Message- From: Richard Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 8:57 AM To: Maven Users List Subject: Re: [m2] parent pom If your parent project POM lists modules, then those projects will be built when the parent is built. Richard Allen Frank Russo wrote: I have a question in regards to this. Is there a way to build the projects as a whole, as you say? As of now, I have to run maven on each individual child, and I'm not sure if there is one way to call maven to run the parent and all children at once. Does anyone know if this is doable? Frank Russo Senior Developer FX Alliance, LLC -Original Message- From: Maria Odea Ching [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 10:17 PM To: Maven Users List Subject: Re: [m2] parent pom Hi Fredy, The concept of parent poms can be applied to multi-module projects wherein it provides you the priviledge of building your modules individually or as a whole (project). You need to define your parent pom in your project's root directory (ex. C:\Project\pom.xml ) and the children pom in each module's root directory (ex. C:\Project\module-1\pom.xml). Please take a look below at the sample parent and child poms. Parent POM: project modelVersion4.0.0/modelVersion groupIdsample.project/groupId artifactIdsample/artifactId packagingpom/packaging nameSample Project/name version1.0-SNAPSHOT/version descriptionThis is a sample project/description modules modulemodule-1/module modulemodule-2/module modulemodule-3/module /modules dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies dependencyManagement dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-model/artifactId version2.0/version /dependency /dependencies /dependencyManagement /project Module-1 Child POM: 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 groupIdsample.project/groupId artifactIdsample/artifactId version1.0-SNAPSHOT/version /parent modelVersion4.0.0/modelVersion artifactIdmodule-1/artifactId nameSample Project Module 1/name dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-model/artifactId /dependency /dependencies /project Thanks, Odea Fredy wrote: hi, i've read something about the parent pom at multiple places, but have not found an explanation about it. Is there a doc about parent pom's? Where to define it, how to extend it?? Do it mean a pom in a multi module project like mojo-sandbox? Fredy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to customise the, by maven2, generated site
Hi, I would like some advice of how to customise the site maven2 generates. I have seen one blog which suggests taking a copy of the default velocity template, modify that and then override the template directory. http://blogs.sun.com/roller/page/wilfred?entry=customing_maven_2_site_layout I also stumbled into a confluence page which had something about skinning on it, but it was difficult to tell how if this is implemented or in discussion. http://docs.codehaus.org/display/MAVEN/Sites+and+Inheritence I would be very grateful for some advice. Cheers, Mikael
I can't get cobertura to work with maven 2.0.2
Okay I have changed my build so that the checkstyle etc all happen on the verify phase, and have updated to use the latest snapshot version of cobertura plugin. [mvn install] works fine - all is as expected. but [mvn site] continues to break as follows: (disco-davesag) [15:59:16] ~/checkouts/EPO/cassius_service_Sis$ mvn site [INFO] Scanning for projects... [INFO] [INFO] Building Search Information Service (redux) [INFO] task-segment: [site] [INFO] [INFO] Preparing cobertura:cobertura [INFO] [resources:resources] [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [cobertura:instrument {execution: instrument-classes}] [INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file Cobertura: Loaded information on 4 classes. Instrumenting 6 classes to /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura Cobertura: Saved information on 4 classes. Instrument time: 244ms [INFO] Instrumentation was successful. [INFO] [cobertura:instrument] [INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file Cobertura: Loaded information on 4 classes. Instrumenting 6 classes to /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura [cobertura] WARN [main] net.sourceforge.cobertura.instrument.Main - Unable to instrument file /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura/org/epo/cassius/csp/DossierTranslationService.class java.lang.ArrayIndexOutOfBoundsException: 8 at org.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source) at org.objectweb.asm.ClassReader.init(Unknown Source) at org.objectweb.asm.ClassReader.init(Unknown Source) at org.objectweb.asm.ClassReader.init(Unknown Source) at net.sourceforge.cobertura.instrument.Main.addInstrumentationToSingleClass(Main.java:286) at net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:364) at net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:382) at net.sourceforge.cobertura.instrument.Main.parseArguments(Main.java:440) at net.sourceforge.cobertura.instrument.Main.main(Main.java:462) [cobertura] WARN [main] net.sourceforge.cobertura.instrument.Main - Unable to instrument file /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura/org/epo/cassius/csp/SearchInformationService.class java.lang.ArrayIndexOutOfBoundsException: 8 at org.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source) at org.objectweb.asm.ClassReader.init(Unknown Source) at org.objectweb.asm.ClassReader.init(Unknown Source) at org.objectweb.asm.ClassReader.init(Unknown Source) at net.sourceforge.cobertura.instrument.Main.addInstrumentationToSingleClass(Main.java:286) at net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:364) at net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:382) at net.sourceforge.cobertura.instrument.Main.parseArguments(Main.java:440) at net.sourceforge.cobertura.instrument.Main.main(Main.java:462) [cobertura] WARN [main] net.sourceforge.cobertura.instrument.Main - Unable to instrument file /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura/org/epo/cassius/csp/SearchInformationServiceDelegate.class java.lang.ArrayIndexOutOfBoundsException: 8 at org.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source) at org.objectweb.asm.ClassReader.init(Unknown Source) at org.objectweb.asm.ClassReader.init(Unknown Source) at org.objectweb.asm.ClassReader.init(Unknown Source) at net.sourceforge.cobertura.instrument.Main.addInstrumentationToSingleClass(Main.java:286) at net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:364) at net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:382) at net.sourceforge.cobertura.instrument.Main.parseArguments(Main.java:440) at net.sourceforge.cobertura.instrument.Main.main(Main.java:462) [cobertura] WARN [main] net.sourceforge.cobertura.instrument.Main - Unable to instrument file /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura/org/epo/cassius/csp/SimpleSearchInformationServiceDelegate.class java.lang.ArrayIndexOutOfBoundsException: 8 at org.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source) at org.objectweb.asm.ClassReader.init(Unknown Source) at org.objectweb.asm.ClassReader.init(Unknown Source) at org.objectweb.asm.ClassReader.init(Unknown Source) at net.sourceforge.cobertura.instrument.Main.addInstrumentationToSingleClass(Main.java:286) at net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:364) at
Re: Maven integration with WAS5
You have to use the antrun plugin and write ant tasks to do it. Search the web for the ant tasks. There are example scripts here and there. The only information IBM seems to provide on it is in the Websphere docs. Here are the version 6 docs. Look for the same class names: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.javadoc.doc/public_html/api/com/ibm/websphere/ant/tasks/package-summary.html or look for the package name com.ibm.websphere.ant.tasks. You can use wsadmin through ant to submit jacl scripts that do these things too. This task will only run if you use ws-ant which is a customized version of ant that uses the IBM JDK among other things. It's a pain and it doesn't seem to work very well. Perhaps the Cargo project will rescue us if some support for Websphere is added. Thanks. -- Lee Meador On 9/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Can any of you please help me with this info . How to start , stop , deploy applications on WAS5 with maven2 Regards Saravana -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
RE: Maven integration with WAS5
For websphere 6 I've found that bypassing the IDE integration and using Websphere Rapid Deploy is the most reliable process so far. My ear build just copies the EAR to the WRD directory and it is auto-reloaded. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee Meador Sent: Tuesday, January 31, 2006 9:28 AM To: Maven Users List Subject: Re: Maven integration with WAS5 You have to use the antrun plugin and write ant tasks to do it. Search the web for the ant tasks. There are example scripts here and there. The only information IBM seems to provide on it is in the Websphere docs. Here are the version 6 docs. Look for the same class names: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/c om.ibm.websphere.javadoc.doc/public_html/api/com/ibm/websphere/ant/tasks /package-summary.html or look for the package name com.ibm.websphere.ant.tasks. You can use wsadmin through ant to submit jacl scripts that do these things too. This task will only run if you use ws-ant which is a customized version of ant that uses the IBM JDK among other things. It's a pain and it doesn't seem to work very well. Perhaps the Cargo project will rescue us if some support for Websphere is added. Thanks. -- Lee Meador On 9/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Can any of you please help me with this info . How to start , stop , deploy applications on WAS5 with maven2 Regards Saravana -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven 1.1 and inherited properties
Hello, I'm trying to upgrade to maven 1.1-beta2. My project uses commons-attributes and it's maven plugin When I run a maven war:install on my web sub-project, attributes classes are generated by plugin. When I run a multiproject:install, everything SEEMS good, but attributes classes are not generated. Plugin doesn't run at all. Same plugin runs as expected in a simple jar Is this a known bug ? (it works fine under maven 1.0.2) Nico. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] maven-checkstyle-plugin 2.0 can't be retrieved
I have the same thing as Kristof in my parent POM in the reportingplugins section. There is no reference in the child POM. I removed the checkstyle plugin from my repository. But I get version 2.0-beta-1 downloading like Yann. This happens if I put no version in the POM (as Kristof) or if I put version2.0/version in the POM. Thanks. -- Lee Meador On 1/31/06, Kristof Vanbecelaere [EMAIL PROTECTED] wrote: I manually removed a beta from my local repository. I refer to the plugin using plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId configuration configLocation checkstyle-jjguidelines.xml /configLocation /configuration /plugin and running mvn site downloads it for me. On Jan 31, 2006, at 13:50, Yann Le Du wrote: Hi, I've seen maven-checkstyle-plugin 2.0 is available since yesterday, which is good news ! http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven- checkstyle-plugin/ Though, I'm still retrieving 2.0-beta-1, even with plugin update. maven-metadata still contains release2.0-beta-1/release , this may be the cause - or is it on purpose ? http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven- checkstyle-plugin/maven-metadata.xml - Yann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
Eclipse libraries as Maven 2 dependencies
Now, I may just be going blind, but I can't find up to date Eclipse components on Ibiblio. If my Maven project depends on the SWT widgets, or Jface, or any other component, is there an alternative to creating my own objects? I found Eclipse 2.1.0 versions in http://www.ibiblio.org/maven2/eclipse/, but they're out of date. The stuff in http://www.ibiblio.org/maven2/org/eclipse/ is not the core of Eclipse, so where is it? And if it's not there, what's the problem? Thanks in advance, Nick This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Cannot find maven-war-plugin
Hi, When I execute mvn install on a web project, I get a build error stating that The plugin 'org.apache.maven.plugins:maven-war-plugin' does not exist or no valid version could be found. I tried googling for this but came up with nothing. Why is it not checking the central repository for this plugin? Is there extra configuration needed to build a web project? Thanks. _Mang
Re: maven 1.1 and inherited properties
Hi Nicolas, Why do you talk about inherited properties ? can it be related to http://jira.codehaus.org/browse/MAVEN-1691 ? Arnaud On 1/31/06, Nicolas De Loof [EMAIL PROTECTED] wrote: Hello, I'm trying to upgrade to maven 1.1-beta2. My project uses commons-attributes and it's maven plugin When I run a maven war:install on my web sub-project, attributes classes are generated by plugin. When I run a multiproject:install, everything SEEMS good, but attributes classes are not generated. Plugin doesn't run at all. Same plugin runs as expected in a simple jar Is this a known bug ? (it works fine under maven 1.0.2) Nico. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven integration with WAS5
Is there a way to turn on the WRD without human interaction? Such as from an ant script within Maven. Do you have a source of information on using it? The IBM docs are totally fragmented with no unified example. (Well ... that I have found) How about disabling it. How is that done? Thanks. -- Lee Meador On 1/31/06, Mike Perham [EMAIL PROTECTED] wrote: For websphere 6 I've found that bypassing the IDE integration and using Websphere Rapid Deploy is the most reliable process so far. My ear build just copies the EAR to the WRD directory and it is auto-reloaded. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee Meador Sent: Tuesday, January 31, 2006 9:28 AM To: Maven Users List Subject: Re: Maven integration with WAS5 You have to use the antrun plugin and write ant tasks to do it. Search the web for the ant tasks. There are example scripts here and there. The only information IBM seems to provide on it is in the Websphere docs. Here are the version 6 docs. Look for the same class names: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/c om.ibm.websphere.javadoc.doc/public_html/api/com/ibm/websphere/ant/tasks /package-summary.html or look for the package name com.ibm.websphere.ant.tasks. You can use wsadmin through ant to submit jacl scripts that do these things too. This task will only run if you use ws-ant which is a customized version of ant that uses the IBM JDK among other things. It's a pain and it doesn't seem to work very well. Perhaps the Cargo project will rescue us if some support for Websphere is added. Thanks. -- Lee Meador On 9/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Can any of you please help me with this info . How to start , stop , deploy applications on WAS5 with maven2 Regards Saravana -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
Re: [m2] Cannot find maven-war-plugin
If you have a proxy you will need to put some things in the settings.xmlfile. http://maven.apache.org/guides/mini/guide-proxies.html It is also possible that ibiblio is running really slow. You might try again and see if it does any better. I have had to try 3 times to get things downloaded on occasion. On 1/31/06, Mang Jun Lau [EMAIL PROTECTED] wrote: Hi, When I execute mvn install on a web project, I get a build error stating that The plugin 'org.apache.maven.plugins:maven-war-plugin' does not exist or no valid version could be found. I tried googling for this but came up with nothing. Why is it not checking the central repository for this plugin? Is there extra configuration needed to build a web project? Thanks. _Mang -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
Re: [m2] Cannot find maven-war-plugin
I have no proxy. Further, I've downloaded something from the central repository for another project just now but the war plugin does not work. When I execute mvn install, it just doesn't seem to even try to connect to the internet. It instantly gives me the build error. Is there a command where I can install the plugin manually? Is there even a released plugin for m2? I browsed the repository and only found beta version. _Mang Lee Meador [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 01/31/2006 11:40 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: [m2] Cannot find maven-war-plugin If you have a proxy you will need to put some things in the settings.xmlfile. http://maven.apache.org/guides/mini/guide-proxies.html It is also possible that ibiblio is running really slow. You might try again and see if it does any better. I have had to try 3 times to get things downloaded on occasion. On 1/31/06, Mang Jun Lau [EMAIL PROTECTED] wrote: Hi, When I execute mvn install on a web project, I get a build error stating that The plugin 'org.apache.maven.plugins:maven-war-plugin' does not exist or no valid version could be found. I tried googling for this but came up with nothing. Why is it not checking the central repository for this plugin? Is there extra configuration needed to build a web project? Thanks. _Mang -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
Re: commons-attributes and maven 1.1 (Was: maven 1.1 and inherited properties)
Sory for this stupid subjet : I was thinking this comes from a properties failure... created [http://jira.codehaus.org/browse/MAVEN-1741] for this with a minimalist test-case Hello, I'm trying to upgrade to maven 1.1-beta2. My project uses commons-attributes and it's maven plugin When I run a maven war:install on my web sub-project, attributes classes are generated by plugin. When I run a multiproject:install, everything SEEMS good, but attributes classes are not generated. Plugin doesn't run at all. Same plugin runs as expected in a simple jar Is this a known bug ? (it works fine under maven 1.0.2) Nico. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven 1.1 and inherited properties
I was first thinking about org.apache.commons.attributes.enable not beeing correctly set, but I've was wrong. I've created http://jira.codehaus.org/browse/MAVEN-1691 I've attached a minimalist multiproject to demonstrate the bug. (war) maven war:install generates the attributes classes (jar) maven jar:install generates the attributes classes (head) maven multiproject:install generates the attributes classes ONLY for jar project. Arnaud HERITIER a écrit : Hi Nicolas, Why do you talk about inherited properties ? can it be related to http://jira.codehaus.org/browse/MAVEN-1691 ? Arnaud On 1/31/06, Nicolas De Loof [EMAIL PROTECTED] wrote: Hello, I'm trying to upgrade to maven 1.1-beta2. My project uses commons-attributes and it's maven plugin When I run a maven war:install on my web sub-project, attributes classes are generated by plugin. When I run a multiproject:install, everything SEEMS good, but attributes classes are not generated. Plugin doesn't run at all. Same plugin runs as expected in a simple jar Is this a known bug ? (it works fine under maven 1.0.2) Nico. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven integration with WAS5
I just start WRD when I know I am going to be going through the deployment process and leave it running. I have an add-app.bat which runs this command: set WAS_HOME=C:\dev\IBM\Rational\SDP\6.0\runtimes\base_v6 %WAS_HOME%\bin\wrd-config.bat -project %1 -style AutoAppInstall so you would just run add-app my-ear-project once and then have your my-ear-project build copy its EAR into %WORKSPACE%\my-ear-project every time you change something and want to test it. WRD will handle everything else in my experience. I believe you need to configure WRD before you can use it the first time. More info here: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/c om.ibm.etools.wrd.freeform.doc/topics/rwrdconfbat.html mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee Meador Sent: Tuesday, January 31, 2006 10:39 AM To: Maven Users List Subject: Re: Maven integration with WAS5 Is there a way to turn on the WRD without human interaction? Such as from an ant script within Maven. Do you have a source of information on using it? The IBM docs are totally fragmented with no unified example. (Well ... that I have found) How about disabling it. How is that done? Thanks. -- Lee Meador On 1/31/06, Mike Perham [EMAIL PROTECTED] wrote: For websphere 6 I've found that bypassing the IDE integration and using Websphere Rapid Deploy is the most reliable process so far. My ear build just copies the EAR to the WRD directory and it is auto-reloaded. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee Meador Sent: Tuesday, January 31, 2006 9:28 AM To: Maven Users List Subject: Re: Maven integration with WAS5 You have to use the antrun plugin and write ant tasks to do it. Search the web for the ant tasks. There are example scripts here and there. The only information IBM seems to provide on it is in the Websphere docs. Here are the version 6 docs. Look for the same class names: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic= /c om.ibm.websphere.javadoc.doc/public_html/api/com/ibm/websphere/ant/tas ks /package-summary.html or look for the package name com.ibm.websphere.ant.tasks. You can use wsadmin through ant to submit jacl scripts that do these things too. This task will only run if you use ws-ant which is a customized version of ant that uses the IBM JDK among other things. It's a pain and it doesn't seem to work very well. Perhaps the Cargo project will rescue us if some support for Websphere is added. Thanks. -- Lee Meador On 9/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Can any of you please help me with this info . How to start , stop , deploy applications on WAS5 with maven2 Regards Saravana -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED] @echo off set PROFILE=default set WAS_BASE=C:\dev\IBM\Rational\SDP\6.0\runtimes\base_v6 if %WORKSPACE% == goto :wserr title Websphere Rapid Deployment call %WAS_BASE%\profiles\%PROFILE%\bin\wrd.bat -monitor goto :EOF :wserr echo Please set WORKSPACE to your root Rapid Deployment directory - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven 1.1 and inherited properties
Did you set the maven.multiproject.type property for each subproject? -Lukas Nicolas De Loof wrote: I was first thinking about org.apache.commons.attributes.enable not beeing correctly set, but I've was wrong. I've created http://jira.codehaus.org/browse/MAVEN-1691 I've attached a minimalist multiproject to demonstrate the bug. (war) maven war:install generates the attributes classes (jar) maven jar:install generates the attributes classes (head) maven multiproject:install generates the attributes classes ONLY for jar project. Arnaud HERITIER a écrit : Hi Nicolas, Why do you talk about inherited properties ? can it be related to http://jira.codehaus.org/browse/MAVEN-1691 ? Arnaud On 1/31/06, Nicolas De Loof [EMAIL PROTECTED] wrote: Hello, I'm trying to upgrade to maven 1.1-beta2. My project uses commons-attributes and it's maven plugin When I run a maven war:install on my web sub-project, attributes classes are generated by plugin. When I run a multiproject:install, everything SEEMS good, but attributes classes are not generated. Plugin doesn't run at all. Same plugin runs as expected in a simple jar Is this a known bug ? (it works fine under maven 1.0.2) Nico. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] parent pom
Does anyone know if the following is doable? I have a project where I build two different artifacts off the same project base. One is a war file, which we use to deploy to a tomcat server. The other is a jar file, which is just an api snapshot of our code for other internal projects to share. The way I'm doing it now, is as follows. +- project-root | +- pom.xml | +- pom_war.xml | +- pom_jar.xml | +- src ... The pom.xml is my parent, which defines all of the shared definitions (includes repositories, dependencies, profiles, etc.) The other two reference the parent and build the appropriate artifacts. What I have been doing is build the parent, build child one, and then build child two. As noted in prior emails, there is a way to do one build and generate all artifacts, however, the examples in the docs referenced below, do not handle my scenario. My questions is, is what I want possible to do? If so, how do I configure the modules/ element in the parent? If not, is there a workaround for what I want to do, besides writing a script? A script may not be such a bad option, but it just adds something that I'll need to maintain if we want to add artifacts... Frank Russo Senior Developer FX Alliance, LLC -Original Message- From: Richard Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 9:54 AM To: Maven Users List Subject: Re: [m2] parent pom See How do I build more than one project at once? here: http://maven.apache.org/guides/getting-started/index.html If you are using Eclipse, this can be useful: http://maven.apache.org/guides/mini/guide-ide-eclipse.html Otherwise, search the mail: http://www.nabble.com/Maven---Users-f178.html Richard Allen Frank Russo wrote: Do you or anyone else know where (if it exists) the documention is for this? The pom descriptor only shows modules/. If anyone knows how to use this, please pass along. Thanks... Frank Russo Senior Developer FX Alliance, LLC -Original Message- From: Richard Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 8:57 AM To: Maven Users List Subject: Re: [m2] parent pom If your parent project POM lists modules, then those projects will be built when the parent is built. Richard Allen Frank Russo wrote: I have a question in regards to this. Is there a way to build the projects as a whole, as you say? As of now, I have to run maven on each individual child, and I'm not sure if there is one way to call maven to run the parent and all children at once. Does anyone know if this is doable? Frank Russo Senior Developer FX Alliance, LLC -Original Message- From: Maria Odea Ching [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 10:17 PM To: Maven Users List Subject: Re: [m2] parent pom Hi Fredy, The concept of parent poms can be applied to multi-module projects wherein it provides you the priviledge of building your modules individually or as a whole (project). You need to define your parent pom in your project's root directory (ex. C:\Project\pom.xml ) and the children pom in each module's root directory (ex. C:\Project\module-1\pom.xml). Please take a look below at the sample parent and child poms. Parent POM: project modelVersion4.0.0/modelVersion groupIdsample.project/groupId artifactIdsample/artifactId packagingpom/packaging nameSample Project/name version1.0-SNAPSHOT/version descriptionThis is a sample project/description modules modulemodule-1/module modulemodule-2/module modulemodule-3/module /modules dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies dependencyManagement dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-model/artifactId version2.0/version /dependency /dependencies /dependencyManagement /project Module-1 Child POM: 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 groupIdsample.project/groupId artifactIdsample/artifactId version1.0-SNAPSHOT/version /parent modelVersion4.0.0/modelVersion artifactIdmodule-1/artifactId nameSample Project Module 1/name dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-model/artifactId /dependency /dependencies /project Thanks, Odea Fredy wrote: hi, i've read something about the parent pom at multiple places, but have not found an explanation about it. Is there a doc about parent pom's? Where to define it, how to extend it?? Do it mean a pom in a multi module project like mojo-sandbox? Fredy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Re: Branch info lost on release [resolved]
FYI I found some clues on how to deal with branches based on the code of the PerformReleaseMojo and the PrepareReleaseMojo. 1) release:prepare works on a checked out project. This allows for tagging to be made on the correct branch. 2) release:perform works by checking out the project based on a tag. I'm assuming that tags in CVS has to be unique across branches. I had a look at at branches made for maven/components on svn.apache.org, but I got somewhat confused (I'm not so familiar with SVN yet). Is the branch and tag information kept in the scm url of the parent pom for maven/component? Anyhow... It works, but now I can not understand what the tag element in the scm section is good for? :-) Ørjan Orjan Austvold wrote: We're using Maven 2 with CVS on several multi-module projects and we have successfully performed releases in the last 3 months. Yesterday we ran into problems with releases on a CVS branch. I added a tag on the scm element for the parent pom on the branched project. When I did a release the pom checked in by the release plugin actually removed the tag element. Am I using the wrong element for describing the branch name or should I file a bug on the release plugin? Thanks, Ørjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Cannot find maven-war-plugin
There is a war plugin. I am using it in my build. I just ran the build and it worked fine. Perhaps someone else has more insightful help for you. Sorry. -- Lee Meador On 1/31/06, Mang Jun Lau [EMAIL PROTECTED] wrote: I have no proxy. Further, I've downloaded something from the central repository for another project just now but the war plugin does not work. When I execute mvn install, it just doesn't seem to even try to connect to the internet. It instantly gives me the build error. Is there a command where I can install the plugin manually? Is there even a released plugin for m2? I browsed the repository and only found beta version. _Mang Lee Meador [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 01/31/2006 11:40 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: [m2] Cannot find maven-war-plugin If you have a proxy you will need to put some things in the settings.xmlfile. http://maven.apache.org/guides/mini/guide-proxies.html It is also possible that ibiblio is running really slow. You might try again and see if it does any better. I have had to try 3 times to get things downloaded on occasion. On 1/31/06, Mang Jun Lau [EMAIL PROTECTED] wrote: Hi, When I execute mvn install on a web project, I get a build error stating that The plugin 'org.apache.maven.plugins:maven-war-plugin' does not exist or no valid version could be found. I tried googling for this but came up with nothing. Why is it not checking the central repository for this plugin? Is there extra configuration needed to build a web project? Thanks. _Mang -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED] -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
Re: [m2] parent pom
So if I see right, the only way to process multiple Files is the multi project thing. But than the submodules must have a reference to the parent. that is really only nice, if the submodules not referenced from other modules. In the case that is right: I miss a possibility to define processGroups. Example: module A depends on module D module B depends on module D module D depends on module C So if i develop module A and A,B,C are SNAPSHOT'S I want to call compile, package, install... on a process Group: processGroup dependency groupIdmyGroup/groupId artifactIdmoduleA/artifactId version1.o-SNAPSHOT/version scopecompile/scope /dependency dependency groupIdmyGroup/groupId artifactIdmoduleB/artifactId version1.o-SNAPSHOT/version scopecompile/scope /dependency dependency groupIdmyGroup/groupId artifactIdmoduleD/artifactId version1.o-SNAPSHOT/version scopecompile/scope /dependency /processGroup This is a small Example, the dependencies could be much more complex ;-) So a thing like a processGroup may be a very great way to save me time. Ok. i can write an shell or ant script doing that, but it would be nice if maven can do something like that. Do you understand me? Fredy Maven Users List users@maven.apache.org schrieb am 31.01.06 15:54:41: See How do I build more than one project at once? here: http://maven.apache.org/guides/getting-started/index.html If you are using Eclipse, this can be useful: http://maven.apache.org/guides/mini/guide-ide-eclipse.html Otherwise, search the mail: http://www.nabble.com/Maven---Users-f178.html Richard Allen Frank Russo wrote: Do you or anyone else know where (if it exists) the documention is for this? The pom descriptor only shows modules/. If anyone knows how to use this, please pass along. Thanks... Frank Russo Senior Developer FX Alliance, LLC -Original Message- From: Richard Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 8:57 AM To: Maven Users List Subject: Re: [m2] parent pom If your parent project POM lists modules, then those projects will be built when the parent is built. Richard Allen Frank Russo wrote: I have a question in regards to this. Is there a way to build the projects as a whole, as you say? As of now, I have to run maven on each individual child, and I'm not sure if there is one way to call maven to run the parent and all children at once. Does anyone know if this is doable? Frank Russo Senior Developer FX Alliance, LLC -Original Message- From: Maria Odea Ching [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 10:17 PM To: Maven Users List Subject: Re: [m2] parent pom Hi Fredy, The concept of parent poms can be applied to multi-module projects wherein it provides you the priviledge of building your modules individually or as a whole (project). You need to define your parent pom in your project's root directory (ex. C:\Project\pom.xml ) and the children pom in each module's root directory (ex. C:\Project\module-1\pom.xml). Please take a look below at the sample parent and child poms. Parent POM: project modelVersion4.0.0/modelVersion groupIdsample.project/groupId artifactIdsample/artifactId packagingpom/packaging nameSample Project/name version1.0-SNAPSHOT/version descriptionThis is a sample project/description modules modulemodule-1/module modulemodule-2/module modulemodule-3/module /modules dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies dependencyManagement dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-model/artifactId version2.0/version /dependency /dependencies /dependencyManagement /project Module-1 Child POM: 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 groupIdsample.project/groupId artifactIdsample/artifactId version1.0-SNAPSHOT/version /parent modelVersion4.0.0/modelVersion artifactIdmodule-1/artifactId nameSample Project Module 1/name dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-model/artifactId /dependency /dependencies /project Thanks, Odea Fredy wrote: hi, i've read something about the parent pom at multiple places, but have not found an explanation about it. Is there a doc about parent pom's? Where to define it, how to extend it?? Do it mean a pom in a multi module project like mojo-sandbox? Fredy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Cannot find maven-war-plugin
You can use -U to force an update. On 2/1/06, Mang Jun Lau [EMAIL PROTECTED] wrote: I have no proxy. Further, I've downloaded something from the central repository for another project just now but the war plugin does not work. When I execute mvn install, it just doesn't seem to even try to connect to the internet. It instantly gives me the build error. Is there a command where I can install the plugin manually? Is there even a released plugin for m2? I browsed the repository and only found beta version. _Mang Lee Meador [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 01/31/2006 11:40 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: [m2] Cannot find maven-war-plugin If you have a proxy you will need to put some things in the settings.xmlfile. http://maven.apache.org/guides/mini/guide-proxies.html It is also possible that ibiblio is running really slow. You might try again and see if it does any better. I have had to try 3 times to get things downloaded on occasion. On 1/31/06, Mang Jun Lau [EMAIL PROTECTED] wrote: Hi, When I execute mvn install on a web project, I get a build error stating that The plugin 'org.apache.maven.plugins:maven-war-plugin' does not exist or no valid version could be found. I tried googling for this but came up with nothing. Why is it not checking the central repository for this plugin? Is there extra configuration needed to build a web project? Thanks. _Mang -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forcing the order of plugins bound to the same phase (was Re: M2.02 - mvn site now triggers a compile!)
Only the order they are declared in the POM. - Brett On 1/31/06, David Sag [EMAIL PROTECTED] wrote: Brett Porter [EMAIL PROTECTED] wrote on 31-01-2006 11:16:29: On 1/31/06, David Sag [EMAIL PROTECTED] wrote: Either way I probably need to bind checkstyle, pmd, findbugs etc to a phase other than compile then, perhaps verify. Hmm will ponder this. The reports, or the checks? The reports should be part of the site generation and not bound to any phases. The checks definitely belong in verify if they don't require any extra steps such as compilation. the checks. i run the checkstyle, pmd and findbugs checks and then in the verify stage pipe those checks into the qalab plugin to generate historical dev stats. ideally i'd run these as part of verify and then once they had run pipe them trhough qalab, but i have never been able to work out how to specify the order that plugins run when bound to the same phase. any clues how to do that? dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I can't get cobertura to work with maven 2.0.2
You need latest cobertura built from sources On 1/31/06, David Sag [EMAIL PROTECTED] wrote: Okay I have changed my build so that the checkstyle etc all happen on the verify phase, and have updated to use the latest snapshot version of cobertura plugin. [mvn install] works fine - all is as expected. but [mvn site] continues to break as follows: (disco-davesag) [15:59:16] ~/checkouts/EPO/cassius_service_Sis$ mvn site [INFO] Scanning for projects... [INFO] [INFO] Building Search Information Service (redux) [INFO]task-segment: [site] [INFO] [INFO] Preparing cobertura:cobertura [INFO] [resources:resources] [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [cobertura:instrument {execution: instrument-classes}] [INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file Cobertura: Loaded information on 4 classes. Instrumenting 6 classes to /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura Cobertura: Saved information on 4 classes. Instrument time: 244ms [INFO] Instrumentation was successful. [INFO] [cobertura:instrument] [INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file Cobertura: Loaded information on 4 classes. Instrumenting 6 classes to /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura [cobertura] WARN [main] net.sourceforge.cobertura.instrument.Main - Unable to instrument file /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura/org/epo/cassius/csp/DossierTranslationService.class java.lang.ArrayIndexOutOfBoundsException: 8 at org.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source) at org.objectweb.asm.ClassReader.init(Unknown Source) at org.objectweb.asm.ClassReader.init(Unknown Source) at org.objectweb.asm.ClassReader.init(Unknown Source) at net.sourceforge.cobertura.instrument.Main.addInstrumentationToSingleClass(Main.java:286) at net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:364) at net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:382) at net.sourceforge.cobertura.instrument.Main.parseArguments(Main.java:440) at net.sourceforge.cobertura.instrument.Main.main(Main.java:462) [cobertura] WARN [main] net.sourceforge.cobertura.instrument.Main - Unable to instrument file /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura/org/epo/cassius/csp/SearchInformationService.class java.lang.ArrayIndexOutOfBoundsException: 8 at org.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source) at org.objectweb.asm.ClassReader.init(Unknown Source) at org.objectweb.asm.ClassReader.init(Unknown Source) at org.objectweb.asm.ClassReader.init(Unknown Source) at net.sourceforge.cobertura.instrument.Main.addInstrumentationToSingleClass(Main.java:286) at net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:364) at net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:382) at net.sourceforge.cobertura.instrument.Main.parseArguments(Main.java:440) at net.sourceforge.cobertura.instrument.Main.main(Main.java:462) [cobertura] WARN [main] net.sourceforge.cobertura.instrument.Main - Unable to instrument file /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura/org/epo/cassius/csp/SearchInformationServiceDelegate.class java.lang.ArrayIndexOutOfBoundsException: 8 at org.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source) at org.objectweb.asm.ClassReader.init(Unknown Source) at org.objectweb.asm.ClassReader.init(Unknown Source) at org.objectweb.asm.ClassReader.init(Unknown Source) at net.sourceforge.cobertura.instrument.Main.addInstrumentationToSingleClass(Main.java:286) at net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:364) at net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:382) at net.sourceforge.cobertura.instrument.Main.parseArguments(Main.java:440) at net.sourceforge.cobertura.instrument.Main.main(Main.java:462) [cobertura] WARN [main] net.sourceforge.cobertura.instrument.Main - Unable to instrument file /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura/org/epo/cassius/csp/SimpleSearchInformationServiceDelegate.class java.lang.ArrayIndexOutOfBoundsException: 8 at org.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source) at org.objectweb.asm.ClassReader.init(Unknown Source) at
Re: [m2] Cannot find maven-war-plugin
Thanks so much. It worked out :) _Mang Brett Porter [EMAIL PROTECTED] 01/31/2006 12:25 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: [m2] Cannot find maven-war-plugin You can use -U to force an update. On 2/1/06, Mang Jun Lau [EMAIL PROTECTED] wrote: I have no proxy. Further, I've downloaded something from the central repository for another project just now but the war plugin does not work. When I execute mvn install, it just doesn't seem to even try to connect to the internet. It instantly gives me the build error. Is there a command where I can install the plugin manually? Is there even a released plugin for m2? I browsed the repository and only found beta version. _Mang Lee Meador [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 01/31/2006 11:40 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: [m2] Cannot find maven-war-plugin If you have a proxy you will need to put some things in the settings.xmlfile. http://maven.apache.org/guides/mini/guide-proxies.html It is also possible that ibiblio is running really slow. You might try again and see if it does any better. I have had to try 3 times to get things downloaded on occasion. On 1/31/06, Mang Jun Lau [EMAIL PROTECTED] wrote: Hi, When I execute mvn install on a web project, I get a build error stating that The plugin 'org.apache.maven.plugins:maven-war-plugin' does not exist or no valid version could be found. I tried googling for this but came up with nothing. Why is it not checking the central repository for this plugin? Is there extra configuration needed to build a web project? Thanks. _Mang -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Warning messages on remote repository
Hi, I created a remote repository for a bunch of jars we use in our application. The way I did is manually created the library.pom as : pre project moduleVersion4.0.0/noduleVersion groupIdlibName/groupId artifactIdlibName/groupId version1.0/version /project /pre When I compile the project I get the following warning messages (for each such library) but the application gets compiled and packaged.: [WARNING] POM for 'libName:...' is invalid. It will be ignored for artifact resolution. Reason: Not a valid v4.0.0 POM. Looks like as if the format of the pom is wrong. How can I get a jar (not built by us) and deploy it properly in a remote repository which we created? I searched through the maven.apache.org and didn't find any document on how to create a remote repository sp. with our own set of jars. Help is appreciated. Thanks, -Ashish __ 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: Warning messages on remote repository
What happens if you replace the /noduleVersion by /moduleVersion? -Lukas Ashish Srivastava wrote: Hi, I created a remote repository for a bunch of jars we use in our application. The way I did is manually created the library.pom as : pre project moduleVersion4.0.0/noduleVersion groupIdlibName/groupId artifactIdlibName/groupId version1.0/version /project /pre When I compile the project I get the following warning messages (for each such library) but the application gets compiled and packaged.: [WARNING] POM for 'libName:...' is invalid. It will be ignored for artifact resolution. Reason: Not a valid v4.0.0 POM. Looks like as if the format of the pom is wrong. How can I get a jar (not built by us) and deploy it properly in a remote repository which we created? I searched through the maven.apache.org and didn't find any document on how to create a remote repository sp. with our own set of jars. Help is appreciated. Thanks, -Ashish __ 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: How to customise the, by maven2, generated site
The first technique should work, but is limited. The second is implemented in SVN, but not released. That can be expected in February. - Brett On 2/1/06, Mikael Andersson [EMAIL PROTECTED] wrote: Hi, I would like some advice of how to customise the site maven2 generates. I have seen one blog which suggests taking a copy of the default velocity template, modify that and then override the template directory. http://blogs.sun.com/roller/page/wilfred?entry=customing_maven_2_site_layout I also stumbled into a confluence page which had something about skinning on it, but it was difficult to tell how if this is implemented or in discussion. http://docs.codehaus.org/display/MAVEN/Sites+and+Inheritence I would be very grateful for some advice. Cheers, Mikael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] maven-checkstyle-plugin 2.0 can't be retrieved
My mistake. I will correct the metadata. On 2/1/06, Lee Meador [EMAIL PROTECTED] wrote: I have the same thing as Kristof in my parent POM in the reportingplugins section. There is no reference in the child POM. I removed the checkstyle plugin from my repository. But I get version 2.0-beta-1 downloading like Yann. This happens if I put no version in the POM (as Kristof) or if I put version2.0/version in the POM. Thanks. -- Lee Meador On 1/31/06, Kristof Vanbecelaere [EMAIL PROTECTED] wrote: I manually removed a beta from my local repository. I refer to the plugin using plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId configuration configLocation checkstyle-jjguidelines.xml /configLocation /configuration /plugin and running mvn site downloads it for me. On Jan 31, 2006, at 13:50, Yann Le Du wrote: Hi, I've seen maven-checkstyle-plugin 2.0 is available since yesterday, which is good news ! http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven- checkstyle-plugin/ Though, I'm still retrieving 2.0-beta-1, even with plugin update. maven-metadata still contains release2.0-beta-1/release , this may be the cause - or is it on purpose ? http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven- checkstyle-plugin/maven-metadata.xml - Yann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2.1-SNAPSHOT] Activating profiles causes NullPointerException
On 2/1/06, Richard Allen [EMAIL PROTECTED] wrote: Am I doing something wrong or is this a bug? I can't see anything from here, but regardless of whether something is wrong, a NullPointException is a bug. Please file it in JIRA. Thanks, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I can't get cobertura to work with maven 2.0.2
On 2/1/06, David Sag [EMAIL PROTECTED] wrote: Okay I have changed my build so that the checkstyle etc all happen on the verify phase, and have updated to use the latest snapshot version of cobertura plugin. [mvn install] works fine - all is as expected. but [mvn site] continues to break as follows: Do you have zero-length classes, or is this something else? I recall seeing AIOOBE as a bug back in jcoverage some time back, but I'm not sure this is the same. I stress that this all used to work fine with maven 2.0 and the old cobertura plugin. I suspected a bug in the surefire reporting rather than in cobertura, and so removed any references to surefire from my reporting but i get pretty much the exact same result. The cobertura plugin was changed around mid-Dec to better use the facilities provided by Maven 2.0.1 for defining the lifecycle. Does anyone out there have a working example of maven 2.0.2 using cobertura to instrument classes and generate a report? If so please would you care to share your wisdom? Or would you recommend rolling back to maven 2.0 until these issues are fixed? We use it for: https://svn.apache.org/repos/asf/maven/repository-manager/trunk - Brett
using xdoclet2 and maven2
Hello, Well, I'm quite new to maven and specially maven2. I would like to use xdoclet2 with maven2. After reading a few docs, I still cannot make it work. I followed what is written on http://xdoclet.codehaus.org/Maven2+Plugin : downloadding the jar and then mvn install blahblah ... It seems ok. When I try to make a mvn package or what ever, I get the following message : W:\root\testProxyMaven\common-utilmvn package [INFO] Scanning for projects... [INFO] [INFO] Building Maven Quick Start Archetype [INFO]task-segment: [package] [INFO] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'xdoclet:maven2-xdoclet2-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Tue Jan 31 18:39:11 CET 2006 [INFO] Final Memory: 2M/4M [INFO] And I can't find out what I should do here. You can finbd my pom hereunder. I'm still testing and trying to see how the whole thing work. Can someoen help me. I'm sure maven is a good tool, but I can't make it work with xdoclet2 Regards, Dominique. 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 groupIdtest/groupId artifactIdcommon-util/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameMaven Quick Start Archetype/name urlhttp://maven.apache.org/url dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies build plugins plugin groupIdxdoclet/groupId artifactIdmaven2-xdoclet2-plugin/artifactId configuration configs config !-- here's where you specify which xdoclet-plugin to run, by its class name -- pluginorg.xdoclet.plugin.web.TaglibPlugin/plugin !-- here's some config for your plugin-- params jspversion2.0/jspversion destdir${basedir}/target/xdoclet/META-INF/destdir /params /config !-- run multiple plugins by repeating this config element -- /configs /configuration dependencies !-- here's where you specify which xdoclet-plugin you need, by its groupId/artifactId, and any additional dependency it might have - although you'll most likely already have these in your project, so no need to repeat them here -- dependency groupIdxdoclet-plugins/groupId artifactIdxdoclet-plugin-web/artifactId version1.0.4-SNAPSHOT/version /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.4/version /dependency dependency groupIdjavax.servlet/groupId artifactIdjsp-api/artifactId version2.0/version /dependency /dependencies executions execution goals goalxdoclet/goal /goals /execution /executions /plugin /plugins /build /project _ Ce message (et toutes les pièces jointes) sont confidentiels ; son contenu ne représente en aucun cas un engagement de la part de DEXIA SOFAXIS. Toute publication, utilisation ou diffusion, même partielle, doit être autorisée préalablement par l'émetteur. Si vous n'êtes pas destinataire de ce message, merci d'en avertir immédiatement l'expéditeur. Conformément aux dispositions de la loi n° 78-17 du 6 janvier 1978 relative à l'informatique, aux fichiers et aux libertés, vous pouvez obtenir communication et, le cas échéant, rectification ou suppression des informations vous concernant en vous adressant à DEXIA SOFAXIS - Route de Creton - 18110 VASSELAY _ Consultez notre site internet http://www.sofaxis.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie question re maven 1.0.2 genapp
When I run maven genapp I get the following error: Attempting to download commons-jelly-tags-interaction-1.0.jar. Error retrieving artifact from [http://www.ibiblio.org/maven/commons-jelly/jars/commons-jelly-tags-inte raction-1.0.jar]: java.net. ConnectException: Connection timed out: connect WARNING: Failed to download commons-jelly-tags-interaction-1.0.jar. The build cannot continue because of the following unsatisfied dependency: commons-jelly-tags-interaction-1.0.jar Three questions: 1. I can accessess the link from firefox so I assume I need to tell maven about my proxy. How do I do that? 2. I've already got commons-jelly-tags-interaction-1.0.jar in plugins (I also tried lib and bin too, no difference)Where should it be located? 3. Are all maven plugins named maven-something.jar? Thanks, John H - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2 EAR, WAR, EJB Common Dependencies
Hi, WAR POM plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration warSourceDirectorywebApplication/warSourceDirectory warSourceExcludes image/**,htmlapp/**,WEB-INF/lib/*.jar /warSourceExcludes archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration /plugin They should generate manifest.mf files for you. Yes, it generates manifest.mf but it also include all *.jar files which are dependencies of the war project. I checked the sources of the war plugin and it uses excludes only for files copied from src directory, not project dependencies. Why? Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question re maven 1.0.2 genapp
Hi On 1/31/06, Hines, John [EMAIL PROTECTED] wrote: When I run maven genapp I get the following error: Attempting to download commons-jelly-tags-interaction-1.0.jar. Error retrieving artifact from [http://www.ibiblio.org/maven/commons-jelly/jars/commons-jelly-tags-inte raction-1.0.jar]: java.net. ConnectException: Connection timed out: connect WARNING: Failed to download commons-jelly-tags-interaction-1.0.jar. The build cannot continue because of the following unsatisfied dependency: commons-jelly-tags-interaction-1.0.jar Three questions: 1. I can accessess the link from firefox so I assume I need to tell maven about my proxy. How do I do that? http://maven.apache.org/maven-1.x/reference/properties.html#Proxy_Properties 2. I've already got commons-jelly-tags-interaction-1.0.jar in plugins (I also tried lib and bin too, no difference)Where should it be located? in ~/.maven/repository/commons-jelly/jars/ 3. Are all maven plugins named maven-something.jar? yes for all plugins bundled with maven arnaud Thanks, John H - 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]
Packaging dependent jars within a jar project
I have been trying to find a way to get Maven to produce a jar artifact that includes (some of) its dependent artifacts, without much luck. I have seen a few ways that promise this, but none panned out in the ways that we need. If anyone can suggest a way to do this, I'd be much obliged. I included my POM and assembly files below. I did get this to work somewhat using assembly descriptors, but I also need the manifest to have certain project-specific values which get inserted using the standard jar plugin under manifestEntries. They don't get inserted into the *-jar-with-dependencies that the assembly plugin produces. There's also talk about the Classworld's Uberjar plugin, but I cannot figure out how to invoke it. The artifact id is not found to download, and I don't know to configure it, despite all the documentation on it. It might be specific to Maven 1.x, I am using Maven 2.0.2. Thanks to all in advance, -Dov Wasserman Project POM: 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 parent groupIdbig-project/groupId artifactIdclient-components/artifactId version1.0-SNAPSHOT/version /parent groupIdbig-project-component/groupId artifactIdcomponent-search/artifactId packagingjar/packaging nameMy Special Web Component/name urlhttp://maven.apache.org/url version1.0-SNAPSHOT/version dependencies dependency groupId.../groupId artifactId.../artifactId version1.0-SNAPSHOT/version scopeprovided/scope /dependency !-- this is the jar I want included in this project's jar file -- dependency groupIdbig-project/groupId artifactIdlocal-model/artifactId version1.0-SNAPSHOT/version scopecompile/scope /dependency dependency groupIdsun/groupId artifactIdservlet-api/artifactId version2.4/version scopeprovided/scope /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies build pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifestEntries My-Component-Class com.foo.client.component.SearchComponent /Component-Class Component-IdCS/Component-Id .../ /manifestEntries /archive /configuration /plugin plugin artifactIdmaven-assembly-plugin/artifactId configuration descriptor src/main/assembly/dep.xml /descriptor archive manifestEntries !-- anything entries here are ignored -- /manifestEntries /archive /configuration /plugin /plugins /pluginManagement /build /project Assembly descriptor: assembly idjar-with-dependencies/id formats formatjar/format /formats includeBaseDirectoryfalse/includeBaseDirectory fileSets fileSet directorytarget/classes/directory outputDirectory//outputDirectory /fileSet /fileSets dependencySets dependencySet outputDirectory/lib//outputDirectory unpackfalse/unpack scoperuntime/scope /dependencySet /dependencySets /assembly
[m2] Discovering the plugin's dependencies inside a Mojo
Hi, I'm writing a small mojo, and I need to invoke an external process. That process needs some of the plugin's dependencies - how do I get the equivalent of project.getRuntime...() for the *plugin* itself (rather than the project it is currently building)? Regards, _ Arik Kfir[EMAIL PROTECTED]
Re: m2 offline: Can't read the url
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brett Porter wrote: fixed in SVN. Thanks Brett, great. On 1/31/06, Joerg Hohwiller [EMAIL PROTECTED] wrote: Hi there, it seems that the projectinfo plugin does not take care of the offline-mode. If I run mvn -o site it fails with the Error [INFO] Can't read the url [http://www.apache.org/liceneses/LICENSE-2.0.txt] : www.apache.org This is my license file. Anyways in offline mode maven should not check this URL because he can't. Am I missing something? Regards Jörg - - 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] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFD39+7mPuec2Dcv/8RAnv6AJ9XdIWXRM2v5jUW2cEjwPiyEK4CCQCggFb5 20egwnabs2I9eMJW81S6SoQ= =QQlK -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need help setting up a transitive dependency
Here's a maven 101 question: I need help setting up a transitive dependency. I have project A, which is properly set up and building using maven. Now I need to configure project B to depend on project A. How do I configure this in my pom.xml to refer to another project? Thanks for your help Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need help setting up a transitive dependency
Add a section in project B's pom.xml: dependencies dependency groupIdmy-group/groupId artifactIdproject-A/artifactId version1.0-SNAPSHOT/version scopecompile/scope /dependency ... /dependencies You might need to configure the scope property to something other than compile if you don't want A's jar file to be included with B's artifacts. Generally, you can leave it as compile. Hope this helps, -Dov -Original Message- From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 5:39 PM To: users@maven.apache.org Subject: Need help setting up a transitive dependency Here's a maven 101 question: I need help setting up a transitive dependency. I have project A, which is properly set up and building using maven. Now I need to configure project B to depend on project A. How do I configure this in my pom.xml to refer to another project? Thanks for your help Brad - 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]
problem configuring a maven 2 project
Hi all, I am trying continuum. I am having problems getting it to work with a project under tigris. Does anyone have experience with this? thanks is advance
Re: [m2] maven-checkstyle-plugin 2.0 can't be retrieved
works. thanks On 1/31/06, Brett Porter [EMAIL PROTECTED] wrote: My mistake. I will correct the metadata. On 2/1/06, Lee Meador [EMAIL PROTECTED] wrote: I have the same thing as Kristof in my parent POM in the reportingplugins section. There is no reference in the child POM. I removed the checkstyle plugin from my repository. But I get version 2.0-beta-1 downloading like Yann. This happens if I put no version in the POM (as Kristof) or if I put version2.0/version in the POM. Thanks. -- Lee Meador On 1/31/06, Kristof Vanbecelaere [EMAIL PROTECTED] wrote: I manually removed a beta from my local repository. I refer to the plugin using plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId configuration configLocation checkstyle-jjguidelines.xml /configLocation /configuration /plugin and running mvn site downloads it for me. On Jan 31, 2006, at 13:50, Yann Le Du wrote: Hi, I've seen maven-checkstyle-plugin 2.0 is available since yesterday, which is good news ! http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven- checkstyle-plugin/ Though, I'm still retrieving 2.0-beta-1, even with plugin update. maven-metadata still contains release2.0-beta-1/release , this may be the cause - or is it on purpose ? http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven- checkstyle-plugin/maven-metadata.xml - Yann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
Re: Need help setting up a transitive dependency
Dov, Thanks for the reply. Ok, so this isn't going to trigger a build of project A, its just going to pull project A from the repository as it would any other dependency. Is this correct, or am I still missing something? How do I get project B to automatically pull all of project A's dependencies along with project A? Will this happen automatically? Brad Dov Wasserman wrote: Add a section in project B's pom.xml: dependencies dependency groupIdmy-group/groupId artifactIdproject-A/artifactId version1.0-SNAPSHOT/version scopecompile/scope /dependency ... /dependencies You might need to configure the scope property to something other than compile if you don't want A's jar file to be included with B's artifacts. Generally, you can leave it as compile. Hope this helps, -Dov -Original Message- From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 5:39 PM To: users@maven.apache.org Subject: Need help setting up a transitive dependency Here's a maven 101 question: I need help setting up a transitive dependency. I have project A, which is properly set up and building using maven. Now I need to configure project B to depend on project A. How do I configure this in my pom.xml to refer to another project? Thanks for your help Brad - 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: Need help setting up a transitive dependency
What type of projects are A and B? Jars? War and jar? Jar is not meant to be deployed, so it doesn't grab it dependent projects, it just references them for compiling (or testing). A war is meant to be deployed on its own, so its dependencies are pulled into it's WEB-INF/lib directory along with it when it's packaged up into a .war file artifact. If you specify all your dependencies with scope of compile, then they will all be pulled into the eventual war file, or other deployable artifact. Does that help explain things? -Original Message- From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 5:49 PM To: Maven Users List Subject: Re: Need help setting up a transitive dependency Dov, Thanks for the reply. Ok, so this isn't going to trigger a build of project A, its just going to pull project A from the repository as it would any other dependency. Is this correct, or am I still missing something? How do I get project B to automatically pull all of project A's dependencies along with project A? Will this happen automatically? Brad Dov Wasserman wrote: Add a section in project B's pom.xml: dependencies dependency groupIdmy-group/groupId artifactIdproject-A/artifactId version1.0-SNAPSHOT/version scopecompile/scope /dependency ... /dependencies You might need to configure the scope property to something other than compile if you don't want A's jar file to be included with B's artifacts. Generally, you can leave it as compile. Hope this helps, -Dov -Original Message- From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 5:39 PM To: users@maven.apache.org Subject: Need help setting up a transitive dependency Here's a maven 101 question: I need help setting up a transitive dependency. I have project A, which is properly set up and building using maven. Now I need to configure project B to depend on project A. How do I configure this in my pom.xml to refer to another project? Thanks for your help Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help setting up a transitive dependency
Dov, Thanks for the reply. That sort of explains things. I think what I am really getting at is this: when a project (call it project B) has a dependency that is another one of your own projects (call the dependency A) , rather than a third party library (jar), is the dependency (A) being pulled from the repository, or is the dependency (A) being built from the project as a result of project B being built? If the answer is that A is pulled from the repository, it sounds like A must first be built and published to the repository. That's a simple conclusion -- but if that's the case, it means that in order to accomplish parallel development in projects A and B, it means that A is going to have to be published in some state of partial completion to the repository, in order for B to build? On the other hand, if the answer is that A is being built on demand from source, then it solves the parallel development issue, but it brings up the issue of how to specify that you want a project to build rather than the dependency to be pulled from the repository. I'm pretty sure the answer is the former, but I just need clarification on a couple of these items. Brad On Jan 31, 2006, at 4:07 PM, Dov Wasserman wrote: What type of projects are A and B? Jars? War and jar? Jar is not meant to be deployed, so it doesn't grab it dependent projects, it just references them for compiling (or testing). A war is meant to be deployed on its own, so its dependencies are pulled into it's WEB-INF/lib directory along with it when it's packaged up into a .war file artifact. If you specify all your dependencies with scope of compile, then they will all be pulled into the eventual war file, or other deployable artifact. Does that help explain things? -Original Message- From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 5:49 PM To: Maven Users List Subject: Re: Need help setting up a transitive dependency Dov, Thanks for the reply. Ok, so this isn't going to trigger a build of project A, its just going to pull project A from the repository as it would any other dependency. Is this correct, or am I still missing something? How do I get project B to automatically pull all of project A's dependencies along with project A? Will this happen automatically? Brad Dov Wasserman wrote: Add a section in project B's pom.xml: dependencies dependency groupIdmy-group/groupId artifactIdproject-A/artifactId version1.0-SNAPSHOT/version scopecompile/scope /dependency ... /dependencies You might need to configure the scope property to something other than compile if you don't want A's jar file to be included with B's artifacts. Generally, you can leave it as compile. Hope this helps, -Dov -Original Message- From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 5:39 PM To: users@maven.apache.org Subject: Need help setting up a transitive dependency Here's a maven 101 question: I need help setting up a transitive dependency. I have project A, which is properly set up and building using maven. Now I need to configure project B to depend on project A. How do I configure this in my pom.xml to refer to another project? Thanks for your help Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] binding mojos to lifecycle
Hi, I have a small mojo which I want to bind to the 'process-classes' phase. I've read http://maven.apache.org/developers/mojo-api-specification.html which indicates I should add a @phase process-classes to the class comment, and I did: /** * * @goal generate * @phase process-classes * @author arik */ public class { ... } In the project that uses this plugin I declared: build plugins plugin groupIdmyGroupId/groupId artifactIdmyPluginArtifactId/artifactId configuration !-- ... some configuration... -- /configuration /plugin /plugins /build But the mojo isn't activated. If, however, I add this to the invoking POM (inside the above plugin section): executions execution phaseprocess-classes/phase goals goalgenerate/goal /goals /execution /executions everything works. It looks like I'm missing something but I can't figure out what...I went through all of the guides in the M2 site, but couldn't find a reason for this. Isn't M2 supposed to bind my mojo automatically (due to the @phase tag)? -- Regards, _ Arik Kfir[EMAIL PROTECTED]
Re: [m2] binding mojos to lifecycle
@phase xyz means you dont have to define phase in your plugin execution ( use default phase defined mojo). But you still need to define your plugin executions. However if you want hardwire to a phase when mojo is invoked from command line use @execute. See maven-assembly-plugin for example. -D On 1/31/06, Arik Kfir [EMAIL PROTECTED] wrote: Hi, I have a small mojo which I want to bind to the 'process-classes' phase. I've read http://maven.apache.org/developers/mojo-api-specification.html which indicates I should add a @phase process-classes to the class comment, and I did: /** * * @goal generate * @phase process-classes * @author arik */ public class { ... } In the project that uses this plugin I declared: build plugins plugin groupIdmyGroupId/groupId artifactIdmyPluginArtifactId/artifactId configuration !-- ... some configuration... -- /configuration /plugin /plugins /build But the mojo isn't activated. If, however, I add this to the invoking POM (inside the above plugin section): executions execution phaseprocess-classes/phase goals goalgenerate/goal /goals /execution /executions everything works. It looks like I'm missing something but I can't figure out what...I went through all of the guides in the M2 site, but couldn't find a reason for this. Isn't M2 supposed to bind my mojo automatically (due to the @phase tag)? -- Regards, _ Arik Kfir[EMAIL PROTECTED]
RE: [m2] binding mojos to lifecycle
Look at it the other way. You've told maven that you are interested in having this plugin execute at some point during your lifecycle but you haven't defined which GOAL to execute. Remember a plugin can have N goals. Maven should use the goal's default phase if you don't specify the phase element of the execution. -Original Message- From: Arik Kfir [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 5:39 PM To: Maven Users List Subject: [m2] binding mojos to lifecycle Hi, I have a small mojo which I want to bind to the 'process-classes' phase. I've read http://maven.apache.org/developers/mojo-api-specification.html which indicates I should add a @phase process-classes to the class comment, and I did: /** * * @goal generate * @phase process-classes * @author arik */ public class { ... } In the project that uses this plugin I declared: build plugins plugin groupIdmyGroupId/groupId artifactIdmyPluginArtifactId/artifactId configuration !-- ... some configuration... -- /configuration /plugin /plugins /build But the mojo isn't activated. If, however, I add this to the invoking POM (inside the above plugin section): executions execution phaseprocess-classes/phase goals goalgenerate/goal /goals /execution /executions everything works. It looks like I'm missing something but I can't figure out what...I went through all of the guides in the M2 site, but couldn't find a reason for this. Isn't M2 supposed to bind my mojo automatically (due to the @phase tag)? -- Regards, _ Arik Kfir[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] binding mojos to lifecycle
Hi Dan, Actually, what I want is the first option - I want that users of the plugin *won't* have to define 'executions' - only specify my plugin in their plugins section (along with optional configuration) and rely on me to know at which phase to invoke. Perhaps I'm getting it all wrong: as I understood, if I specify @phase xyz than if the using project specifies: plugins plugin groupIdmyPluginGroupId... artifactIdmyPluginArtifactId... Than my mojo should be invoked at the phase specified in the @phase xyz, no? Thanks for the help! On 2/1/06, dan tran [EMAIL PROTECTED] wrote: @phase xyz means you dont have to define phase in your plugin execution ( use default phase defined mojo). But you still need to define your plugin executions. However if you want hardwire to a phase when mojo is invoked from command line use @execute. See maven-assembly-plugin for example. -D On 1/31/06, Arik Kfir [EMAIL PROTECTED] wrote: Hi, I have a small mojo which I want to bind to the 'process-classes' phase. I've read http://maven.apache.org/developers/mojo-api-specification.html which indicates I should add a @phase process-classes to the class comment, and I did: /** * * @goal generate * @phase process-classes * @author arik */ public class { ... } In the project that uses this plugin I declared: build plugins plugin groupIdmyGroupId/groupId artifactIdmyPluginArtifactId/artifactId configuration !-- ... some configuration... -- /configuration /plugin /plugins /build But the mojo isn't activated. If, however, I add this to the invoking POM (inside the above plugin section): executions execution phaseprocess-classes/phase goals goalgenerate/goal /goals /execution /executions everything works. It looks like I'm missing something but I can't figure out what...I went through all of the guides in the M2 site, but couldn't find a reason for this. Isn't M2 supposed to bind my mojo automatically (due to the @phase tag)? -- Regards, _ Arik Kfir[EMAIL PROTECTED] -- Regards, _ Arik Kfir[EMAIL PROTECTED]
Re: [m2] binding mojos to lifecycle
Hi Mike, I'm not sure I follow - I specify the @phase inside my mojo (which is basically a goal, right?) so as-far-as-I-understand maven should know which goal to invoke... On 2/1/06, Mike Perham [EMAIL PROTECTED] wrote: Look at it the other way. You've told maven that you are interested in having this plugin execute at some point during your lifecycle but you haven't defined which GOAL to execute. Remember a plugin can have N goals. Maven should use the goal's default phase if you don't specify the phase element of the execution. -Original Message- From: Arik Kfir [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 5:39 PM To: Maven Users List Subject: [m2] binding mojos to lifecycle Hi, I have a small mojo which I want to bind to the 'process-classes' phase. I've read http://maven.apache.org/developers/mojo-api-specification.html which indicates I should add a @phase process-classes to the class comment, and I did: /** * * @goal generate * @phase process-classes * @author arik */ public class { ... } In the project that uses this plugin I declared: build plugins plugin groupIdmyGroupId/groupId artifactIdmyPluginArtifactId/artifactId configuration !-- ... some configuration... -- /configuration /plugin /plugins /build But the mojo isn't activated. If, however, I add this to the invoking POM (inside the above plugin section): executions execution phaseprocess-classes/phase goals goalgenerate/goal /goals /execution /executions everything works. It looks like I'm missing something but I can't figure out what...I went through all of the guides in the M2 site, but couldn't find a reason for this. Isn't M2 supposed to bind my mojo automatically (due to the @phase tag)? -- Regards, _ Arik Kfir[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, _ Arik Kfir[EMAIL PROTECTED]
[m2] phases and goals
Can someone point me to some doco that explains a phase, goal and mojo and lists the available phases. I thought I vaguely understood, but have become confused by the thread on binding mojos to lifecycle. William - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] binding mojos to lifecycle
A mojo is a goal, yes. What's to stop you from having two mojos, each with the same default phase? -Original Message- From: Arik Kfir [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 6:02 PM To: Maven Users List Subject: Re: [m2] binding mojos to lifecycle Hi Mike, I'm not sure I follow - I specify the @phase inside my mojo (which is basically a goal, right?) so as-far-as-I-understand maven should know which goal to invoke... On 2/1/06, Mike Perham [EMAIL PROTECTED] wrote: Look at it the other way. You've told maven that you are interested in having this plugin execute at some point during your lifecycle but you haven't defined which GOAL to execute. Remember a plugin can have N goals. Maven should use the goal's default phase if you don't specify the phase element of the execution. -Original Message- From: Arik Kfir [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 5:39 PM To: Maven Users List Subject: [m2] binding mojos to lifecycle Hi, I have a small mojo which I want to bind to the 'process-classes' phase. I've read http://maven.apache.org/developers/mojo-api-specification.html which indicates I should add a @phase process-classes to the class comment, and I did: /** * * @goal generate * @phase process-classes * @author arik */ public class { ... } In the project that uses this plugin I declared: build plugins plugin groupIdmyGroupId/groupId artifactIdmyPluginArtifactId/artifactId configuration !-- ... some configuration... -- /configuration /plugin /plugins /build But the mojo isn't activated. If, however, I add this to the invoking POM (inside the above plugin section): executions execution phaseprocess-classes/phase goals goalgenerate/goal /goals /execution /executions everything works. It looks like I'm missing something but I can't figure out what...I went through all of the guides in the M2 site, but couldn't find a reason for this. Isn't M2 supposed to bind my mojo automatically (due to the @phase tag)? -- Regards, _ Arik Kfir[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, _ Arik Kfir[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] phases and goals
Best I know of: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycl e.html -Original Message- From: William Ferguson [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 6:12 PM To: users@maven.apache.org Subject: [m2] phases and goals Can someone point me to some doco that explains a phase, goal and mojo and lists the available phases. I thought I vaguely understood, but have become confused by the thread on binding mojos to lifecycle. William - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] binding mojos to lifecycle
What's more, when I add @execute phase=compile it still doesn't work... On 2/1/06, Arik Kfir [EMAIL PROTECTED] wrote: I see...but I still don't understand then, how I can bind my mojo to a specific phase in the lifecycle, without triggering a parallel lifecycle run (which is @execute, right?). If I bind to the 'process-classes', and specifiy @execute phase=compile I wouldn't want to cause maven to initiate another run and recompile the project since it already did that. My second objective is to spare the plugin users from specifying the executions element because it seems to me it's a decision my plugin should make - not the users. Thanks for your kind help... On 2/1/06, Mike Perham [EMAIL PROTECTED] wrote: A mojo is a goal, yes. What's to stop you from having two mojos, each with the same default phase? -Original Message- From: Arik Kfir [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 6:02 PM To: Maven Users List Subject: Re: [m2] binding mojos to lifecycle Hi Mike, I'm not sure I follow - I specify the @phase inside my mojo (which is basically a goal, right?) so as-far-as-I-understand maven should know which goal to invoke... On 2/1/06, Mike Perham [EMAIL PROTECTED] wrote: Look at it the other way. You've told maven that you are interested in having this plugin execute at some point during your lifecycle but you haven't defined which GOAL to execute. Remember a plugin can have N goals. Maven should use the goal's default phase if you don't specify the phase element of the execution. -Original Message- From: Arik Kfir [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 5:39 PM To: Maven Users List Subject: [m2] binding mojos to lifecycle Hi, I have a small mojo which I want to bind to the 'process-classes' phase. I've read http://maven.apache.org/developers/mojo-api-specification.html which indicates I should add a @phase process-classes to the class comment, and I did: /** * * @goal generate * @phase process-classes * @author arik */ public class { ... } In the project that uses this plugin I declared: build plugins plugin groupIdmyGroupId/groupId artifactIdmyPluginArtifactId/artifactId configuration !-- ... some configuration... -- /configuration /plugin /plugins /build But the mojo isn't activated. If, however, I add this to the invoking POM (inside the above plugin section): executions execution phaseprocess-classes/phase goals goalgenerate/goal /goals /execution /executions everything works. It looks like I'm missing something but I can't figure out what...I went through all of the guides in the M2 site, but couldn't find a reason for this. Isn't M2 supposed to bind my mojo automatically (due to the @phase tag)? -- Regards, _ Arik Kfir[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, _ Arik Kfir[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, _ Arik Kfir[EMAIL PROTECTED] -- Regards, _ Arik Kfir[EMAIL PROTECTED]
Re: [m2] binding mojos to lifecycle
It only works if you run the mojo on command line ;-) -D On 1/31/06, Arik Kfir [EMAIL PROTECTED] wrote: What's more, when I add @execute phase=compile it still doesn't work... On 2/1/06, Arik Kfir [EMAIL PROTECTED] wrote: I see...but I still don't understand then, how I can bind my mojo to a specific phase in the lifecycle, without triggering a parallel lifecycle run (which is @execute, right?). If I bind to the 'process-classes', and specifiy @execute phase=compile I wouldn't want to cause maven to initiate another run and recompile the project since it already did that. My second objective is to spare the plugin users from specifying the executions element because it seems to me it's a decision my plugin should make - not the users. Thanks for your kind help... On 2/1/06, Mike Perham [EMAIL PROTECTED] wrote: A mojo is a goal, yes. What's to stop you from having two mojos, each with the same default phase? -Original Message- From: Arik Kfir [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 6:02 PM To: Maven Users List Subject: Re: [m2] binding mojos to lifecycle Hi Mike, I'm not sure I follow - I specify the @phase inside my mojo (which is basically a goal, right?) so as-far-as-I-understand maven should know which goal to invoke... On 2/1/06, Mike Perham [EMAIL PROTECTED] wrote: Look at it the other way. You've told maven that you are interested in having this plugin execute at some point during your lifecycle but you haven't defined which GOAL to execute. Remember a plugin can have N goals. Maven should use the goal's default phase if you don't specify the phase element of the execution. -Original Message- From: Arik Kfir [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 5:39 PM To: Maven Users List Subject: [m2] binding mojos to lifecycle Hi, I have a small mojo which I want to bind to the 'process-classes' phase. I've read http://maven.apache.org/developers/mojo-api-specification.html which indicates I should add a @phase process-classes to the class comment, and I did: /** * * @goal generate * @phase process-classes * @author arik */ public class { ... } In the project that uses this plugin I declared: build plugins plugin groupIdmyGroupId/groupId artifactIdmyPluginArtifactId/artifactId configuration !-- ... some configuration... -- /configuration /plugin /plugins /build But the mojo isn't activated. If, however, I add this to the invoking POM (inside the above plugin section): executions execution phaseprocess-classes/phase goals goalgenerate/goal /goals /execution /executions everything works. It looks like I'm missing something but I can't figure out what...I went through all of the guides in the M2 site, but couldn't find a reason for this. Isn't M2 supposed to bind my mojo automatically (due to the @phase tag)? -- Regards, _ Arik Kfir[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, _ Arik Kfir[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, _ Arik Kfir[EMAIL PROTECTED] -- Regards, _ Arik Kfir[EMAIL PROTECTED]
Re: Need help setting up a transitive dependency
Thanks all for the help! Brad Stephen Duncan wrote: A needs to be built, and installed in the local repository. It does not have to be deployed to any remote repository. -Stephen On 1/31/06, Brad O'Hearne [EMAIL PROTECTED] wrote: Dov, Thanks for the reply. That sort of explains things. I think what I am really getting at is this: when a project (call it project B) has a dependency that is another one of your own projects (call the dependency A) , rather than a third party library (jar), is the dependency (A) being pulled from the repository, or is the dependency (A) being built from the project as a result of project B being built? If the answer is that A is pulled from the repository, it sounds like A must first be built and published to the repository. That's a simple conclusion -- but if that's the case, it means that in order to accomplish parallel development in projects A and B, it means that A is going to have to be published in some state of partial completion to the repository, in order for B to build? On the other hand, if the answer is that A is being built on demand from source, then it solves the parallel development issue, but it brings up the issue of how to specify that you want a project to build rather than the dependency to be pulled from the repository. I'm pretty sure the answer is the former, but I just need clarification on a couple of these items. Brad On Jan 31, 2006, at 4:07 PM, Dov Wasserman wrote: What type of projects are A and B? Jars? War and jar? Jar is not meant to be deployed, so it doesn't grab it dependent projects, it just references them for compiling (or testing). A war is meant to be deployed on its own, so its dependencies are pulled into it's WEB-INF/lib directory along with it when it's packaged up into a .war file artifact. If you specify all your dependencies with scope of compile, then they will all be pulled into the eventual war file, or other deployable artifact. Does that help explain things? -Original Message- From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 5:49 PM To: Maven Users List Subject: Re: Need help setting up a transitive dependency Dov, Thanks for the reply. Ok, so this isn't going to trigger a build of project A, its just going to pull project A from the repository as it would any other dependency. Is this correct, or am I still missing something? How do I get project B to automatically pull all of project A's dependencies along with project A? Will this happen automatically? Brad Dov Wasserman wrote: Add a section in project B's pom.xml: dependencies dependency groupIdmy-group/groupId artifactIdproject-A/artifactId version1.0-SNAPSHOT/version scopecompile/scope /dependency ... /dependencies You might need to configure the scope property to something other than compile if you don't want A's jar file to be included with B's artifacts. Generally, you can leave it as compile. Hope this helps, -Dov -Original Message- From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 5:39 PM To: users@maven.apache.org Subject: Need help setting up a transitive dependency Here's a maven 101 question: I need help setting up a transitive dependency. I have project A, which is properly set up and building using maven. Now I need to configure project B to depend on project A. How do I configure this in my pom.xml to refer to another project? Thanks for your help Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.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]
Maven 1.1b Junit tests - Threads close down
Hi, I have a Junit test class, mytest and I am executing maven test. In mytest, I am executing multiple threads, when I execute maven test, the threads starts and close down automatically. I have set maven.junit.fork=true(in maven-test-plugin) but I still have the same problem. I believe this is a maven issue as when I run the junit test without maven, they work fine. Can anyone help? Thanks Ashley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hibernate with Maven
Hi Everyone, I am trying to compile a project that uses Hibernate (3.1.1) with Maven 2. It seems like there is a dependency missing at ibiblio (http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/). Is it a known issue or I'm doing something wrong? Regards, Maciej Mastalarczuk
Re: Hibernate with Maven
Hello, AFAIK, javax.transaction:jta:1.0.1B is a Sun jar that can't be redistributed in ibiblio. You'll have to manually install that in your local repository ( http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html). You can download it here: http://java.sun.com/products/jta/ Cheers! Nap On 2/1/06, Maciej Mastalarczuk [EMAIL PROTECTED] wrote: Hi Everyone, I am trying to compile a project that uses Hibernate (3.1.1) with Maven 2. It seems like there is a dependency missing at ibiblio (http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/). Is it a known issue or I'm doing something wrong? Regards, Maciej Mastalarczuk
RE: [***SPAM*** Score/Req: 10.4/5.0] Re: Hibernate with Maven
Thanks, I also discovered that you can exclude it from download (if say this jar is already available on the server) You can do the following: dependency groupIdorg.hibernate/groupId artifactIdhibernate/artifactId version3.1.1/version exclusions exclusion groupIdjavax.transaction/groupId artifactIdjta/artifactId /exclusion /exclusions /dependency Seems to be working for me. Regards Maciej -Original Message- From: Napoleon Esmundo Ramirez [mailto:[EMAIL PROTECTED] Sent: Wednesday, 1 February 2006 2:51 PM To: Maven Users List Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: Hibernate with Maven Hello, AFAIK, javax.transaction:jta:1.0.1B is a Sun jar that can't be redistributed in ibiblio. You'll have to manually install that in your local repository ( http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html). You can download it here: http://java.sun.com/products/jta/ Cheers! Nap On 2/1/06, Maciej Mastalarczuk [EMAIL PROTECTED] wrote: Hi Everyone, I am trying to compile a project that uses Hibernate (3.1.1) with Maven 2. It seems like there is a dependency missing at ibiblio (http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/). Is it a known issue or I'm doing something wrong? Regards, Maciej Mastalarczuk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SVN url password
Does anyone know where is the SCM user password provided when using SCM url? As from the specification (and checked on svnScmProviderRepository class) the password is not gathered for the URL, as in the case on CVS. I have checked whether the password was taken from settings.xml file but it seems it is not the case. Thanks! Alex
RE: [***SPAM*** Score/Req: 10.4/5.0] SVN url password
Are you talking about SVN password or SCM password? The SCM will be picked up from settings.xml assuming you use the reporitory id that matches the server defined in settings.xml. The SVN credentials can be cached in your home directory under .svn. Regards, Maciej -Original Message- From: Alejandro Nicolas Mascarell [mailto:[EMAIL PROTECTED] Sent: Wednesday, 1 February 2006 3:38 PM To: Maven Users List Subject: [***SPAM*** Score/Req: 10.4/5.0] SVN url password Does anyone know where is the SCM user password provided when using SCM url? As from the specification (and checked on svnScmProviderRepository class) the password is not gathered for the URL, as in the case on CVS. I have checked whether the password was taken from settings.xml file but it seems it is not the case. Thanks! Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]