Re: resources not in jar
You probably want to use the resources plugin. On http://maven.apache.org/plugins/index.html it's description is: Copy the resources to the output directory for including in the JAR. Regards, Gisbert Amm [EMAIL PROTECTED] wrote: Hi, I use maven 2.0.1 and have a problem with building a jar. The src structure of my project is: src/main/java src/main/config src/main/resources When I build my jar the files of the src/main/resources directory are not included! Could anybody give me a hint what is wrong? TIA Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: M2: Current directory (user.dir) problem in case of multi-module project.
Jörg Schaible wrote on Friday, January 13, 2006 1:42 AM: Hi Joern, Joern Huxhorn wrote: [snip] Is this a bug or a feature? I expected the current dir (user.dir) to change for every executed sub-module build. Any ideas how I could solve this problem? Absolute filenames are not really an option (that's my current workaround and it's a real burden) http://jira.codehaus.org/browse/MSUREFIRE-4 http://jira.codehaus.org/browse/MSUREFIRE-31 The upcoming or latest release should do it. The latest release contains this. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Run goal/script even after fail
Hi Patrick, When an error is detected and maven.test.failure.ignore=false the build is stopped, thus you can't use a post goal. What you can do is (not tested) : maven.test.failure.ignore=true and !-- generate xml for CI build report -- postGoal name=test:test attainGoal name=generatereport/ !-- You stop yourself the build -- j:if test=${maven.test.failure} fail message=There were test failures/ /j:if /postGoal if it doesn't work you can try to replace : ${maven.test.failure} by ${context.getVariable('maven.test.failure')} cheers Arnaud On 1/13/06, Patrick Villacorta [EMAIL PROTECTED] wrote: Hi, This is for Maven 1.0.2. I'm trying to run a plugin/goal after the junit tests to generate a test report. I tried creating a postGoal for this. However if the test goal fails, the post goal won't be run. Is there a way for me to run a goal or script even if the unit tests fail? I can't use the ignore failures option since this would cause continuum to display a build success. Thanks, Patrick = !-- generate xml for CI build report -- postGoal name=test:test attainGoal name=generatereport/ /postGoal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] eclipse project dependecy - how to define?
Sanjay, I'm not sure I understand your question (I'm not familiar with maven 1), but if you want the maven eclipse plugin to produce an eclipse project depending on another eclipse project (instead of depending on a jar in the local repo), then have a look at this: http://maven.apache.org/guides/mini/guide-ide-eclipse.html In the example, module1 depends on core. Running mvn eclipse:eclipse from the parent's directory results in a dependency on another eclipse project: // in module1/.classpath classpathentry kind=src path=/core/ instead of a dependency on a jar: // in module1/.classpath classpathentry kind=var path=M2_REPO/com/example/core/1.1.2/ core-1.1.2.jar/ Cheers, -Ralph. On 13.01.2006, at 03:25, Napoleon Esmundo Ramirez wrote: Hello, In Maven 2, it is not possible to define properties for a given dependency--according to the project descriptor ( http://maven.apache.org/maven-model/maven.html#class_dependency). I think you need a plugin that can be configured to handle such dependencies. Cheers! Nap On 1/13/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: posting again!! Eclipse plugin team, please advice. -- Forwarded message -- From: Sanjay Choudhary [EMAIL PROTECTED] Date: Jan 12, 2006 8:30 AM Subject: [M2] eclipse project dependecy - how to define? To: Maven Users List users@maven.apache.org In maven 1.0.2 we were able to define eclipse project dependency. For example dependency groupId artifactId version properties eclipse.dependencytrue/eclipse.dependency /properties /dependency How can I define project depency for Eclipse in M2? Pls. advice. Thanks -Sanjay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Run goal/script even after fail
I've just tested this (and was about to reply ;-)) and it works. j:set var=maven.test.failure.ignore value=true/ !-- generate xml for CI build report -- postGoal name=test:test attainGoal name=generatereport/ j:if test=${maven.test.failure} fail message=There were test failures./ /j:if /postGoal Regards, Gisbert Amm Arnaud HERITIER wrote: Hi Patrick, When an error is detected and maven.test.failure.ignore=false the build is stopped, thus you can't use a post goal. What you can do is (not tested) : maven.test.failure.ignore=true and !-- generate xml for CI build report -- postGoal name=test:test attainGoal name=generatereport/ !-- You stop yourself the build -- j:if test=${maven.test.failure} fail message=There were test failures/ /j:if /postGoal if it doesn't work you can try to replace : ${maven.test.failure} by ${context.getVariable('maven.test.failure')} cheers Arnaud On 1/13/06, Patrick Villacorta [EMAIL PROTECTED] wrote: Hi, This is for Maven 1.0.2. I'm trying to run a plugin/goal after the junit tests to generate a test report. I tried creating a postGoal for this. However if the test goal fails, the post goal won't be run. Is there a way for me to run a goal or script even if the unit tests fail? I can't use the ignore failures option since this would cause continuum to display a build success. Thanks, Patrick = !-- generate xml for CI build report -- postGoal name=test:test attainGoal name=generatereport/ /postGoal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: resources not in jar
Hi, It would be more helpful if you post your pom. -allan Gisbert Amm wrote: You probably want to use the resources plugin.On http://maven.apache.org/plugins/index.html it's description is: Copy the resources to the output directory for including in the JAR. Regards, Gisbert Amm [EMAIL PROTECTED] wrote: Hi, I use maven 2.0.1 and have a problem with building a jar. The src structure of my project is: src/main/java src/main/config src/main/resources When I build my jar the files of the src/main/resources directory are not included! Could anybody give me a hint what is wrong? TIA Martin - 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: Installing 3rd party JARs, how generating the pom?
Hi, -DgeneratePom=true That is exactly what I was searching for. I like it more and more how maven handles this jar stuff! Really a clean solution. Thanks for help, regards, Gerald On 1/13/06, Man-Chi Leung [EMAIL PROTECTED] wrote: yesterday, I just came across this wonderful document regarding maven repository and Design http://cvs.peopleware.be/training/maven/maven2/repositories.html ~manchi On Jan 13, 2006, at 7:39 AM, Treloar, Barrie (SAPOL) wrote: -Original Message- From: Man-Chi Leung [mailto:[EMAIL PROTECTED] Sent: Friday, 13 January 2006 2:24 AM To: Maven Users List Subject: Re: Installing 3rd party JARs, how generating the pom? to deploy in the local repository, do the following: $mvn install:install-file -Dfile=path-to-file -DgroupId=group- id \ -DartifactId=artifact-id -Dversion=version - Dpackaging=packaging for exmaple: mvn install:install-file -Dfile=easymock.jar -DgroupId=org.easymock - DartifactId=easymock -Dversion=2.0 -Dpackaging=jar -DgeneratePom=true anyway, in the future, it is better to setup a maven-proxy and deploy all 3rd party jar to a department internal maven repository You have a local repository, a company repository and then you might have a proxy which unifies the company repository, ibiblio and other repositories. There are two concepts it took me a while to work out. You install files to your local repository but you deploy to your company repository. As manchi points out you are better deploying these to your company repository so that it can be shared amongst all the developers. To install see http://maven.apache.org/guides/mini/guide-installing-3rd-party- jars.html and include the -DgeneratePom=true as manchi shows. To deploy see http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file- mojo.html e.g.: mvn deploy:deploy-file -DgroupId=GROUP_ID -DartifactId=ARTIFACT_ID \ -Dversion=VERSION_ID -DgeneratePom=true \ -Dpackaging=jar \ -Dfile=PATH/TO/JAR \ -DrepositoryId=YOUR_COMPANYS_REPO_ID \ -Durl=scp://YOUR_COMPANYS_REPO_IP/PATH/TO/REPO The latest version of deploy will now create the checksum files too. - 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] -- Gerald Muellan Schelleingasse 2/11 1040 Vienna, Austria 0043 699 11772506 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with a not valide pom
Hi, I have meant the repository on my machine. By the way, we have set up a corporate repository, this is really a better solution like the one i tried first. The way like maven handles this jar issue was not completely in my mind. Now I think i get the point, by using a parent pom and the jars are coming from the company repository. Thanks for help, regards, Gerald On 1/12/06, Alexandre Poitras [EMAIL PROTECTED] wrote: Your pom seems fine and no it doesn't need the schema declaration to work. Maybe it's a distribution issue. How did you deploy your project to your local repository? And when you say local repository, are you speaking about an internal corporation repository or the repository created on your desktop in your home folder by Maven when it downloads dependencies or plugins? I think the issue might come from your other POMs not able to locate your base project. By the way, a better way to manage the dependencies if they are all owned by the same project, would be to use a parent pom. There's is a example in the getstart guide if I remember correctly. On 1/11/06, Gerald Müllan [EMAIL PROTECTED] wrote: Yes, sure; you are absolutely right :) original pom is: 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 groupIdat.oekb.adas/groupId artifactIdadasBase/artifactId packagingjar/packaging versionSNAPSHOT/version nameADAS II - AdasBase/name urlhttp://www.oekb.at/url description This is the Base Bundle needed for AdasMain and AdasScheduler /description dependencies ... /dependencies build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin /plugins /build repositories repository idibiblio/id urlhttp://www.ibiblio.org/maven2/url /repository /repositories /project Nothing special in here i think. The dependencies are hardcopied with system scope and are located in a own lib directory. The generated pom is: ?xml version=1.0?project modelVersion4.0.0/modelVersion groupIdat.oekb.adas/groupId artifactIdadasBase/artifactId nameADAS II - AdasBase/name versionSNAPSHOT/version descriptionThis is the Base Bundle needed for AdasMain and AdasScheduler/description urlhttp://www.oekb.at/url build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin /plugins /build repositories repository idibiblio/id urlhttp://www.ibiblio.org/maven2/url /repository /repositories dependencies ... /dependencies distributionManagement statusdeployed/status /distributionManagement /project I miss the schema definition, but normally there is no need to touch the file, isn't it? Thanks, regards, Gerald On 1/11/06, Alexandre Poitras [EMAIL PROTECTED] wrote: Can you copy one of the pom? Hard to tell without any information. On 1/11/06, Gerald Müllan [EMAIL PROTECTED] wrote: Hi *, I started to migrate the structure of a project to maven 2.0.1. The project consists of three modules, like this: -Base -Main -Other Stuff However, the last two have a dependency to the base module. So, first task was to install a jar from base module to the local repository. This works fine, but while trying to compile the other two, there was the exception of a not valide pom. The pom was generated by maven from the first install corresponding to the base pom, right? But this one was valid. However, what could be the reason for the not validated pom? I have checked out myfaces, there i tried to build the project. Exception was: Not a v4.0.0 POM Do i miss a plugin? Thx for help, regards, Gerald -- Gerald Muellan Schelleingasse 2/11 1040 Wien 0043 699 11772506 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexandre Poitras Québec, Canada -- Gerald Muellan Schelleingasse 2/11 1040 Wien 0043 699 11772506 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Re: Run goal/script even after fail
Yup this works. Thanks to Arnaud and Gisbert! Patrick Gisbert Amm wrote: I've just tested this (and was about to reply ;-)) and it works. j:set var=maven.test.failure.ignore value=true/ !-- generate xml for CI build report -- postGoal name=test:test attainGoal name=generatereport/ j:if test=${maven.test.failure} fail message=There were test failures./ /j:if /postGoal Regards, Gisbert Amm Arnaud HERITIER wrote: Hi Patrick, When an error is detected and maven.test.failure.ignore=false the build is stopped, thus you can't use a post goal. What you can do is (not tested) : maven.test.failure.ignore=true and !-- generate xml for CI build report -- postGoal name=test:test attainGoal name=generatereport/ !-- You stop yourself the build -- j:if test=${maven.test.failure} fail message=There were test failures/ /j:if /postGoal if it doesn't work you can try to replace : ${maven.test.failure} by ${context.getVariable('maven.test.failure')} cheers Arnaud On 1/13/06, Patrick Villacorta [EMAIL PROTECTED] wrote: Hi, This is for Maven 1.0.2. I'm trying to run a plugin/goal after the junit tests to generate a test report. I tried creating a postGoal for this. However if the test goal fails, the post goal won't be run. Is there a way for me to run a goal or script even if the unit tests fail? I can't use the ignore failures option since this would cause continuum to display a build success. Thanks, Patrick = !-- generate xml for CI build report -- postGoal name=test:test attainGoal name=generatereport/ /postGoal - 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] Doxia color
Hi, Is there a way using doxia to write a portion of text in color ? I mean something around this : sink.color( RED ); sink.text( SomeTextToPutInColor ); sink.color_(); The above does not exist, but I can't find a way to do it. Is it even possible today ? I just want to put in red an error-like within the javancss plugin for maven2 and don't know how to do it, just to say it's not to do fancy things. thx in advance -- Jean-Laurent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing 3rd party JARs, how generating the pom?
It's because you don't need Maven-Proxy to setup a company repository but most people install Maven-Proxy and their repository at the same location. Maven-Proxy is really just a proxy to reduce the downloading of jars but since it uses a standard repository layout, usually people share the repository location between the two. This way you don't have to define a new repository in your configuration. But if you need it, iou could easily put your corporation repository on a totally different server, you would just need to add a repository in your pom.xml or in your settings.xml. Hope it's help On 1/12/06, Man-Chi Leung [EMAIL PROTECTED] wrote: yes, i agree with Treloar, in fact, after u have played with Maven for while, very soon, u will start to hit the bottleneck on jar file management. UNLESS, u r play Maven ALONE, otherwise, u will start copying jars from local repository to your friend's local repositories for synchronization. what a wonderful task! Maven Proxy is really the KILLER feature that , I believe, will distinguish very clearly from Ant and motivate all team members to pick up dependency management! I was wondering why maven-proxy is not part of the standard distribution for Maven!! ~manchi On Jan 13, 2006, at 7:39 AM, Treloar, Barrie (SAPOL) wrote: -Original Message- From: Man-Chi Leung [mailto:[EMAIL PROTECTED] Sent: Friday, 13 January 2006 2:24 AM To: Maven Users List Subject: Re: Installing 3rd party JARs, how generating the pom? to deploy in the local repository, do the following: $mvn install:install-file -Dfile=path-to-file -DgroupId=group- id \ -DartifactId=artifact-id -Dversion=version - Dpackaging=packaging for exmaple: mvn install:install-file -Dfile=easymock.jar -DgroupId=org.easymock - DartifactId=easymock -Dversion=2.0 -Dpackaging=jar -DgeneratePom=true anyway, in the future, it is better to setup a maven-proxy and deploy all 3rd party jar to a department internal maven repository You have a local repository, a company repository and then you might have a proxy which unifies the company repository, ibiblio and other repositories. There are two concepts it took me a while to work out. You install files to your local repository but you deploy to your company repository. As manchi points out you are better deploying these to your company repository so that it can be shared amongst all the developers. To install see http://maven.apache.org/guides/mini/guide-installing-3rd-party- jars.html and include the -DgeneratePom=true as manchi shows. To deploy see http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file- mojo.html e.g.: mvn deploy:deploy-file -DgroupId=GROUP_ID -DartifactId=ARTIFACT_ID \ -Dversion=VERSION_ID -DgeneratePom=true \ -Dpackaging=jar \ -Dfile=PATH/TO/JAR \ -DrepositoryId=YOUR_COMPANYS_REPO_ID \ -Durl=scp://YOUR_COMPANYS_REPO_IP/PATH/TO/REPO The latest version of deploy will now create the checksum files too. - 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] -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m102] overriding goal
Hi, is it correct that in 1.0.2 one can only override project goals but not plugin goals? thanks, Kristof - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m102] overriding goal
Kristof Vanbecelaere wrote on Friday, January 13, 2006 2:27 PM: Hi, is it correct that in 1.0.2 one can only override project goals but not plugin goals? No, you can also override plugin goals. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing 3rd party JARs, how generating the pom?
Another question is coming up. Generating the pom due to adding the -DgeneratePom=true command doesn't help. The pom isn't near the copied jar in the repository on my machine. I think this feature is not provided in the current maven version and will be added in future releases of maven. Ok, no problem i can do this by hand. Is it possible to automatize this whole process of generating the stuff to the repository on my machine and loading the things up to the corporate repo? best regards, Gerald On 1/13/06, Alexandre Poitras [EMAIL PROTECTED] wrote: It's because you don't need Maven-Proxy to setup a company repository but most people install Maven-Proxy and their repository at the same location. Maven-Proxy is really just a proxy to reduce the downloading of jars but since it uses a standard repository layout, usually people share the repository location between the two. This way you don't have to define a new repository in your configuration. But if you need it, iou could easily put your corporation repository on a totally different server, you would just need to add a repository in your pom.xml or in your settings.xml. Hope it's help On 1/12/06, Man-Chi Leung [EMAIL PROTECTED] wrote: yes, i agree with Treloar, in fact, after u have played with Maven for while, very soon, u will start to hit the bottleneck on jar file management. UNLESS, u r play Maven ALONE, otherwise, u will start copying jars from local repository to your friend's local repositories for synchronization. what a wonderful task! Maven Proxy is really the KILLER feature that , I believe, will distinguish very clearly from Ant and motivate all team members to pick up dependency management! I was wondering why maven-proxy is not part of the standard distribution for Maven!! ~manchi On Jan 13, 2006, at 7:39 AM, Treloar, Barrie (SAPOL) wrote: -Original Message- From: Man-Chi Leung [mailto:[EMAIL PROTECTED] Sent: Friday, 13 January 2006 2:24 AM To: Maven Users List Subject: Re: Installing 3rd party JARs, how generating the pom? to deploy in the local repository, do the following: $mvn install:install-file -Dfile=path-to-file -DgroupId=group- id \ -DartifactId=artifact-id -Dversion=version - Dpackaging=packaging for exmaple: mvn install:install-file -Dfile=easymock.jar -DgroupId=org.easymock - DartifactId=easymock -Dversion=2.0 -Dpackaging=jar -DgeneratePom=true anyway, in the future, it is better to setup a maven-proxy and deploy all 3rd party jar to a department internal maven repository You have a local repository, a company repository and then you might have a proxy which unifies the company repository, ibiblio and other repositories. There are two concepts it took me a while to work out. You install files to your local repository but you deploy to your company repository. As manchi points out you are better deploying these to your company repository so that it can be shared amongst all the developers. To install see http://maven.apache.org/guides/mini/guide-installing-3rd-party- jars.html and include the -DgeneratePom=true as manchi shows. To deploy see http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file- mojo.html e.g.: mvn deploy:deploy-file -DgroupId=GROUP_ID -DartifactId=ARTIFACT_ID \ -Dversion=VERSION_ID -DgeneratePom=true \ -Dpackaging=jar \ -Dfile=PATH/TO/JAR \ -DrepositoryId=YOUR_COMPANYS_REPO_ID \ -Durl=scp://YOUR_COMPANYS_REPO_IP/PATH/TO/REPO The latest version of deploy will now create the checksum files too. - 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] -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gerald Muellan Schelleingasse 2/11 1040 Vienna, Austria 0043 699 11772506 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Maven Offline
Hi Paul, I had the same kind of problem. The only workaround I found is to add the repository location in an always-active profile in settings.xml : ... ~ profiles ~profile ~ repositories ~repository ~ idcorp-repository/id ~ urlfile:myserver/maven/repository/url ~/repository ~ /repositories ~ idenv-corp/id ~/profile ~ /profiles ~ ~ activeProfiles ~activeProfileenv-corp/activeProfile ~ /activeProfiles ... This means that every of your user must have this settings.xml in his .m2, though. You can e.g. share it on SCM... HTH, -- Yann 2006/1/12, Paul Hepworth [EMAIL PROTECTED]: I have found a solution to the problem now but would appreciate it if someone could tell me why this is: If I rename the maven-metadata-central.xml to maven-metadata.xml, it gets picked up and the plugins get downloaded. Any explanation? -Original Message- From: Paul Hepworth [mailto:[EMAIL PROTECTED] Sent: 12 January 2006 13:28 To: Maven Users List Subject: RE: Using Maven Offline As the sample of the POM shows, I have both the repository and pluginRepository defined. If I remove these and specify a mirror, I get the same result. If I copy the org directory to my local repository but don't specify the pluginRepository, the build fails so I know that the repository and pluginRepository definitions are correct as without either one of them, the project won't build. The problem is that Maven doesn't appear to be able to find it's own plugins in the pluginRepository. -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: 12 January 2006 12:52 To: Maven Users List Subject: RE: Using Maven Offline For plugins, you need to define a pluginRepository just like you did for your repository. -Original Message- From: Paul Hepworth [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 7:10 AM To: Maven Users List Subject: RE: Using Maven Offline I've tried that one already with no success. It still works the same way in that I have to copy the org repository to my local repository to get it to work. Once I have done that, it happily uses either a repository/pluginRepository defined in the POM or the mirror of central defined in settings. It just doesn't work for the maven plugins!?!? -Original Message- From: Alexandre Poitras [mailto:[EMAIL PROTECTED] Sent: 12 January 2006 11:37 To: Maven Users List Subject: Re: Using Maven Offline Yeah I just checked the guide and you need a mirror. From http://maven.apache.org/guides/mini/guide-mirror-settings.html: You want to replace a particular repository with your own internal repository which you have greater control over On 1/12/06, Alexandre Poitras [EMAIL PROTECTED] wrote: I think you have to setup a mirror in your setting.xml files. This is how we use Maven-Proxy so shoud be the same to use your own repository. On 1/12/06, Paul Hepworth [EMAIL PROTECTED] wrote: Hi I'm trying to set up Maven for multiple users on a network not connected to the internet. I've run all the commands that we will need while connected to the net so that I have the plugins and dependencies downloaded. On a network drive //myserver/maven/repository I have placed all the downloaded dependencies and plugins. In POM.xml I have the following specified: ... repositories repository snapshots enabledfalse/enabled /snapshots idcentral/id nameMaven Repository Switchboard/name urlfile:myserver/maven/repository/url /repository /repositories pluginRepositories pluginRepository releases enabledtrue/enabled updatePolicynever/updatePolicy /releases snapshots enabledfalse/enabled /snapshots idcentral/id nameMaven Plugin Repository/name urlfile:myserver/maven/repository/url /pluginRepository /pluginRepositories ... However, when I run mvn install it can't find the plugins to download. If I copy the org directory from my repository to my local repository, everything works fine and all the additional plugins and dependencies are downloaded from the network repository. Is there a trick I'm missing? I really don't want all the users to have to create a .m2/repository directory and copy the org directory to it before they can use Maven. Any suggestions?? Thanks Paul This message should be regarded as confidential. If you have received this email in error please notify the sender and destroy it immediately. Statements of intent shall only become binding when confirmed in hard copy by an authorised signatory. The contents of this
[M1] pom versions block
Hi folks, currently I am wondering what the versions block is used for in POM v3: ... versions version id???/id name1.0-beta-1/name tagXY_1-0-BETA-1_RELEASE/tag /version /versions ... From the POM reference description I cannot conclude what the id element should be. According to the description, the complete info should be used by the dist plugin, but there is no reference to it in the plugin.jelly and is obviously not used at all. So what is it for? - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] jboss plugin docs location?
http://mojo.codehaus.org/jboss-maven-plugin/ 2006/1/12, Mick Knutson [EMAIL PROTECTED]: I want to use the jboss plugin to deploy my ear, but I can't find the docs for it. Can someone please point me to the docs, or show an example of how to use this plugin? --- Thank You Mick Knutson Sr. Java/J2EE Consultant BASE logic, inc. (415) 648-1804 (S.F., CA) http://www.BASELogic.com Washington Mutual (WAMU) (Emeryville, California) --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: war project resources copied to web-inf/classes
What the others said is correct. So you would want to place your WEB-INF folder in src/main/webapp/WEB-INF not src/main/resources/WEB-INF. As Napolean said earlier, try the web app archetype, which you can get by running (single line): mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp More info at http://maven.apache.org/guides/getting-started/index.html Regards, Greg Case On 1/12/06, Edwin Punzalan [EMAIL PROTECTED] wrote: In cases of web projects, src/main/resources are copied into web-inf/classes Edwin Punzalan wrote: If your packaging is war, files from src/main/webapp are copied into your war archive root. Please use this. src/main/resources are always copied into target/classes. Karthik V wrote: I have a war project in m2 and want to copy some resource files to target. In my src/main/resources folder, I have some files, along with a web-inf folder containing some more files. But maven always seems to copy it to target/web-inf/classes and not target. How do I change this behavior? I tried adding something like resources directory${basedir}/src/main/resources/directory targetPathtarget/targetPath /resource /resources but it didnt help... the above copied the files to target/web-inf/classes/target. - 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:newbie] Maven Eclipse sysdeo
Hi, I use Eclipse and Tomcat sysdeo plugin to develop a web project and I would like maven to create and export the war file of my project. Here is the structure of my project in Eclipse : MyWebProject -- WEB-INF classes (binaries generated by eclipse) -- src java (my java source files) test (my test java source files) web.xml -- pox.xml This structure does not really fit with maven's. Here is what I tried for my pom.xml : project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdtest/groupId artifactIdmyWebapp/artifactId packagingwar/packaging version1.0-SNAPSHOT/version nameTest Maven webapp/name url/url dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.12/version scopecompile/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.3/version scopeprovided/scope /dependency /dependencies build sourceDirectoryWEB-INF/src/java/sourceDirectory testSourceDirectoryWEB-INF/src/test/testSourceDirectory outputDirectoryc:/mavenBuilds/${pom.build.finalName}/target/classes/outputDirectory directoryc:/mavenBuilds/${pom.build.finalName}/target/directory finalNamemywebapp/finalName /build /project Here is the error : [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-war-plugin:2.0-beta-2:war' -- [DEBUG] (s) classesDirectory = c:\mavenBuilds\mywebapp\target\classes [DEBUG] (f) outputDirectory = c:/mavenBuilds/mywebapp/target [DEBUG] (s) project = [EMAIL PROTECTED] [DEBUG] (f) warName = mywebapp [DEBUG] (s) warSourceDirectory = C:\Java\IDE\workspaces\Projets\Test MyWebApp\src\main\webapp [DEBUG] (s) webappDirectory = c:\mavenBuilds\mywebapp\target\mywebapp [DEBUG] -- end configuration -- [INFO] [war:war] [INFO] Exploding webapp... [INFO] Copy webapp resources to c:\mavenBuilds\mywebapp\target\mywebapp [INFO] Assembling webapp myWebapp in c:\mavenBuilds\mywebapp\target\mywebapp [INFO] Generating war c:\mavenBuilds\mywebapp\target\mywebapp.war [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error assembling WAR Embedded error: Deployment descriptor: c:\mavenBuilds\mywebapp\target\mywebapp\WEB-INF\web.xml does not exist. So my question is : How can I make maven use WEB-INF/web.xml ? Thanks for any help, Yann. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NoClassDefFoundError on unit test when doing mvn package, but mvn test works
Hi Matt, Could you provide your 3 POMs ? -- Yann 2006/1/12, Matt Gauger [EMAIL PROTECTED]: I'm using Maven 2.0.1 I have a top-level pom.xml (packagingpom/packaging) which builds 2 modules. Module A has only external dependencies. Module B has external dependencies, but is also dependent on Module A. Module B uses a class from Module A in java source compilation, as well as in a unit test. Running mvn test from the top level results in success. Running mvn package from the top level results in a java.lang.NoClassDefFoundError during the unit test of Module B. Using the -e and -X flags, I can see that during the mvn -e -X test run, the Test Classpath for Module B contains: moduleA/target/classes, and this is the case where no error occurs. For the mvn -e -X package run, the Test Classpath for Module B contains: moduleA/target/moduleA-1.0-SNAPSHOT.jar, and the class in question is in there with the correct path. This is the point where my head begins to spin. Has anyone else seen this problem? Or better yet, have a suggested solution. Here is a little additional information... If I just do an mvn install on Module A, I get moduleA-1.0- SNAPSHOT.jar in my local repo with no problem. Then when I try to do a mvn test only on Module B, I get the same NoClassDefFoundError. This time the moduleA-1.0-SNAPSHOT.jar is put on the Test Classpath from my local repo. So mvn test works fine when building both modules together via the parent pom, but not Module B by itself. The similarity seems to be when the moduleA-1.0-SNAPSHOT.jar is used (either from my local repo, or from it's target directory), that's when I get the NoClassDefFoundError. Any insight would be greatly appreciated. -Matt
How do I add developers to Project
Hi, I'm using continuum 1.0.2 to do nightly builds and it works great. I use a shell project to start a *.bat fil (and CVS to fetch the files). 1) In the Project View page there is a section called Developers (last section on the page). How do a add Developers to the project? Is this possible at all for shell projects or have I missed something? 2) And if you can add developers are they used by the Blame mechanism to send email to developer that caused the error? Regards, Mattias Andersson
RE: [m2]: dependency-maven-plugin artifactItems error
Bingo! I was mistakenly doing both: mvn install dependency:unpack and not realizing this would double execute since my pom also binds to a lifecycle...learning as I go. Doing just: mvn install works nicely. Thanks Brian. PS: Should I submit the docerr via the plugin forum? -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 9:39 PM To: Maven Users List Subject: RE: [m2]: dependency-maven-plugin artifactItems error I guess I'm not clear what's happening here. Are you running this like mvn dependency:unpack or just binding to the lifecycle and doing mvn install? The copy and unpack goals won't work from the command line because of the artifactItem array. If you want to launch from the command line, use the xxx-dependencies or resolve goal. -Original Message- From: Rollo, Dan [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 5:50 PM To: users@maven.apache.org Subject: [m2]: dependency-maven-plugin artifactItems error Sorry if I'm missing the obvious, but I keep getting the following error with the dependency plugin: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] One or more required plugin parameters are invalid/missing for 'dependency:unpack' [0] inside the definition for plugin: 'dependency-maven-plugin'specify the following: configuration ... artifactItemsVALUE/artifactItems /configuration. I have the following in my pom.xml ... dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency ... /dependencies And build plugins ... plugin groupIdorg.codehaus.mojo/groupId artifactIddependency-maven-plugin/artifactId executions execution idunpack/id phasepackage/phase goals goalunpack/goal /goals configuration artifactItems artifactItem groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version typejar/type outputDirectory${project.build.directory}/alternateLocation/outputDir ectory /artifactItem /artifactItems outputDirectory${project.build.directory}/outputDirectory /configuration /execution /executions /plugin /plugins /build What am I missing? Dan PS: There is a typo in the docs: In the How to use dependency:unpack section, the docs shows: ouputDirectory${project.build.directory}/alternateLocation/ouputDirec tory Should be: (missing first t in output) outputDirectory${project.build.directory}/alternateLocation/outputDir ectory - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: war project resources copied to web-inf/classes
thanks a lot for ur replies ... i moved my resources to webapp from resources and it works .. i'll try the webapp archetype also ... On 1/13/06, Greg Case [EMAIL PROTECTED] wrote: What the others said is correct. So you would want to place your WEB-INF folder in src/main/webapp/WEB-INF not src/main/resources/WEB-INF. As Napolean said earlier, try the web app archetype, which you can get by running (single line): mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp More info at http://maven.apache.org/guides/getting-started/index.html Regards, Greg Case On 1/12/06, Edwin Punzalan [EMAIL PROTECTED] wrote: In cases of web projects, src/main/resources are copied into web-inf/classes Edwin Punzalan wrote: If your packaging is war, files from src/main/webapp are copied into your war archive root. Please use this. src/main/resources are always copied into target/classes. Karthik V wrote: I have a war project in m2 and want to copy some resource files to target. In my src/main/resources folder, I have some files, along with a web-inf folder containing some more files. But maven always seems to copy it to target/web-inf/classes and not target. How do I change this behavior? I tried adding something like resources directory${basedir}/src/main/resources/directory targetPathtarget/targetPath /resource /resources but it didnt help... the above copied the files to target/web-inf/classes/target. - 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: Filtering resources
there seems to be one ( http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html ) .. but isnt it possible to do it after compilation, when the jar happens? assuming i need the other classes too for some other purpose (but dont want it inside the jar), is there no way of achieving this at all? On 1/12/06, Brian E. Fox [EMAIL PROTECTED] wrote: Isn't there an exclude sources setting in the compiler? -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 11:12 AM To: Maven Users List Subject: Re: Filtering resources can some one answer this please? On 1/11/06, Karthik V [EMAIL PROTECTED] wrote: ok .. that 2nd question was silly .. i managed it ... pls help me wth the 1st one. On 1/11/06, Karthik V [EMAIL PROTECTED] wrote: In m2, how do I prevent some classes from being included to the final jar file? Also, I need to add some files (like the xmls generated by xdoclet) to the jar. These files go to the generated-sources directory and not to the src/main/resources. How do I add these to the final jar? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Maven Install and Deploy Plugins (v2.1) released
It seems that knowing which Maven version is required will be addressed by the prerequisites tag : http://svn.apache.org/viewcvs.cgi/*checkout*/maven/plugins/trunk/maven-site-plugin/pom.xml http://maven.apache.org/maven-model/maven.html#class_prerequisite - Yann 2006/1/12, Christopher Cobb [EMAIL PROTECTED]: -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] The Install and Deploy plugins for Maven 2.0 have been released. ... version2.1/version First of all, congratulations! Secondly (and really having nothing to do with your plugin), I wonder if plugin version numbers should somehow reference the minimum version of maven that they require. When I look at plugin version 2.1 I immediately think that it must be for maven 2.1 (wait a sec!). With the ever growing explosion of plugins, it might be useful to know which ones require which versions of maven. - Attention: Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you received this in error, please contact the sender and delete the material from any system and destroy any copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] BIG problem with maven-antrun-plugin and workshop.core.AppClassLoader
Hi I've got a BIG problem with maven-antrun-plugin and a classloader from workshop.core.AppClassLoader from knex.jar (Weblogic). When I was using ant, i'd to add: -client -Djava.system.class.loader=workshop.core.AppClassLoader -classpath %LOCALCLASSPATH%;%BEA_HOME%\weblogic81\workshop\wlw-ide.jar;%BEA_HOME%\weblogic81\server\lib\weblogic.jar to my ant.bat to make my project work. when i'm adding this to my mvn.bat, i can't use maven-antrun-plugin. I'm having this exception: Caused by: java.lang.NullPointerException at org.apache.tools.ant.Task.log(Task.java:324) at com.bea.wlw.runtime.core.ear.WebAppBuildTask.execute(WebAppBuildTask.java:241) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123) ... 31 more it's quite strange that error is at org.apache.tools.ant.Task.log(Task.java:324). I'm using WebAppBuildTask that needs workshop.core.AppClassLoader. I don't know what to do? Please HELP!!! Pozdrawiam Sebastian Błoch
Re: Filtering resources
Well, looking at the jar plugin, it seems that it doesn't allow inclusions/exclusions to be specified. I guess my question is, what are you trying to accomplish? Are these classes unit tests or something? -john Karthik V wrote: there seems to be one ( http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html ) .. but isnt it possible to do it after compilation, when the jar happens? assuming i need the other classes too for some other purpose (but dont want it inside the jar), is there no way of achieving this at all? On 1/12/06, Brian E. Fox [EMAIL PROTECTED] wrote: Isn't there an exclude sources setting in the compiler? -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 11:12 AM To: Maven Users List Subject: Re: Filtering resources can some one answer this please? On 1/11/06, Karthik V [EMAIL PROTECTED] wrote: ok .. that 2nd question was silly .. i managed it ... pls help me wth the 1st one. On 1/11/06, Karthik V [EMAIL PROTECTED] wrote: In m2, how do I prevent some classes from being included to the final jar file? Also, I need to add some files (like the xmls generated by xdoclet) to the jar. These files go to the generated-sources directory and not to the src/main/resources. How do I add these to the final jar? - 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]: dependency-maven-plugin artifactItems error
PS: Should I submit the docerr via the plugin forum? Yes, a MOJO jira please. -Original Message- From: Rollo, Dan [mailto:[EMAIL PROTECTED] Sent: Friday, January 13, 2006 11:27 AM To: Brian E. Fox; Maven Users List Subject: RE: [m2]: dependency-maven-plugin artifactItems error Bingo! I was mistakenly doing both: mvn install dependency:unpack and not realizing this would double execute since my pom also binds to a lifecycle...learning as I go. Doing just: mvn install works nicely. Thanks Brian. PS: Should I submit the docerr via the plugin forum? -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 9:39 PM To: Maven Users List Subject: RE: [m2]: dependency-maven-plugin artifactItems error I guess I'm not clear what's happening here. Are you running this like mvn dependency:unpack or just binding to the lifecycle and doing mvn install? The copy and unpack goals won't work from the command line because of the artifactItem array. If you want to launch from the command line, use the xxx-dependencies or resolve goal. -Original Message- From: Rollo, Dan [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 5:50 PM To: users@maven.apache.org Subject: [m2]: dependency-maven-plugin artifactItems error Sorry if I'm missing the obvious, but I keep getting the following error with the dependency plugin: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] One or more required plugin parameters are invalid/missing for 'dependency:unpack' [0] inside the definition for plugin: 'dependency-maven-plugin'specify the following: configuration ... artifactItemsVALUE/artifactItems /configuration. I have the following in my pom.xml ... dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency ... /dependencies And build plugins ... plugin groupIdorg.codehaus.mojo/groupId artifactIddependency-maven-plugin/artifactId executions execution idunpack/id phasepackage/phase goals goalunpack/goal /goals configuration artifactItems artifactItem groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version typejar/type outputDirectory${project.build.directory}/alternateLocation/outputDir ectory /artifactItem /artifactItems outputDirectory${project.build.directory}/outputDirectory /configuration /execution /executions /plugin /plugins /build What am I missing? Dan PS: There is a typo in the docs: In the How to use dependency:unpack section, the docs shows: ouputDirectory${project.build.directory}/alternateLocation/ouputDirec tory Should be: (missing first t in output) outputDirectory${project.build.directory}/alternateLocation/outputDir ectory - 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: Installing 3rd party JARs, how generating the pom?
mvn install will install your project jar in your local repository, usually it is located at /home/../.m2/repository. mvn deploy will deploy your project in your enterprise repository, but you have to fill the necessary informations in your pom. I have never did it myself because WebDav isn't supported yet but I think there is some guides on the subject. By the way, you should take a look at the Maven lifecycle in the documentation if you want to understand all the important phases. And I don't understand what you mean by generating your pom. If you wrote a pom, you don't need to generate one, it will get deployed automatically with your jar don't worry about it. Generating a pom is useful when you have to use a 3rd party jar not developped with Maven. Hope it's help! On 1/13/06, Gerald Müllan [EMAIL PROTECTED] wrote: Another question is coming up. Generating the pom due to adding the -DgeneratePom=true command doesn't help. The pom isn't near the copied jar in the repository on my machine. I think this feature is not provided in the current maven version and will be added in future releases of maven. Ok, no problem i can do this by hand. Is it possible to automatize this whole process of generating the stuff to the repository on my machine and loading the things up to the corporate repo? best regards, Gerald On 1/13/06, Alexandre Poitras [EMAIL PROTECTED] wrote: It's because you don't need Maven-Proxy to setup a company repository but most people install Maven-Proxy and their repository at the same location. Maven-Proxy is really just a proxy to reduce the downloading of jars but since it uses a standard repository layout, usually people share the repository location between the two. This way you don't have to define a new repository in your configuration. But if you need it, iou could easily put your corporation repository on a totally different server, you would just need to add a repository in your pom.xml or in your settings.xml. Hope it's help On 1/12/06, Man-Chi Leung [EMAIL PROTECTED] wrote: yes, i agree with Treloar, in fact, after u have played with Maven for while, very soon, u will start to hit the bottleneck on jar file management. UNLESS, u r play Maven ALONE, otherwise, u will start copying jars from local repository to your friend's local repositories for synchronization. what a wonderful task! Maven Proxy is really the KILLER feature that , I believe, will distinguish very clearly from Ant and motivate all team members to pick up dependency management! I was wondering why maven-proxy is not part of the standard distribution for Maven!! ~manchi On Jan 13, 2006, at 7:39 AM, Treloar, Barrie (SAPOL) wrote: -Original Message- From: Man-Chi Leung [mailto:[EMAIL PROTECTED] Sent: Friday, 13 January 2006 2:24 AM To: Maven Users List Subject: Re: Installing 3rd party JARs, how generating the pom? to deploy in the local repository, do the following: $mvn install:install-file -Dfile=path-to-file -DgroupId=group- id \ -DartifactId=artifact-id -Dversion=version - Dpackaging=packaging for exmaple: mvn install:install-file -Dfile=easymock.jar -DgroupId=org.easymock - DartifactId=easymock -Dversion=2.0 -Dpackaging=jar -DgeneratePom=true anyway, in the future, it is better to setup a maven-proxy and deploy all 3rd party jar to a department internal maven repository You have a local repository, a company repository and then you might have a proxy which unifies the company repository, ibiblio and other repositories. There are two concepts it took me a while to work out. You install files to your local repository but you deploy to your company repository. As manchi points out you are better deploying these to your company repository so that it can be shared amongst all the developers. To install see http://maven.apache.org/guides/mini/guide-installing-3rd-party- jars.html and include the -DgeneratePom=true as manchi shows. To deploy see http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file- mojo.html e.g.: mvn deploy:deploy-file -DgroupId=GROUP_ID -DartifactId=ARTIFACT_ID \ -Dversion=VERSION_ID -DgeneratePom=true \ -Dpackaging=jar \ -Dfile=PATH/TO/JAR \ -DrepositoryId=YOUR_COMPANYS_REPO_ID \ -Durl=scp://YOUR_COMPANYS_REPO_IP/PATH/TO/REPO The latest version of deploy will now create the checksum files too. - 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: Filtering resources
I want the remaining classes to go into another jar ... It can be made as a different project, but that'll repeat the compilation and source generation processes ... I thought if I can exclude these classes from the 1st jar, I can either generate another jar file wth the rest of the classes, or copy those classes into a 2nd project's resource folder (so that its jarred up at the end). I'm actually converting an ant project that produces a bunch of classes and packs them into 2 different jars by using include/exclude in the jar task ... I'm not particular about how this is accomplished, all I want is a solution ... I tried posting this problem in different forms to this list, but never got a satisfactory reply On 1/13/06, John Casey [EMAIL PROTECTED] wrote: Well, looking at the jar plugin, it seems that it doesn't allow inclusions/exclusions to be specified. I guess my question is, what are you trying to accomplish? Are these classes unit tests or something? -john Karthik V wrote: there seems to be one ( http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html) .. but isnt it possible to do it after compilation, when the jar happens? assuming i need the other classes too for some other purpose (but dont want it inside the jar), is there no way of achieving this at all? On 1/12/06, Brian E. Fox [EMAIL PROTECTED] wrote: Isn't there an exclude sources setting in the compiler? -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 11:12 AM To: Maven Users List Subject: Re: Filtering resources can some one answer this please? On 1/11/06, Karthik V [EMAIL PROTECTED] wrote: ok .. that 2nd question was silly .. i managed it ... pls help me wth the 1st one. On 1/11/06, Karthik V [EMAIL PROTECTED] wrote: In m2, how do I prevent some classes from being included to the final jar file? Also, I need to add some files (like the xmls generated by xdoclet) to the jar. These files go to the generated-sources directory and not to the src/main/resources. How do I add these to the final jar? - 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: Filtering resources
thanks .. i'll try using that ... can u give me a link that explains how to use it? On 1/13/06, dan tran [EMAIL PROTECTED] wrote: I use antrunt to remove those classes in the process of migrating ant/make builds to maven. Hopefully, I dont need it any more soon. -D On 1/13/06, John Casey [EMAIL PROTECTED] wrote: Well, looking at the jar plugin, it seems that it doesn't allow inclusions/exclusions to be specified. I guess my question is, what are you trying to accomplish? Are these classes unit tests or something? -john Karthik V wrote: there seems to be one ( http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html).. but isnt it possible to do it after compilation, when the jar happens? assuming i need the other classes too for some other purpose (but dont want it inside the jar), is there no way of achieving this at all? On 1/12/06, Brian E. Fox [EMAIL PROTECTED] wrote: Isn't there an exclude sources setting in the compiler? -Original Message- From: Karthik V [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 11:12 AM To: Maven Users List Subject: Re: Filtering resources can some one answer this please? On 1/11/06, Karthik V [EMAIL PROTECTED] wrote: ok .. that 2nd question was silly .. i managed it ... pls help me wth the 1st one. On 1/11/06, Karthik V [EMAIL PROTECTED] wrote: In m2, how do I prevent some classes from being included to the final jar file? Also, I need to add some files (like the xmls generated by xdoclet) to the jar. These files go to the generated-sources directory and not to the src/main/resources. How do I add these to the final jar? - 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]
Building my project from source in CVS
Hi All, I'm new to Maven and using Maven 2.0.1. I'm trying to build my project target from source stored in my CVS repository. I've googled and haven't found anything indicating if this is possible. Is this possible? If so, can someone explain how to make the connection or point me to documentation that explains what needs to be done for Maven 2.0? Thanks, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to generate the header of a table in APT Format?
Using maven site plugin,How to generate the header of a table in apt format and that is th element in html text file.
Re: How to generate the header of a table in APT Format?
http://maven.apache.org/guides/mini/guide-apt-format.html ? On 1/13/06, HezhiQiang [EMAIL PROTECTED] wrote: Using maven site plugin,How to generate the header of a table in apt format and that is th element in html text file.
Re: [M1] pom versions block
Hi Joerg, AFAICT, the version.id element is only used by the announcement plugin for generating release announcements; version.name and version.tag are used by the scm plugin. It would be nice though if we had an easy way to find out which pom settings are used by a particular plugin. -Lukas Jörg Schaible wrote: Hi folks, currently I am wondering what the versions block is used for in POM v3: ... versions version id???/id name1.0-beta-1/name tagXY_1-0-BETA-1_RELEASE/tag /version /versions ... From the POM reference description I cannot conclude what the id element should be. According to the description, the complete info should be used by the dist plugin, but there is no reference to it in the plugin.jelly and is obviously not used at all. So what is it for? - 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]
Re: How to generate the header of a table in APT Format?
I konw this,but that doesn't describe the details about gernerating table header! 2006/1/14, dan tran [EMAIL PROTECTED]: http://maven.apache.org/guides/mini/guide-apt-format.html ? On 1/13/06, HezhiQiang [EMAIL PROTECTED] wrote: Using maven site plugin,How to generate the header of a table in apt format and that is th element in html text file.
[ot] anyone else use XRADAR for code-quality analysis?
Hey all, I'm just curious since in the past I've used the Checkstyle, PMD, Junit/surefire reports and the M1 Dashboard for code-quality reports if anyone else has checked out http://xradar.sourceforge.net ? They have support for maven1, not sure how good it is though and I'm just now trying it out. -D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building my project from source in CVS
I know it is doable with the scm plugin but you don't have to use Maven for this part in my mind since a checkout is not part of the regular build lifecycle. My advice would be to use your regular scm explorer, check out the project, then work with Maven. On 1/13/06, Mike [EMAIL PROTECTED] wrote: Hi All, I'm new to Maven and using Maven 2.0.1. I'm trying to build my project target from source stored in my CVS repository. I've googled and haven't found anything indicating if this is possible. Is this possible? If so, can someone explain how to make the connection or point me to documentation that explains what needs to be done for Maven 2.0? Thanks, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M1] pom versions block
Hi Lukas, Lukas Theussl wrote: Hi Joerg, AFAICT, the version.id element is only used by the announcement plugin for generating release announcements; version.name and version.tag are used by the scm plugin. That means version.name and version.id is supposed to be the same? It would be nice though if we had an easy way to find out which pom settings are used by a particular plugin. Or if they would be used more regularly ... e.g. the changes plugin could generate use this info also. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M1] pom versions block
Hi, That means version.name and version.id is supposed to be the same? I don't think they are supposed to be the same, but in practice it seems to be the case, - does anybody have a different use case? Or if they would be used more regularly ... e.g. the changes plugin could generate use this info also. Agreed. As of now, it actually seems that other plugins rely more on changes.xml than what is in the pom; eg the announcement:generate-all goal just parses the contents of changes.xml instead of looking at the pom.versions. Want to invest some time and supply some patches? :) -Lukas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M1] pom versions block
Lukas Theussl wrote: Hi, That means version.name and version.id is supposed to be the same? I don't think they are supposed to be the same, but in practice it seems to be the case, - does anybody have a different use case? Or if they would be used more regularly ... e.g. the changes plugin could generate use this info also. Agreed. As of now, it actually seems that other plugins rely more on changes.xml than what is in the pom; eg the announcement:generate-all goal just parses the contents of changes.xml instead of looking at the pom.versions. Want to invest some time and supply some patches? :) Well, not really ... the next time I can spent time on our build process will be the continued task to convert all of our M1 projects to M2. So I am jumping boat ;-) - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [newbie] Need some help with the following exception...
You probably want to update your maven version, not the plugin version... DiagnosisUtils is in the core. We have an RC of 2.0.2 which will most likely be promoted to the final release, if you'd like to use that. It's at: http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/m2-20060113.151503.tar.gz if you'd like to install that. One thing I should mention is that this will not allow your build to run perfectly. There is another error that is being obscured by the error diagnosis system of Maven...so, if you install a newer version of Maven, you won't get the error from DiagnosisUtils. BUT you will still see the *real* error. HTH, John Quenten VanEgeren wrote: I'm new to Maven2 and this list and I'm having the following problem. I'm not sure if I'm just missing something, if I have the wrong version of the surefire plugin, or what. When I run 'mvn test' I get the following output : [INFO]task-segment: [test] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] Compiling 45 source files to c:\development\maven\common\target\test-classes [INFO] [surefire:test] [INFO] Setting reports dir: c:\development\maven\common\target/surefire-reports [INFO] [ERROR] BUILD ERROR [INFO] --- constituent[0]: file:/c:/dev/maven-2.0/lib/commons-cli-1.0.jar constituent[1]: file:/c:/dev/maven-2.0/lib/doxia-sink-api-1.0-alpha-4.jar constituent[2]: file:/c:/dev/maven-2.0/lib/jsch-0.1.23.jar constituent[3]: file:/c:/dev/maven-2.0/lib/maven-artifact-2.0-1.jar constituent[4]: file:/c:/dev/maven-2.0/lib/maven-artifact-manager-2.0-1.jar constituent[5]: file:/c:/dev/maven-2.0/lib/maven-core-2.0.jar constituent[6]: file:/c:/dev/maven-2.0/lib/maven-error-diagnostics-2.0.jar constituent[7]: file:/c:/dev/maven-2.0/lib/maven-model-2.0.jar constituent[8]: file:/c:/dev/maven-2.0/lib/maven-monitor-2.0.jar constituent[9]: file:/c:/dev/maven-2.0/lib/maven-plugin-api-2.0.jar constituent[10]: file:/c:/dev/maven-2.0/lib/maven-plugin-descriptor-2.0.jar constituent[11]: file:/c:/dev/maven-2.0/lib/maven-plugin-parameter-documenter-2.0.jar constituent[12]: file:/c:/dev/maven-2.0/lib/maven-plugin-registry-2.0.jar constituent[13]: file:/c:/dev/maven-2.0/lib/maven-profile-2.0.jar constituent[14]: file:/c:/dev/maven-2.0/lib/maven-project-2.0-1.jar constituent[15]: file:/c:/dev/maven-2.0/lib/maven-reporting-api-2.0.jar constituent[16]: file:/c:/dev/maven-2.0/lib/maven-repository-metadata-2.0.jar constituent[17]: file:/c:/dev/maven-2.0/lib/maven-settings-2.0.jar constituent[18]: file:/c:/dev/maven-2.0/lib/plexus-interactivity-api-1.0-alpha-4.jar constituent[19]: file:/c:/dev/maven-2.0/lib/wagon-file-1.0-alpha-5.jar constituent[20]: file:/c:/dev/maven-2.0/lib/wagon-http-lightweight-1.0-alpha-5.jar constituent[21]: file:/c:/dev/maven-2.0/lib/wagon-provider-api-1.0-alpha-5.jar constituent[22]: file:/c:/dev/maven-2.0/lib/wagon-ssh-1.0-alpha-5.jar --- java.lang.NullPointerException at org.apache.maven.usability.diagnostics.DiagnosisUtils.appendRootCauseIfPresentAndUnique(DiagnosisUtils.java:89) at org.apache.maven.usability.MojoExecutionExceptionDiagnoser.diagnose(MojoExecutionExceptionDiagnoser.java:66) at org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(ErrorDiagnostics.java:81) at org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:693) at org.apache.maven.DefaultMaven.logError(DefaultMaven.java:640) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:119) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Is this being caused by an error coming from one of my tests, or do I have an old version of one of the plugins? I ran an 'mvn -U test' and after it updated all of the plugins, I got the same error. Thanks for any help you may be able to offer. Quenten
Converting from M1 to M2 - Installing parent POMs?
Ok, I'm sure this is a pretty basic question, but I am having a hard time tracking down the answer. I am in the process of converting our M1-based codebase over to user M2. I have several subprojects that inherit from a parent project.xml (now pom.xml) When specifying the parent in the child pom, I need to specify the version. Maven then tries to look up the parent pom in the repository. What do I need to do to get the parent pom installed? Do I treat it like a third-party jar? Also, is there a process to convert the M1 repository into an M2 repository? It's mentioned that this is coming, but are there currently steps to follow or am I stuck re-creating it via manual installation of all third-party jars? We are also currently using the maven-proxy to supply a locally managed remote repository. Is this compatible with M2? I know these might be basic questions, but I'm finding the transition from M1-M2 a little confusing at the moment. Thanks! __ 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: Converting from M1 to M2 - Installing parent POMs?
On 1/13/06, Sean McNamara [EMAIL PROTECTED] wrote: When specifying the parent in the child pom, I need to specify the version. Maven then tries to look up the parent pom in the repository. What do I need to do to get the parent pom installed? Do I treat it like a third-party jar? Just 'mvn install' should do it. If the parent pom is not in the directory right above the child pom, (which is where Maven looks for it by default,) then you can use (for example) relativePath../build/pom.xml/relativePath in the parent section. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] outputDirectory
I guess I was too quick to declare victory. While the compiled classes do go into the newly configured directory, the jar file is still being placed into the default directory, which in my case, happens to be smack in the middle of the versioned source tree. So, how can I change the output directory for the package goal? Is there a universal way to divert output of any and all goals? Thanks Dmitry At 08:58 PM 1/10/2006, Henry Isidro wrote: Dmitry Beransky wrote: worked like a charm! I ended up putting the following into the profile section: properties buildDir${java.io.tmpDir}/maven/${pom.artifactId}/buildDir /properties now the settings file is portalble among different platforms. Very cool, indeed. Thanks Dmitry I was thinking in the lines of using profiles in settings.xml or profiles.xml where you specify a property which would be used in the pom, ie: - inside profiles.xml (which resides only in the system that is used): profiles profile idmyProfile/id properties myoutputc:\test\target/myoutput /properties /profile /profiles - inside pom.xml (which is portable): build outputDirectory${myoutput}/outputDirectory /build - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Maven Install and Deploy Plugins (v2.1) released
That information is in the POM. I will get it displayed on the site. You'll find that the plugin version numbers won't resemble the Maven version for very long. Unless otherwise noted, all plugins work with Maven 2.0. - Brett On 1/13/06, Christopher Cobb [EMAIL PROTECTED] wrote: -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] The Install and Deploy plugins for Maven 2.0 have been released. ... version2.1/version First of all, congratulations! Secondly (and really having nothing to do with your plugin), I wonder if plugin version numbers should somehow reference the minimum version of maven that they require. When I look at plugin version 2.1 I immediately think that it must be for maven 2.1 (wait a sec!). With the ever growing explosion of plugins, it might be useful to know which ones require which versions of maven. - Attention: Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you received this in error, please contact the sender and delete the material from any system and destroy any copies. - 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]
invalid POM in repo for ant/ant-optional/1.5.3-1
The tag artifactId is misspelled in http://www.ibiblio.org/maven2/ant/ant-optional/1.5.3-1/ant-optional-1.5.3-1.pom the 'i' and 't' got mixed up. Who may fix this, please? project modelVersion4.0.0/modelVersion groupIdant/groupId aritfactIdant-optional/aritfactId version1.5.3-1/version /project ant/ant-optional/1.5.3-1/ant-optional-1.5.3-1.pom (END) txs in advance, strub ___ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need help migrating *.properties from Maven1.x to Maven2
Hi, in my .properties files of my working maven v1 installation are many variables defined where the project.xml can find them during build process, *.properties are included in project.xml Problem is m2 ignores these files, because of replacement of these *.properties with settings.xml -in a valid xml file I can't define variables. The pom.xml (POM Version 4), does not have a include tag for resource files, so I have a real big problem. I don't want to hardcode all these values into my big multi-project. Where can I include variable definitions e.g. someLibrary.CURRENTVERSION}=1.07 without a *.properties file ??
Download Javadoc into Eclipse with Maven2
Is it possible to download the javadoc into Eclipse in the same way as one can do with -Declipse.downloadSources=true? -- Bjarte Stien Karlsen Intermedium - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Failures with downloads
Hi, I am trying to compile some code that requires the following dependencies and the POM files seem to be found but not the jar files why is this? I am finding that maven has more promise than it appears to be able to deliver. I have tried to use the eclipse plugin but virtaully everything I add as a dependency ends up with a failure so nothing else can then be added. Martin Roberts Group Research e-mail: [EMAIL PROTECTED] tel: +44(0) 1473 609785 clickdial http://clickdial.bt.co.uk/clickdial?001609785.cld fax: +44(0) 1473 609834 Intranet Site :http://twiki.btlabs.bt.co.uk/twiki pp 16 Floor 5, Orion Building, Adastral Park, Martlesham, Ipswich IP5 3RE, UK British Telecommunications plc Registered office: 81 Newgate Street London EC1A 7AJ Registered in England no. 180 This electronic message contains information from British Telecommunications plc which may be privileged or confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone or email (to the numbers or address above) immediately.
Re: Converting from M1 to M2 - Installing parent POMs?
Thanks Wendy. I was making that entire thing much more difficult than it needed to be. :-o --- Wendy Smoak [EMAIL PROTECTED] wrote: On 1/13/06, Sean McNamara [EMAIL PROTECTED] wrote: When specifying the parent in the child pom, I need to specify the version. Maven then tries to look up the parent pom in the repository. What do I need to do to get the parent pom installed? Do I treat it like a third-party jar? Just 'mvn install' should do it. If the parent pom is not in the directory right above the child pom, (which is where Maven looks for it by default,) then you can use (for example) relativePath../build/pom.xml/relativePath in the parent section. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m1] jar:install - Error getting the project as a string
This worked on December 2nd... none of the changes to project.xml since then look suspicious, and it still validates. Furthermore, I have no idea where it thinks it is *uploading* the jar to. Normally jar:install just says Copying: from ... to: ... . project.xml: http://svn.apache.org/repos/asf/struts/sandbox/trunk/tiles/project.xml This one is a mystery to me. Any ideas? $ svn co http://svn.apache.org/repos/asf/struts/sandbox/trunk/tiles tiles $ cd tiles $ maven jar:install ... jar:jar: jar:install: [echo] Installing... Uploading to tiles/jars/tiles-core-0.2-SNAPSHOT.jar: (82K) BUILD FAILED File.. c:\java\m1-repository\cache\maven-artifact-plugin-1.5.2\plugin.jelly Element... artifact:artifact-install Line.. 62 Column 9 Error getting the project as a string Total time: 34 seconds Finished at: Fri Jan 13 14:45:17 MST 2006 Thanks, Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Maven PMD plugin 2.0-beta-1
A new version of the PMD plugin for Maven 2 has been released. PMD is a source code quality analysis tool and the plugin allows for automated quality reports to be generated with your project's site documentation. Highlights: - Upgrade to PMD 3.4 - Report can be emitted in HTML, XML, CSV or TXT - Added CPD (Copy/Paste Detector) report - JXR integration To update your plugin, just run 'mvn -U pmd:pmd' in an m2 project to pull down the latest version. Documentation: http://maven.apache.org/plugins/maven-pmd-plugin/ About PMD: http://pmd.sourceforge.net/ JIRA issues closed: http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truemode=hide sorter/order=ASCsorter/field=prioritypid=11140fixfor=12176 mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Maven PMD plugin 2.0-beta-1
This plugin doesn't seem to like annotations. Is there something I can do to get it to ignore mine or are you planning to have support anytime soon? Mike Perham wrote: A new version of the PMD plugin for Maven 2 has been released. PMD is a source code quality analysis tool and the plugin allows for automated quality reports to be generated with your project's site documentation. Highlights: - Upgrade to PMD 3.4 - Report can be emitted in HTML, XML, CSV or TXT - Added CPD (Copy/Paste Detector) report - JXR integration To update your plugin, just run 'mvn -U pmd:pmd' in an m2 project to pull down the latest version. Documentation: http://maven.apache.org/plugins/maven-pmd-plugin/ About PMD: http://pmd.sourceforge.net/ JIRA issues closed: http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truemode=hide sorter/order=ASCsorter/field=prioritypid=11140fixfor=12176 mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] [tch] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[PROBLEM SOLVED but is it a bug?] Re: [m2] remote repository artifact update / local repository for multiproject question
Hello Henry, first, thanks for your answer :o) 1/ Thank you :o) In fact, I've asked directly Brett (thankss too) and he gave me the same link (see http://jira.codehaus.org/browse/MAVENUPLOAD-678). However, I think the process could be enhanced sort of maven-2-RSS processor... 2/ Yes, Remember: local repository defined ... repositories repository idXXX/id nameLocal repository for XXX builds./name urlfile://${basedir}/thirdparty/url layoutdefault/layout /repository /repositories ... but I get: Downloading: file://L:\projects\xxx\xxx-common/thirdparty/jgroups/jgroups-all/2.2.9/jgroups-all-2.2.9.pom [WARNING] Unable to get resource from repository XXX in fact following is what I tried without success: -1- urlfile://${basedir}/thirdparty/url -2- urlfile://./thirdparty/url -3- urlfile://../thirdparty/url Then I got a part of the answer, when I was using: urlfile://L:\project\XXX\thirdparty/url : it works with \ but not with / So the right answer is: urlfile://.\thirdparty/url But I wonder if I've discovered some bug... ^_^; Cheers, Loïc On 1/13/06, Henry Isidro [EMAIL PROTECTED] wrote: Hi Loïc, Please see inline answers. Questions: 1/ What is the process to (ask for) update on remote repository? I've found a broken link on the maven webpage: http://maven.apache.org/guides/introduction/introduction-to-repositories.html http://maven.apache.org/guides/guide/guide-ibiblio-upload.html%7DUploading%20to%20Ibiblio doesn't seem to work :o( Page Not Found Sorry, the page you requested was not found. This may because: * The page has moved, was outdated, or has not been created yet * You typed the address incorrectly * You following a link from another site that pointed to this page ... Check out this URL for guide: http://maven.apache.org/guides/mini/guide-ibiblio-upload.html 2/ Is the ${basedir} evaluation I speak of the normal behavior? If yes, could it be possible to add a property like for example: maven.reactor.basedir? Have you tried placing an absolute path in your POM? It may solve your basedir problems. HTH, Henry - 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: [ANN] Maven PMD plugin 2.0-beta-1
Nic, put this in your plugin configuration: targetJdk1.5/targetJdk -Original Message- From: Nic Holbrook [mailto:[EMAIL PROTECTED] Sent: Friday, January 13, 2006 10:39 AM To: Maven Users List Subject: Re: [ANN] Maven PMD plugin 2.0-beta-1 This plugin doesn't seem to like annotations. Is there something I can do to get it to ignore mine or are you planning to have support anytime soon? Mike Perham wrote: A new version of the PMD plugin for Maven 2 has been released. PMD is a source code quality analysis tool and the plugin allows for automated quality reports to be generated with your project's site documentation. Highlights: - Upgrade to PMD 3.4 - Report can be emitted in HTML, XML, CSV or TXT - Added CPD (Copy/Paste Detector) report - JXR integration To update your plugin, just run 'mvn -U pmd:pmd' in an m2 project to pull down the latest version. Documentation: http://maven.apache.org/plugins/maven-pmd-plugin/ About PMD: http://pmd.sourceforge.net/ JIRA issues closed: http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truemode=hid e sorter/order=ASCsorter/field=prioritypid=11140fixfor=12176 mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] [tch] - 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: [ANN] Maven PMD plugin 2.0-beta-1
Thanks. For some reason, I thought that was just for the compiler plugin. Mike Perham wrote: Nic, put this in your plugin configuration: targetJdk1.5/targetJdk -Original Message- From: Nic Holbrook [mailto:[EMAIL PROTECTED] Sent: Friday, January 13, 2006 10:39 AM To: Maven Users List Subject: Re: [ANN] Maven PMD plugin 2.0-beta-1 This plugin doesn't seem to like annotations. Is there something I can do to get it to ignore mine or are you planning to have support anytime soon? Mike Perham wrote: A new version of the PMD plugin for Maven 2 has been released. PMD is a source code quality analysis tool and the plugin allows for automated quality reports to be generated with your project's site documentation. Highlights: - Upgrade to PMD 3.4 - Report can be emitted in HTML, XML, CSV or TXT - Added CPD (Copy/Paste Detector) report - JXR integration To update your plugin, just run 'mvn -U pmd:pmd' in an m2 project to pull down the latest version. Documentation: http://maven.apache.org/plugins/maven-pmd-plugin/ About PMD: http://pmd.sourceforge.net/ JIRA issues closed: http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truemode=hid e sorter/order=ASCsorter/field=prioritypid=11140fixfor=12176 mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] [tch] - 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] [tch] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Maven PMD plugin 2.0-beta-1
I thought it would go. I got this error. -- Line 58 is this one. @ManyToOne(cascade = {}, fetch = FetchType.EAGER) Encountered } at line 58, column 31. Was expecting one of: boolean ... byte ... char ... double ... false ... float ... int ... long ... new ... null ... short ... super ... this ... true ... void ... INTEGER_LITERAL ... FLOATING_POINT_LITERAL ... CHARACTER_LITERAL ... STRING_LITERAL ... IDENTIFIER ... ( ... { ... @ ... ! ... ~ ... ++ ... -- ... + ... - ... - Mike Perham wrote: Nic, put this in your plugin configuration: targetJdk1.5/targetJdk -Original Message- From: Nic Holbrook [mailto:[EMAIL PROTECTED] Sent: Friday, January 13, 2006 10:39 AM To: Maven Users List Subject: Re: [ANN] Maven PMD plugin 2.0-beta-1 This plugin doesn't seem to like annotations. Is there something I can do to get it to ignore mine or are you planning to have support anytime soon? Mike Perham wrote: A new version of the PMD plugin for Maven 2 has been released. PMD is a source code quality analysis tool and the plugin allows for automated quality reports to be generated with your project's site documentation. Highlights: - Upgrade to PMD 3.4 - Report can be emitted in HTML, XML, CSV or TXT - Added CPD (Copy/Paste Detector) report - JXR integration To update your plugin, just run 'mvn -U pmd:pmd' in an m2 project to pull down the latest version. Documentation: http://maven.apache.org/plugins/maven-pmd-plugin/ About PMD: http://pmd.sourceforge.net/ JIRA issues closed: http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truemode=hid e sorter/order=ASCsorter/field=prioritypid=11140fixfor=12176 mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] [tch] - 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] [tch] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANN] Maven PMD plugin 2.0-beta-1
Nic, that's a PMD bug. I'm assuming this might be the problem: http://pmd.sourceforge.net/future.html Some of the code is a bit sloppy: * The grammar has some odd bits: o Some complicated annotations are currently broken You might query the bugs in the PMD project on sourceforge for more info. -Original Message- From: Nic Holbrook [mailto:[EMAIL PROTECTED] Sent: Friday, January 13, 2006 11:05 AM To: Maven Users List Subject: Re: [ANN] Maven PMD plugin 2.0-beta-1 I thought it would go. I got this error. -- Line 58 is this one. @ManyToOne(cascade = {}, fetch = FetchType.EAGER) Encountered } at line 58, column 31. Was expecting one of: boolean ... byte ... char ... double ... false ... float ... int ... long ... new ... null ... short ... super ... this ... true ... void ... INTEGER_LITERAL ... FLOATING_POINT_LITERAL ... CHARACTER_LITERAL ... STRING_LITERAL ... IDENTIFIER ... ( ... { ... @ ... ! ... ~ ... ++ ... -- ... + ... - ... - Mike Perham wrote: Nic, put this in your plugin configuration: targetJdk1.5/targetJdk -Original Message- From: Nic Holbrook [mailto:[EMAIL PROTECTED] Sent: Friday, January 13, 2006 10:39 AM To: Maven Users List Subject: Re: [ANN] Maven PMD plugin 2.0-beta-1 This plugin doesn't seem to like annotations. Is there something I can do to get it to ignore mine or are you planning to have support anytime soon? Mike Perham wrote: A new version of the PMD plugin for Maven 2 has been released. PMD is a source code quality analysis tool and the plugin allows for automated quality reports to be generated with your project's site documentation. Highlights: - Upgrade to PMD 3.4 - Report can be emitted in HTML, XML, CSV or TXT - Added CPD (Copy/Paste Detector) report - JXR integration To update your plugin, just run 'mvn -U pmd:pmd' in an m2 project to pull down the latest version. Documentation: http://maven.apache.org/plugins/maven-pmd-plugin/ About PMD: http://pmd.sourceforge.net/ JIRA issues closed: http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truemode=hi d e sorter/order=ASCsorter/field=prioritypid=11140fixfor=12176 mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] [tch] - 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] [tch] - 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 generate the header of a table in APT Format?
Try this http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-HowdoIgetthetoplineofatabletobe%22headers%22forthatcolumninAPT%3F -allan HezhiQiang wrote: I konw this,but that doesn't describe the details about gernerating table header! 2006/1/14, dan tran [EMAIL PROTECTED]: http://maven.apache.org/guides/mini/guide-apt-format.html ? On 1/13/06, HezhiQiang [EMAIL PROTECTED] wrote: Using maven site plugin,How to generate the header of a table in apt format and that is th element in html text file. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.17/228 - Release Date: 1/12/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
M2 - Help needed with profiles
I read the following on maven website Profiles specified in the POM can modify the following POM elements: - *repositories* - *pluginRepositories* - *dependencies* - *plugins* - *properties* (not actually available in the main POM, but used behind the scenes) - *modules* - *reporting* - *dependencyManagement* - *distributionManagement* - a subset of the *build* element, which consists of: - *defaultGoal* - *resources* - *testResources* - *finalName* *I am interested in creating two profiles to modify eclipse plugin in the parent POM. One profile is for EJB project and other one is for Java project. I guess this is not the right way of doing it as I get errors when I do so. Please help me in configuring the profile right way. This will save me from duplication the plugin in code in serveral projects.* ** profiles profile idjavaprojects/id activation property namepackage/name valuejar/value /property /activation build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId configuration classpathContainers java.lang.String org.eclipse.jdt.launching.JRE_CONTAINER /java.lang.String java.lang.String com.ibm.wtp.server.java.core.container /com.ibm.etools.websphere.runtime.core.runtimeTarget.v50/was.base.v5 /java.lang.String /classpathContainers buildcommands java.lang.String org.eclipse.jdt.core.javabuilder /java.lang.String java.lang.String com.ibm.sse.model.structuredbuilder /java.lang.String java.lang.String com.ibm.etools.ctc.serviceprojectbuilder /java.lang.String /buildcommands projectnatures java.lang.String org.eclipse.jdt.core.javanature /java.lang.String java.lang.String com.ibm.etools.ctc.javaprojectnature /java.lang.String /projectnatures /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive indextrue/index manifest addClasspathtrue/addClasspath /manifest manifestEntries modedevelopment/mode url${pom.url}/url /manifestEntries /archive /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerVersion1.3/compilerVersion /configuration /plugin /plugins /build /profile profile idejbprojects/id activation property namepackage/name valueejb/value /property /activation plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions execution idWSEJBDEPLOY/id phasepackage/phase configuration tasks echo message=This is test message/ /tasks /configuration goals goalrun/goal /goals /execution execution phasecompile/phase configuration tasks copy todir=target/classes/META-INF fileset dir=ejbModule/META-INF include name=**.xm*/ /fileset /copy /tasks /configuration goals goalrun/goal /goals /execution /executions
Re: Failures with downloads
Hi Martin, I can help you. Attach your POM with the email. We can work from there. -Sanjay On 1/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I am trying to compile some code that requires the following dependencies and the POM files seem to be found but not the jar files why is this? I am finding that maven has more promise than it appears to be able to deliver. I have tried to use the eclipse plugin but virtaully everything I add as a dependency ends up with a failure so nothing else can then be added. Martin Roberts Group Research e-mail: [EMAIL PROTECTED] tel: +44(0) 1473 609785 clickdial http://clickdial.bt.co.uk/clickdial?001609785.cld fax: +44(0) 1473 609834 Intranet Site :http://twiki.btlabs.bt.co.uk/twiki pp 16 Floor 5, Orion Building, Adastral Park, Martlesham, Ipswich IP5 3RE, UK British Telecommunications plc Registered office: 81 Newgate Street London EC1A 7AJ Registered in England no. 180 This electronic message contains information from British Telecommunications plc which may be privileged or confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone or email (to the numbers or address above) immediately.
Re: [m2] outputDirectory
Hmmmtry configuring the jar plugin. There's an outputDirectory property there but I think this is still in SVN. The old version used basedir for this and was a readonly attribute but it was changed to outputDirectory to allow users to direct where the jar will be generated. You may have to grab it there and build it yourself. HTH, Henry Dmitry Beransky wrote: I guess I was too quick to declare victory. While the compiled classes do go into the newly configured directory, the jar file is still being placed into the default directory, which in my case, happens to be smack in the middle of the versioned source tree. So, how can I change the output directory for the package goal? Is there a universal way to divert output of any and all goals? Thanks Dmitry At 08:58 PM 1/10/2006, Henry Isidro wrote: Dmitry Beransky wrote: worked like a charm! I ended up putting the following into the profile section: properties buildDir${java.io.tmpDir}/maven/${pom.artifactId}/buildDir /properties now the settings file is portalble among different platforms. Very cool, indeed. Thanks Dmitry I was thinking in the lines of using profiles in settings.xml or profiles.xml where you specify a property which would be used in the pom, ie: - inside profiles.xml (which resides only in the system that is used): profiles profile idmyProfile/id properties myoutputc:\test\target/myoutput /properties /profile /profiles - inside pom.xml (which is portable): build outputDirectory${myoutput}/outputDirectory /build - 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 migrating *.properties from Maven1.x to Maven2
Hello, If you're concerned on the versioning the project.properties provides, I recommend on using the dependencyManagement/ section in POMv4. You can fill it up in a common pom, wherein other pom's can treat it as a parent in order to inherit the declared versions. If you're interested in some other feature, please let us know. Posting your project.xml, project.properties, maven.xml will greatly help. Cheers! Nap On 1/13/06, Martin Frixe [EMAIL PROTECTED] wrote: Hi, in my .properties files of my working maven v1 installation are many variables defined where the project.xml can find them during build process, *.properties are included in project.xml Problem is m2 ignores these files, because of replacement of these *.properties with settings.xml -in a valid xml file I can't define variables. The pom.xml (POM Version 4), does not have a include tag for resource files, so I have a real big problem. I don't want to hardcode all these values into my big multi-project. Where can I include variable definitions e.g. someLibrary.CURRENTVERSION}=1.07 without a *.properties file ??
Re: [PROBLEM SOLVED but is it a bug?] Re: [m2] remote repository artifact update / local repository for multiproject question
Loïc Lefèvre wrote: Hello Henry, first, thanks for your answer :o) NP :-) 2/ Yes, Remember: local repository defined ... repositories repository idXXX/id nameLocal repository for XXX builds./name urlfile://${basedir}/thirdparty/url layoutdefault/layout /repository /repositories ... but I get: Downloading: file://L:\projects\xxx\xxx-common/thirdparty/jgroups/jgroups-all/2.2.9/jgroups-all-2.2.9.pom [WARNING] Unable to get resource from repository XXX in fact following is what I tried without success: -1- urlfile://${basedir}/thirdparty/url -2- urlfile://./thirdparty/url -3- urlfile://../thirdparty/url Then I got a part of the answer, when I was using: urlfile://L:\project\XXX\thirdparty/url : it works with \ but not with / So the right answer is: urlfile://.\thirdparty/url But I wonder if I've discovered some bug... ^_^; Cheers, Loïc hso a '\' works and not a '/'? That's weird...maybe some of the devs can help as I'm not too familiar with the core. Regards, Henry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2 - Help needed with profiles
Hi Sanjay, Can you post the errors you're getting? Regards, Henry Sanjay Choudhary wrote: I read the following on maven website Profiles specified in the POM can modify the following POM elements: - *repositories* - *pluginRepositories* - *dependencies* - *plugins* - *properties* (not actually available in the main POM, but used behind the scenes) - *modules* - *reporting* - *dependencyManagement* - *distributionManagement* - a subset of the *build* element, which consists of: - *defaultGoal* - *resources* - *testResources* - *finalName* *I am interested in creating two profiles to modify eclipse plugin in the parent POM. One profile is for EJB project and other one is for Java project. I guess this is not the right way of doing it as I get errors when I do so. Please help me in configuring the profile right way. This will save me from duplication the plugin in code in serveral projects.* ** profiles profile idjavaprojects/id activation property namepackage/name valuejar/value /property /activation build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId configuration classpathContainers java.lang.String org.eclipse.jdt.launching.JRE_CONTAINER /java.lang.String java.lang.String com.ibm.wtp.server.java.core.container /com.ibm.etools.websphere.runtime.core.runtimeTarget.v50/was.base.v5 /java.lang.String /classpathContainers buildcommands java.lang.String org.eclipse.jdt.core.javabuilder /java.lang.String java.lang.String com.ibm.sse.model.structuredbuilder /java.lang.String java.lang.String com.ibm.etools.ctc.serviceprojectbuilder /java.lang.String /buildcommands projectnatures java.lang.String org.eclipse.jdt.core.javanature /java.lang.String java.lang.String com.ibm.etools.ctc.javaprojectnature /java.lang.String /projectnatures /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive indextrue/index manifest addClasspathtrue/addClasspath /manifest manifestEntries modedevelopment/mode url${pom.url}/url /manifestEntries /archive /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerVersion1.3/compilerVersion /configuration /plugin /plugins /build /profile profile idejbprojects/id activation property namepackage/name valueejb/value /property /activation plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions execution idWSEJBDEPLOY/id phasepackage/phase configuration tasks echo message=This is test message/ /tasks /configuration goals goalrun/goal /goals /execution execution phasecompile/phase configuration tasks copy todir=target/classes/META-INF fileset dir=ejbModule/META-INF include name=**.xm*/ /fileset /copy /tasks /configuration goals
Re: [PROBLEM SOLVED but is it a bug?] Re: [m2] remote repository artifact update / local repository for multiproject question
In fact, I work in a windows environment not a Linux/unix one! L. On 1/14/06, Henry Isidro [EMAIL PROTECTED] wrote: Loïc Lefèvre wrote: Hello Henry, first, thanks for your answer :o) NP :-) 2/ Yes, Remember: local repository defined ... repositories repository idXXX/id nameLocal repository for XXX builds./name urlfile://${basedir}/thirdparty/url layoutdefault/layout /repository /repositories ... but I get: Downloading: file://L:\projects\xxx\xxx-common/thirdparty/jgroups/jgroups-all/2.2.9/jgroups-all-2.2.9.pom [WARNING] Unable to get resource from repository XXX in fact following is what I tried without success: -1- urlfile://${basedir}/thirdparty/url -2- urlfile://./thirdparty/url -3- urlfile://../thirdparty/url Then I got a part of the answer, when I was using: urlfile://L:\project\XXX\thirdparty/url : it works with \ but not with / So the right answer is: urlfile://.\thirdparty/url But I wonder if I've discovered some bug... ^_^; Cheers, Loïc hso a '\' works and not a '/'? That's weird...maybe some of the devs can help as I'm not too familiar with the core. Regards, Henry - 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 - Help needed with profiles
Hi, What's the exact use case here? Do you know that M2 can merge profiles so you can avoid some duplication by factoring out common elements into a parent POM. Having said that, it would be a good idea to have some more details on what you are intending to do. Cheers, Rahul - Original Message - From: Sanjay Choudhary [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Saturday, January 14, 2006 12:50 PM Subject: M2 - Help needed with profiles I read the following on maven website Profiles specified in the POM can modify the following POM elements: - *repositories* - *pluginRepositories* - *dependencies* - *plugins* - *properties* (not actually available in the main POM, but used behind the scenes) - *modules* - *reporting* - *dependencyManagement* - *distributionManagement* - a subset of the *build* element, which consists of: - *defaultGoal* - *resources* - *testResources* - *finalName* *I am interested in creating two profiles to modify eclipse plugin in the parent POM. One profile is for EJB project and other one is for Java project. I guess this is not the right way of doing it as I get errors when I do so. Please help me in configuring the profile right way. This will save me from duplication the plugin in code in serveral projects.* ** profiles profile idjavaprojects/id activation property namepackage/name valuejar/value /property /activation build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId configuration classpathContainers java.lang.String org.eclipse.jdt.launching.JRE_CONTAINER /java.lang.String java.lang.String com.ibm.wtp.server.java.core.container /com.ibm.etools.websphere.runtime.core.runtimeTarget.v50/was.base.v5 /java.lang.String /classpathContainers buildcommands java.lang.String org.eclipse.jdt.core.javabuilder /java.lang.String java.lang.String com.ibm.sse.model.structuredbuilder /java.lang.String java.lang.String com.ibm.etools.ctc.serviceprojectbuilder /java.lang.String /buildcommands projectnatures java.lang.String org.eclipse.jdt.core.javanature /java.lang.String java.lang.String com.ibm.etools.ctc.javaprojectnature /java.lang.String /projectnatures /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive indextrue/index manifest addClasspathtrue/addClasspath /manifest manifestEntries modedevelopment/mode url${pom.url}/url /manifestEntries /archive /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerVersion1.3/compilerVersion /configuration /plugin /plugins /build /profile profile idejbprojects/id activation property namepackage/name valueejb/value /property /activation plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions execution idWSEJBDEPLOY/id phasepackage/phase configuration tasks echo message=This is test message/ /tasks /configuration goals goalrun/goal /goals /execution execution phasecompile/phase configuration tasks copy todir=target/classes/META-INF
Re: How to generate the header of a table in APT Format?
Thanks! 2006/1/14, Allan Ramirez [EMAIL PROTECTED]: Try this http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-HowdoIgetthetoplineofatabletobe%22headers%22forthatcolumninAPT%3F -allan HezhiQiang wrote: I konw this,but that doesn't describe the details about gernerating table header! 2006/1/14, dan tran [EMAIL PROTECTED]: http://maven.apache.org/guides/mini/guide-apt-format.html ? On 1/13/06, HezhiQiang [EMAIL PROTECTED] wrote: Using maven site plugin,How to generate the header of a table in apt format and that is th element in html text file. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.17/228 - Release Date: 1/12/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
some developers of maven2 can resolve this question?[line number of error-message of maven output]
[ERROR] Error rendering Z:\eBook\Java\Logging\Logging In Java\src\site\apt\07\index.apt: missing '' org.codehaus.doxia.module.apt.AptParseException: missing '' at org.codehaus.doxia.module.apt.AptParser.doTraverseText( AptParser.java:1007) at org.codehaus.doxia.module.apt.AptParser.access$500(AptParser.java :27) at org.codehaus.doxia.module.apt.AptParser$Block.traverseText( AptParser.java:1211) at org.codehaus.doxia.module.apt.AptParser$Block.traverseText( AptParser.java:1206) at org.codehaus.doxia.module.apt.AptParser$Paragraph.traverse( AptParser.java:1484) at org.codehaus.doxia.module.apt.AptParser.traverseSectionBlocks( AptParser.java:238) at org.codehaus.doxia.module.apt.AptParser.traverseSection( AptParser.java:193) at org.codehaus.doxia.module.apt.AptParser.traverseSection( AptParser.java:202) at org.codehaus.doxia.module.apt.AptParser.traverseSection( AptParser.java:202) at org.codehaus.doxia.module.apt.AptParser.traverseBody( AptParser.java:153) at org.codehaus.doxia.module.apt.AptParser.parse(AptParser.java:110) at org.codehaus.doxia.DefaultDoxia.parse(DefaultDoxia.java:65) at org.codehaus.plexus.siterenderer.DefaultSiteRenderer.render( DefaultSiteRenderer.java:221) at org.codehaus.plexus.siterenderer.DefaultSiteRenderer.render( DefaultSiteRenderer.java:173) at org.codehaus.plexus.siterenderer.DefaultSiteRenderer.render( DefaultSiteRenderer.java:152) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:340) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:432) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:530) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal( DefaultLifecycleExecutor.java:485) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:455) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java: at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java :315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java :430) When i use Maven-2.0.1 to generate the maven site,i get this error message form maven output ,i can not get the error line number,if i can, it more easy to troubleshooting! some developers of maven2 can resolve this question?
Re: some developers of maven2 can resolve this question?[line number of error-message of maven output]
Hi, Is there a String in your index.apt file? I think (not sure) that Some Text is probably used to set up headers (table column headers?) in apt. You might need to escape it, if that's the case. Cheers, Rahul - Original Message - From: ZhiQiang He [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Saturday, January 14, 2006 8:08 PM Subject: some developers of maven2 can resolve this question?[line number of error-message of maven output] [ERROR] Error rendering Z:\eBook\Java\Logging\Logging In Java\src\site\apt\07\index.apt: missing '' org.codehaus.doxia.module.apt.AptParseException: missing '' at org.codehaus.doxia.module.apt.AptParser.doTraverseText( AptParser.java:1007) at org.codehaus.doxia.module.apt.AptParser.access$500(AptParser.java :27) at org.codehaus.doxia.module.apt.AptParser$Block.traverseText( AptParser.java:1211) at org.codehaus.doxia.module.apt.AptParser$Block.traverseText( AptParser.java:1206) at org.codehaus.doxia.module.apt.AptParser$Paragraph.traverse( AptParser.java:1484) at org.codehaus.doxia.module.apt.AptParser.traverseSectionBlocks( AptParser.java:238) at org.codehaus.doxia.module.apt.AptParser.traverseSection( AptParser.java:193) at org.codehaus.doxia.module.apt.AptParser.traverseSection( AptParser.java:202) at org.codehaus.doxia.module.apt.AptParser.traverseSection( AptParser.java:202) at org.codehaus.doxia.module.apt.AptParser.traverseBody( AptParser.java:153) at org.codehaus.doxia.module.apt.AptParser.parse(AptParser.java:110) at org.codehaus.doxia.DefaultDoxia.parse(DefaultDoxia.java:65) at org.codehaus.plexus.siterenderer.DefaultSiteRenderer.render( DefaultSiteRenderer.java:221) at org.codehaus.plexus.siterenderer.DefaultSiteRenderer.render( DefaultSiteRenderer.java:173) at org.codehaus.plexus.siterenderer.DefaultSiteRenderer.render( DefaultSiteRenderer.java:152) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:340) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:432) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:530) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal( DefaultLifecycleExecutor.java:485) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:455) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java: at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java :315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java :430) When i use Maven-2.0.1 to generate the maven site,i get this error message form maven output ,i can not get the error line number,if i can, it more easy to troubleshooting! some developers of maven2 can resolve this question? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: some developers of maven2 can resolve this question?[line number of error-message of maven output]
ahh! just after I sent in the last response, I found these links: http://maven.apache.org/guides/mini/guide-apt-format.html http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-HowdoIgetthetoplineofatabletobe%22headers%22forthatcolumninAPT%3F Some Text is used to set up text in monospaced font. HTH, Rahul - Original Message - From: ZhiQiang He [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Saturday, January 14, 2006 8:08 PM Subject: some developers of maven2 can resolve this question?[line number of error-message of maven output] [ERROR] Error rendering Z:\eBook\Java\Logging\Logging In Java\src\site\apt\07\index.apt: missing '' org.codehaus.doxia.module.apt.AptParseException: missing '' at org.codehaus.doxia.module.apt.AptParser.doTraverseText( AptParser.java:1007) at org.codehaus.doxia.module.apt.AptParser.access$500(AptParser.java :27) at org.codehaus.doxia.module.apt.AptParser$Block.traverseText( AptParser.java:1211) at org.codehaus.doxia.module.apt.AptParser$Block.traverseText( AptParser.java:1206) at org.codehaus.doxia.module.apt.AptParser$Paragraph.traverse( AptParser.java:1484) at org.codehaus.doxia.module.apt.AptParser.traverseSectionBlocks( AptParser.java:238) at org.codehaus.doxia.module.apt.AptParser.traverseSection( AptParser.java:193) at org.codehaus.doxia.module.apt.AptParser.traverseSection( AptParser.java:202) at org.codehaus.doxia.module.apt.AptParser.traverseSection( AptParser.java:202) at org.codehaus.doxia.module.apt.AptParser.traverseBody( AptParser.java:153) at org.codehaus.doxia.module.apt.AptParser.parse(AptParser.java:110) at org.codehaus.doxia.DefaultDoxia.parse(DefaultDoxia.java:65) at org.codehaus.plexus.siterenderer.DefaultSiteRenderer.render( DefaultSiteRenderer.java:221) at org.codehaus.plexus.siterenderer.DefaultSiteRenderer.render( DefaultSiteRenderer.java:173) at org.codehaus.plexus.siterenderer.DefaultSiteRenderer.render( DefaultSiteRenderer.java:152) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:340) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:432) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:530) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal( DefaultLifecycleExecutor.java:485) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:455) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java: at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java :315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java :430) When i use Maven-2.0.1 to generate the maven site,i get this error message form maven output ,i can not get the error line number,if i can, it more easy to troubleshooting! some developers of maven2 can resolve this question? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]