RE: configure plugin (jboss-maven)
Ok, thank you for trying this out. It is probably something wrong in my configuration. If I have some time left I will try to reinstall the plugins and try again (cannot do this now, I need to get some work done first :-) Edwin -Oorspronkelijk bericht- Van: Edwin Punzalan [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 3 januari 2006 2:49 Aan: Maven Users List Onderwerp: Re: configure plugin (jboss-maven) I understand. Anyway, I tried and configured the jboss plugin on my maching and got this: -- snip [DEBUG] Configuring mojo 'org.codehaus.mojo:jboss-maven-plugin:1.0:harddeploy' -- [DEBUG] (f) fileName = F:\mergere\maven\web-pom-generator\trunk\target/web-pom-generator.war [DEBUG] (f) jbossHome = app\jboss-4.0.3\ [DEBUG] (f) serverName = default [DEBUG] -- end configuration -- [INFO] [jboss:harddeploy] -- snip notice jbossHome got the correct configuration I put in my pom.xml so the jira isn't needed. Sorry if I'm not of great help, but that's as far as I can go if can't reproduce it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Copy Jar?
hi for m2 , I am doing this configuration to copy *.jar to my target directory as well as tar to my assembled file. /pom.xml /plugins !-- this will package all dependencies to your target/lib. command: mvn package-- plugin groupIdorg.codehaus.mojo/groupId artifactIddependency-maven-plugin/artifactId executions execution idcopy-dependencies/id phasepackage/phase goals goalcopy-dependencies/goal /goals configuration outputDirectory${project.build.directory}/lib/outputDirectory /configuration /execution /executions /plugin !-- this will copy all dependencies to your assembled tar.gz. command: mvn assembly:assembly -- plugin artifactIdmaven-assembly-plugin/artifactId configuration descriptorsrc/main/assembly/bin.xml/descriptor /configuration /plugin /plugins /src/main/assembly/bin.xml assembly idbin/id formats formattar.gz/format /formats fileSets fileSet includes includeREADME*/include includebin/run.sh*/include /includes /fileSet fileSet directorytarget/directory outputDirectory/outputDirectory includes include*.jar/include /includes /fileSet fileSet directorytarget/lib/directory outputDirectorylib/outputDirectory includes include*.jar/include /includes /fileSet /fileSets /assembly Yeah, I missed the obvious first sentence, sorry. -Original Message- From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] Sent: Monday, January 02, 2006 6:47 PM To: Maven Users List Subject: Re: Copy Jar? Hi Brian, this tip is only for m2. Arnaud On 1/2/06, Brian E. Fox [EMAIL PROTECTED] wrote: Take a look at the dependency-maven-plugin at mojo http://mojo.codehaus.org/dependency-maven-plugin. After building and installing, this plugin could execute and copy it where ever you like. It expects the artifact to be in the local or remote repository but if you execute it in the install phase, it should already be in your local repo by the time the plugin executes. -Original Message- From: Davis Ford [mailto:[EMAIL PROTECTED] Sent: Monday, January 02, 2006 9:53 AM To: users@maven.apache.org Subject: Copy Jar? Hi, I'm using Maven 1.0.2 to build my jar. The jar is used as part of a different project called GeoServer that uses Jetty. Every time I build my jar, I need to manually copy it to $someDir$/geoserver/server/WEB-INF/lib/ in order to test my changes. I don't rebuild GeoServer software everytime...I only rebuild my jar that I run inside GeoServer. What is the best way for me to add a target or over-ride a plugin property to copy my jar to this directory? I looked at jar:install, but if I think if I over-ride that, then my jar dependencies will get screwed up as it won't point to my .maven/repository anymore. I looked at distribution plugin, but it doesn't seem to have any documentation. I'm not that swift yet with Jelly, but is there a maven.xml example somewhere that does this? Also, different developers have installed GeoServer in different directories on their machines. This means somehow, whatever solution I create has to be able to accomodate this discrepancy. Environment variable? Regards, Davis - 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: Copy Jar?
If needed, to copy all the dependencies, in m1 there's a tag : maven:copy-deps Arnaud On 1/3/06, Man-Chi Leung [EMAIL PROTECTED] wrote: hi for m2 , I am doing this configuration to copy *.jar to my target directory as well as tar to my assembled file. /pom.xml /plugins !-- this will package all dependencies to your target/lib. command: mvn package-- plugin groupIdorg.codehaus.mojo/groupId artifactIddependency-maven-plugin/artifactId executions execution idcopy-dependencies/id phasepackage/phase goals goalcopy-dependencies/goal /goals configuration outputDirectory${ project.build.directory}/lib/outputDirectory /configuration /execution /executions /plugin !-- this will copy all dependencies to your assembled tar.gz. command: mvn assembly:assembly -- plugin artifactIdmaven-assembly-plugin/artifactId configuration descriptorsrc/main/assembly/bin.xml/descriptor /configuration /plugin /plugins /src/main/assembly/bin.xml assembly idbin/id formats formattar.gz/format /formats fileSets fileSet includes includeREADME*/include includebin/run.sh*/include /includes /fileSet fileSet directorytarget/directory outputDirectory/outputDirectory includes include*.jar/include /includes /fileSet fileSet directorytarget/lib/directory outputDirectorylib/outputDirectory includes include*.jar/include /includes /fileSet /fileSets /assembly Yeah, I missed the obvious first sentence, sorry. -Original Message- From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] Sent: Monday, January 02, 2006 6:47 PM To: Maven Users List Subject: Re: Copy Jar? Hi Brian, this tip is only for m2. Arnaud On 1/2/06, Brian E. Fox [EMAIL PROTECTED] wrote: Take a look at the dependency-maven-plugin at mojo http://mojo.codehaus.org/dependency-maven-plugin. After building and installing, this plugin could execute and copy it where ever you like. It expects the artifact to be in the local or remote repository but if you execute it in the install phase, it should already be in your local repo by the time the plugin executes. -Original Message- From: Davis Ford [mailto:[EMAIL PROTECTED] Sent: Monday, January 02, 2006 9:53 AM To: users@maven.apache.org Subject: Copy Jar? Hi, I'm using Maven 1.0.2 to build my jar. The jar is used as part of a different project called GeoServer that uses Jetty. Every time I build my jar, I need to manually copy it to $someDir$/geoserver/server/WEB-INF/lib/ in order to test my changes. I don't rebuild GeoServer software everytime...I only rebuild my jar that I run inside GeoServer. What is the best way for me to add a target or over-ride a plugin property to copy my jar to this directory? I looked at jar:install, but if I think if I over-ride that, then my jar dependencies will get screwed up as it won't point to my .maven/repository anymore. I looked at distribution plugin, but it doesn't seem to have any documentation. I'm not that swift yet with Jelly, but is there a maven.xml example somewhere that does this? Also, different developers have installed GeoServer in different directories on their machines. This means somehow, whatever solution I create has to be able to accomodate this discrepancy. Environment variable? Regards, Davis - 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: How to use M2 with AspectJ?
i got my aspectj plugin working fine: check out from svn://svn.codehaus.org/mojo/scm/trunk/mojo/mojo- sandbox/aspectj-maven-plugin anyway, from the spectj-maven-plugin/pom.xml I updated all 1.5.0_M5 to 1.5.0 (since 1.5.0 is the latest release on 20th Dec 05') --- my project pom.xml --- dependencies dependency groupIdaspectj/groupId artifactIdaspectjrt/artifactId version1.5.0/version scopecompile/scope /dependency /dependencies plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdaspectj-maven-plugin/artifactId configuration options option-1.5/option option-verbose/option option-showWeaveInfo/option /options ajdtBuildDefFilesrc/main/resources/build.ajproperties/ ajdtBuildDefFile /configuration executions execution goals goalcompile/goal !-- goaltest-compile/goal-- /goals /execution /executions /plugin /plugins NOTE: the last thing is the build.ajproperties. (default location is project / , created by Eclipse AJDT, but I moved to src/main/ resources/) - build.ajproperties - src.includes = src/main/aspect/,\ src/main/java/com/mycompany/app/ src.excludes = src/test/,\ src/site/,\ src/main/assembly,\ src/main/filters,\ src/main/groovy On Dec 30, 2005, at 2:36 AM, Dennis Ho wrote: Hi, Does anyone know which maven 2 repository has the aspectj-maven-plugin? I tried using the following in my pom but got : [INFO] The plugin 'org.codehaus.mojo:aspectj-maven-plugin' does not exist or no valid version could be found build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdaspectj-maven-plugin/artifactId executions execution idcompile/id configuration ajdtBuildDefFilebuild.ajproperties/ajdtBuildDefFile /configuration goals goalcompile/goal /goals /execution /executions /plugin /build Thanks in advance. Regards, Dennis. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Sanchez Sent: Monday, November 21, 2005 7:39 PM To: Maven Users List Subject: Re: How to use M2 with AspectJ? It has just been added http://svn.mojo.codehaus.org/trunk/mojo/mojo-sandbox/aspectj-maven- plugi n/ On 11/21/05, Law Green-A20134 [EMAIL PROTECTED] wrote: Hi, Anyone has the idea of using M2 along with aspectJ since there is no aspectJ plug-in for M2. Thanks Green - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2]Local repo problem
I have setup a local repository and dependencies are getting downloaded to it fine. I tried to put my own jar in their (an oracle db driver) I am running maven 2 of windows xp. Doing the following: Setup repository at location C:/mvnlocalrep Then add the following structure C: mvnlocalrep oraclejar jars classes12.jar poms classes12.pom In the pom file I write the following project modelVersion10.0.1/modelVersion groupIdoraclejdbc/groupId artifactIdclasses12/artifactId version0.1/version /project The I add this to the pom.xml where I want to use the dependency dependency groupIdoraclejdbc/groupId artifactIdclasses12/artifactId version0.1/version scopecompile/scope /dependency When I then do a Mvn compile on the project I get this: required artifacts missing: oraclejdbc:classes12:jar:0.1 for the artifact: org.bms:bms1_3:jar:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) I would be eternally grateful for any help on this. Thanks in advance.
problem with xsd files
Hi, I am na newbie to Maven and I have a following problem with my Maven 2.0.1. My POM.xml looks like this: 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 groupIdpl.com.arimr.abg.ofsa/groupId artifactIdofsa/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameSchema/name urlhttp://maven.apache.org/url dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdxbean/groupId artifactIdxbean/artifactId version8.1.4.0/version scopecompile/scope /dependency dependency groupIdweblogic/groupId artifactIdwli/artifactId version8.1.4.0/version scopecompile/scope /dependency /dependencies build plugins plugin artifactIdmaven-antrun-plugin/artifactId executions execution phaseprocess-resources/phase configuration tasks !--echo message=${maven.src.dir}/ echo message=${mvn.src.dir}/-- taskdef name=xmlbean classname=com.bea.xbean.tool.XMLBean classpathref=maven.dependency.classpath / taskdef name=mflbean classname=com.bea.wli.mfl.MFLBean classpathref=maven.dependency.classpath / xmlbean classgendir=${maven.build.dest} schema=src classpathref=maven.dependency.classpath debug=false memoryInitialSize=8m memoryMaximumSize=256m fork=true failonerror=true / !-- Insert arbitrary Ant -- /tasks /configuration !-- Run the ant target -- goals goalrun/goal /goals /execution /executions /plugin /plugins sourceDirectorysrc/java/sourceDirectory /build /project and I would like to compile my project which contains of .xsd files. When I try to do 'mvn compile' it says: [INFO] Scanning for projects... [INFO] [INFO] Building Schema [INFO]task-segment: [compile] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. Downloading: http://repo1.maven.org/maven2/xbean/xbean/8.1.4.0/xbean-8.1.4.0.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) Downloading: http://repo1.maven.org/maven2/weblogic/wli/8.1.4.0/wli-8.1.4.0.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] [antrun:run {execution: default}] [INFO] Executing tasks [xmlbean] src/java/pl/com/abg/arimr/ofsa/common/wniosek/v1/ro2D6schemat.xsd:1: error: Document root element is missing. [xmlbean] src/java/pl/com/abg/arimr/ofsa/common/baza.xsd:1: error: Document root element is missing. [xmlbean] src/java/pl/com/abg/arimr/ofsa/common/wniosek/v1/ry4D1schemat.xsd:0: error: Problem parsing referenced XML resour ce - D:\temp\ARIMR-OFSA\ARIMR-OFSA\Projekt\Implementacja\application\common\schema\src\java\pl\com\abg\arimr\ofsa\common\baza .xsd:1: error: Document root element is missing. [xmlbean] src/java/pl/com/abg/arimr/ofsa/common/wniosek/wnioski.xsd:0: error: Type [EMAIL PROTECTED]://xml.zsi2.arimr.abg.com/ZSI2/ baza.xsd not found. [xmlbean] src/java/pl/com/abg/arimr/ofsa/common/wniosek/v1/wnioski.xsd:0: error: Type [EMAIL PROTECTED]://xml.zsi2.arimr.abg.com/ ZSI2/baza.xsd not found. Do you mean to refer to the type named [EMAIL PROTECTED]://xml.zsi2.arimr.abg.com/ZSI2/wnioski/v1/ry3D1sc hemat.xsd (in ry3D1schemat.xsd)? [xmlbean] src/java/pl/com/abg/arimr/ofsa/common/card/karty.xsd:0: error: Type [EMAIL PROTECTED]://xml.zsi2.arimr.abg.com/ZSI2/baza. xsd not found. Time to build schema type system: 4.157 seconds BUILD FAILED [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error executing ant tasks [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 12 seconds [INFO] Finished at: Tue Jan 03 11:44:48 CET 2006 [INFO] Final Memory: 4M/22M [INFO]
problem with xsd files
Hi, I am na newbie to Maven and I have a following problem with my Maven 2.0.1. My POM.xml looks like this: 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 groupIdpl.com.arimr.abg.ofsa/groupId artifactIdofsa/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameSchema/name urlhttp://maven.apache.org/url dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdxbean/groupId artifactIdxbean/artifactId version8.1.4.0/version scopecompile/scope /dependency dependency groupIdweblogic/groupId artifactIdwli/artifactId version8.1.4.0/version scopecompile/scope /dependency /dependencies build plugins plugin artifactIdmaven-antrun-plugin/artifactId executions execution phaseprocess-resources/phase configuration tasks !--echo message=${maven.src.dir}/ echo message=${mvn.src.dir}/-- taskdef name=xmlbean classname=com.bea.xbean.tool.XMLBean classpathref=maven.dependency.classpath / taskdef name=mflbean classname=com.bea.wli.mfl.MFLBean classpathref=maven.dependency.classpath / xmlbean classgendir=${maven.build.dest} schema=src classpathref=maven.dependency.classpath debug=false memoryInitialSize=8m memoryMaximumSize=256m fork=true failonerror=true / !-- Insert arbitrary Ant -- /tasks /configuration !-- Run the ant target -- goals goalrun/goal /goals /execution /executions /plugin /plugins sourceDirectorysrc/java/sourceDirectory /build /project and I would like to compile my project which contains of .xsd files. When I try to do 'mvn compile' it says: [INFO] Scanning for projects... [INFO] [INFO] Building Schema [INFO] task-segment: [compile] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. Downloading: http://repo1.maven.org/maven2/xbean/xbean/8.1.4.0/xbean-8.1.4.0.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) Downloading: http://repo1.maven.org/maven2/weblogic/wli/8.1.4.0/wli-8.1.4.0.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] [antrun:run {execution: default}] [INFO] Executing tasks [xmlbean] src/java/pl/com/abg/arimr/ofsa/common/wniosek/v1/ro2D6schemat.xsd:1: error: Document root element is missing. [xmlbean] src/java/pl/com/abg/arimr/ofsa/common/baza.xsd:1: error: Document root element is missing. [xmlbean] src/java/pl/com/abg/arimr/ofsa/common/wniosek/v1/ry4D1schemat.xsd:0: error: Problem parsing referenced XML resour ce - D:\temp\ARIMR-OFSA\ARIMR-OFSA\Projekt\Implementacja\application\common\schema\src\java\pl\com\abg\arimr\ofsa\common\baza .xsd:1: error: Document root element is missing. [xmlbean] src/java/pl/com/abg/arimr/ofsa/common/wniosek/wnioski.xsd:0: error: Type [EMAIL PROTECTED]://xml.zsi2.arimr.abg.com/ZSI2/ baza.xsd not found. [xmlbean] src/java/pl/com/abg/arimr/ofsa/common/wniosek/v1/wnioski.xsd:0: error: Type [EMAIL PROTECTED]://xml.zsi2.arimr.abg.com/ ZSI2/baza.xsd not found. Do you mean to refer to the type named [EMAIL PROTECTED]://xml.zsi2.arimr.abg.com/ZSI2/wnioski/v1/ry3D1sc hemat.xsd (in ry3D1schemat.xsd)? [xmlbean] src/java/pl/com/abg/arimr/ofsa/common/card/karty.xsd:0: error: Type [EMAIL PROTECTED]://xml.zsi2.arimr.abg.com/ZSI2/baza. xsd not found. Time to build schema type system: 4.157 seconds BUILD FAILED [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error executing ant tasks [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 12 seconds [INFO] Finished at: Tue Jan 03 11:44:48 CET 2006 [INFO] Final Memory: 4M/22M [INFO] Ant task is working without any problems. I would be grateful for any help. Thanks, Pawel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
using a dependency path in an ant mojo
I've used ant to write a mojo with Maven 2.1-SNAPSHOT. This is working great, but now I'd like to reference the jars of some dependencies of my plugin. How would I do this ? Can I pass this in using some kind of parameter expression ? Tom
How to specify external jars
Hi, I have a couple of external jars that I need for my Project compilation. I have uploaded them to the local repository using: mvn install:install-file -Dfile=File Path\JAR_NAME.jar -DgroupId=groupId -DartifactId=JAR_NAME -Dversion=1.0 -Dpackaging=jar I tried adding the jar as a dependency to my POM.xml. When I try to compile the project using mvn compile, it is still not detected. I even tried to add the jars to my CLASSPATH manually. Even that doesn't help. Could someone please let me know where I am going wrong? Thanks and Regards, Kiran This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven evangelism - urgent
Hello, after 3 years of using maven, there is a discussion here at work, that risk to come back to ant... please send me the pointers for using ant versus maven, i can't remember where to find them... (maven 1 or 2) In advance Thank you Raphaël
Re: Maven evangelism - urgent
http://www-128.ibm.com/developerworks/java/library/j-maven/ http://www.devx.com/java/Article/17204 On 1/3/06, Piéroni Raphaël [EMAIL PROTECTED] wrote: Hello, after 3 years of using maven, there is a discussion here at work, that risk to come back to ant... please send me the pointers for using ant versus maven, i can't remember where to find them... (maven 1 or 2) In advance Thank you Raphaël - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2]Local repo problem
David, Im quite new myself but can try and give a couple of suggestions. One is your model version. I believe this refers to the pom so should probably be 4.0.0. Also you may be better to use the install command to upload your jar to the repository. I believe this command auto generates the metadata and md5 checksum for your jar so it should be more reliable. regards Tim D Abbs, David A wrote: I have setup a local repository and dependencies are getting downloaded to it fine. I tried to put my own jar in their (an oracle db driver) I am running maven 2 of windows xp. Doing the following: Setup repository at location C:/mvnlocalrep Then add the following structure C: mvnlocalrep oraclejar jars classes12.jar poms classes12.pom In the pom file I write the following project modelVersion10.0.1/modelVersion groupIdoraclejdbc/groupId artifactIdclasses12/artifactId version0.1/version /project The I add this to the pom.xml where I want to use the dependency dependency groupIdoraclejdbc/groupId artifactIdclasses12/artifactId version0.1/version scopecompile/scope /dependency When I then do a Mvn compile on the project I get this: required artifacts missing: oraclejdbc:classes12:jar:0.1 for the artifact: org.bms:bms1_3:jar:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) I would be eternally grateful for any help on this. Thanks in advance. -- Tim Davies Analyst Developer KTS PLC: Service you can bank on 8th Floor, Finsbury Tower, 103-105 Bunhill Row, London EC1Y 8LZ tel: +44 (0)20 7256 2300 fax: +44 (0)20 7256 2301 email: [EMAIL PROTECTED] web: http://www.ktsplc.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2]Local repo problem
Hi David, Instead of manually installing the jar let maven do it for you; mvn -DartifactId=oraclejar -Dfile=./classes12.jar -DgroupId=oraclejar -Dpackaging=jar -Dversion=1.2 install:install-file Which will cause your jar file to be put into the repository properly. Also - you appear to be using an maven 1 repo layout for your m2 repo, make sure to specify legacy in your pointer to the repository. HTH, Bill Dudney MyFaces - myfaces.apache.org Wadi - incubator.apache.org/wadi On Jan 3, 2006, at 3:35 AM, Abbs, David A wrote: I have setup a local repository and dependencies are getting downloaded to it fine. I tried to put my own jar in their (an oracle db driver) I am running maven 2 of windows xp. Doing the following: Setup repository at location C:/mvnlocalrep Then add the following structure C: mvnlocalrep oraclejar jars classes12.jar poms classes12.pom In the pom file I write the following project modelVersion10.0.1/modelVersion groupIdoraclejdbc/groupId artifactIdclasses12/artifactId version0.1/version /project The I add this to the pom.xml where I want to use the dependency dependency groupIdoraclejdbc/groupId artifactIdclasses12/artifactId version0.1/version scopecompile/scope /dependency When I then do a Mvn compile on the project I get this: required artifacts missing: oraclejdbc:classes12:jar:0.1 for the artifact: org.bms:bms1_3:jar:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) I would be eternally grateful for any help on this. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2]Local repo problem
Hi Is there a way to generate pom and checksum files also When adding jar to local repository? The property -DgeneratePom=true does not work for me. Regards Georges -Original Message- From: Bill Dudney [mailto:[EMAIL PROTECTED] Sent: den 3 januari 2006 13:46 To: Maven Users List Subject: Re: [m2]Local repo problem Hi David, Instead of manually installing the jar let maven do it for you; mvn -DartifactId=oraclejar -Dfile=./classes12.jar -DgroupId=oraclejar -Dpackaging=jar -Dversion=1.2 install:install-file Which will cause your jar file to be put into the repository properly. Also - you appear to be using an maven 1 repo layout for your m2 repo, make sure to specify legacy in your pointer to the repository. HTH, Bill Dudney MyFaces - myfaces.apache.org Wadi - incubator.apache.org/wadi On Jan 3, 2006, at 3:35 AM, Abbs, David A wrote: I have setup a local repository and dependencies are getting downloaded to it fine. I tried to put my own jar in their (an oracle db driver) I am running maven 2 of windows xp. Doing the following: Setup repository at location C:/mvnlocalrep Then add the following structure C: mvnlocalrep oraclejar jars classes12.jar poms classes12.pom In the pom file I write the following project modelVersion10.0.1/modelVersion groupIdoraclejdbc/groupId artifactIdclasses12/artifactId version0.1/version /project The I add this to the pom.xml where I want to use the dependency dependency groupIdoraclejdbc/groupId artifactIdclasses12/artifactId version0.1/version scopecompile/scope /dependency When I then do a Mvn compile on the project I get this: required artifacts missing: oraclejdbc:classes12:jar:0.1 for the artifact: org.bms:bms1_3:jar:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) I would be eternally grateful for any help on this. Thanks in advance. - 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]
SV: How to specify external jars
Hi I assume you are using Maven2. Can you find the uploaded jars in your repository? Have you checked the internal structure of your installed jars? (for example if foo.jar is installed, and it in its turn contains bar.jar, fu.jar etc maven won't find them) Have you checked that yout dependency is correctly declared? Regards, /B-E -Ursprungligt meddelande- Från: Pagadala Baskar, Kiran Kumar (Cognizant) [mailto:[EMAIL PROTECTED] Skickat: den 3 januari 2006 13:10 Till: Maven Users List Ämne: How to specify external jars Hi, I have a couple of external jars that I need for my Project compilation. I have uploaded them to the local repository using: mvn install:install-file -Dfile=File Path\JAR_NAME.jar -DgroupId=groupId -DartifactId=JAR_NAME -Dversion=1.0 -Dpackaging=jar I tried adding the jar as a dependency to my POM.xml. When I try to compile the project using mvn compile, it is still not detected. I even tried to add the jars to my CLASSPATH manually. Even that doesn't help. Could someone please let me know where I am going wrong? Thanks and Regards, Kiran This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2: Setting up remote/internal repository
Thanks for your response to this. I have full access to all configuration so can try setting up my repository as a mirror. However is this really how an internal repository should be configured. There is a lot of reference to the concept of internal repositories but I could not find any documentation on how this should be set up. Essentially I am looking to set up my own corporate internal repository which will sit behind our firewall, be shared amongst all developers, will provide a cache for the ibiblio resources that we use and will act as our deployment repository. I would be very grateful for any advice on how I can set this up or on a different model which I should use if this is more appropriate. Many thanks, Tim D Law Green-A20134 wrote: Tim, Can you check ~/.m2/settings.xml file? I guess modify mirrors section. Regards, Green -Original Message- From: Tim Davies [mailto:[EMAIL PROTECTED] Sent: Friday, December 30, 2005 9:24 PM To: users@maven.apache.org Subject: M2: Setting up remote/internal repository Hi, I have been trying to set up maven2 to use for several projects and for several developers. One of the features I am keen to make use of is my own remote or internal repository. If I run a maven build on my local machine then maven will automatically download all the required dependencies from central. Then I copy the contents of my local repository to my remote/internal repository location. I switch my repository config in the pom to point to this instead of central and disable central. I delete the contents of my local repository. If I run the build again it says that it cannot retrieve the files from my internal repository even though I can browse these files through a web browser with no problem. I appreciate that maven-proxy may offer a way around this problem but I feel like Im missing something essential in the way that an internal repository is supposed to work. Can anyone shed any light? Many thanks, Tim Davies -- Tim Davies Analyst Developer KTS PLC: Service you can bank on 8th Floor, Finsbury Tower, 103-105 Bunhill Row, London EC1Y 8LZ tel: +44 (0)20 7256 2300 fax: +44 (0)20 7256 2301 email: [EMAIL PROTECTED] web: http://www.ktsplc.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Tim Davies Analyst Developer KTS PLC: Service you can bank on 8th Floor, Finsbury Tower, 103-105 Bunhill Row, London EC1Y 8LZ tel: +44 (0)20 7256 2300 fax: +44 (0)20 7256 2301 email: [EMAIL PROTECTED] web: http://www.ktsplc.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven evangelism - urgent
http://maven.apache.org/maven-1.x/reference/articles.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Missing report in menu
Cyrill, If you're using Maven 2 you should link to your reports in a Site Descriptor. Please use this http://maven.apache.org/guides/mini/guide-site.html as a reference. Regards, Alex -Original Message- From: Cyrill Rüttimann [mailto:[EMAIL PROTECTED] Sent: Monday, January 02, 2006 8:09 AM To: Maven Users List Subject: Missing report in menu Hi, I have now a report Plug-In which generates a html file containing the findbugs report (findbugs.html). But there is no menu entry in the navigation (Project Reports) to point to the findbugs.html file. How is this managed? Regards, Cyrill - 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 specify external jars
can u list down what exactly u have do for mvn install:install-file ? regards ~manchi On Jan 3, 2006, at 8:10 PM, Pagadala Baskar, Kiran Kumar ((Cognizant)) wrote: Hi, I have a couple of external jars that I need for my Project compilation. I have uploaded them to the local repository using: mvn install:install-file -Dfile=File Path\JAR_NAME.jar -DgroupId=groupId -DartifactId=JAR_NAME -Dversion=1.0 -Dpackaging=jar I tried adding the jar as a dependency to my POM.xml. When I try to compile the project using mvn compile, it is still not detected. I even tried to add the jars to my CLASSPATH manually. Even that doesn't help. Could someone please let me know where I am going wrong? Thanks and Regards, Kiran This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need help in organizing a maven project
Hi All, I'm new to maven and xdoclet and I have a confusion in organizing my project. I need to run ejbdoclet and hibernatedoclet on my source, then compile. After this, I need to create 2 jar files, each of them containing some files from the previous steps' output. By default, one jar is created as the artifact. This one contains ALL the class files, but this isnt what I want (I need only some of them to be present in the jar). The rest of the class files (with some overlap) should go into another jar. I'm not sure how to exclude .class files from the artifact coz they seem to be happening by default. Also, I tried creating a new project for the 2nd jar, extending the previous. Now, I need some way to copy the class files I need from the parent and jar them up. I used jar:jar as the default goal for this new project, extended the previous project, added the parent's classes as resources. But this new one seems to be running ejbdoc let, trying to create xml files (all this is being done only in the previous proj), throwing a lot of errors. Please help me by giving a proper way to accomplish this task. Thanks Karthik. - Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping
[m2] auto completion using BASH does not work on MacOSX
hi I followed the following instruction, but it does not work on my MacOSX 's bash shell. anyone has a better luck? Guide to Maven 2.x auto completion using BASH http://maven.apache.org/guides/mini/guide-bash-m2-completion.html Regards, manchi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help in organizing a maven project
First, from what I understand you want two jars for your ejb, ie. ejb-client.jar and ejb-impl.jar. If this is what you are looking for, this page might help : http://maven.apache.org/plugins/maven-ejb-plugin/howto.html *you should declare an ejb packaging in your ejb pom. **To include a dependency to your ejb client into another project, you need to use the type ejb-client in the type element of the dependency declaration Hope this help! On 1/3/06, Karthik V [EMAIL PROTECTED] wrote: Hi All, I'm new to maven and xdoclet and I have a confusion in organizing my project. I need to run ejbdoclet and hibernatedoclet on my source, then compile. After this, I need to create 2 jar files, each of them containing some files from the previous steps' output. By default, one jar is created as the artifact. This one contains ALL the class files, but this isnt what I want (I need only some of them to be present in the jar). The rest of the class files (with some overlap) should go into another jar. I'm not sure how to exclude .class files from the artifact coz they seem to be happening by default. Also, I tried creating a new project for the 2nd jar, extending the previous. Now, I need some way to copy the class files I need from the parent and jar them up. I used jar:jar as the default goal for this new project, extended the previous project, added the parent's classes as resources. But this new one seems to be running ejbdoc let, trying to create xml files (all this is being done only in the previous proj), throwing a lot of errors. Please help me by giving a proper way to accomplish this task. Thanks Karthik. - Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] auto completion using BASH does not work on MacOSX
On 03.01.2006, at 16:44, Man-Chi Leung wrote: I followed the following instruction, but it does not work on my MacOSX 's bash shell. anyone has a better luck? Guide to Maven 2.x auto completion using BASH http://maven.apache.org/guides/mini/guide-bash-m2-completion.html Do you have bash's programmable auto completion up and running already? If not, you could install it using fink (see http:// pdb.finkproject.org/pdb/package.php/bash-completion) or darwinports (see http://bash-completion.darwinports.com/) or do it by hand (see http://www.caliban.org/bash/index.shtml#completion). Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help in organizing a maven project
Hi, Thanks a lot for the quick reply. I'm not sure if I explained properly. Below is my requirement: myproj.ear -- myproj-bean.jar -- myproj.war -- all jsps, css -- WEB-INF/lib/myproj-web.jar -- WEB-INF/lib/(other 3rd party jars) -- meta-inf -- application.xml -- some 3rd party jar files -- some config files In the above, you can see 2 jars, myproj-bean.jar and myproj-web.jar. I have one set of source files which generate classes and xml files. From this output, I have to pick some class files for myproj-web.jar, and put the remaining (with some overlap) in myproj-bean.jar. Please tell me how I can create maven project for this (the parent-child relationships, the folder structure etc.) Thanks Karthik. Alexandre Poitras [EMAIL PROTECTED] wrote: First, from what I understand you want two jars for your ejb, ie. ejb-client.jar and ejb-impl.jar. If this is what you are looking for, this page might help : http://maven.apache.org/plugins/maven-ejb-plugin/howto.html *you should declare an ejb packaging in your ejb pom. **To include a dependency to your ejb client into another project, you need to use the type ejb-client in the type element of the dependency declaration Hope this help! On 1/3/06, Karthik V wrote: Hi All, I'm new to maven and xdoclet and I have a confusion in organizing my project. I need to run ejbdoclet and hibernatedoclet on my source, then compile. After this, I need to create 2 jar files, each of them containing some files from the previous steps' output. By default, one jar is created as the artifact. This one contains ALL the class files, but this isnt what I want (I need only some of them to be present in the jar). The rest of the class files (with some overlap) should go into another jar. I'm not sure how to exclude .class files from the artifact coz they seem to be happening by default. Also, I tried creating a new project for the 2nd jar, extending the previous. Now, I need some way to copy the class files I need from the parent and jar them up. I used jar:jar as the default goal for this new project, extended the previous project, added the parent's classes as resources. But this new one seems to be running ejbdoc let, trying to create xml files (all this is being done only in the previous proj), throwing a lot of errors. Please help me by giving a proper way to accomplish this task. Thanks Karthik. - Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping -- Alexandre Poitras Qu�bec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Photos Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.
[m2] war as a dependency
Hello all, I thought I saw on the list some time ago that a pom for a war could specify another war artifact as a dependency with the idea being that the depended war would be unzipped and then the webapp from the current project would be copied over it. Is this only available in a snapshot version of the war plugin? Is it deployed anywhere? If not, where is the source repo for the war plugin? I tried looking at the project page for the plugin, but that has an invalid link http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugins/maven-war-plugin. Thanks, Rich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Basics Help: Resource File Name Filtering, Executing Java During Resource Copy
First read this to understand resources filtering : http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20filter%20resource%20files? Then just add an exclude element under resources to be able to filter the files themselves. See this document for a reference on the resource syntax in the pom.xml file : http://maven.apache.org/maven-model/maven.html#class_resource Finally, to run your java process, use the exec plugin from mojo codehaus : http://mojo.codehaus.org/maven-execute-plugin/ You'll need to check it out from svn first and install it in your local repository via maven, ie using the command mvn install. You could also use the ant plugin if you prefer but this solution is cleaner in my opinion and more simple. Then add the exec plugin declaration in your project pom.xml file. You should tie the plugin execution to the generate-resources phase. Here is a guide on plugin configuration if you don't know how to do that (looks into the plugins section) : http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html Here, hope this help! Enjoy your reading :) On 1/2/06, Steven Coco [EMAIL PROTECTED] wrote: Hello. Who can help me with a couple of basics while I'm moving from Ant into Maven? I want to figure out how I can specify file names that Maven will exclude from copying while it copies resources from src/main/resources into target/classes. Then I want to have Maven execute a Java process when it is done copying the resource files -- this I guess would be part of the process-resources phase. Specifically, I prefer to author property resources in the Properties XML format; but ResourceBundle doesn't automatically locate bundles in the XML format. So I have a process that runs during builds and loads the xml files into a Properties bundle and writes it out into the target directory in the .properties format. Thankfully, Mustang will have a feature to allow ResourceBundle to load the XML files directly from the Java code, but until then I'm using this. Now I have to figure out how to have Maven exclude the xml properties files and then run my process on the resources. If anyone wants a copy of the program I use, you're welcome to it: it is not very smart: it's not written as a Maven plugin, and it always copies files -- it does not check to see if the file already exists to save time; it just loads all applicable files and converts them. But it works, and it is not terribly time-consuming. I'd consider turning it into a plugin... but Mustang's feature will actually serve me better when that becomes available. Thanks for the help! Steven. - 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: Need help in organizing a maven project
First I suggest you yo read this : http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20build%20more%20than%20one%20project%20at%20once? So the idea now is to create a parent project using the structure explained in the document: +- pom.xml +-my-commons | +- pom.xml +- my-ejb | +- pom.xml +- my-webapp | +- pom.xml +- my-app-ear | +- pom.xml Don't forget to declare the parents in the children pom.xml like it is explained in the guide. Now just add a dependency in both my-webapp and my-ejb pom.xml files pointing on the my-commons project. Then add two dependencies in the my-app-ear pom.xml file pointing on my-webapp and my-ejb projects. Finally, declare the my-app-ear packaging as ear then you'll need to do to get your ear is run mvn packaging in the parent project directory. Hope it is clear enough since english isn't my native language! Don't be afraid to ask more if you don't understand. On 1/3/06, Karthik V [EMAIL PROTECTED] wrote: Hi, Thanks a lot for the quick reply. I'm not sure if I explained properly. Below is my requirement: myproj.ear -- myproj-bean.jar -- myproj.war -- all jsps, css -- WEB-INF/lib/myproj-web.jar -- WEB-INF/lib/(other 3rd party jars) -- meta-inf -- application.xml -- some 3rd party jar files -- some config files In the above, you can see 2 jars, myproj-bean.jar and myproj-web.jar. I have one set of source files which generate classes and xml files. From this output, I have to pick some class files for myproj-web.jar, and put the remaining (with some overlap) in myproj-bean.jar. Please tell me how I can create maven project for this (the parent-child relationships, the folder structure etc.) Thanks Karthik. Alexandre Poitras [EMAIL PROTECTED] wrote: First, from what I understand you want two jars for your ejb, ie. ejb-client.jar and ejb-impl.jar. If this is what you are looking for, this page might help : http://maven.apache.org/plugins/maven-ejb-plugin/howto.html *you should declare an ejb packaging in your ejb pom. **To include a dependency to your ejb client into another project, you need to use the type ejb-client in the type element of the dependency declaration Hope this help! On 1/3/06, Karthik V wrote: Hi All, I'm new to maven and xdoclet and I have a confusion in organizing my project. I need to run ejbdoclet and hibernatedoclet on my source, then compile. After this, I need to create 2 jar files, each of them containing some files from the previous steps' output. By default, one jar is created as the artifact. This one contains ALL the class files, but this isnt what I want (I need only some of them to be present in the jar). The rest of the class files (with some overlap) should go into another jar. I'm not sure how to exclude .class files from the artifact coz they seem to be happening by default. Also, I tried creating a new project for the 2nd jar, extending the previous. Now, I need some way to copy the class files I need from the parent and jar them up. I used jar:jar as the default goal for this new project, extended the previous project, added the parent's classes as resources. But this new one seems to be running ejbdoc let, trying to create xml files (all this is being done only in the previous proj), throwing a lot of errors. Please help me by giving a proper way to accomplish this task. Thanks Karthik. - Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping -- Alexandre Poitras Qu�bec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Photos Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever. -- Alexandre Poitras Québec, Canada
Re: Re: [m2] Package XSL file with plugin and use it for XSLT when executing the plugin
Dan, It would be helpful if you could post the code. I'm not sure how to load the file packaged inside the plugin (e.g. load it from classpath, or relative path, etc.). Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: [m2] Package XSL file with plugin and use it for XSLT when executing the plugin
if it is packaged in the same jar as the plugin when you can use in side the plugin code getClass().getResourceAsStream(path/to/file.xsl) jesse On 1/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dan, It would be helpful if you could post the code. I'm not sure how to load the file packaged inside the plugin (e.g. load it from classpath, or relative path, etc.). Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jesse mcconnell
Re: Maven evangelism - urgent
I think the bigger question is... why? Why do they want to abandon Maven? What isn't your build system doing to meet your needs? Further, as more and more hacks are made to a build system over three years, any system can seem crufty and inappropriate, when the problem is that noone thought through the original changes. I mean, a good build system can be built from shell scripts or make, as can a bad one. The same goes with Maven. Perhaps the right decision is rather to look at your requirements, look at the tools, and see what system fits your organization's needs the best. Our organization came to the conclusion that Maven 2 would suit our needs with a few custom plugins, though Maven 1 did not. However, the largest change we've had is funneling all changes to the build infrastructure through two people. It allows us to keep our modules consistant, which is the largest challenge to a build system. On 1/3/06, Piéroni Raphaël [EMAIL PROTECTED] wrote: Hello, after 3 years of using maven, there is a discussion here at work, that risk to come back to ant... please send me the pointers for using ant versus maven, i can't remember where to find them... (maven 1 or 2) In advance Thank you Raphaël - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to use continuum with Maven2? - Please Help
Hi dan, Now more confused. My pom.xml is in my clearcase view like ccview + MyModule + EJB +pom.xml + web +pom.xml + pom.xml and my pom.xml at Mymodule has the scm information. i'm giving this patch in continuum maven 2+ project. Now as per your advise (which is continumm need to create new view, its cannot use existing one) lets say i'm gonna remove the existing view and create a new one. in that case how do i give pom.xml path to continuum??? coz i removed my view, and there is no pom.xml available. Are u asking me to have copy of pom.xml somewhere else? in that case isn't double work?? and another question as part of multi module. I have snapshot deploy of my modules at my repository..so at my repository i have like the following directory structure deployed Repo + MyModule +SNAPSHOT +{date}.pom + EJB + SNAPSHOT + {date}.pom +. How do i give url at continuum for this multimodule? When i gave it like http://Repo/MyModule/SNAPSHOT/{date.pom} it tries to find its children at http://Repo/MyModule/SNAPSHOT/{date}/EJB/pom.xml ?? Please bare with me if it seems to be stupid questions... Can any one have any explaination for this?? I would appreciate if anyone could give me some samples also Thanks, === Raghurajan Gurunathan ===
[ANN] Mevenide for Netbeans Maven2 support initial release
Hello, I'd like to announce an initial release of Mevenide Netbeans 2.0. It's IDE integration for Maven2 project management and build tool. It allows to open Maven2 projects in the IDE directly, helps with writing the Maven project files etc. A Continuum integration server plugin is also included, allowing currently to list projects on the server and force rebuilds. Follow this link to get a more complete list of features and screenshots, along with download and installation instructions: http://docs.codehaus.org/display/MEVENIDE/MevenideNetbeans2.0 Regards Milos Kleint mevenide.codehaus.org
Re: Need help in organizing a maven project
Oh sorry I have almost never used maven 1 so I can't help you there. On 1/3/06, Karthik V [EMAIL PROTECTED] wrote: Thanks again. Your explanation is fine. I have a few questions specific to my case - 1) I use maven 1.0.2, since there doesnt seem to be a good netbeans mevenide plugin for maven 2. Many things explained in the link you gave dont seem to be present in maven 1.0.2. Do you think I can still go in the same way? 2) In maven 1.0.2, adding an extend created some problems for me. The child project just needed some files from the parent (NOT as classpath, but a copy of some of the class files generated by the parent, to be added to its own jar). Now when I added the extend to the child, it started executing the ejbdoclet tasks defined in the parent (the child is just a simple jar:jar task and nothing more). I'm not sure if this is the way parent-child is supposed to work. 3) Suppose a project compiles and generates a bunch of classes. At the end, maven jars it all up to create the artifact. Now, is there a way for me to exclude some of the compiled classes from being added to the artifact? You may want to ask me not to compile those unwanted classes at all, but thats not an option for me. In other words, is it true that ALL the classes in the target folder will always go into the final jar? Can it be controlled? Thanks Karthik. Alexandre Poitras [EMAIL PROTECTED] wrote: First I suggest you yo read this : http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20build%20more%20than%20one%20project%20at%20once? So the idea now is to create a parent project using the structure explained in the document: +- pom.xml +-my-commons | +- pom.xml +- my-ejb | +- pom.xml +- my-webapp | +- pom.xml +- my-app-ear | +- pom.xml Don't forget to declare the parents in the children pom.xml like it is explained in the guide. Now just add a dependency in both my-webapp and my-ejb pom.xml files pointing on the my-commons project. Then add two dependencies in the my-app-ear pom.xml file pointing on my-webapp and my-ejb projects. Finally, declare the my-app-ear packaging as ear then you'll need to do to get your ear is run mvn packaging in the parent project directory. Hope it is clear enough since english isn't my native language! Don't be afraid to ask more if you don't understand. On 1/3/06, Karthik V wrote: Hi, Thanks a lot for the quick reply. I'm not sure if I explained properly. Below is my requirement: myproj.ear -- myproj-bean.jar -- myproj.war -- all jsps, css -- WEB-INF/lib/myproj-web.jar -- WEB-INF/lib/(other 3rd party jars) -- meta-inf -- application.xml -- some 3rd party jar files -- some config files In the above, you can see 2 jars, myproj-bean.jar and myproj-web.jar. I have one set of source files which generate classes and xml files. From this output, I have to pick some class files for myproj-web.jar, and put the remaining (with some overlap) in myproj-bean.jar. Please tell me how I can create maven project for this (the parent-child relationships, the folder structure etc.) Thanks Karthik. Alexandre Poitras wrote: First, from what I understand you want two jars for your ejb, ie. ejb-client.jar and ejb-impl.jar. If this is what you are looking for, this page might help : http://maven.apache.org/plugins/maven-ejb-plugin/howto.html *you should declare an ejb packaging in your ejb pom. **To include a dependency to your ejb client into another project, you need to use the type ejb-client in the type element of the dependency declaration Hope this help! On 1/3/06, Karthik V wrote: Hi All, I'm new to maven and xdoclet and I have a confusion in organizing my project. I need to run ejbdoclet and hibernatedoclet on my source, then compile. After this, I need to create 2 jar files, each of them containing some files from the previous steps' output. By default, one jar is created as the artifact. This one contains ALL the class files, but this isnt what I want (I need only some of them to be present in the jar). The rest of the class files (with some overlap) should go into another jar. I'm not sure how to exclude .class files from the artifact coz they seem to be happening by default. Also, I tried creating a new project for the 2nd jar, extending the previous. Now, I need some way to copy the class files I need from the parent and jar them up. I used jar:jar as the default goal for this new project, extended the previous project, added the parent's classes as resources. But this new one seems to be running ejbdoc let, trying to create xml files (all this is being done only in the previous proj), throwing a lot of errors. Please help me by giving a proper way to accomplish this task. Thanks Karthik.
RE: [m2] war as a dependency
Set the type to war I believe. -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 03, 2006 12:03 PM To: Maven Users List Subject: Re: [m2] war as a dependency I checked out the source for the maven-war-plugin and installed it in my local repository. But when I try and do a 'mvn war:war' I'm still getting required artifacts missing: com.contentconnections.mpl:mpl-common-webapp:jar:0.1-SNAPSHOT So it looks like maven is still trying to download the artifact as a jar instead of as a war which is what mpl-common-webapps packaging is defined to be in it's pom. Do I also need to use a snapshot version of maven to make this work or is there something else I'm missing? Thanks for the help, Rich Stephane Nicoll wrote: On 1/3/06, Richard Wallace [EMAIL PROTECTED] wrote: Hello all, I thought I saw on the list some time ago that a pom for a war could specify another war artifact as a dependency with the idea being that the depended war would be unzipped and then the webapp from the current project would be copied over it. Is this only available in a snapshot version of the war plugin? Is it deployed anywhere? If not, where is the source repo for the war plugin? I tried looking at the project page for the plugin, but that has an invalid link http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugins/maven-war-plugin. Plugins have moved http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-war-plugin / Stéphane -- .::You're welcome ::. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] war as a dependency
Awesome! That did the trick. I had been trying to use packaging before, didn't realize it should be type. Thanks! Brian E. Fox wrote: Set the type to war I believe. -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 03, 2006 12:03 PM To: Maven Users List Subject: Re: [m2] war as a dependency I checked out the source for the maven-war-plugin and installed it in my local repository. But when I try and do a 'mvn war:war' I'm still getting required artifacts missing: com.contentconnections.mpl:mpl-common-webapp:jar:0.1-SNAPSHOT So it looks like maven is still trying to download the artifact as a jar instead of as a war which is what mpl-common-webapps packaging is defined to be in it's pom. Do I also need to use a snapshot version of maven to make this work or is there something else I'm missing? Thanks for the help, Rich Stephane Nicoll wrote: On 1/3/06, Richard Wallace [EMAIL PROTECTED] wrote: Hello all, I thought I saw on the list some time ago that a pom for a war could specify another war artifact as a dependency with the idea being that the depended war would be unzipped and then the webapp from the current project would be copied over it. Is this only available in a snapshot version of the war plugin? Is it deployed anywhere? If not, where is the source repo for the war plugin? I tried looking at the project page for the plugin, but that has an invalid link http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugins/maven-war-plugin. Plugins have moved http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-war-plugin / Stéphane -- .::You're welcome ::. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Dependency (jar) files in an output jar (but not an assembly)
I want to put some dependent jar files into the jar file created during the install phase. These jar files are in the repo (so they are not found in the resources directory). What is the easy Maven 2 way to do this? John Wells (Aziz) [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] auto completion using BASH does not work on MacOSX
I go it from fink and put the bash script at /sw/etc/bash_completion.d/ it is so cool! thanks Ralph. On Jan 4, 2006, at 12:03 AM, Ralph Pöllath wrote: On 03.01.2006, at 16:44, Man-Chi Leung wrote: I followed the following instruction, but it does not work on my MacOSX 's bash shell. anyone has a better luck? Guide to Maven 2.x auto completion using BASH http://maven.apache.org/guides/mini/guide-bash-m2-completion.html Do you have bash's programmable auto completion up and running already? If not, you could install it using fink (see http:// pdb.finkproject.org/pdb/package.php/bash-completion) or darwinports (see http://bash-completion.darwinports.com/) or do it by hand (see http://www.caliban.org/bash/index.shtml#completion). Cheers, -Ralph. - 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] war as a dependency
When you specified the dependency, did you specify the type? Your dependency should look something like: dependency groupIdcom.contentconnections.mpl/groupId artifactIdmpl-common-webapp/artifactId version0.1-SNAPSHOT/version typewar/type /dependency --David -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 03, 2006 11:03 AM To: Maven Users List Subject: Re: [m2] war as a dependency I checked out the source for the maven-war-plugin and installed it in my local repository. But when I try and do a 'mvn war:war' I'm still getting required artifacts missing: com.contentconnections.mpl:mpl-common-webapp:jar:0.1-SNAPSHOT So it looks like maven is still trying to download the artifact as a jar instead of as a war which is what mpl-common-webapps packaging is defined to be in it's pom. Do I also need to use a snapshot version of maven to make this work or is there something else I'm missing? Thanks for the help, Rich Stephane Nicoll wrote: On 1/3/06, Richard Wallace [EMAIL PROTECTED] wrote: Hello all, I thought I saw on the list some time ago that a pom for a war could specify another war artifact as a dependency with the idea being that the depended war would be unzipped and then the webapp from the current project would be copied over it. Is this only available in a snapshot version of the war plugin? Is it deployed anywhere? If not, where is the source repo for the war plugin? I tried looking at the project page for the plugin, but that has an invalid link http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugins/maven -war-plugin. Plugins have moved http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-war-plugin/ Stéphane -- .::You're welcome ::. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] where to get sun.jdk:tools:jar:1.4.0 on MacOSX?
hi , as for aspectj-plugin I also encountered the following Message: is it alright to ignore it? anyway to solve this issue? [INFO] [aspectj:compile {execution: default}] [INFO] Starting compiling aspects [INFO] zipfile classpath entry does not exist: /System/Library/ Frameworks/JavaVM.framework/Versions/1.5.0/Classes/sunrsasign.jar Best Regards, Manchi Leung On Jan 2, 2006, at 11:01 PM, Carlos Sanchez wrote: You can use profiles to include it only in Sun JDK profiles profile !-- NOTE: This will not be activated on OS X, since classes.jar already has the tools in it. -- iddefault-tools.jar/id activation property namejava.vendor/name valueSun Microsystems Inc./value /property /activation dependencies dependency groupIdsun.jdk/groupId artifactIdtools/artifactId version1.4.2/version scopesystem/scope systemPath${java.home}/../lib/tools.jar/systemPath /dependency /dependencies /profile /profiles On 1/2/06, Kaare Nilsen [EMAIL PROTECTED] wrote: Are there any java.home set or something. i would need it to make a general path for mac os On 02/01/06, Man-Chi Leung [EMAIL PROTECTED] wrote: hi Kaare, thanks for advice. I managed to solve my problem on aspectj-maven- plugin installation !! yes, there is no tools.jar on MacOSX. /System/Library/Frameworks/ JavaVM.framework/Classes/classes.jar will be the equivalent library http://lists.apple.com/archives/java-dev/2002/Jun/msg00901.html 1) I updated all 1.5.0_M5 to 1.5.0 release version aspectj-maven-plugin/ /pom.xml /src/test/resources/test-project/pom.xml /target/test-classes/test-project/pom.xml /src/test/java/org/codehaus/mojo/aspectj/ AbstractAjcMojoTest.java 2) as for the tools.jar, I did NOT copy from windows or linux. just modify systemPath pointing to classes.jar on MacOSX. dependency groupIdsun.jdk/groupId artifactIdtools/artifactId version1.5.0/version systemPath/System/Library/Frameworks/ JavaVM.framework/Versions/ 1.5/Classes/classes.jar/systemPath scopesystem/scope /dependency 3) mvn install -- OK! Regards, Manchi On Jan 2, 2006, at 4:14 PM, Kaare Nilsen wrote: Hi. I have never tested the plugin for mac os, so any help would be appreciated. I would try as David Jencks said to try to remove the dependency, and then see what happens. And i would be very happy if you report your findings so that i could incorporate the changes to the pom using a os spesific profile Kaare On 02/01/06, David Jencks [EMAIL PROTECTED] wrote: I don't know anything about aspectj or its maven plugin, but there is no tools.jar on a mac. The classes are included in the normal java runtime. IMO you should try to remove the dependency completely. thanks david jencks On Jan 1, 2006, at 7:15 PM, Man-Chi Leung wrote: hi, I checked out aspectj-maven-plugin from mojo sandbox, and I was trying to build it. however, I encountered an error saying that tools.jar was not found. to my understand, we need to install Sun's Jar separately due to the license issue. em.. ok! but there is no tools.jar for Mac in /System/Library/Java/ Extensions. any advice? should I copy tools.jar from windows SDK to mac? anyone is having the same problem? pls help! [INFO] - --- -- -- [ERROR] BUILD ERROR [INFO] - --- -- -- [INFO] Failed to resolve artifact. required artifacts missing: sun.jdk:tools:jar:1.4.0 for the artifact: org.codehaus.mojo:aspectj-maven-plugin:maven-plugin:2.0- SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), snapshots (http://snapshots.maven.codehaus.org/maven2) - --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven evangelism - urgent
Thanks Georges Polyzois a écrit : http://maven.apache.org/maven-1.x/reference/articles.html - 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: Dependency (jar) files in an output jar (but not an assembly)
bind dependency-maven-plugin to any post compile phase and place your jars into a place that package phase can pickup this plugin is at http://mojo.codehaus.org -D On 1/3/06, John Wells [EMAIL PROTECTED] wrote: I want to put some dependent jar files into the jar file created during the install phase. These jar files are in the repo (so they are not found in the resources directory). What is the easy Maven 2 way to do this? John Wells (Aziz) [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with subversion
Hi, I'm a new Maven2+Continuum user. I'm testing an environment with Maven 2.0.1, Continuum 1.0.2 with Eclipse 3.1 and Subversion on Windows XP. I created a simple application with mvn archetype:create ..., created the eclipse workspace files with mvn eclipse:eclipse, imported the project into eclipse, and got it just ok. i added the whole project to version control using the subclipse plugin. This worked fine too. Added the scm configuration to the pom.xml: scmconnectionscm:svn:svn://127.0.0.1/my-app/connection/scm and uploaded the pom.xml to continuum, to add a maven2 project. On the *first* build, it works ok, but any *later* build fails with a subversion error: Provider message: The svn command failed. Command output: --- svn: La copia de trabajo 'target' no tiene lock --- (translation: the 'target' working copy doesn't have a lock) The problem is that after continuum checked-out the project from the repository and built it, the 'target' folder used by the build process is not under version control, so the next time that subversion updates the project in that folder, theres a problem with that folder and the build fails. As a workaround, i can open a shell to the working dir of continuum, do a mvn clean to get rid of the 'target' folder, but i have to do it manually. How can i configure continuum or the pom.xml to solve this problem? (maybe a build from scratch option)? Am i missing some concept here? Thanks in advice for your comments, Denis -- And in the end, the love you take is equal to the love you make -- The Beatles, The End
Re: [m2] where to get sun.jdk:tools:jar:1.4.0 on MacOSX?
just ignore it ;) it is a message from the ajc compiler, but will not cause anything not to work /Kaare On 03/01/06, Man-Chi Leung [EMAIL PROTECTED] wrote: hi , as for aspectj-plugin I also encountered the following Message: is it alright to ignore it? anyway to solve this issue? [INFO] [aspectj:compile {execution: default}] [INFO] Starting compiling aspects [INFO] zipfile classpath entry does not exist: /System/Library/ Frameworks/JavaVM.framework/Versions/1.5.0/Classes/sunrsasign.jar Best Regards, Manchi Leung On Jan 2, 2006, at 11:01 PM, Carlos Sanchez wrote: You can use profiles to include it only in Sun JDK profiles profile !-- NOTE: This will not be activated on OS X, since classes.jar already has the tools in it. -- iddefault-tools.jar/id activation property namejava.vendor/name valueSun Microsystems Inc./value /property /activation dependencies dependency groupIdsun.jdk/groupId artifactIdtools/artifactId version1.4.2/version scopesystem/scope systemPath${java.home}/../lib/tools.jar/systemPath /dependency /dependencies /profile /profiles On 1/2/06, Kaare Nilsen [EMAIL PROTECTED] wrote: Are there any java.home set or something. i would need it to make a general path for mac os On 02/01/06, Man-Chi Leung [EMAIL PROTECTED] wrote: hi Kaare, thanks for advice. I managed to solve my problem on aspectj-maven- plugin installation !! yes, there is no tools.jar on MacOSX. /System/Library/Frameworks/ JavaVM.framework/Classes/classes.jar will be the equivalent library http://lists.apple.com/archives/java-dev/2002/Jun/msg00901.html 1) I updated all 1.5.0_M5 to 1.5.0 release version aspectj-maven-plugin/ /pom.xml /src/test/resources/test-project/pom.xml /target/test-classes/test-project/pom.xml /src/test/java/org/codehaus/mojo/aspectj/ AbstractAjcMojoTest.java 2) as for the tools.jar, I did NOT copy from windows or linux. just modify systemPath pointing to classes.jar on MacOSX. dependency groupIdsun.jdk/groupId artifactIdtools/artifactId version1.5.0/version systemPath/System/Library/Frameworks/ JavaVM.framework/Versions/ 1.5/Classes/classes.jar/systemPath scopesystem/scope /dependency 3) mvn install -- OK! Regards, Manchi On Jan 2, 2006, at 4:14 PM, Kaare Nilsen wrote: Hi. I have never tested the plugin for mac os, so any help would be appreciated. I would try as David Jencks said to try to remove the dependency, and then see what happens. And i would be very happy if you report your findings so that i could incorporate the changes to the pom using a os spesific profile Kaare On 02/01/06, David Jencks [EMAIL PROTECTED] wrote: I don't know anything about aspectj or its maven plugin, but there is no tools.jar on a mac. The classes are included in the normal java runtime. IMO you should try to remove the dependency completely. thanks david jencks On Jan 1, 2006, at 7:15 PM, Man-Chi Leung wrote: hi, I checked out aspectj-maven-plugin from mojo sandbox, and I was trying to build it. however, I encountered an error saying that tools.jar was not found. to my understand, we need to install Sun's Jar separately due to the license issue. em.. ok! but there is no tools.jar for Mac in /System/Library/Java/ Extensions. any advice? should I copy tools.jar from windows SDK to mac? anyone is having the same problem? pls help! [INFO] - --- -- -- [ERROR] BUILD ERROR [INFO] - --- -- -- [INFO] Failed to resolve artifact. required artifacts missing: sun.jdk:tools:jar:1.4.0 for the artifact: org.codehaus.mojo:aspectj-maven-plugin:maven-plugin:2.0- SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), snapshots (http://snapshots.maven.codehaus.org/maven2) - --- - 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]
Continuum + Clearcae. [Was] Re: How to use continuum with Maven2? - Please Help
Wim, Do you have a suggestion for this problem? Hope you are around ;-) -Dan On 1/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi dan, Now more confused. My pom.xml is in my clearcase view like ccview + MyModule + EJB +pom.xml + web +pom.xml + pom.xml and my pom.xml at Mymodule has the scm information. i'm giving this patch in continuum maven 2+ project. Now as per your advise (which is continumm need to create new view, its cannot use existing one) lets say i'm gonna remove the existing view and create a new one. in that case how do i give pom.xml path to continuum??? coz i removed my view, and there is no pom.xml available. Are u asking me to have copy of pom.xml somewhere else? in that case isn't double work?? and another question as part of multi module. I have snapshot deploy of my modules at my repository..so at my repository i have like the following directory structure deployed Repo + MyModule +SNAPSHOT +{date}.pom + EJB + SNAPSHOT + {date}.pom +. How do i give url at continuum for this multimodule? When i gave it like http://Repo/MyModule/SNAPSHOT/{date.pom} it tries to find its children at http://Repo/MyModule/SNAPSHOT/{date}/EJB/pom.xml ?? Please bare with me if it seems to be stupid questions... Can any one have any explaination for this?? I would appreciate if anyone could give me some samples also Thanks, === Raghurajan Gurunathan ===
[m2] Deploying 3 Party Jar to Maven-Proxy
hi I have successfully setup maven-proxy, based on the following website. http://maven-proxy.codehaus.org/ Q1) now, the only problem is deploying 3rd Party jars from our deployment pc to maven-proxy I followed this instruction from maven's FAQ but with no luck. http://docs.codehaus.org/pages/viewpage.action? pageId=37533#WhyamIgettinga%22org.apache.maven.plugins%22doesnot- HowdoIinstallartifactstoaremoterepository%3F $cd /junitperf-1.9.1/lib $mvn deploy:deploy-file -DgroupId=com.clarkware.junitperf - DartifactId=junitperf -Dversion=1.9.1 -Dpackaging=jar - Dfile=junitperf-1.9.1.jar -DrepositoryId=myrepository -Durl=scpexe:// MY_DOMAIN/maven-proxy/target/repo [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'deploy'. [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Required goal not found: deploy:deploy-file Q2) there is 2 different directory in maven-proxy repo.local-repo.url=file:///./target/repo-local repo.local.store=./target/repo when I deploy 3rd Party jar file, which directory should I upload my jar to ? anyone has done this successfully? Regards, Manchi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] examples of xdoclet generating hibernate mappings please?
I am new to generating hibernate mappings and want to get started with this in M2. Can anyone please help me with some examples? Thanks Mick Knutson http://www.BASELogic.com http://www.MickKnutson.com MSN Messenger: [EMAIL PROTECTED]
Re: Problem with subversion
You can add target directory in subversion ignore list. Emmanuel Denis Fuenzalida a écrit : Hi, I'm a new Maven2+Continuum user. I'm testing an environment with Maven 2.0.1, Continuum 1.0.2 with Eclipse 3.1 and Subversion on Windows XP. I created a simple application with mvn archetype:create ..., created the eclipse workspace files with mvn eclipse:eclipse, imported the project into eclipse, and got it just ok. i added the whole project to version control using the subclipse plugin. This worked fine too. Added the scm configuration to the pom.xml: scmconnectionscm:svn:svn://127.0.0.1/my-app/connection/scm and uploaded the pom.xml to continuum, to add a maven2 project. On the *first* build, it works ok, but any *later* build fails with a subversion error: Provider message: The svn command failed. Command output: --- svn: La copia de trabajo 'target' no tiene lock --- (translation: the 'target' working copy doesn't have a lock) The problem is that after continuum checked-out the project from the repository and built it, the 'target' folder used by the build process is not under version control, so the next time that subversion updates the project in that folder, theres a problem with that folder and the build fails. As a workaround, i can open a shell to the working dir of continuum, do a mvn clean to get rid of the 'target' folder, but i have to do it manually. How can i configure continuum or the pom.xml to solve this problem? (maybe a build from scratch option)? Am i missing some concept here? Thanks in advice for your comments, Denis -- And in the end, the love you take is equal to the love you make -- The Beatles, The End
Re: Continuum + Clearcae. [Was] Re: How to use continuum with Maven2? - Please Help
Hi Dan, I'm around :) Problem 1: I noticed this too. The way I understand that Continuum works is that it takes the pom.xml you give it (from any location) and uses that information to build up the configuration it needs to build a project. So I would suggest to create a view, give that pom.xml to Continuum and then you can delete that view again (but normally, you will have a development view, so you can use that one, no need to delete that afterwards). Continuum will create a new view using the config spec you passed in the scm url in the pom. That pom it sees in the view is then read by Continuum to build your view. I really wonder what happens if you change the pom though. Does Continuum notice this? I have not tested this yet. Maybe one of Continuum people can answer this? Problem 2: I have read that Continuum will create a project for each sub-module of your multi-project build. You should pass the parent pom to Continuum (also from a view) and the rest should happen automatically. For info on ClearCase: http://maven.apache.org/scm/clearcase.html regards, Wim 2006/1/3, dan tran [EMAIL PROTECTED]: Wim, Do you have a suggestion for this problem? Hope you are around ;-) -Dan On 1/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi dan, Now more confused. My pom.xml is in my clearcase view like ccview + MyModule + EJB +pom.xml + web +pom.xml + pom.xml and my pom.xml at Mymodule has the scm information. i'm giving this patch in continuum maven 2+ project. Now as per your advise (which is continumm need to create new view, its cannot use existing one) lets say i'm gonna remove the existing view and create a new one. in that case how do i give pom.xml path to continuum??? coz i removed my view, and there is no pom.xml available. Are u asking me to have copy of pom.xml somewhere else? in that case isn't double work?? and another question as part of multi module. I have snapshot deploy of my modules at my repository..so at my repository i have like the following directory structure deployed Repo + MyModule +SNAPSHOT +{date}.pom + EJB + SNAPSHOT + {date}.pom +. How do i give url at continuum for this multimodule? When i gave it like http://Repo/MyModule/SNAPSHOT/{date.pom} it tries to find its children at http://Repo/MyModule/SNAPSHOT/{date}/EJB/pom.xml ?? Please bare with me if it seems to be stupid questions... Can any one have any explaination for this?? I would appreciate if anyone could give me some samples also Thanks, === Raghurajan Gurunathan === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] examples of xdoclet generating hibernate mappings please?
Mick, HTH: build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId executions execution phasegenerate-sources/phase goals goalxdoclet/goal /goals configuration tasks hibernatedoclet destdir=${project.build.outputDirectory} excludedtags=@version,@author,@todo,@see,@desc verbose=true fileset dir=${basedir}/src/main/java include name=**/beans/*.java / /fileset hibernate version=3.0 / /hibernatedoclet /tasks /configuration /execution /executions /plugin -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 03, 2006 1:17 PM To: Maven Users List Subject: [m2] examples of xdoclet generating hibernate mappings please? I am new to generating hibernate mappings and want to get started with this in M2. Can anyone please help me with some examples? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] finalName ${version} being picked up from System properties?
I guess this was missed when I sent a couple weeks ago, does anyone have any thoughts on this? Should I file a JIRA issue? Thanks, Chad Chad Brandon wrote: Hi, I'm using maven 2.0.1 for AndroMDA's build (its a fairly large multiproject build). It appears that if I have a version property in my System properties, it sometimes gets picked up and used for the version of my project when creating the final name (during pom interpolation I'm assuming). I then get an unresolved dependency error because of course the version is not the one defined as the version in my pom.xml. Is this a know issue and shouldn't information in the pom take precedence over System properties? I'm assuming this call in DefaultMavenProjectBuilder is the culprit (since this context is then passed to the RegexBasedModelInterpolator for use in project interpolation) : // TODO: Clean this up...we're using this to 'jump' the interpolation step for model properties not expressed in XML. // [BP] - Can this above comment be explained? // We don't need all the project methods that are added over those in the model, but we do need basedir Map context = new HashMap( System.getProperties() ); I also have a similar issue with ${basedir}, the value that sometimes gets picked up, is the value for the previous project (which of course breaks the build), I resorted to using ${pom.basedir} which seems to fix things. I've tried using ${pom.version} instead of ${version} to fix my issue with the wrong version, however it doesn't help because it looks like the DefaultModelInheritanceAssembler sets the final name as ${artifactId}-${version} (I put some debug in that code to see what was being set). For now I've put a hack in one of my m2 plugins to remove the version System property (not sure where its coming from really) so that I can get past this, but of course this isn't the best solution :) Thanks, Chad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] where to get sun.jdk:tools:jar:1.4.0 on MacOSX?
Thanx carlos, i have added it to my pom /Kaare On 02/01/06, Carlos Sanchez [EMAIL PROTECTED] wrote: You can use profiles to include it only in Sun JDK profiles profile !-- NOTE: This will not be activated on OS X, since classes.jar already has the tools in it. -- iddefault-tools.jar/id activation property namejava.vendor/name valueSun Microsystems Inc./value /property /activation dependencies dependency groupIdsun.jdk/groupId artifactIdtools/artifactId version1.4.2/version scopesystem/scope systemPath${java.home}/../lib/tools.jar/systemPath /dependency /dependencies /profile /profiles On 1/2/06, Kaare Nilsen [EMAIL PROTECTED] wrote: Are there any java.home set or something. i would need it to make a general path for mac os On 02/01/06, Man-Chi Leung [EMAIL PROTECTED] wrote: hi Kaare, thanks for advice. I managed to solve my problem on aspectj-maven- plugin installation !! yes, there is no tools.jar on MacOSX. /System/Library/Frameworks/ JavaVM.framework/Classes/classes.jar will be the equivalent library http://lists.apple.com/archives/java-dev/2002/Jun/msg00901.html 1) I updated all 1.5.0_M5 to 1.5.0 release version aspectj-maven-plugin/ /pom.xml /src/test/resources/test-project/pom.xml /target/test-classes/test-project/pom.xml /src/test/java/org/codehaus/mojo/aspectj/AbstractAjcMojoTest.java 2) as for the tools.jar, I did NOT copy from windows or linux. just modify systemPath pointing to classes.jar on MacOSX. dependency groupIdsun.jdk/groupId artifactIdtools/artifactId version1.5.0/version systemPath/System/Library/Frameworks/JavaVM.framework/Versions/ 1.5/Classes/classes.jar/systemPath scopesystem/scope /dependency 3) mvn install -- OK! Regards, Manchi On Jan 2, 2006, at 4:14 PM, Kaare Nilsen wrote: Hi. I have never tested the plugin for mac os, so any help would be appreciated. I would try as David Jencks said to try to remove the dependency, and then see what happens. And i would be very happy if you report your findings so that i could incorporate the changes to the pom using a os spesific profile Kaare On 02/01/06, David Jencks [EMAIL PROTECTED] wrote: I don't know anything about aspectj or its maven plugin, but there is no tools.jar on a mac. The classes are included in the normal java runtime. IMO you should try to remove the dependency completely. thanks david jencks On Jan 1, 2006, at 7:15 PM, Man-Chi Leung wrote: hi, I checked out aspectj-maven-plugin from mojo sandbox, and I was trying to build it. however, I encountered an error saying that tools.jar was not found. to my understand, we need to install Sun's Jar separately due to the license issue. em.. ok! but there is no tools.jar for Mac in /System/Library/Java/ Extensions. any advice? should I copy tools.jar from windows SDK to mac? anyone is having the same problem? pls help! [INFO] -- -- [ERROR] BUILD ERROR [INFO] -- -- [INFO] Failed to resolve artifact. required artifacts missing: sun.jdk:tools:jar:1.4.0 for the artifact: org.codehaus.mojo:aspectj-maven-plugin:maven-plugin:2.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), snapshots (http://snapshots.maven.codehaus.org/maven2) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -
Re: Basics Help: Resource File Name Filtering, Executing Java During Resource Copy
Thanks! Alexandre Poitras wrote: First read this to understand resources filtering : http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20filter%20resource%20files? Then just add an exclude element under resources to be able to filter the files themselves. See this document for a reference on the resource syntax in the pom.xml file : http://maven.apache.org/maven-model/maven.html#class_resource Finally, to run your java process, use the exec plugin from mojo codehaus : http://mojo.codehaus.org/maven-execute-plugin/ You'll need to check it out from svn first and install it in your local repository via maven, ie using the command mvn install. You could also use the ant plugin if you prefer but this solution is cleaner in my opinion and more simple. Then add the exec plugin declaration in your project pom.xml file. You should tie the plugin execution to the generate-resources phase. Here is a guide on plugin configuration if you don't know how to do that (looks into the plugins section) : http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html Here, hope this help! Enjoy your reading :) On 1/2/06, Steven Coco [EMAIL PROTECTED] wrote: Hello. Who can help me with a couple of basics while I'm moving from Ant into Maven? I want to figure out how I can specify file names that Maven will exclude from copying while it copies resources from src/main/resources into target/classes. Then I want to have Maven execute a Java process when it is done copying the resource files -- this I guess would be part of the process-resources phase. Specifically, I prefer to author property resources in the Properties XML format; but ResourceBundle doesn't automatically locate bundles in the XML format. So I have a process that runs during builds and loads the xml files into a Properties bundle and writes it out into the target directory in the .properties format. Thankfully, Mustang will have a feature to allow ResourceBundle to load the XML files directly from the Java code, but until then I'm using this. Now I have to figure out how to have Maven exclude the xml properties files and then run my process on the resources. If anyone wants a copy of the program I use, you're welcome to it: it is not very smart: it's not written as a Maven plugin, and it always copies files -- it does not check to see if the file already exists to save time; it just loads all applicable files and converts them. But it works, and it is not terribly time-consuming. I'd consider turning it into a plugin... but Mustang's feature will actually serve me better when that becomes available. Thanks for the help! Steven. - 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: [m2] Deploying 3 Party Jar to Maven-Proxy
On 1/3/06, Man-Chi Leung [EMAIL PROTECTED] wrote: hi I have successfully setup maven-proxy, based on the following website. http://maven-proxy.codehaus.org/ Q1) now, the only problem is deploying 3rd Party jars from our deployment pc to maven-proxy I followed this instruction from maven's FAQ but with no luck. http://docs.codehaus.org/pages/viewpage.action? pageId=37533#WhyamIgettinga%22org.apache.maven.plugins%22doesnot- HowdoIinstallartifactstoaremoterepository%3F $cd /junitperf-1.9.1/lib $mvn deploy:deploy-file -DgroupId=com.clarkware.junitperf - DartifactId=junitperf -Dversion=1.9.1 -Dpackaging=jar - Dfile=junitperf-1.9.1.jar -DrepositoryId=myrepository -Durl=scpexe:// MY_DOMAIN/maven-proxy/target/repo [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'deploy'. [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Required goal not found: deploy:deploy-file deploy:deploy-file is still in snaphot, so you need a way to download them down to your local repo. There are 2 ways: 1. Go to one of your maven2 project and issue maven deploy:deploy-file -U It will fail but the snapshot get downloaded. 2. Fetch latest source from scm and build Q2) there is 2 different directory in maven-proxy repo.local-repo.url=file:///./target/repo-local repo.local.store=./target/repo when I deploy 3rd Party jar file, which directory should I upload my jar to ? You will need to create a store like thirdparty and upload your external jar to that store for my case, i have a few stores local deparment-a department-b thirdparty central ( a link only) etc anyone has done this successfully? Regards, Manchi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] examples of xdoclet generating hibernate mappings please?
If I am splitting my project into sub-projects/modules, where would this go? into the main pom, or my db pom? Thanks Mick Knutson http://www.BASELogic.com http://www.MickKnutson.com MSN Messenger: [EMAIL PROTECTED] - Original Message - From: Mike Perham [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Tuesday, January 03, 2006 11:24 AM Subject: RE: [m2] examples of xdoclet generating hibernate mappings please? Mick, HTH: build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId executions execution phasegenerate-sources/phase goals goalxdoclet/goal /goals configuration tasks hibernatedoclet destdir=${project.build.outputDirectory} excludedtags=@version,@author,@todo,@see,@desc verbose=true fileset dir=${basedir}/src/main/java include name=**/beans/*.java / /fileset hibernate version=3.0 / /hibernatedoclet /tasks /configuration /execution /executions /plugin -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 03, 2006 1:17 PM To: Maven Users List Subject: [m2] examples of xdoclet generating hibernate mappings please? I am new to generating hibernate mappings and want to get started with this in M2. Can anyone please help me with some examples? - 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] examples of xdoclet generating hibernate mappings please?
Your DB Pom. Only in the subproject POM that has the xdoclet markup. -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 03, 2006 1:59 PM To: Maven Users List Subject: Re: [m2] examples of xdoclet generating hibernate mappings please? If I am splitting my project into sub-projects/modules, where would this go? into the main pom, or my db pom? Thanks Mick Knutson http://www.BASELogic.com http://www.MickKnutson.com MSN Messenger: [EMAIL PROTECTED] - Original Message - From: Mike Perham [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Tuesday, January 03, 2006 11:24 AM Subject: RE: [m2] examples of xdoclet generating hibernate mappings please? Mick, HTH: build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId executions execution phasegenerate-sources/phase goals goalxdoclet/goal /goals configuration tasks hibernatedoclet destdir=${project.build.outputDirectory} excludedtags=@version,@author,@todo,@see,@desc verbose=true fileset dir=${basedir}/src/main/java include name=**/beans/*.java / /fileset hibernate version=3.0 / /hibernatedoclet /tasks /configuration /execution /executions /plugin -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 03, 2006 1:17 PM To: Maven Users List Subject: [m2] examples of xdoclet generating hibernate mappings please? I am new to generating hibernate mappings and want to get started with this in M2. Can anyone please help me with some examples? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] examples of xdoclet generating hibernate mappings please?
Thanks worked well. But I have another question. What is the best practice naming for these value object as I don't want to keep them in a beans package. Should I move everything to a beans package, or should I use a name like UserValueObject? Thanks Mick Knutson http://www.BASELogic.com http://www.MickKnutson.com MSN Messenger: [EMAIL PROTECTED] - Original Message - From: Mike Perham [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Tuesday, January 03, 2006 12:26 PM Subject: RE: [m2] examples of xdoclet generating hibernate mappings please? Your DB Pom. Only in the subproject POM that has the xdoclet markup. -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 03, 2006 1:59 PM To: Maven Users List Subject: Re: [m2] examples of xdoclet generating hibernate mappings please? If I am splitting my project into sub-projects/modules, where would this go? into the main pom, or my db pom? Thanks Mick Knutson http://www.BASELogic.com http://www.MickKnutson.com MSN Messenger: [EMAIL PROTECTED] - Original Message - From: Mike Perham [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Tuesday, January 03, 2006 11:24 AM Subject: RE: [m2] examples of xdoclet generating hibernate mappings please? Mick, HTH: build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId executions execution phasegenerate-sources/phase goals goalxdoclet/goal /goals configuration tasks hibernatedoclet destdir=${project.build.outputDirectory} excludedtags=@version,@author,@todo,@see,@desc verbose=true fileset dir=${basedir}/src/main/java include name=**/beans/*.java / /fileset hibernate version=3.0 / /hibernatedoclet /tasks /configuration /execution /executions /plugin -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 03, 2006 1:17 PM To: Maven Users List Subject: [m2] examples of xdoclet generating hibernate mappings please? I am new to generating hibernate mappings and want to get started with this in M2. Can anyone please help me with some examples? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Different manifest for test jar
Multiple questions (I am a newbie with maven 2) 1. I want the tests to be jar'ed separately from the main files. I have been able to do this with: mvn jar:test-jar How can I get this to always run as part of the packaging phase? Right now I have to manually type mvn jar:test-jar 2. I need my test jar to have a different manifest from the main jar. How can I do this. Right now I am using something like the following to generate the main jar: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifestEntries Bundle-NameWork Manager/Bundle-Name Bundle-SymbolicNamecom.bea.core.wm.WorkManager/Bundle-SymbolicName Bundle-Version1.0.0/Bundle-Version Bundle-ManifestVersion2/Bundle-ManifestVersion Bundle-Activatorcom.bea.core.wm.internal.WorkManagerActivator/Bundle- Activator Import-Packageorg.osgi.framework/Import-Package Export-Packagecom.bea.core.wm;version=1.0.0/Export-Package Bundle-DescriptionA thread manager/Bundle-Description /manifestEntries /archive /configuration /plugin Is there anyway to have a different manifest in the test jar? John Wells (Aziz) [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Continuum + Clearcae. [Was] Re: How to use continuum with Maven2? - Please Help
Wim Deblauwe a écrit : Hi Dan, I'm around :) Problem 1: I noticed this too. The way I understand that Continuum works is that it takes the pom.xml you give it (from any location) and uses that information to build up the configuration it needs to build a project. So I would suggest to create a view, give that pom.xml to Continuum and then you can delete that view again (but normally, you will have a development view, so you can use that one, no need to delete that afterwards). Continuum will create a new view using the config spec you passed in the scm url in the pom. That pom it sees in the view is then read by Continuum to build your view. I really wonder what happens if you change the pom though. Does Continuum notice this? I have not tested this yet. Maybe one of Continuum people can answer this? yes, pom file is read each time a build is launched. Problem 2: I have read that Continuum will create a project for each sub-module of your multi-project build. You should pass the parent pom to Continuum (also from a view) and the rest should happen automatically. For info on ClearCase: http://maven.apache.org/scm/clearcase.html regards, Wim 2006/1/3, dan tran [EMAIL PROTECTED]: Wim, Do you have a suggestion for this problem? Hope you are around ;-) -Dan On 1/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi dan, Now more confused. My pom.xml is in my clearcase view like ccview + MyModule + EJB +pom.xml + web +pom.xml + pom.xml and my pom.xml at Mymodule has the scm information. i'm giving this patch in continuum maven 2+ project. Now as per your advise (which is continumm need to create new view, its cannot use existing one) lets say i'm gonna remove the existing view and create a new one. in that case how do i give pom.xml path to continuum??? coz i removed my view, and there is no pom.xml available. Are u asking me to have copy of pom.xml somewhere else? in that case isn't double work?? and another question as part of multi module. I have snapshot deploy of my modules at my repository..so at my repository i have like the following directory structure deployed Repo + MyModule +SNAPSHOT +{date}.pom + EJB + SNAPSHOT + {date}.pom +. How do i give url at continuum for this multimodule? When i gave it like http://Repo/MyModule/SNAPSHOT/{date.pom} it tries to find its children at http://Repo/MyModule/SNAPSHOT/{date}/EJB/pom.xml ?? Please bare with me if it seems to be stupid questions... Can any one have any explaination for this?? I would appreciate if anyone could give me some samples also Thanks, === Raghurajan Gurunathan === - 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] examples of xdoclet generating hibernate mappings please?
I am getting an error though: Generating mapping file for com.baselogic.yoursos.user.User. com.baselogic.yoursos.user.User Jan 3, 2006 12:42:56 PM xdoclet.XDocletMain start SEVERE: Running XDoclet failed. Jan 3, 2006 12:42:56 PM xdoclet.XDocletMain start SEVERE: Class com.baselogic.yoursos.user.User misses ID property XDoclet failed. at xdoclet.DocletTask.start(DocletTask.java:471) at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:105) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:71) at org.codehaus.mojo.xdoclet.XDocletMojo.execute(XDocletMojo.java:102) 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.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: xdoclet.XDocletException: Class com.baselogic.yoursos.user.User misses ID property at xdoclet.modules.hibernate.HibernateTagsHandler.hasCompositeId_Impl(HibernateTagsHandler.java:668) at xdoclet.modules.hibernate.HibernateTagsHandler.ifHasPrimitiveId(HibernateTagsHandler.java:211) 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 xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:641) at xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:567) at xdoclet.template.TemplateEngine.invokeBlockMethod(TemplateEngine.java:965) at xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.java:932) at xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:472) at xdoclet.template.TemplateEngine.generate(TemplateEngine.java:348) at xdoclet.template.TemplateEngine.start(TemplateEngine.java:415) at xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:562) at xdoclet.TemplateSubTask.generateForClass(TemplateSubTask.java:779) at xdoclet.TemplateSubTask.startProcessPerClass(TemplateSubTask.java:679) at xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:596) at xdoclet.XmlSubTask.startProcess(XmlSubTask.java:227) at xdoclet.modules.hibernate.HibernateSubTask.execute(HibernateSubTask.java:136) at xdoclet.XDocletMain.start(XDocletMain.java:48) at xdoclet.DocletTask.start(DocletTask.java:468) ... 24 more --- Nested Exception --- xdoclet.XDocletException: Class com.baselogic.yoursos.user.User misses ID property at xdoclet.modules.hibernate.HibernateTagsHandler.hasCompositeId_Impl(HibernateTagsHandler.java:668) at xdoclet.modules.hibernate.HibernateTagsHandler.ifHasPrimitiveId(HibernateTagsHandler.java:211) 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 xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:641) at
RE: [m2] examples of xdoclet generating hibernate mappings please?
I don't see any Xdoclet tags in your java. -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 03, 2006 2:48 PM To: Maven Users List Subject: Re: [m2] examples of xdoclet generating hibernate mappings please? I am getting an error though: Generating mapping file for com.baselogic.yoursos.user.User. com.baselogic.yoursos.user.User Jan 3, 2006 12:42:56 PM xdoclet.XDocletMain start SEVERE: Running XDoclet failed. Jan 3, 2006 12:42:56 PM xdoclet.XDocletMain start SEVERE: Class com.baselogic.yoursos.user.User misses ID property XDoclet failed. at xdoclet.DocletTask.start(DocletTask.java:471) at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:105) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] examples of xdoclet generating hibernate mappings please?
Opps. Thanks Mick Knutson http://www.BASELogic.com http://www.MickKnutson.com MSN Messenger: [EMAIL PROTECTED] - Original Message - From: Mike Perham [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Tuesday, January 03, 2006 12:54 PM Subject: RE: [m2] examples of xdoclet generating hibernate mappings please? I don't see any Xdoclet tags in your java. -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 03, 2006 2:48 PM To: Maven Users List Subject: Re: [m2] examples of xdoclet generating hibernate mappings please? I am getting an error though: Generating mapping file for com.baselogic.yoursos.user.User. com.baselogic.yoursos.user.User Jan 3, 2006 12:42:56 PM xdoclet.XDocletMain start SEVERE: Running XDoclet failed. Jan 3, 2006 12:42:56 PM xdoclet.XDocletMain start SEVERE: Class com.baselogic.yoursos.user.User misses ID property XDoclet failed. at xdoclet.DocletTask.start(DocletTask.java:471) at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:105) - 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: Different manifest for test jar
To answer my own question: This worked for me: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId executions execution idbundle-jar/id phasepackage/phase configuration archive manifestEntries Bundle-NameWebLogic Work Manager/Bundle-Name Bundle-SymbolicNamecom.bea.core.wm.WorkManager/Bundle-SymbolicName Bundle-Version1.0.0/Bundle-Version Bundle-ManifestVersion2/Bundle-ManifestVersion Bundle-Activatorcom.bea.core.wm.internal.WorkManagerActivator/Bundle- Activator Import-Packageorg.osgi.framework,weblogic.kernel,weblogic.utils,weblog ic.utils.collections,com.bea.core.dioce/Import-Package Export-Packagecom.bea.core.wm;version=1.0.0/Export-Package Bundle-VendorBEA Systems, Inc./Bundle-Vendor Bundle-ContactAddress140 Allen Road, Liberty Corner, NJ 07938/Bundle-ContactAddress Bundle-CopyrightBEA Systems, Inc. (c) 2006/Bundle-Copyright Bundle-DescriptionA thread manager/Bundle-Description /manifestEntries /archive /configuration goals goaljar/goal /goals /execution execution idtest-bundle-jar/id phasepackage/phase configuration archive manifestEntries Bundle-NameWebLogic Work Manager Test/Bundle-Name Bundle-SymbolicNamecom.bea.core.wm.WorkManagerTest/Bundle-SymbolicNam e Bundle-Version1.0.0/Bundle-Version Bundle-ManifestVersion2/Bundle-ManifestVersion Bundle-Activatorblah.bea.core.wm.internal.WorkManagerActivator/Bundle -Activator Import-Packageorg.osgi.framework,weblogic.kernel,weblogic.utils,weblog ic.utils.collections,com.bea.core.dioce/Import-Package Export-Packagecom.bea.core.wm;version=1.0.0/Export-Package Bundle-VendorBEA Systems, Inc./Bundle-Vendor Bundle-ContactAddress140 Allen Road, Liberty Corner, NJ 07938/Bundle-ContactAddress Bundle-CopyrightBEA Systems, Inc. (c) 2006/Bundle-Copyright Bundle-DescriptionA thread manager/Bundle-Description /manifestEntries /archive /configuration goals goaltest-jar/goal /goals /execution /executions /plugin Thanks for hanging with me while I learn a new environment! John Wells (Aziz) [EMAIL PROTECTED] -Original Message- From: John Wells Sent: Tuesday, January 03, 2006 3:41 PM To: Maven Users List Subject: Different manifest for test jar Multiple questions (I am a newbie with maven 2) 1. I want the tests to be jar'ed separately from the main files. I have been able to do this with: mvn jar:test-jar How can I get this to always run as part of the packaging phase? Right now I have to manually type mvn jar:test-jar 2. I need my test jar to have a different manifest from the main jar. How can I do this. Right now I am using something like the following to generate the main jar: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifestEntries Bundle-NameWork Manager/Bundle-Name Bundle-SymbolicNamecom.bea.core.wm.WorkManager/Bundle-SymbolicName Bundle-Version1.0.0/Bundle-Version Bundle-ManifestVersion2/Bundle-ManifestVersion Bundle-Activatorcom.bea.core.wm.internal.WorkManagerActivator/Bundle- Activator Import-Packageorg.osgi.framework/Import-Package Export-Packagecom.bea.core.wm;version=1.0.0/Export-Package Bundle-DescriptionA thread manager/Bundle-Description /manifestEntries /archive /configuration /plugin Is there anyway to have a different manifest in the test jar? John Wells (Aziz) [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: Continuum + Clearcae. [Was] Re: How to use continuum with Maven2? - Please Help
Hi Dan/Wim Thanks for your reply, but still my problem is not solved ccview + MyModule + EJB +pom.xml + web +pom.xml + pom.xml 1. I follwed instruction as Wim said like a.) In continuum pointed the parent pom.xml for pom url field, this automatically loaded my child poms (this pom is under my cc view directory module) b.) removed the existing view. c.) then when i build it it gave me the following error Provider message: The cleartool command failed. Command output: --- cleartool: Error: Unable to open file C:\continuum-1.0.2\bin\win32\MyModule: Is a directory. cleartool: Error: Unable to change configuration specification: error detected by ClearCase subsystem. --- d.) i created a directory MyModule under C:\continuum-1.0.2\bin\win32\ but still its throwing the same error i don't understand whats going on here!!! why its looking into C:\continuum-1.0.2\bin\win32\ and what its trying to access?? 2. I don't think continuum is loading the pom everytime when it changes. coz i tried changing like view name and ran the build from continuum and its still looking at the old view name, not the one i changed Thanks, === Raghurajan Gurunathan ===
Re: [m2]Local repo problem
That option was only introduced in recent development builds. I'll push for a release. - Brett On 1/3/06, Georges Polyzois [EMAIL PROTECTED] wrote: Hi Is there a way to generate pom and checksum files also When adding jar to local repository? The property -DgeneratePom=true does not work for me. Regards Georges -Original Message- From: Bill Dudney [mailto:[EMAIL PROTECTED] Sent: den 3 januari 2006 13:46 To: Maven Users List Subject: Re: [m2]Local repo problem Hi David, Instead of manually installing the jar let maven do it for you; mvn -DartifactId=oraclejar -Dfile=./classes12.jar -DgroupId=oraclejar -Dpackaging=jar -Dversion=1.2 install:install-file Which will cause your jar file to be put into the repository properly. Also - you appear to be using an maven 1 repo layout for your m2 repo, make sure to specify legacy in your pointer to the repository. HTH, Bill Dudney MyFaces - myfaces.apache.org Wadi - incubator.apache.org/wadi On Jan 3, 2006, at 3:35 AM, Abbs, David A wrote: I have setup a local repository and dependencies are getting downloaded to it fine. I tried to put my own jar in their (an oracle db driver) I am running maven 2 of windows xp. Doing the following: Setup repository at location C:/mvnlocalrep Then add the following structure C: mvnlocalrep oraclejar jars classes12.jar poms classes12.pom In the pom file I write the following project modelVersion10.0.1/modelVersion groupIdoraclejdbc/groupId artifactIdclasses12/artifactId version0.1/version /project The I add this to the pom.xml where I want to use the dependency dependency groupIdoraclejdbc/groupId artifactIdclasses12/artifactId version0.1/version scopecompile/scope /dependency When I then do a Mvn compile on the project I get this: required artifacts missing: oraclejdbc:classes12:jar:0.1 for the artifact: org.bms:bms1_3:jar:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) I would be eternally grateful for any help on this. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] antrun build.xml script language=javascript support?
/dependency dependency groupIdxdoclet/groupId artifactIdxjavadoc/artifactId version1.0.3/version /dependency dependency groupIdant/groupId artifactIdant/artifactId version1.6.5/version /dependency dependency groupIdjtidy/groupId artifactIdjtidy/artifactId version4aug2000r7-dev/version /dependency dependency groupIdant-contrib/groupId artifactIdcpptasks/artifactId version1.0b3/version /dependency dependency groupIdant/groupId artifactIdant-nodeps/artifactId version1.6.5/version /dependency /dependencies /plugin plugin artifactIdmaven-projecthelp-plugin/artifactId version2.0-beta-1/version /plugin /plugins /build /project !-- tst.mvn.build.xml.runtime.properties -- #Ant properties #Tue Jan 03 14:16:01 PST 2006 depClasspath=E\:\\usr\\local\\share\\sdf\\exp\\m2.0.1\\shennessy\\target \\classes dotdotdir=E\:\\usr\\local\\share\\sdf\\exp basedir=E\:\\usr\\local\\share\\sdf\\exp\\m2.0.1\\shennessy SEE_SDF_BinFolder=E\:\\usr\\local\\share\\sdf\\exp\\m2.0.1\\shennessy/sr c/4.bin TODAY_UK=3-Jan-2006 ant.file.SCM-Test=E\:\\usr\\local\\share\\sdf\\exp\\m2.0.1\\shennessy\\s rc\\4.bin\\tst.mvn.build.xml SEE_SDF_DocFolder=E\:\\usr\\local\\share\\sdf\\exp\\m2.0.1\\shennessy/sr c/1.doc TSTAMP=1416 ant.file=E\:\\usr\\local\\share\\sdf\\exp\\m2.0.1\\shennessy\\src\\4.bin \\tst.mvn.build.xml TODAY=January 3 2006 maven.junit.fork=yes ant.java.version=1.4 ant.project.name=SCM-Test dotdir=E\:\\usr\\local\\share\\sdf\\exp\\m2.0.1 DSTAMP=20060103 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
M1 or M2?
I am new to maven and am attempting to start using it instead of ant as my primary build tool. But I'm finding little in the way of documentation/books about Maven2--which is a bit frustrating for a new user :-( Should new users start w/ Maven1? Or should I bravely press on w/ Maven2? Will I suffer? -Babak. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
System-wide Plugin pre-configuration
I'd like to preconfigure a couple of plugins (e.g. javadoc, etc.), so that they don't have to be configured in each single project. But it should still be possible to overwrite those settings (e.g. if we deal with a customer project which has very specific requirements for Javadoc, etc.). I looked at the settings descriptor and can not find anything related to plugins. Any hint on whether this is possible (and how) or not? Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: System-wide Plugin pre-configuration
I forgot to mention that this is related to Maven2 (2.0.1) --- [EMAIL PROTECTED] wrote: I'd like to preconfigure a couple of plugins (e.g. javadoc, etc.), so that they don't have to be configured in each single project. But it should still be possible to overwrite those settings (e.g. if we deal with a customer project which has very specific requirements for Javadoc, etc.). I looked at the settings descriptor and can not find anything related to plugins. Any hint on whether this is possible (and how) or not? Thanks, Chris - 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: System-wide Plugin pre-configuration
I forgot to mention that this is related to Maven2 (2.0.1) --- [EMAIL PROTECTED] wrote: I'd like to preconfigure a couple of plugins (e.g. javadoc, etc.), so that they don't have to be configured in each single project. But it should still be possible to overwrite those settings (e.g. if we deal with a customer project which has very specific requirements for Javadoc, etc.). I looked at the settings descriptor and can not find anything related to plugins. Any hint on whether this is possible (and how) or not? Thanks, Chris - 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] best practice suggestions: archetype creation, version control, continuum
Hello everyone i'm ready to setup my maven2 project, and I'm wondering if there's anything wrong with the following procedure: 1) ask maven to create a project archetype mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app 2) add the full project structure to my version control system (cvs) 3) install continuum on the server machine: i'm trying to apply xp-practice of continous integration, so i want to use this ci tool, and i'm wondering how it relates with maven. Probably these are very basic questions, but it'd be very appreciated any help, link to documentation about my questions, and objections. thanks, valerio -- To Iterate is Human, to Recurse, Divine James O. Coplien, Bell Labs
Re: System-wide Plugin pre-configuration
you can do that with build--pluginManagement element -D On 1/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I forgot to mention that this is related to Maven2 (2.0.1) --- [EMAIL PROTECTED] wrote: I'd like to preconfigure a couple of plugins (e.g. javadoc, etc.), so that they don't have to be configured in each single project. But it should still be possible to overwrite those settings (e.g. if we deal with a customer project which has very specific requirements for Javadoc, etc.). I looked at the settings descriptor and can not find anything related to plugins. Any hint on whether this is possible (and how) or not? Thanks, Chris - 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: System-wide Plugin pre-configuration
Your suggestion still requires me to edit pom.xml (and I don't even understand how that pluginManagement stuff works). What I'm really looking for is something which I can configure in MAVEN_HOME/conf/settings.xml or somewhere else. My goal is to avoid putting any settings into the POM, unless I want to override my custom default system-wide plugin settings. I may misunderstand how exactly this works ... Thanks, Chris --- dan tran [EMAIL PROTECTED] wrote: you can do that with build--pluginManagement element -D On 1/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I forgot to mention that this is related to Maven2 (2.0.1) --- [EMAIL PROTECTED] wrote: I'd like to preconfigure a couple of plugins (e.g. javadoc, etc.), so that they don't have to be configured in each single project. But it should still be possible to overwrite those settings (e.g. if we deal with a customer project which has very specific requirements for Javadoc, etc.). I looked at the settings descriptor and can not find anything related to plugins. Any hint on whether this is possible (and how) or not? Thanks, Chris - 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: System-wide Plugin pre-configuration
No you can not do it from system wide settings.xml http://maven.apache.org/maven-settings/settings.html descriptor does not have pluginManagement How ever you can configure your project wide root pom as I have suggested. http://maven.apache.org/maven-model/maven.html#class_pluginManagement -Dan On 1/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Your suggestion still requires me to edit pom.xml (and I don't even understand how that pluginManagement stuff works). What I'm really looking for is something which I can configure in MAVEN_HOME/conf/settings.xml or somewhere else. My goal is to avoid putting any settings into the POM, unless I want to override my custom default system-wide plugin settings. I may misunderstand how exactly this works ... Thanks, Chris --- dan tran [EMAIL PROTECTED] wrote: you can do that with build--pluginManagement element -D On 1/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I forgot to mention that this is related to Maven2 (2.0.1) --- [EMAIL PROTECTED] wrote: I'd like to preconfigure a couple of plugins (e.g. javadoc, etc.), so that they don't have to be configured in each single project. But it should still be possible to overwrite those settings (e.g. if we deal with a customer project which has very specific requirements for Javadoc, etc.). I looked at the settings descriptor and can not find anything related to plugins. Any hint on whether this is possible (and how) or not? Thanks, Chris - 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: System-wide Plugin pre-configuration
I just got to the same conclusion, but now I'm a little confused how the POM inheritance works. How do I specify in my pom.xml what the parent POM is? Thanks, Chris --- dan tran [EMAIL PROTECTED] wrote: No you can not do it from system wide settings.xml http://maven.apache.org/maven-settings/settings.html descriptor does not have pluginManagement How ever you can configure your project wide root pom as I have suggested. http://maven.apache.org/maven-model/maven.html#class_pluginManagement -Dan On 1/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Your suggestion still requires me to edit pom.xml (and I don't even understand how that pluginManagement stuff works). What I'm really looking for is something which I can configure in MAVEN_HOME/conf/settings.xml or somewhere else. My goal is to avoid putting any settings into the POM, unless I want to override my custom default system-wide plugin settings. I may misunderstand how exactly this works ... Thanks, Chris --- dan tran [EMAIL PROTECTED] wrote: you can do that with build--pluginManagement element -D On 1/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I forgot to mention that this is related to Maven2 (2.0.1) --- [EMAIL PROTECTED] wrote: I'd like to preconfigure a couple of plugins (e.g. javadoc, etc.), so that they don't have to be configured in each single project. But it should still be possible to overwrite those settings (e.g. if we deal with a customer project which has very specific requirements for Javadoc, etc.). I looked at the settings descriptor and can not find anything related to plugins. Any hint on whether this is possible (and how) or not? Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does the version range syntax support release numbers?
Hi, Is there support for release numbers like 2.0.1-1? Can they include alpha characters like 2.0.1-1foo? http://docs.codehuas.org seems to be down right now but I previously found some documentation of the version range syntax and I didn't see any mention of release numbers. http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution Thanks, Roger
maven eclipse and wtp
Does anybody know how to easily turn off the wtp output from maven eclipse? I tried by specifying the natures and builders in the pom, but my settings appear to have no effect... build plugins plugin artifactIdmaven-eclipse-plugin/artifactId configuration buildcommandsjava.lang.Stringorg.eclipse.jdt.core.javabuilder/java.lang.String/buildcommands projectnaturesjava.lang.Stringorg.eclipse.jdt.core.javanature/java.lang.String/projectnatures wtpversion1.0/wtpversion /configuration /plugin /plugins /build The output still has all the builders and natures of running the plugin without a configuration (natures below, for example...) natures natureorg.eclipse.jdt.core.javanature/nature natureorg.eclipse.jem.workbench.JavaEMFNature/nature natureorg.eclipse.wst.common.modulecore.ModuleCoreNature/nature natureorg.eclipse.wst.common.project.facet.core.nature/nature /natures I'd leave it alone, but I have a lot of code which takes a long time to build the eclipse workspace. Since I'm running a build to build the code anyway, I guess I'm not really interested in the eclipse run build. Is it the jsp validator that's taking so long? I would assume so. Not a huge deal, but it takes a LONG time to build. Thanks, -Kevin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does the version range syntax support release numbers?
Yes to release numbers, however it is numeric. The current version form is: [major].[minor].[incremental]-[qualifier]-[build/release#] only qualifier is alphanumeric. If the format is not matched, then the whole version falls back to string comparison. In Maven 2.1, we plan to improve the version spec to some degree, and hopefull allow custom versioning. - Brett On 1/4/06, Roger Hoover [EMAIL PROTECTED] wrote: Hi, Is there support for release numbers like 2.0.1-1? Can they include alpha characters like 2.0.1-1foo? http://docs.codehuas.org seems to be down right now but I previously found some documentation of the version range syntax and I didn't see any mention of release numbers. http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution Thanks, Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does the version range syntax support release numbers?
qualifier indicates a type of pre-release. SNAPSHOT, alpha-1, etc. This still leaves us with some limitations, which we've started to gather preliminary feedback on. When confluence is revived, it can be found as a subpage of http://docs.codehaus.org/display/MAVEN/Maven+2.1+Design+Documents I'd be happy to hear your thoughts and ideas. Cheers, Brett On 1/4/06, Roger Hoover [EMAIL PROTECTED] wrote: Thanks, Brett. What is the qualifier intended to denote? Can you give an example? RPM, for instance, supports Version and Release. I'm not familiar with what a qualifier would be. On 1/3/06, Brett Porter [EMAIL PROTECTED] wrote: Yes to release numbers, however it is numeric. The current version form is: [major].[minor].[incremental]-[qualifier]-[build/release#] only qualifier is alphanumeric. If the format is not matched, then the whole version falls back to string comparison. In Maven 2.1, we plan to improve the version spec to some degree, and hopefull allow custom versioning. - Brett On 1/4/06, Roger Hoover [EMAIL PROTECTED] wrote: Hi, Is there support for release numbers like 2.0.1-1? Can they include alpha characters like 2.0.1-1foo? http://docs.codehuas.org seems to be down right now but I previously found some documentation of the version range syntax and I didn't see any mention of release numbers. http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution Thanks, Roger - 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]
[ANN] dependency-maven-plugin 1.0
The Mojo team would like to announce the 1.0 release of the dependency-maven-plugin: This plugin provides the capability to manipulate artifacts. It can copy and/or unpack artifacts from repositories (local and remote)to a specified location. The plugin has 4 goals: *copy: takes a list of artifacts defined in the plugin configuration section and copies them to a specified location, renaming them or stripping the version if desired. This goal can resolve the artifacts from remote repositories if they don't exist in local. This goal can also retrieve the version from dependencyManagement. *copy-dependencies: takes the list of dependencies and transitive dependencies and copies them to a specified location, stripping the version if desired. This goal can also be run from the command line. *unpack: like copy but unpacks. *unpack-dependencies: like copy-dependencies but unpacks. All goals are able to detect if the artifacts already exist and don't copy/unpack again Detailed docs are available at: http://mojo.codehaus.org/dependency-maven-plugin/ The plugin is available on ibiblio and ready for use. Thanks for the Mojo team for helping to make this plugin come to fruition. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: System-wide Plugin pre-configuration
You can specify a pom project (with packagingpom/packaging) as your parent project and set up pluginManagement there. And then add the following, parent groupId[parent-group-id]/groupId artifactId[parent-artifact-id]/artifactId version[parent-version]/version /parent to you project's pom.xml to inherit the pom.xml. It might be a good idea to have a look at Maven2 sources fo pom inheritence and see how they are structured. Hope that helps, Rahul [EMAIL PROTECTED] wrote: I just got to the same conclusion, but now I'm a little confused how the POM inheritance works. How do I specify in my pom.xml what the parent POM is? Thanks, Chris --- dan tran [EMAIL PROTECTED] wrote: No you can not do it from system wide settings.xml http://maven.apache.org/maven-settings/settings.html descriptor does not have pluginManagement How ever you can configure your project wide root pom as I have suggested. http://maven.apache.org/maven-model/maven.html#class_pluginManagement -Dan On 1/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Your suggestion still requires me to edit pom.xml (and I don't even understand how that pluginManagement stuff works). What I'm really looking for is something which I can configure in MAVEN_HOME/conf/settings.xml or somewhere else. My goal is to avoid putting any settings into the POM, unless I want to override my custom default system-wide plugin settings. I may misunderstand how exactly this works ... Thanks, Chris --- dan tran [EMAIL PROTECTED] wrote: you can do that with build--pluginManagement element -D On 1/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I forgot to mention that this is related to Maven2 (2.0.1) --- [EMAIL PROTECTED] wrote: I'd like to preconfigure a couple of plugins (e.g. javadoc, etc.), so that they don't have to be configured in each single project. But it should still be possible to overwrite those settings (e.g. if we deal with a customer project which has very specific requirements for Javadoc, etc.). I looked at the settings descriptor and can not find anything related to plugins. Any hint on whether this is possible (and how) or not? Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] jcoverage at iBiblio - Transitive dependencies
It looks to me that the POM for jcoverage at iBiblio is wrong. Based on the jcoverage docs (and my experience), jcoverage has some dependencies: bcel5.1 http://jakarta.apache.org/bcel/ log4j 1.2.8 http://jakarta.apache.org/log4j/ getopt 1.0.9 http://gnu.org/ oro 2.0.7 http://jakarta.apache.org/oro/ Shouldn't those dependencies be listed inside the jcoverage POM, so that the transitive dependency resolution mechanism works? If so, who is responsible for fixing that? Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] jcoverage at iBiblio - Transitive dependencies
Take a look here: http://maven.apache.org/guides/mini/guide-maven-evangelism.html If you submit a patch, it usually gets applied pretty quickly. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 03, 2006 9:49 PM To: users@maven.apache.org Subject: [m2] jcoverage at iBiblio - Transitive dependencies It looks to me that the POM for jcoverage at iBiblio is wrong. Based on the jcoverage docs (and my experience), jcoverage has some dependencies: bcel5.1 http://jakarta.apache.org/bcel/ log4j 1.2.8 http://jakarta.apache.org/log4j/ getopt 1.0.9 http://gnu.org/ oro 2.0.7 http://jakarta.apache.org/oro/ Shouldn't those dependencies be listed inside the jcoverage POM, so that the transitive dependency resolution mechanism works? If so, who is responsible for fixing that? Chris - 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] war as a dependency
Dear all, Can manven2 support an ear as dependency? For application server,we should let class in one ear can access ejbs in another ear. thanks. Tel: (020)36315358-328 Fax: (020)36315170 David Hawkins [EMAIL PROTECTED]To: 'Maven Users List' users@maven.apache.org om cc: Subject: RE: [m2] war as a dependency 04/01/2006 01:24 Please respond to Maven Users List When you specified the dependency, did you specify the type? Your dependency should look something like: dependency groupIdcom.contentconnections.mpl/groupId artifactIdmpl-common-webapp/artifactId version0.1-SNAPSHOT/version typewar/type /dependency --David -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 03, 2006 11:03 AM To: Maven Users List Subject: Re: [m2] war as a dependency I checked out the source for the maven-war-plugin and installed it in my local repository. But when I try and do a 'mvn war:war' I'm still getting required artifacts missing: com.contentconnections.mpl:mpl-common-webapp:jar:0.1-SNAPSHOT So it looks like maven is still trying to download the artifact as a jar instead of as a war which is what mpl-common-webapps packaging is defined to be in it's pom. Do I also need to use a snapshot version of maven to make this work or is there something else I'm missing? Thanks for the help, Rich Stephane Nicoll wrote: On 1/3/06, Richard Wallace [EMAIL PROTECTED] wrote: Hello all, I thought I saw on the list some time ago that a pom for a war could specify another war artifact as a dependency with the idea being that the depended war would be unzipped and then the webapp from the current project would be copied over it. Is this only available in a snapshot version of the war plugin? Is it deployed anywhere? If not, where is the source repo for the war plugin? I tried looking at the project page for the plugin, but that has an invalid link http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugins/maven -war-plugin. Plugins have moved http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-war-plugin/ Stéphane -- .::You're welcome ::. - 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] __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Hactl..Moving forward with you. Best Air Cargo Terminal - Asia 2005 Air Cargo Terminal of the Year 2002, 2003 2004 Web: http://www.hactl.com DISCLAIMER :- The information contained in this message, including any attachment, is confidential and may also be privileged. The information is intended only for the person or entity to which it is addressed. Any review, re-transmission, copying, storage, distribution or other use or disclosure of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please contact the sender immediately by return email and delete this message from your system. Thank you.
RE: [m2] jcoverage at iBiblio - Transitive dependencies
Thanks, that helps. Filing done (MEV-278). --- Brian E. Fox [EMAIL PROTECTED] wrote: Take a look here: http://maven.apache.org/guides/mini/guide-maven-evangelism.html If you submit a patch, it usually gets applied pretty quickly. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 03, 2006 9:49 PM To: users@maven.apache.org Subject: [m2] jcoverage at iBiblio - Transitive dependencies It looks to me that the POM for jcoverage at iBiblio is wrong. Based on the jcoverage docs (and my experience), jcoverage has some dependencies: bcel5.1 http://jakarta.apache.org/bcel/ log4j 1.2.8 http://jakarta.apache.org/log4j/ getopt 1.0.9 http://gnu.org/ oro 2.0.7 http://jakarta.apache.org/oro/ Shouldn't those dependencies be listed inside the jcoverage POM, so that the transitive dependency resolution mechanism works? If so, who is responsible for fixing that? Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Disabling tests in a profile
Hi Wendy, You may configure your db-live profile in your pom as follows: project [...] profiles profile iddb-live/id build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId configuration skiptrue/skip /configuration /plugin /plugins /build /profile /profiles [...] /project But then again, in order to trigger it you still have to specify it in the command line, as such: mvn command -Pdb-live which you may likely forget as well :-). But at least this is far easier to remember ;-) You may refer to http://maven.apache.org/guides/introduction/introduction-to-profiles.html for more info about profiles in maven. Hope this helps. -Lester Wendy Smoak wrote: What's the easiest/best way to ensure that when a certain profile is enabled, the tests are *not* run? (I have tests that are fine to run against the development and test instances of the database, but which shouldn't be run when the db-live profile is active.) -Dmaven.test.skip=true works, but I'm likely to forget. Right now I'm configuring the Surefire plugin to exclude all of the tests. Is there a way to convince Surefire not to run at all for a particular profile? Thanks, Wendy - 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: M1 or M2?
Babak Farhang wrote: I am new to maven and am attempting to start using it instead of ant as my primary build tool. But I'm finding little in the way of documentation/books about Maven2--which is a bit frustrating for a new user :-( Should new users start w/ Maven1? Or should I bravely press on w/ Maven2? Will I suffer? Bravely press on with Maven2. No contest. If you want to suffer then delve into writing Jelly plugins in Maven1. ;) Maven2 is a beautiful thing... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Deploying 3 Party Jar to Maven-Proxy
On Jan 4, 2006, at 3:56 AM, dan tran wrote: On 1/3/06, Man-Chi Leung [EMAIL PROTECTED] wrote: hi I have successfully setup maven-proxy, based on the following website. http://maven-proxy.codehaus.org/ Q1) now, the only problem is deploying 3rd Party jars from our deployment pc to maven-proxy I followed this instruction from maven's FAQ but with no luck. http://docs.codehaus.org/pages/viewpage.action? pageId=37533#WhyamIgettinga%22org.apache.maven.plugins%22doesnot- HowdoIinstallartifactstoaremoterepository%3F $cd /junitperf-1.9.1/lib $mvn deploy:deploy-file -DgroupId=com.clarkware.junitperf - DartifactId=junitperf -Dversion=1.9.1 -Dpackaging=jar - Dfile=junitperf-1.9.1.jar -DrepositoryId=myrepository -Durl=scpexe:// MY_DOMAIN/maven-proxy/target/repo [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'deploy'. [INFO] - --- [ERROR] BUILD FAILURE [INFO] - --- [INFO] Required goal not found: deploy:deploy-file deploy:deploy-file is still in snaphot, so you need a way to download them down to your local repo. There are 2 ways: 1. Go to one of your maven2 project and issue maven deploy:deploy-file -U It will fail but the snapshot get downloaded. 2. Fetch latest source from scm and build Q2) there is 2 different directory in maven-proxy repo.local-repo.url=file:///./target/repo-local repo.local.store=./target/repo when I deploy 3rd Party jar file, which directory should I upload my jar to ? You will need to create a store like thirdparty and upload your external jar to that store for my case, i have a few stores local deparment-a department-b thirdparty central ( a link only) etc can u kindly show me how to config in maven-proxy.properties? e.g. I would like to have local thirdparty central(link) anyone has done this successfully? Regards, Manchi - 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: M1 or M2?
hi , more documentation can be found from here: http://cvs.peopleware.be/training/maven/maven2/index.html On Jan 4, 2006, at 11:50 AM, Timothy Bennett wrote: Babak Farhang wrote: I am new to maven and am attempting to start using it instead of ant as my primary build tool. But I'm finding little in the way of documentation/books about Maven2--which is a bit frustrating for a new user :-( Should new users start w/ Maven1? Or should I bravely press on w/ Maven2? Will I suffer? Bravely press on with Maven2. No contest. If you want to suffer then delve into writing Jelly plugins in Maven1. ;) Maven2 is a beautiful thing... - 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] war as a dependency
Does this new functionality require a snapshot version of maven as well? I checked out the source for the maven-war-plugin and did mvn install and then went back to my project and tried to run 'mvn war:war' but I still get required artifacts missing: com.contentconnections.mpl:mpl-common-webapp:jar:0.1-SNAPSHOT So, it looks like rather than trying to use a war it's trying to use a jar, even though the pom for mpl-common-webapp clearly states the packaging is war. Rich Stephane Nicoll wrote: On 1/3/06, Richard Wallace [EMAIL PROTECTED] wrote: Hello all, I thought I saw on the list some time ago that a pom for a war could specify another war artifact as a dependency with the idea being that the depended war would be unzipped and then the webapp from the current project would be copied over it. Is this only available in a snapshot version of the war plugin? Is it deployed anywhere? If not, where is the source repo for the war plugin? I tried looking at the project page for the plugin, but that has an invalid link http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugins/maven-war-plugin. Plugins have moved http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-war-plugin/ Stéphane -- .::You're welcome ::. - 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] war as a dependency
Have you tried mvn package instead of mvn war:war? mvn war:war is rarely what you want, it won't run any of the previous steps. - Brett On 1/4/06, Richard Wallace [EMAIL PROTECTED] wrote: Does this new functionality require a snapshot version of maven as well? I checked out the source for the maven-war-plugin and did mvn install and then went back to my project and tried to run 'mvn war:war' but I still get required artifacts missing: com.contentconnections.mpl:mpl-common-webapp:jar:0.1-SNAPSHOT So, it looks like rather than trying to use a war it's trying to use a jar, even though the pom for mpl-common-webapp clearly states the packaging is war. Rich Stephane Nicoll wrote: On 1/3/06, Richard Wallace [EMAIL PROTECTED] wrote: Hello all, I thought I saw on the list some time ago that a pom for a war could specify another war artifact as a dependency with the idea being that the depended war would be unzipped and then the webapp from the current project would be copied over it. Is this only available in a snapshot version of the war plugin? Is it deployed anywhere? If not, where is the source repo for the war plugin? I tried looking at the project page for the plugin, but that has an invalid link http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugins/maven-war-plugin. Plugins have moved http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-war-plugin/ Stéphane -- .::You're welcome ::. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven eclipse and wtp
I think it might be the validators that take a long time to finish off their stuff. You might want to disable the validations or just have selective validations for your Eclipse project and then see if it make a difference. Was this the only reason why you did not want to have the WTP natures and command info your project setting files? Rahul - Original Message - From: Kevin Galligan [EMAIL PROTECTED] To: users@maven.apache.org Sent: Wednesday, January 04, 2006 1:51 PM Subject: maven eclipse and wtp Does anybody know how to easily turn off the wtp output from maven eclipse? I tried by specifying the natures and builders in the pom, but my settings appear to have no effect... build plugins plugin artifactIdmaven-eclipse-plugin/artifactId configuration buildcommandsjava.lang.Stringorg.eclipse.jdt.core.javabuilder/java.lang.String/buildcommands projectnaturesjava.lang.Stringorg.eclipse.jdt.core.javanature/java.lang.String/projectnatures wtpversion1.0/wtpversion /configuration /plugin /plugins /build The output still has all the builders and natures of running the plugin without a configuration (natures below, for example...) natures natureorg.eclipse.jdt.core.javanature/nature natureorg.eclipse.jem.workbench.JavaEMFNature/nature natureorg.eclipse.wst.common.modulecore.ModuleCoreNature/nature natureorg.eclipse.wst.common.project.facet.core.nature/nature /natures I'd leave it alone, but I have a lot of code which takes a long time to build the eclipse workspace. Since I'm running a build to build the code anyway, I guess I'm not really interested in the eclipse run build. Is it the jsp validator that's taking so long? I would assume so. Not a huge deal, but it takes a LONG time to build. Thanks, -Kevin - 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: M1 or M2?
Thanks for encouraging Maven2! I must say, though, that you didn't address my Will I suffer? question :-) I just checked out *Maven: A Dev's Notebook* which is slightly dated and based on Maven1. Nice, fairly well-organized, spoon-fed info in that book which I hope is more or less applicable to Maven2, as well. Reading some of the user feedback on reviews about Maven2 (e.g. see http://www.javaworld.com/javaworld/jw-12-2005/jw-1205-maven-p3.html ) I thought it might be wiser if I first learnt Maven1. .. If you want to suffer then delve into writing Jelly plugins in Maven1. ;) Maven2 is a beautiful thing... I'm sure it's beautiful. Really! I'm hoping not to need to write any plugins, though. I'm not a build engineer: I'll be using Maven mostly because it makes developing apps easier... So for now, as a newbie, I'll stick to Maven1 until there is better documentation out there for Maven2. I *did* try Maven2 along w/ its documentation, but for now, here's my advice to other newcomers: The path to m2 is through m1. Or ye shall suffer needlessly, as I have... :-) If I follow the *best practices*, it seems, I should be able to migrate relatively painlessly to M2. - 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] Deploying 3 Party Jar to Maven-Proxy
since there is a problem doing remote jar deployment. now, what I can do is to login to my maven-proxy server, and perform jar installation locally ! Should I do this ON My Maven-Proxy there are 2 types of library that I need to put in my local maven-proxy. * firstly, I also install maven 2.0.1 on my maven-proxy server and amend settings.xml localRepositorymaven-proxy/target/ repolocalRepository I intentionally, set this maven local repository=maven-proxy's (repo.local.store=./target/repo) 1) 3rd party jar : e.g. easymock, junitperf so from the maven-proxy machine, I did this locally: mvn install:install-file -Dfile=junitperf-1.9.1.jar - DgroupId=org.junitperf -DartifactId=junitperf -Dversion=1.9.1 - Dpackaging=jar -DgeneratePom=true mvn install:install-file -Dfile=easymock.jar -DgroupId=org.easymock - DartifactId=easymock -Dversion=2.0 -Dpackaging=jar -DgeneratePom=true 2) plugins that I checked out from Mojo source repository I did mvn install - On my development Client: ERROR!! - But on my development machine, whenever I run mvn, I encountered the followings Error: [INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository On Jan 4, 2006, at 3:56 AM, dan tran wrote: On 1/3/06, Man-Chi Leung [EMAIL PROTECTED] wrote: hi I have successfully setup maven-proxy, based on the following website. http://maven-proxy.codehaus.org/ Q1) now, the only problem is deploying 3rd Party jars from our deployment pc to maven-proxy I followed this instruction from maven's FAQ but with no luck. http://docs.codehaus.org/pages/viewpage.action? pageId=37533#WhyamIgettinga%22org.apache.maven.plugins%22doesnot- HowdoIinstallartifactstoaremoterepository%3F $cd /junitperf-1.9.1/lib $mvn deploy:deploy-file -DgroupId=com.clarkware.junitperf - DartifactId=junitperf -Dversion=1.9.1 -Dpackaging=jar - Dfile=junitperf-1.9.1.jar -DrepositoryId=myrepository -Durl=scpexe:// MY_DOMAIN/maven-proxy/target/repo [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'deploy'. [INFO] - --- [ERROR] BUILD FAILURE [INFO] - --- [INFO] Required goal not found: deploy:deploy-file deploy:deploy-file is still in snaphot, so you need a way to download them down to your local repo. There are 2 ways: 1. Go to one of your maven2 project and issue maven deploy:deploy-file -U It will fail but the snapshot get downloaded. 2. Fetch latest source from scm and build Q2) there is 2 different directory in maven-proxy repo.local-repo.url=file:///./target/repo-local repo.local.store=./target/repo when I deploy 3rd Party jar file, which directory should I upload my jar to ? You will need to create a store like thirdparty and upload your external jar to that store for my case, i have a few stores local deparment-a department-b thirdparty central ( a link only) etc anyone has done this successfully? Regards, Manchi - 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] Deploying 3 Party Jar to Maven-Proxy
you definitely want to use deploy:file-deploy to do it, using install:install-file your maven-proxy host does not deploy all meta data files. Also, you need to configure your maven-proxy as your mirrow. using http://maven.apache.org/guides/mini/guide-mirror-settings.html You also need to configure a default profile in your settings.xml to point plugin repository to your maven-proxy host Hope this helps. -Dan On 1/4/06, dan tran [EMAIL PROTECTED] wrote: You seem to have 2 separate problems maven-proxy's configuration and deploy:deploy-file. Let's try to get your deploy:deploy-file working first. What problem do you have right now? -D On 1/4/06, Man-Chi Leung [EMAIL PROTECTED] wrote: since there is a problem doing remote jar deployment. now, what I can do is to login to my maven-proxy server, and perform jar installation locally ! Should I do this ON My Maven-Proxy there are 2 types of library that I need to put in my local maven-proxy. * firstly, I also install maven 2.0.1 on my maven-proxy server and amend settings.xml localRepositorymaven-proxy/target/ repolocalRepository I intentionally, set this maven local repository=maven-proxy's (repo.local.store=./target/repo) 1) 3rd party jar : e.g. easymock, junitperf so from the maven-proxy machine, I did this locally: mvn install:install-file -Dfile=junitperf-1.9.1.jar - DgroupId=org.junitperf -DartifactId=junitperf -Dversion=1.9.1 - Dpackaging=jar -DgeneratePom=true mvn install:install-file -Dfile=easymock.jar -DgroupId=org.easymock - DartifactId=easymock -Dversion=2.0 -Dpackaging=jar -DgeneratePom=true 2) plugins that I checked out from Mojo source repository I did mvn install - On my development Client: ERROR!! - But on my development machine, whenever I run mvn, I encountered the followings Error: [INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository On Jan 4, 2006, at 3:56 AM, dan tran wrote: On 1/3/06, Man-Chi Leung [EMAIL PROTECTED] wrote: hi I have successfully setup maven-proxy, based on the following website. http://maven-proxy.codehaus.org/ Q1) now, the only problem is deploying 3rd Party jars from our deployment pc to maven-proxy I followed this instruction from maven's FAQ but with no luck. http://docs.codehaus.org/pages/viewpage.action? pageId=37533#WhyamIgettinga%22org.apache.maven.plugins%22doesnot- HowdoIinstallartifactstoaremoterepository%3F $cd /junitperf- 1.9.1/lib $mvn deploy:deploy-file -DgroupId=com.clarkware.junitperf - DartifactId=junitperf -Dversion=1.9.1 -Dpackaging=jar - Dfile=junitperf-1.9.1.jar -DrepositoryId=myrepository -Durl=scpexe:// MY_DOMAIN/maven-proxy/target/repo [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'deploy'. [INFO] - --- [ERROR] BUILD FAILURE [INFO] - --- [INFO] Required goal not found: deploy:deploy-file deploy:deploy-file is still in snaphot, so you need a way to download them down to your local repo. There are 2 ways: 1. Go to one of your maven2 project and issue maven deploy:deploy-file -U It will fail but the snapshot get downloaded. 2. Fetch latest source from scm and build Q2) there is 2 different directory in maven-proxy repo.local-repo.url=file:///./target/repo-local repo.local.store=./target/repo when I deploy 3rd Party jar file, which directory should I upload my jar to ? You will need to create a store like thirdparty and upload your external jar to that store for my case, i have a few stores local deparment-a department-b thirdparty central ( a link only) etc anyone has done this successfully? Regards, Manchi - 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: Continuum + Clearcae. [Was] Re: How to use continuum with Maven2? - Please Help
Could you post your scm url in your pom.xml? Does it point to a file containing the correct config spec to use? regards, Wim 2006/1/3, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi Dan/Wim Thanks for your reply, but still my problem is not solved ccview + MyModule + EJB +pom.xml + web +pom.xml + pom.xml 1. I follwed instruction as Wim said like a.) In continuum pointed the parent pom.xml for pom url field, this automatically loaded my child poms (this pom is under my cc view directory module) b.) removed the existing view. c.) then when i build it it gave me the following error Provider message: The cleartool command failed. Command output: --- cleartool: Error: Unable to open file C:\continuum-1.0.2\bin\win32\MyModule: Is a directory. cleartool: Error: Unable to change configuration specification: error detected by ClearCase subsystem. --- d.) i created a directory MyModule under C:\continuum-1.0.2\bin\win32\ but still its throwing the same error i don't understand whats going on here!!! why its looking into C:\continuum-1.0.2\bin\win32\ and what its trying to access?? 2. I don't think continuum is loading the pom everytime when it changes. coz i tried changing like view name and ran the build from continuum and its still looking at the old view name, not the one i changed Thanks, === Raghurajan Gurunathan === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] dependency-maven-plugin 1.0
Cool, I can use that. Does copy only copy the direct dependencies and does copy-dependencies copy the direct and transitive dependencies? regards, Wim 2006/1/4, Brian E. Fox [EMAIL PROTECTED]: The Mojo team would like to announce the 1.0 release of the dependency-maven-plugin: This plugin provides the capability to manipulate artifacts. It can copy and/or unpack artifacts from repositories (local and remote)to a specified location. The plugin has 4 goals: *copy: takes a list of artifacts defined in the plugin configuration section and copies them to a specified location, renaming them or stripping the version if desired. This goal can resolve the artifacts from remote repositories if they don't exist in local. This goal can also retrieve the version from dependencyManagement. *copy-dependencies: takes the list of dependencies and transitive dependencies and copies them to a specified location, stripping the version if desired. This goal can also be run from the command line. *unpack: like copy but unpacks. *unpack-dependencies: like copy-dependencies but unpacks. All goals are able to detect if the artifacts already exist and don't copy/unpack again Detailed docs are available at: http://mojo.codehaus.org/dependency-maven-plugin/ The plugin is available on ibiblio and ready for use. Thanks for the Mojo team for helping to make this plugin come to fruition. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: M1 or M2?
Thanks Babak. WRT m2 documentation it's already better than m1. However we're also writing a m2 book. It'll be made available online. We should have a first release of it in Q1 2006. WRT migrating to m2 yes it's easy to do that from m1 provided you follow the best practices like having a minimal maven.xml file... The hard part is moving from Ant to Maven because you need to restructure your directory structure into small subprojects. But if you're on m1 it means you've already done that and this doesn't change when you move to m2. -Vincent -Original Message- From: Babak Farhang [mailto:[EMAIL PROTECTED] Sent: mercredi 4 janvier 2006 07:16 To: Maven Users List Subject: Re: M1 or M2? Thanks for encouraging Maven2! I must say, though, that you didn't address my Will I suffer? question :-) I just checked out *Maven: A Dev's Notebook* which is slightly dated and based on Maven1. Nice, fairly well-organized, spoon-fed info in that book which I hope is more or less applicable to Maven2, as well. Reading some of the user feedback on reviews about Maven2 (e.g. see http://www.javaworld.com/javaworld/jw-12-2005/jw-1205-maven-p3.html ) I thought it might be wiser if I first learnt Maven1. .. If you want to suffer then delve into writing Jelly plugins in Maven1. ;) Maven2 is a beautiful thing... I'm sure it's beautiful. Really! I'm hoping not to need to write any plugins, though. I'm not a build engineer: I'll be using Maven mostly because it makes developing apps easier... So for now, as a newbie, I'll stick to Maven1 until there is better documentation out there for Maven2. I *did* try Maven2 along w/ its documentation, but for now, here's my advice to other newcomers: The path to m2 is through m1. Or ye shall suffer needlessly, as I have... :-) If I follow the *best practices*, it seems, I should be able to migrate relatively painlessly to M2. - 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: How to specify external jars
Hi, I am still stuck with this issue. Could someone please let me know what could possibly be wrong? Regards, Kiran -Original Message- From: Pagadala Baskar, Kiran Kumar (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 03, 2006 5:40 PM To: Maven Users List Subject: How to specify external jars Hi, I have a couple of external jars that I need for my Project compilation. I have uploaded them to the local repository using: mvn install:install-file -Dfile=File Path\JAR_NAME.jar -DgroupId=groupId -DartifactId=JAR_NAME -Dversion=1.0 -Dpackaging=jar I tried adding the jar as a dependency to my POM.xml. When I try to compile the project using mvn compile, it is still not detected. I even tried to add the jars to my CLASSPATH manually. Even that doesn't help. Could someone please let me know where I am going wrong? Thanks and Regards, Kiran This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]