RE: Calling mvn commands from Java
Hi Use the MavenEmbedder to this. Hermod -Original Message- From: Matt Wheeler [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 5:00 PM To: users@maven.apache.org Subject: Calling mvn commands from Java I was wondering if there is a Java API for Maven, from which to call mvn commands? For instance, we would like to (OS agnostically - maybe the cd and rmdir cannot be OS agnostic) perform the following operations, checking for any errors that occur: mvn archetype:create -DarchetypeArtifactId=stack-fuse -DarchetypeGroupId=abc.def.stack -DarchetypeVersion=2.0-SNAPSHOT -DartifactId=testproject -DgroupId=abc.def -DremoteRepositories=http://somelib:1234/maven2 cd testproject mvn package site eclipse:eclipse -Dwtpversion=1.0 cd .. rmdir testproject Thanks, Matt W. -- NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Re: Calling mvn commands from Java
Check here for the API: http://maven.apache.org/guides/mini/guide-embedding-m2.html I got this from a search, I still don't know what all jars I need to have in the classpath to use this... - Subhash. On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Use the MavenEmbedder to this. Hermod -Original Message- From: Matt Wheeler [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 5:00 PM To: users@maven.apache.org Subject: Calling mvn commands from Java I was wondering if there is a Java API for Maven, from which to call mvn commands? For instance, we would like to (OS agnostically - maybe the cd and rmdir cannot be OS agnostic) perform the following operations, checking for any errors that occur: mvn archetype:create -DarchetypeArtifactId=stack-fuse -DarchetypeGroupId= abc.def.stack -DarchetypeVersion=2.0-SNAPSHOT -DartifactId=testproject -DgroupId=abc.def -DremoteRepositories=http://somelib:1234/maven2 cd testproject mvn package site eclipse:eclipse -Dwtpversion=1.0 cd .. rmdir testproject Thanks, Matt W. -- NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Re: Calling mvn commands from Java
maven embedder must be very popular, one question, 5 answers pointing to the same reference; -) On 9/12/06, Subhash Chandran [EMAIL PROTECTED] wrote: Check here for the API: http://maven.apache.org/guides/mini/guide-embedding-m2.html I got this from a search, I still don't know what all jars I need to have in the classpath to use this... - Subhash. On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Use the MavenEmbedder to this. Hermod -Original Message- From: Matt Wheeler [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 5:00 PM To: users@maven.apache.org Subject: Calling mvn commands from Java I was wondering if there is a Java API for Maven, from which to call mvn commands? For instance, we would like to (OS agnostically - maybe the cd and rmdir cannot be OS agnostic) perform the following operations, checking for any errors that occur: mvn archetype:create -DarchetypeArtifactId=stack-fuse -DarchetypeGroupId= abc.def.stack -DarchetypeVersion=2.0-SNAPSHOT -DartifactId=testproject -DgroupId=abc.def -DremoteRepositories=http://somelib:1234/maven2 cd testproject mvn package site eclipse:eclipse -Dwtpversion=1.0 cd .. rmdir testproject Thanks, Matt W. -- NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
RE: Calling mvn commands from Java
Hi Just add the dependency on MavenEmbedder in your pom, and then Maven will handle the rest for you through transitive dependencies. Hermod -Original Message- From: Subhash Chandran [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 8:59 AM To: Maven Users List Subject: Re: Calling mvn commands from Java Check here for the API: http://maven.apache.org/guides/mini/guide-embedding-m2.html I got this from a search, I still don't know what all jars I need to have in the classpath to use this... - Subhash. On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Use the MavenEmbedder to this. Hermod -Original Message- From: Matt Wheeler [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 5:00 PM To: users@maven.apache.org Subject: Calling mvn commands from Java I was wondering if there is a Java API for Maven, from which to call mvn commands? For instance, we would like to (OS agnostically - maybe the cd and rmdir cannot be OS agnostic) perform the following operations, checking for any errors that occur: mvn archetype:create -DarchetypeArtifactId=stack-fuse -DarchetypeGroupId= abc.def.stack -DarchetypeVersion=2.0-SNAPSHOT -DartifactId=testproject -DgroupId=abc.def -DremoteRepositories=http://somelib:1234/maven2 cd testproject mvn package site eclipse:eclipse -Dwtpversion=1.0 cd .. rmdir testproject Thanks, Matt W. -- NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[repost] doxia confluence Howto
Hello, I'd like to use confluence syntax for my project documentation, but doesn't find any doc for configuring doxia. I tried addind a stc/site/confluence/test.confluence file, but it is not translated. Can someone give me some help ? Nico. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Complex Assembly structure
and e.jar. I tried to create a master script in A with modules for b and e and then master scripts in B and E with modules of c,d and f,g,h, respectively. However, C, D, and F,G,H don't have targets, so I wasn't sure how to proceed at that level. Thanks for reading through this. You should be able to do what you are suggesting. I don't use moduleSets, I have always used dependencySets. I'm not saying you can't get moduleSets to work, it is just I have not got my head around them and dependencySets have worked just fine for me so far. Check out http://www.nabble.com/forum/ViewPost.jtp?post=5936062framed=y This should explain enough to get you going. You will probably find that because your parent projects are packaged as poms (as they must be in order to have modules) that you will need to manually bind the assembly plugin to a phase. Remember you will need to use the single goal as both attached and assembly dont work in a reactor environment. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using classifer with the ejb-plugin
Hi again! When I'm using the ear-plugin, the same issue as with the ejb-plugin arises. It doesn't have support for the classifier tag. In my webapp, I configure my profile like this: plugins plugin artifactIdmaven-war-plugin/artifactId executions execution phasepackage/phase goals goalwar/goal /goals configuration classifierprod/classifier /configuration /execution /executions /plugin /plugins and end up with an artifact named [artifactId-version-classifier.war]. Does anybody know how to achieve this with the ear-plugin, or if it is at all possible? I find it very usefull to be able to tag my artifacts using the classifer based on what profile was used to build it. Are there anybody else out there who use classifier to build, for instance, a webapp with different name for development, testing, and production? Best regards Bent On 9/12/06, Bent André Solheim [EMAIL PROTECTED] wrote: Hi all! I have an ejb-project that I have to build with several sets of property-files. In the past, I have used profiles and configured the jar-plugin with the classifier/ tag for each set of propery-files. I would like to do this with ejb projects also. What I have found is that the ejb-plugin does not support classifier directly, but I can configure the jar-plugin with the classifier I want. This works pretty well, but configuring the jar-plugin in the profile seems to clear the keys and values put in the MANIFEST.MF file by the ejb-plugin. Does anybody know if there is any plans to put classifier support in the ejb-plugin, or if there are other ways to achieve what I want? As a temporary solution, I set the finalName manually in the different profiles. Hope to hear from you! Best regards Bent André Solheim
Re: Different behavior between jar and zip dependency
I have attached a patch to this jira issue that solve the problem is somebody else need this functionality. Seb _Seb_ wrote: Here is a JIRA issue about this problem : does somebody knows a workaround ? This bug prevent us for using maven to do a release, we would like to have some solution to go on before the issue is solved http://jira.codehaus.org/browse/MNG-2398 Thanx Seb _Seb_ wrote: Hi, I have another problem with reactor. When I have a dependency from one module to another one with type jar, everything is ok, the latter one get the jar in the target directory of the first one. If I do the same with a dependency of type zip, I have an error because the latter module try to download the zip from my repository. Does somebody knows why ? How can I depend on a zip file in my reactor if I want to do a release ? Regards Seb -- View this message in context: http://www.nabble.com/Different-behavior-between-jar-and-zip-dependency-tf2251348.html#a6280592 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Surefire problem with test-jar in a reactor
This problem is due to some limitation in the core of maven. Here is a jira about this : http://jira.codehaus.org/browse/MNG-2398 I submitted a patch with this issue that solve the problem. There is some limitation with test jars. You need to define these jars with classifier tests and not with type test-jar if you want to use my patch Regards Seb -- View this message in context: http://www.nabble.com/Surefire-problem-with-%22test-jar%22-in-a-reactor-tf2251079.html#a6280687 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Checking out code
Hi Emmanuel, I am trying to see if there is any activity what so ever, be it cvs or continuum. I am having a problem with constant timeouts and am trying to indentify any possible errors. Regards, Garrick -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: 12 September 2006 03:11 To: continuum-users@maven.apache.org Subject: Re: Checking out code You already use the DEBUG mode for all classes that doesn't have a specific hierarchy so you can't increase the logging level. What do you want to see in log? continuum activity or cvs activity? For continuum, you have the maximum logging level, but for cvs, I think you can activate the verbose mode in your .cvsrc Emmanuel Garrick Van Schalkwyk a écrit : Hi Emmanuel, I'm not sure which of these would apply to Code check out? Would I need to add anything additional? -- - component roleorg.codehaus.plexus.logging.LoggerManager/role implementationorg.codehaus.plexus.logging.log4j.Log4JLoggerManager/implementation lifecycle-handlerbasic/lifecycle-handler - configuration thresholdDEBUG/threshold default-appenderconsole,rolling/default-appender - appenders - appender idconsole/id thresholdDEBUG/threshold typeorg.apache.log4j.ConsoleAppender/type conversion-pattern%d [%t] %-5p %-30c{1} - %m%n/conversion-pattern /appender - appender idrolling/id thresholdDEBUG/threshold typeorg.apache.log4j.RollingFileAppender/type conversion-pattern%-4r [%t] %-5p %c %x - %m%n/conversion-pattern - properties - property namefile/name value${plexus.home}/logs/continuum.log/value /property - property nameappend/name valuetrue/value /property - property namemaxBackupIndex/name value10/value /property - property namemaxFileSize/name value10MB/value /property /properties /appender /appenders - levels - level hierarchyorg.apache.maven.continuum.execution.maven.m2.MavenBuilderHelper/hierarchy levelINFO/level /level - level hierarchyorg.codehaus.plexus.velocity/hierarchy levelWARN/level /level - level hierarchyorg.codehaus.plexus.mailsender.MailSender/hierarchy levelINFO/level /level - level hierarchyJPOX/hierarchy levelINFO/level /level - level hierarchyJPOX.Cache/hierarchy levelWARN/level /level /levels /configuration /component /components -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: 12 September 2006 09:33 To: continuum-users@maven.apache.org Subject: Re: Checking out code You can set log levels in apps/continuum/conf/application.xml Emmanuel Garrick Van Schalkwyk a écrit : Hi All, Is there any way that I can increase the logging level when a Code check out is taking place? I am using CVS and the check out process is taking exceptionally long with no messaging occurring. I would like to set a higher logging level at this point to see what exactly is happening during this period. Thanks, Garrick
Re: notice about recent assembly plugin snapshot
John? On 31/08/06, Brett Porter [EMAIL PROTECTED] wrote: was this behaviour only in previous snapshots of the current release, or was it that way in the previous release? On 31/08/06, John Casey [EMAIL PROTECTED] wrote: Hi everyone, I just wanted to send a quick note to let you know that I've made some modifications to the way the assembly plugin functions. These changes are likely to break your assemblies if you're using the moduleSets/moduleSet/sources element. The sources element used to be derived from fileSet, in that you could provide directory, outputDirectory, includes, excludes, etc. directly on that element. This sources element would determine how source-files from module children and grandchildren of your project were included. In some recent work, I've noticed that it's sometimes useful to be more flexible with module source inclusion. So, I've made the sources element a free-standing class, no longer derived from the fileSet. So, to replicate this: moduleSets moduleSet sources directorysrc/directory excludes exclude**/*.bak/exclude exclude**/*~/exclude /excludes /sources /moduleSet /moduleSets you'd need to change it to the following: moduleSets moduleSet sources fileSets fileSet directorysrc/directory excludes exclude**/*.bak/exclude exclude**/*~/exclude /excludes /fileSet /fileSets /sources /moduleSet /moduleSets I've deployed this new snapshot for people to try out, but changes like this and other new features of the moduleSet section are not documented yet. I'm planning to flesh out the documentation for these new parts soon, and call a release, as I think we're nearing a good cut-off point, before beginning a new round of features. I just wanted to make sure I didn't leave people saying, WTF? This used to work! tonight. -john -- Apache Maven - http://maven.apache.org Better Builds with Maven book - http://library.mergere.com/ -- Apache Maven - http://maven.apache.org Better Builds with Maven book - http://library.mergere.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Need help using new plugin (qalab)
I don't know if it helps you with your problem, but I will post my Qalab configuration from my POM. Maybe you can compare it and see what the problem might be: build plugins plugin groupIdnet.objectlab/groupId artifactIdmaven-qalab-plugin/artifactId version2.1/version executions execution idcheckstyle-merge/id phasepre-site/phase goals goalmerge/goal /goals configuration handler net.objectlab.qalab.parser.CheckstyleStatMerge /handler inputFile ${project.build.directory}/checkstyle/checkstyle-result.xml /inputFile /configuration /execution !-- execution idfindbugs-merge/id phaseverify/phase goals goalmerge/goal /goals configuration handlernet.objectlab.qalab.parser.FindBugsStatMerge/handler inputFile${project.build.directory}/findbugs.xml/inputFile /configuration /execution-- execution idpmd-merge/id phasepre-site/phase goals goalmerge/goal /goals configuration handler net.objectlab.qalab.parser.PMDStatMerge /handler inputFile ${project.build.directory}/pmd.xml /inputFile /configuration /execution execution idqalab-movers/id phasepre-site/phase goals goalmovers/goal /goals configuration startTimeHoursOffset 480 /startTimeHoursOffset /configuration /execution execution idqalab-chart/id phasepre-site/phase goals goalchart/goal /goals configuration summaryOnlyfalse/summaryOnly /configuration /execution /executions configuration typescheckstyle,pmd/types systemProperties property nameqalab.merge.timestampdateonly/name valueyes/value /property /systemProperties /configuration /plugin /plugins /build and: reporting plugins plugin groupIdnet.objectlab/groupId artifactIdmaven-qalab-plugin/artifactId version2.1/version reportSets
Why Could not download POM file?!
Hi, I added a Maven2 project with several moduels, and the M2 POM Url is right. But an error thrown Could not download file:/E:/path/pom.xml: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\continuum\path\pom.xml (cann't find the specific system path) But I'm so puzzled that I added another simple Maven2 project, all is ok?! a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Why-Could-not-download-POM-file-%21-tf2263811.html#a6281530 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Update over scm-local does not delete files removed from source dir
Emmanuel Venisse wrote: thanks a lot for your answer. A ClearCase dynamic view looks like a normal filesystem, so I think scm-local in principle is a fine solution. I think there wouldn't be much what a dedicated dynamic-view support in the Clearcase SCM provider could add. Maybe it looks like a normal filesystem, but I think the clearcase server know if files are deleted and update your local copy, right? ClearCase of course has the information. But the problem is that a ClearCase dynamic view resides on a virtual network share, e.g. \\view\some_view. You can map it to a drive letter under windows, e.g. Z:, but I don't see a way to define it in Continuum's working directory. So the files have to be copied from the dynamic view to the working directory - and that's what scm-local is doing. Couldn't the scm-local adapter consider all files that are in the checkout dir but not in the source dir as deleted? This should be easy to implement and do the job. We can't, because some users (or the build) add some files in the checkout directory like the target directory and they don't want to remove them at each build. That's true. Maybe we could enhance scm-local to keep its own metadata? In particular, scm-local could maintain a simple file, say .maven-scm-local, that contains as plain text the list of files in the source directory, as seen during the last checkout or update operation: - During checkout, the file .maven-scm-local is created in the checkout base directory. Its just a plain text file containing the list of files that have been checked out. - The update command looks for the file. If it is there, it compares the contents of that file to the current source directory contents (including subdirs). All files that are in .maven-scm-local but are no longer in the source dir, have been deleted in the source dir. The update command therefore removes them from the checkout dir. - If for whatever reason .maven-scm-local is not there, the update command won't delete any files. That way, we're backwards compatible. - After completing the update process, the update command rewrites the .maven-scm-local metadata file. - Even the changelog command can interpret .maven-scm-local - For add and checkin commands, I don't think that changes are needed. What do you think? Regards, Arne -- View this message in context: http://www.nabble.com/Update-over-scm-local-does-not-delete-files-removed-from-source-dir-tf2257460.html#a6281593 Sent from the Continuum - Users forum at Nabble.com.
RE: M2: Fatal error generating site
I still cant find any real clues about this. I've found some other instances of this IAE and the error message on standard public dependencies that have been treated as bugs and fixed. I'm still suspicious that the dependency in question is in the maven 1 repository, and hence there isn't a v4 pom file (the pom file is v3). However I don't understand why the site target should not support maven 1 repo's when it is supported in the rest of maven. Confused as ever, Ian -Original Message- From: Orford, Ian Sent: 12 September 2006 11:38 To: 'users@maven.apache.org' Subject: M2: Fatal error generating site I'm trying to generate site documentation. We have lots of project, most of them still use maven 1. This particular project is built with maven 2. The error below indicates that a project isn't in the repository. I don't really know what that means. It is in the repository (the compile and test goals would fail otherwise). I've browsed to the appropriate repository directory: C:\Dev\.m2\repository\drkw-cpds-proxy-common\proxy-common\4.01 And can see the following files: proxy-common-4.01.jar proxy-common-4.01.jar.md5 proxy-common-4.01.pom proxy-common-4.01.pom.md5 Help appreciated. Thanks, Ian Orford. [INFO] Generate Continuous Integration report. [ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0 [ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0 [INFO] Generate Dependencies report. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Can't find a valid Maven project in the repository for the artifact [drkw-cpds-proxy-common:proxy-common:4.01]. [INFO] [INFO] Trace java.lang.IllegalArgumentException: Can't find a valid Maven project in the repository for the artifact [drkw-cpds-proxy-common:pr oxy-common:4.01]. at org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRenderer. renderBody(DependenciesReport.java:246) at org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMavenR eportRenderer.java:65) at org.apache.maven.report.projectinfo.DependenciesReport.executeReport(Depende nciesReport.java:157) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport. java:98) at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDo cumentRenderer.java:67) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(Default SiteRenderer.java:239) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRe nderer.java:115) at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:124) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage r.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife cycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec ycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail ures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa ultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle Executor.java:140) 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:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended
Re: [repost] doxia confluence Howto
Nicolas De Loof [EMAIL PROTECTED] writes: Hello, I'd like to use confluence syntax for my project documentation, but doesn't find any doc for configuring doxia. I tried addind a stc/site/confluence/test.confluence file, but it is not translated. Hello, Normally, you should use the extension tag to load the confluence module into the doxia system. extensions extension groupIdorg.apache.maven.doxia/groupId artifactIddoxia-confluence-module/artifactId version1.0-alpha-8/version /extension /extensions However, look at http://jira.codehaus.org/browse/DOXIA-68 I never managed myself to add a module without errors. If you really want to use confluence, you can look at http://jira.codehaus.org/browse/DOXIA-74 and the instructions at http://www.oqube.com/projects/muse-parser. HTH -- OQube software engineering \ génie logiciel Arnaud Bailly, Dr. \web http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Literate programming
Hello, Does anybody has experience in literate programming with maven ? Some experimental plugin for transforming input into site sources and code sources ? Thx for pointers, -- OQube software engineering \ génie logiciel Arnaud Bailly, Dr. \web http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
m2: XOR Profile Activation?
Hi How can I trigger that from a set of profiles exactly one is active? One of the should be active by default unless another one is specified via a -D property... Examples: - per default we want jdk 1.4 compiler settings, unless a property is given on the command line to change to 1.5 - per default we want settings for the development environment active, but for integration, QA and production environments we need to disable it and activate the corresponding profile Regards Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [repost] doxia confluence Howto
Thanks a lot ! It makes it work ... but I get the bad suprise that smileys are not converted in the rendered HTML... I use them a lot in my doc to document implemented (/), in progess (+) or planned (i) features. I'll have to change my documentation strategy. Arnaud Bailly a écrit : Nicolas De Loof [EMAIL PROTECTED] writes: Hello, I'd like to use confluence syntax for my project documentation, but doesn't find any doc for configuring doxia. I tried addind a stc/site/confluence/test.confluence file, but it is not translated. Hello, Normally, you should use the extension tag to load the confluence module into the doxia system. extensions extension groupIdorg.apache.maven.doxia/groupId artifactIddoxia-confluence-module/artifactId version1.0-alpha-8/version /extension /extensions However, look at http://jira.codehaus.org/browse/DOXIA-68 I never managed myself to add a module without errors. If you really want to use confluence, you can look at http://jira.codehaus.org/browse/DOXIA-74 and the instructions at http://www.oqube.com/projects/muse-parser. HTH This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: M2: Fatal error generating site
Orford, Ian-2 wrote: I still cant find any real clues about this. I've found some other instances of this IAE and the error message on standard public dependencies that have been treated as bugs and fixed. I'm still suspicious that the dependency in question is in the maven 1 repository, and hence there isn't a v4 pom file (the pom file is v3). However I don't understand why the site target should not support maven 1 repo's when it is supported in the rest of maven. Confused as ever, Ian -Original Message- From: Orford, Ian Sent: 12 September 2006 11:38 To: 'users@maven.apache.org' Subject: M2: Fatal error generating site I'm trying to generate site documentation. We have lots of project, most of them still use maven 1. This particular project is built with maven 2. The error below indicates that a project isn't in the repository. I don't really know what that means. It is in the repository (the compile and test goals would fail otherwise). I've browsed to the appropriate repository directory: C:\Dev\.m2\repository\drkw-cpds-proxy-common\proxy-common\4.01 And can see the following files: proxy-common-4.01.jar proxy-common-4.01.jar.md5 proxy-common-4.01.pom proxy-common-4.01.pom.md5 Help appreciated. Thanks, Ian Orford. [INFO] Generate Continuous Integration report. [ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0 [ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0 [INFO] Generate Dependencies report. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Can't find a valid Maven project in the repository for the artifact [drkw-cpds-proxy-common:proxy-common:4.01]. [INFO] [INFO] Trace java.lang.IllegalArgumentException: Can't find a valid Maven project in the repository for the artifact [drkw-cpds-proxy-common:pr oxy-common:4.01]. at org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRenderer. renderBody(DependenciesReport.java:246) at org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMavenR eportRenderer.java:65) at org.apache.maven.report.projectinfo.DependenciesReport.executeReport(Depende nciesReport.java:157) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport. java:98) at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDo cumentRenderer.java:67) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(Default SiteRenderer.java:239) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRe nderer.java:115) at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:124) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage r.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife cycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec ycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail ures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa ultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle Executor.java:140) 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:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] The information contained herein is confidential and is intended
RE: M2: Fatal error generating site
Hi Looking at the errormessage something strikes me: java.lang.IllegalArgumentException: Can't find a valid Maven project in the repository for the artifact [drkw-cpds-proxy-common:pr oxy-common:4.01]. Note the space between pr and oxy - Is it so in your pom or is this just the mail formatting? Hermod -Original Message- From: Orford, Ian [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 11:11 AM To: 'Maven Users List' Subject: RE: M2: Fatal error generating site I still cant find any real clues about this. I've found some other instances of this IAE and the error message on standard public dependencies that have been treated as bugs and fixed. I'm still suspicious that the dependency in question is in the maven 1 repository, and hence there isn't a v4 pom file (the pom file is v3). However I don't understand why the site target should not support maven 1 repo's when it is supported in the rest of maven. Confused as ever, Ian -Original Message- From: Orford, Ian Sent: 12 September 2006 11:38 To: 'users@maven.apache.org' Subject: M2: Fatal error generating site I'm trying to generate site documentation. We have lots of project, most of them still use maven 1. This particular project is built with maven 2. The error below indicates that a project isn't in the repository. I don't really know what that means. It is in the repository (the compile and test goals would fail otherwise). I've browsed to the appropriate repository directory: C:\Dev\.m2\repository\drkw-cpds-proxy-common\proxy-common\4.01 And can see the following files: proxy-common-4.01.jar proxy-common-4.01.jar.md5 proxy-common-4.01.pom proxy-common-4.01.pom.md5 Help appreciated. Thanks, Ian Orford. [INFO] Generate Continuous Integration report. [ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0 [ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0 [INFO] Generate Dependencies report. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Can't find a valid Maven project in the repository for the artifact [drkw-cpds-proxy-common:proxy-common:4.01]. [INFO] [INFO] Trace java.lang.IllegalArgumentException: Can't find a valid Maven project in the repository for the artifact [drkw-cpds-proxy-common:pr oxy-common:4.01]. at org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRenderer. renderBody(DependenciesReport.java:246) at org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMavenR eportRenderer.java:65) at org.apache.maven.report.projectinfo.DependenciesReport.executeReport(Depende nciesReport.java:157) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport. java:98) at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDo cumentRenderer.java:67) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(Default SiteRenderer.java:239) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRe nderer.java:115) at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:124) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage r.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife cycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec ycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail ures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa ultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle Executor.java:140) 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:256) 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
scopesystem in plugin
Hello, I'm trying to write a plugin (maven-jet-compiler) that uses some eclipse jars. As they are not available on ibiblio, I first tried to use a systemPath to point ot my {eclipse.home} : dependency groupIdorg.eclipse.core/groupId artifactIdruntime/artifactId version3.2.0/version scopesystem/scope systemPath${eclipse.home}/plugins/org.eclipse.core.runtime_3.2.0.v20060603.jar/systemPath /dependency The plugin compiles well as expected. Now, in another maven project, I include this plugin. When runing maven, I get a strange POM validation failure : POM Location: Artifact [info.jmonit:maven-jet-compiler:pom:1.0.0-SNAPSHOT] Validation Messages: [0] For dependency Dependency {groupId=org.eclipse.core, artifactId=boot, version=3.1.100, type=jar}: system-scoped dependency must specify an absolute path systemPath. The POM installed in my local repo as the expected systemPath. What's wrong ? Doesn't maven use my profile properties when reading plugins POM ? mvn -X doesn't give me more infos. Nico. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
machine name in build report url?
Hi, The build report from continuum contains url to the report, for example Online report : http://localhost:8080/continuum/servlet/continuum/target/ProjectBuild.vm /view/ProjectBuild/id/1/buildId/248 Is there any setting so that the url contains host machine name instead of localhost? Regards, Kapil CONFIDENTIALITY NOTICE This e-mail transmission and any documents, files, or previous e-mail messages appended or attached to it, may contain information that is confidential or legally privileged. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that you must not read this transmission and that any disclosure, copying, printing, distribution, or use of the information contained or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify the sender by telephone +91.172.229.9450 or return e-mail message [EMAIL PROTECTED] BLOCKED::mailto:[EMAIL PROTECTED] and delete the original transmission, its attachments, and any copies without reading or saving in any manner. Thank you.
Re: machine name in build report url?
On 9/13/06, Kapil Gupta [EMAIL PROTECTED] wrote: Hi, The build report from continuum contains url to the report, for example Online report : http://localhost:8080/continuum/servlet/continuum/target/ProjectBuild.vm /view/ProjectBuild/id/1/buildId/248 Is there any setting so that the url contains host machine name instead of localhost? Yes .Edit your Base URL under Configurations Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
is www.maven.org associated with maven?
Hi, Does anyboy know http://www.maven.org/ ? I just came across this site, it has nothing but a donation link on it, no description what it should be and who is responsible for it. Are they in any way connected to maven, or are they trying to get donations which are orginally meant to go to the apache maven project? BTW: the maven site has no contact info at all to get in contact with anybody responsble for the project(which I just tried). A users lists is not the same in my opinion, normally I had directed this request to the webmaster of maven.apache.org. And I think every site should have something like contact info on it. Even the address of this list is very hidden under general information - I think most people looking for a mailing list of an open source project are searching in help, documentation, or are expecting a lists link in the menu, but all these dont help finding this list's address. Just a hint for making the web usability of the maven site a bit better, hopefully somebody in charge is reading this... Henning - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: M2: Fatal error generating site
This worked. Thanks very much. Try deleting those artifacts from your repo and let maven download them again :-) The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended recipient, please contact the sender either via the company switchboard on +44 (0)20 7623 8000, or via e-mail return. If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.dresdnerkleinwort.com/disc/email/ or contact the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is www.maven.org associated with maven?
On 13.09.2006, at 13:33, Henning Sprang wrote: Hi, Does anyboy know http://www.maven.org/ ? I just came across this site, it has nothing but a donation link on it, no description what it should be and who is responsible for it. Are they in any way connected to maven, or are they trying to get donations which are orginally meant to go to the apache maven project? $ whois maven.org Registrant Name: van Zyl, Jason BTW: the maven site has no contact info at all to get in contact with anybody responsble for the project(which I just tried). http://maven.apache.org/team-list.html Cheers, -Ralph. A users lists is not the same in my opinion, normally I had directed this request to the webmaster of maven.apache.org. And I think every site should have something like contact info on it. Even the address of this list is very hidden under general information - I think most people looking for a mailing list of an open source project are searching in help, documentation, or are expecting a lists link in the menu, but all these dont help finding this list's address. Just a hint for making the web usability of the maven site a bit better, hopefully somebody in charge is reading this... Henning - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Update over scm-local does not delete files removed from source dir
Are you sure it isn't possible to checkout sources in a specific folder with cleartool? Emmanuel ArneD a écrit : Emmanuel Venisse wrote: thanks a lot for your answer. A ClearCase dynamic view looks like a normal filesystem, so I think scm-local in principle is a fine solution. I think there wouldn't be much what a dedicated dynamic-view support in the Clearcase SCM provider could add. Maybe it looks like a normal filesystem, but I think the clearcase server know if files are deleted and update your local copy, right? ClearCase of course has the information. But the problem is that a ClearCase dynamic view resides on a virtual network share, e.g. \\view\some_view. You can map it to a drive letter under windows, e.g. Z:, but I don't see a way to define it in Continuum's working directory. So the files have to be copied from the dynamic view to the working directory - and that's what scm-local is doing. Couldn't the scm-local adapter consider all files that are in the checkout dir but not in the source dir as deleted? This should be easy to implement and do the job. We can't, because some users (or the build) add some files in the checkout directory like the target directory and they don't want to remove them at each build. That's true. Maybe we could enhance scm-local to keep its own metadata? In particular, scm-local could maintain a simple file, say .maven-scm-local, that contains as plain text the list of files in the source directory, as seen during the last checkout or update operation: - During checkout, the file .maven-scm-local is created in the checkout base directory. Its just a plain text file containing the list of files that have been checked out. - The update command looks for the file. If it is there, it compares the contents of that file to the current source directory contents (including subdirs). All files that are in .maven-scm-local but are no longer in the source dir, have been deleted in the source dir. The update command therefore removes them from the checkout dir. - If for whatever reason .maven-scm-local is not there, the update command won't delete any files. That way, we're backwards compatible. - After completing the update process, the update command rewrites the .maven-scm-local metadata file. - Even the changelog command can interpret .maven-scm-local - For add and checkin commands, I don't think that changes are needed. What do you think? Regards, Arne
Re: Including project website in the e-mail
No, it isn't possible because for the moment, we don't know if a project site exist. In a future version, you'll can customize the mail template. Emmanuel Jeff Mutonho a écrit : Is there a way to include in the build report e-mail a line that says : Project website :url-to-were-maven-deployed-the-project-website I would like to add this just below the line that says Online report :http://.;
Re: Including project website in the e-mail
On 9/13/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: No, it isn't possible because for the moment, we don't know if a project site exist. In a future version, you'll can customize the mail template. Emmanuel :) .My question should have been , Is it possible to customize the mail template?If so where is it located? Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
adding jar dependencies in application.xml
Hi, I have an EJB with some dependencies that are not included in the EJB jar file because I use the maven-ejb-plugin. When I generate the ear with the maven-ear-plugin these dependencies are in the ear file but a class not found exception is thrown at runtime. How can I say to maven to add some java module in the application.xml generated file, or made these dependencies accessible ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Including project website in the e-mail
The mail template is in continuum-core jar, it's a velocity template. You'll probably won't have all infos you need about the project site location. Emmanuel Jeff Mutonho a écrit : On 9/13/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: No, it isn't possible because for the moment, we don't know if a project site exist. In a future version, you'll can customize the mail template. Emmanuel :) .My question should have been , Is it possible to customize the mail template?If so where is it located? Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: Including project website in the e-mail
On 9/13/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: The mail template is in continuum-core jar, it's a velocity template. You'll probably won't have all infos you need about the project site location. Emmanuel I know where I'm deploying to (as I do this with maven's mvn site-deploy).So I have the info for my project website.Unless I misunderstood you :) -- Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: Including project website in the e-mail
Jeff Mutonho a écrit : On 9/13/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: The mail template is in continuum-core jar, it's a velocity template. You'll probably won't have all infos you need about the project site location. Emmanuel I know where I'm deploying to (as I do this with maven's mvn site-deploy).So I have the info for my project website.Unless I misunderstood you :) I'm sure you know ;) The pb is that the template is totally independent of projects, so, without the project site location in the context, you can't print the correct one in the template unless you have only one project in your continuum or if you write some if/else by project in the template Emmanuel
Re: Including project website in the e-mail
On 9/13/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: I'm sure you know ;) The pb is that the template is totally independent of projects, so, without the project site location in the context, you can't print the correct one in the template unless you have only one project in your continuum or if you write some if/else by project in the template Emmanuel Ok I hear you.Perhaps future versions of continuum will have as something configurable , like the Base URL , for instance -- Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042
Re: surefire and hibernate+spring
I am experiencing a similar problem when using entity beans in the form of annotated classes: the tests run fine under Eclipse but fail under Maven with the same Unknown entity message. A quick look at the Hibernate logs shows that the entities are recognized under Eclipse but not under Maven. Similarly, the problem seems to stem from the separation of main classes and test classes in two distinct directories, which somehow impacts Hibernate's class location algorithm. Is there any way this can be avoided or, even better, solved? Thanks, GB Jurgen Lust wrote: Hi, I'm having a problem run the unit tests for a hibernate and spring-based application with the surefire plugin. I'm using the xdoclet plugin to generate the hibernate mapping files, and a spring LocalSessionFactoryBean to load the mappings, like so: The surefire plugin: plugin artifactIdmaven-surefire-plugin/artifactId version2.0/version !-- tried version 2.1.2 as well, to no avail -- configuration testFailureIgnoretrue/testFailureIgnore forkModeonce/forkMode includes include**/*TestSuite.java/include /includes reportFormatxml/reportFormat /configuration /plugin The xdoclet plugin: plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId version1.0-alpha-2/version executions execution phasegenerate-sources/phase goals goalxdoclet/goal /goals configuration tasks hibernatedoclet excludedtags=@version,@author,@see,@todo destDir=${project.build.outputDirectory} fileset dir=${basedir}/src/main/java include name=**/model/*.java/include /fileset hibernate destinationFile={0}.hbm.xml version=3.0 prefixWithPackageStructure=true/hibernate /hibernatedoclet /tasks /configuration /execution /executions /plugin The resulting mapping files are in target/classes. The spring.xml looks like this: bean id=sessionFactory class=org.springframework.orm.hibernate3.LocalSessionFactoryBean property name=dataSource ref bean=dataSource / /property property name=hibernateProperties props prop key=hibernate.dialect ${hibernate.dialect} /prop prop key=hibernate.connection.autocommit ${hibernate.connection.autocommit} /prop prop key=hibernate.hbm2ddl.auto ${hibernate.hbm2ddl.auto} /prop prop key=hibernate.show_sql ${hibernate.show_sql} /prop /props /property property name=mappingDirectoryLocations list valueclasspath:/value /list /property /bean So the LocalSessionFactoryBean searches the classpath for hbm.xml files. Now my unit tests create a ClassPathXmlApplicationContext in the setUp() method, using the above spring.xml file. But when the unit tests try to access one of the persistent beans, I get the error org.hibernate.MappingException: Unknown entity, which means the hibernate mapping files could not be found in the classpath. Looking at the classpath for the maven surefire plugin, I noticed that both the target/classes and target/testClasses directories are in it twice, which is strange but I doubt that this could be the cause... After copying the generated hbm.xml files to src/test/resources, the tests did not throw that Exception anymore. I have also tried running the tests from an ant buildfile, and that works as well. Does anyone have an idea what could be going wrong here? Kind regards, Jurgen -- Among flowers, the cherry blossom. Among men, me. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/surefire-and-hibernate%2Bspring-tf1154206.html#a6285590 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WANTED: Suggestions on performing vendor-specific builds
I've been looking at Maven 2 as a replacement to a current ANT-based build system and I'm looking for ideas on how I might be able to translate one of the features it currently provides. The code base supports multiple J2EE containers. Sometimes we have to build two different versions of the same code with each version relying on vendor-specific APIs. Sometimes modules are built only when a certain vendor's container is targeted. We handle triggering of optional but vendor-specific modules via the if attribute of the target tag. For example, target name=do-websphere-only-module if=websphere ... /target We handle the triggering of mandatory but vendor-specific code by naming conventions and property values. For example, our source directories are layed out similar to this: source/java/neutral source/java/weblogic source/java/websphere When the ANT build is kicked off, a property is set to indicate the target platform: -Dvendor=weblogic. When then use the value of the property to construct the source path for that build: path id=compile.source.path pathelement location=source/java/neutral/ pathelement location=source/java/${vendor}/ /path This allows us to only include the correct vendor-specific source during the build. We use a similar technique when building out the classpath which contains vendor-specific libraries. I'm trying to figure out how I might achieve similar functionality under Maven 2 and could use some suggestions. My first idea was to house the mandatory but vendor-specific code in their own modules and use a naming convention coupled with a property to control which module gets invoked by the parent module. For example, module names: mandatory-webshere/ mandatory-weblogic/ mandatory-jboss/ parent POM: modules modulemandatory-${vendor}/module modulepojo-one/module moduleejb-one/module moduleweb-one/module moduleear-one/module /modules That seems to work but I'm open to other ideas. What I haven't been able to figure out is how to configure the only build this module if the target is Webshere logic. Any ideas are appreciated. I'd like to avoid having to drop down to ANT using the maven-antrun-plugin or writing a custom plugin but I'll try whatever suggestions are provided. Many Thanks, Ron
Re: WANTED: Suggestions on performing vendor-specific builds
Ronald, I have a very similar setup in my projects where ANT was used based on an if clause. In fact I wound up actually using ant-contrib to give me if/else type logic to make the builds more readable. Have you looked into Maven2 style PROFILES? A profile allows you to define a number of configuration parameters based on some activation property (system property I think is currently the only thing supported) as well as a command line define, think -Dweblogic passed to mvn. Here is a pointer: http://maven.apache.org/guides/introduction/introduction-to-profiles.html -aps On 9/13/06, Ronald Kurr [EMAIL PROTECTED] wrote: I've been looking at Maven 2 as a replacement to a current ANT-based build system and I'm looking for ideas on how I might be able to translate one of the features it currently provides. The code base supports multiple J2EE containers. Sometimes we have to build two different versions of the same code with each version relying on vendor-specific APIs. Sometimes modules are built only when a certain vendor's container is targeted. We handle triggering of optional but vendor-specific modules via the if attribute of the target tag. For example, target name=do-websphere-only-module if=websphere ... /target We handle the triggering of mandatory but vendor-specific code by naming conventions and property values. For example, our source directories are layed out similar to this: source/java/neutral source/java/weblogic source/java/websphere When the ANT build is kicked off, a property is set to indicate the target platform: -Dvendor=weblogic. When then use the value of the property to construct the source path for that build: path id=compile.source.path pathelement location=source/java/neutral/ pathelement location=source/java/${vendor}/ /path This allows us to only include the correct vendor-specific source during the build. We use a similar technique when building out the classpath which contains vendor-specific libraries. I'm trying to figure out how I might achieve similar functionality under Maven 2 and could use some suggestions. My first idea was to house the mandatory but vendor-specific code in their own modules and use a naming convention coupled with a property to control which module gets invoked by the parent module. For example, module names: mandatory-webshere/ mandatory-weblogic/ mandatory-jboss/ parent POM: modules modulemandatory-${vendor}/module modulepojo-one/module moduleejb-one/module moduleweb-one/module moduleear-one/module /modules That seems to work but I'm open to other ideas. What I haven't been able to figure out is how to configure the only build this module if the target is Webshere logic. Any ideas are appreciated. I'd like to avoid having to drop down to ANT using the maven-antrun-plugin or writing a custom plugin but I'll try whatever suggestions are provided. Many Thanks, Ron -- What lies behind us and what lies in front of us is of little concern to what lies within us. -Ralph Waldo Emerson
Re: is www.maven.org associated with maven?
On 13 Sep 06, at 1:33 PM 13 Sep 06, Henning Sprang wrote: Hi, Does anyboy know http://www.maven.org/ ? It's where the central repository is now. I'll put more of a description there. Thanks for watching out for us but that's a friendly site :-) I just came across this site, it has nothing but a donation link on it, no description what it should be and who is responsible for it. Are they in any way connected to maven, or are they trying to get donations which are orginally meant to go to the apache maven project? BTW: the maven site has no contact info at all to get in contact with anybody responsble for the project(which I just tried). A users lists is not the same in my opinion, normally I had directed this request to the webmaster of maven.apache.org. And I think every site should have something like contact info on it. Even the address of this list is very hidden under general information - I think most people looking for a mailing list of an open source project are searching in help, documentation, or are expecting a lists link in the menu, but all these dont help finding this list's address. Just a hint for making the web usability of the maven site a bit better, hopefully somebody in charge is reading this... Henning - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Jason van Zyl [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse Application Lifecycle Framework (ALF) compatibility
Mark Crocker wrote: As far as I can tell, Maven is not compatible with the Eclipse ALF project (http://www.eclipse.org/alf/). Is that correct? If so, are there any plans to integrate Maven with ALF or provide an ALF/Maven plugin? I suppose that I should have provided a definition. ALF is the Eclipse Application Lifecycle Framework. It appears to be one of those big industry consortium frameworks that allows third party build, reporting, analysis, deployment and other such tools to be integrated into Eclipse in a standardized way. It sure seems like there's a lot of similarities between the ALF project goals and what Maven already does, but I'm not sure how the two would work together. Is it even reasonable to think about using Maven in this way? Out of the box, ALF doesn't seem to do much of anything, but with the addition of ALF compatible third party tools, it is supposed to provide tool integration and orchestration capabilities. I was just wondering if Maven might fit into the ALF model and was hoping that there were plans to make it ALF compatible at some point. Convincing management to allow me to use a new build system like Maven would be MUCH easier if I could tell them that it's ALF compatible. Although the folks in charge here are amenable to Open Source solutions, convincing them to use a build tool they've never heard of that isn't even compatible with the system they've built up is an uphill battle. I was hoping someone could tell me that Maven does have ALF compatibility that I had overlooked. -- View this message in context: http://www.nabble.com/Eclipse-ALF-compatibility-tf2229357.html#a6286384 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse Application Lifecycle Framework (ALF) compatibility
Mark Crocker wrote: Mark Crocker wrote: As far as I can tell, Maven is not compatible with the Eclipse ALF project (http://www.eclipse.org/alf/). I suppose that I should have provided a definition. ALF is the Eclipse Application Lifecycle Framework. Sorry for the repost folks. I was looking at nabble the wrong way and didn't notice that there were, indeed, replies to my original post. -- View this message in context: http://www.nabble.com/Eclipse-ALF-compatibility-tf2229357.html#a6286455 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
clearcase and continuum
Hi, I've been trying to setup continuum to build my maven 2 project from clearcase. It took me a while to work out how get it working and I'm not quite there yet. The last hurdle is the error Could not find Maven project descriptor which I believe is because continuum in looking for a pom.xml file in the top level of my view and not finding one. My pom.xml is actually in \myVob\myProject\src\pom.xml how can I tell continuum to look there rather than at the top level? Thanks David Appendix - What I've done so far First I changed my top level pom (I have a multi-module build) to include the scm element... scm connectionscm:clearcase:./configspecs/DEV_AAA-stream-latest.txt/connection developerConnectionscm:clearcase:./configspecs/DEV_AAA-stream-latest.txt/developerConnection /scm Then I added configspecs/DEV_AAA-stream-latest.txt to clearcase, we've got a UCM setup here (what a pain!) so the config spec is... element * CHECKEDOUT element [213719983a1411d9942400025cdbaa4c=\myVob]/myProject/... .../DEV_AAA/LATEST element [213719983a1411d9942400025cdbaa4c=\myVob]/myProject/... INIT_UCM_myProject_myProject_IMPORT -mkbranch DEV_AAA element [213719983a1411d9942400025cdbaa4c=\myVob]/myProject/... /main/0 -mkbranch DEV_AAA element * /main/0 -ucm -nocheckout load \myVob\myProject Then, I unziped continuum to a new folder. Opened application.xml and enabled the file protocol. Started continuum via the .bat file. Went to the web interface, set it up, logged in and went to Add Maven 2 project. Now before I added the top level pom.xml, I checked it out and commented out all the modules, but did not check it in. This was to work around the default behaviour of adding a continuum build for each module (any way to disable this?). Then I added the pom.xml using a file:// url. After it was added I edited the build via the web interface and removed --no-recurse option and added the -X option (-X adds extra debug info right?). Then I click build now. The view updates ok (as I've set my .scm/clearcase-settings.xml file correctly), but then the pom.xml can't be found
Re: Simian Report Plugin for Maven 2.x
The Simian report I generated recently with MAVEN 2 shows the following numbers: Similarity threshold (lines) 6 Total number of duplicate lines 53472 Total number of duplicate blocks 1574 Total number of files with duplicates 212 Total number of processed lines 41026 Total number of processed files 559 Scan time 1232ms Most of the information is clear, but what is the relation between the processed lines and the duplicate lines. Is it possible to calculate the percentage of duplicate code using these numbers? Rik
Re: clearcase and continuum
Ah! Got it, it was obvious after all. I edited the build definition in the continuum web interface and changed the POM filename to myVob\myProject\src\pom.xml Sorry to bother you. Continuum looks great by the way! :) On Wed, 13 Sep 2006 15:23:35 +0100, [EMAIL PROTECTED] said: Hi, I've been trying to setup continuum to build my maven 2 project from clearcase. It took me a while to work out how get it working and I'm not quite there yet. The last hurdle is the error Could not find Maven project descriptor which I believe is because continuum in looking for a pom.xml file in the top level of my view and not finding one. My pom.xml is actually in \myVob\myProject\src\pom.xml how can I tell continuum to look there rather than at the top level? Thanks David Appendix - What I've done so far First I changed my top level pom (I have a multi-module build) to include the scm element... scm connectionscm:clearcase:./configspecs/DEV_AAA-stream-latest.txt/connection developerConnectionscm:clearcase:./configspecs/DEV_AAA-stream-latest.txt/developerConnection /scm Then I added configspecs/DEV_AAA-stream-latest.txt to clearcase, we've got a UCM setup here (what a pain!) so the config spec is... element * CHECKEDOUT element [213719983a1411d9942400025cdbaa4c=\myVob]/myProject/... .../DEV_AAA/LATEST element [213719983a1411d9942400025cdbaa4c=\myVob]/myProject/... INIT_UCM_myProject_myProject_IMPORT -mkbranch DEV_AAA element [213719983a1411d9942400025cdbaa4c=\myVob]/myProject/... /main/0 -mkbranch DEV_AAA element * /main/0 -ucm -nocheckout load \myVob\myProject Then, I unziped continuum to a new folder. Opened application.xml and enabled the file protocol. Started continuum via the .bat file. Went to the web interface, set it up, logged in and went to Add Maven 2 project. Now before I added the top level pom.xml, I checked it out and commented out all the modules, but did not check it in. This was to work around the default behaviour of adding a continuum build for each module (any way to disable this?). Then I added the pom.xml using a file:// url. After it was added I edited the build via the web interface and removed --no-recurse option and added the -X option (-X adds extra debug info right?). Then I click build now. The view updates ok (as I've set my .scm/clearcase-settings.xml file correctly), but then the pom.xml can't be found
Re: Re: Re: maven native plugin
Please address to the maven group rather thru me directlty. Your configuration can be shorter with you are using MSVC6EnvFactory. There is a fix in latest SVN to support this feature for both resource and message compiler check out the snapshot You shoule move your resource file inside src/main/... directory ( same directory with your c source ) Other than that, every thing looks great including your configuration and the options elements What kink of problem do you see? -Dan On 9/13/06, Düvelmeyer, Thorsten [EMAIL PROTECTED] wrote: - for intel compiler, it is very similar to msvc, so you can wire up a new compiler/linker provide for intel. It could be as simple as subclassing from msvc classes I'm working on it - an example of resource compiler is at http://svn.codehaus.org/mojo/trunk/mojo/maven-native/native-maven-plugin/src/it/jni/native/win32/pom.xml Thanks! How can i set ressource compiler options? execution idresource-compile/id phasegenerate-sources/phase goals goalresource-compile/goal /goals configuration sources source directory${basedir}/directory fileNames fileNamePDV5400.rc/fileName /fileNames /source source directoryC:/Programme/Microsoft Visual Studio/VC98/MFC/Include/directory /source source directoryC:/Programme/Microsoft Visual Studio/Common/MSDev98/Template/ATL/directory /source source directoryC:/Programme/Microsoft Visual Studio/VC98/Include/directory /source source directory${basedir}/directory /source options option/l 0x409 /d NDEBUG /d _HMD1229/option what is the tag here??? /options /sources /configuration /execution Best Regards Thorsten -Ursprüngliche Nachricht- Von: dan tran [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 12. September 2006 12:44 An: Düvelmeyer, Thorsten; Maven Users List Betreff: Re: Re: Re: maven native plugin I will try answer as much as I can - for intel compiler, it is very similar to msvc, so you can wire up a new compiler/linker provide for intel. It could be as simple as subclassing from msvc classes - an example of resource compiler is at http://svn.codehaus.org/mojo/trunk/mojo/maven-native/native-maven-plugin/src/it/jni/native/win32/pom.xml - There is no support for reports and unit test. Helps are needed in these area - To submit patches, open JIRA at http://jira.codehaus.org/browse/MOJO component: native - source is at http://svn.codehaus.org/mojo/trunk/mojo/maven-native You dont need an account to fetch the source. -Dan On 9/11/06, Düvelmeyer, Thorsten [EMAIL PROTECTED] wrote: Hello Dan, sorry for that delay... first off all i have a new question: Would it be simple or complicated to add that Intel C++ Compiler als Provider? That should be files like that: * codecov.exe Code-coverage Tool * icl.cfg Configuration file for Microsoft Visual C++ .NET* compatibility. * icl6.cfg Configuration file for Microsoft Visual C++* 6.0compatibility. * icl.exe Driver for Intel(r) C++ Compiler. * iclvars.bat Batch file to set environment variables. * icpi.exe Compiler problem isolator. Used when working with Intel product support team. * libguide40.dll DLL version of libguide40.lib * libguide40_stats.dll DLL version of libguide40_stats.lib * libmmd.dll DLL version of libm.lib. * libmmdd.dll Debug version of libmmd.lib * mcpcom.exe Intel(r) C++ Compiler. * profmerge.exe Utility used for Profile Guided Optimizations. * proforder.exe Utility used for Profile Guided Optimizations. * tselect.exe Test Prioritization Tool * xilib.exe Tool used for Interprocedural Optimizations. * xilink.exe Tool used for Interprocedural Optimizations. * xilink5.exe Tool used for Interprocedural Optimizations. * xilink6.exe Tool used for Interprocedural Optimizations. It is not hard to allow user to override the default value, but I would like to understand is first. I need to run the message compiler at first because it generates a __.h file, which i need in the compile step as include in many source files. What i did now is to copy the header file via ant task to the source directory. I tried that, but i think that does not work because of the direct include of these files to specifiy resource file names, use sources elements like in the
Binding of goals to phases in multiple components.xml
Hello all, How does Maven resolve the lifecycle of a project when you have multiple plugins listed in your build section that each have a components.xml for the packaging type of the project being built? If there is no overlap between phases in the lifecycle is it possible to have one plugin bind certain phases in the components.xml and another plugin define more phases in its components.xml? I am currently working on developing a maven plugin that will be used in conjunction with another set of Maven plugins (one testing, one packaging, one assembling, etc..) to build a variety of projects. Each of the plugins only cares about certain phases of the lifecycle and therefore will only contain goals relevant to a small subset of the default lifecycle. The goal is to have each plugin contain a components.xml binding the default goals to each of the packaging types we are supporting. In theory this should simplify the POM to simply be: plugin groupIdgroup/groupId artifactId-packaging-plugin/artifactId extensionstrue/extensions /plugin plugin groupIdgroup/groupId artifactId-testing-plugin/artifactId extensionstrue/extensions /plugin plugin groupIdgroup/groupId artifactId-assembly-plugin/artifactId extensionstrue/extensions /plugin The goals would automatically be bound to the phase based on the packaging type. However in practice what I am seeing is that the only one of the components.xml is being adhered to. As an example the goals binded in the packaging plugin are being ran but none of the testing and assembly plugins are being ran. In fact since the packaging plugin doesn't bind to certain phases it seems like those phases are being ignored. I know I can accomplish this desired behavior by listing the goals in the executions section of the POM but I would ideally like this binding to happen automatically. If anyone has any knowledge about how components.xml between plugins are resolved or if it is valid to have multiple components.xml please let me know. Thanks, Micah
Re: Cargo deploy on to a remote machine
I did try cargo:undeploy. undeploy works fine. But when I use deploy again, it fails with an error, something like ..Application with that name already exists.. thanks --Prashanth --- Wayne Fay [EMAIL PROTECTED] wrote: Did you try cargo:undeploy? I don't currently use Cargo, but I'd expect that's a valid goal/target. Also, it might be more appropriate to send this question to the Cargo Users email list... Wayne On 9/12/06, Prashanth Krishnamurthy [EMAIL PROTECTED] wrote: I am trying to deploy my application to a running tomcat instance on a different machine. I have tried the following and haven't been successfully. What is the right way to do this? Please suggest. 1.mvn cargo:deploy - This works fine only when the tomcat instance doesn't have my application deployed. 2. mvn cargo:deploy - This fails when run against a tomcat instance which already has my application running or deployed. Failed to deploy [c:\main\app\ui\target\aa.war] Application already exists at path /aa 3. mvn cargo:deployer-redeploy - This goal undeploys and redeploys the application. I guess this is deploying the existing war file without refreshing with the new war file. 4. mvn cargo:deployer-redeploy - This fails when run against a tomcat instance which doesn't have my running or deployed. [INFO] Failed to redeploy [c:\main\app\ui\target\aa.war] FAIL - No context exists for path /aa thanks --Prashanth __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: available plugins
that was really helpful. thanks! On 6/6/06, John Casey [EMAIL PROTECTED] wrote: mvn help:describe -Dplugin=plugin-prefix -Dfull=true or mvn help:describe -Dplugin=plugin-groupId:plugin-artifactId[:plugin-version] -Dfull=true -- http://valerioschiavoni.blogspot.com http://jroller.com/page/vschiavoni
Re: WANTED: Suggestions on performing vendor-specific builds
Well, as a shameless self-promotion, I did write an article about this recently (mostly about the concept, but it may help... I could only have 2500 words!) http://www.devx.com/Java/Article/32386 Eric On 9/13/06, Ronald Kurr [EMAIL PROTECTED] wrote: I've been looking at Maven 2 as a replacement to a current ANT-based build system and I'm looking for ideas on how I might be able to translate one of the features it currently provides. The code base supports multiple J2EE containers. Sometimes we have to build two different versions of the same code with each version relying on vendor-specific APIs. Sometimes modules are built only when a certain vendor's container is targeted. We handle triggering of optional but vendor-specific modules via the if attribute of the target tag. For example, target name=do-websphere-only-module if=websphere ... /target We handle the triggering of mandatory but vendor-specific code by naming conventions and property values. For example, our source directories are layed out similar to this: source/java/neutral source/java/weblogic source/java/websphere When the ANT build is kicked off, a property is set to indicate the target platform: -Dvendor=weblogic. When then use the value of the property to construct the source path for that build: path id=compile.source.path pathelement location=source/java/neutral/ pathelement location=source/java/${vendor}/ /path This allows us to only include the correct vendor-specific source during the build. We use a similar technique when building out the classpath which contains vendor-specific libraries. I'm trying to figure out how I might achieve similar functionality under Maven 2 and could use some suggestions. My first idea was to house the mandatory but vendor-specific code in their own modules and use a naming convention coupled with a property to control which module gets invoked by the parent module. For example, module names: mandatory-webshere/ mandatory-weblogic/ mandatory-jboss/ parent POM: modules modulemandatory-${vendor}/module modulepojo-one/module moduleejb-one/module moduleweb-one/module moduleear-one/module /modules That seems to work but I'm open to other ideas. What I haven't been able to figure out is how to configure the only build this module if the target is Webshere logic. Any ideas are appreciated. I'd like to avoid having to drop down to ANT using the maven-antrun-plugin or writing a custom plugin but I'll try whatever suggestions are provided. Many Thanks, Ron -- Eric Redmond http://codehaus.org/~eredmond
Re: Update over scm-local does not delete files removed from source dir
Emmanuel Venisse wrote: Are you sure it isn't possible to checkout sources in a specific folder with cleartool? It is possible with snapshot views. My ClearCase know-how is limited, but I am quite sure it is not possible with dynamic views. Do you think the suggested enhancement for scm-local would be useful and make sense? Not only in combination with ClearCase dynamic views but for other usage as well, e.g. testing. Regards, Arne That's true. Maybe we could enhance scm-local to keep its own metadata? In particular, scm-local could maintain a simple file, say .maven-scm-local, that contains as plain text the list of files in the source directory, as seen during the last checkout or update operation: - During checkout, the file .maven-scm-local is created in the checkout base directory. Its just a plain text file containing the list of files that have been checked out. - The update command looks for the file. If it is there, it compares the contents of that file to the current source directory contents (including subdirs). All files that are in .maven-scm-local but are no longer in the source dir, have been deleted in the source dir. The update command therefore removes them from the checkout dir. - If for whatever reason .maven-scm-local is not there, the update command won't delete any files. That way, we're backwards compatible. - After completing the update process, the update command rewrites the .maven-scm-local metadata file. - Even the changelog command can interpret .maven-scm-local - For add and checkin commands, I don't think that changes are needed. What do you think? Regards, Arne -- View this message in context: http://www.nabble.com/Update-over-scm-local-does-not-delete-files-removed-from-source-dir-tf2257460.html#a6289204 Sent from the Continuum - Users forum at Nabble.com.
[OT][ANN] REMINDER: JAVAWUG BOF 22 / Sun London / 20 Sept 2006 @ 18:30 / featuring Jason van Zyl, Maven 2.0
Hi ``JAVAWUG'' (The Java Web User Group) is holding the twenty second Birds-of-Feather 22 at the Sun's London Office on Wednesday, 20th September 2006 from 18:30 onwards. For more information http://www.jroller.com/page/javawug?entry=announcement_javabof_xxii_jaso n_van The confirmed speakers are: Jason van Zyl - Architect - Maven 2.0 Jason van Zyl presents the architecture and infrastructure behind the declaration software construction framework called ``Maven''. Jason van Zyl is the Chief Architect and co-founder of ``Mergere, Inc''. Jason co-founded Mergere to deliver an open source-based build platform for dynamic, distributed, enterprise-level Java(TM) projects requiring leading-edge resource orchestration and build management. Jason has over 10 years of enterprise software development experience working primarily for Fortune 500 companies. Jason is heavily involved with open source: he is the lead in the development of several open source projects including Plexus, Modello, and Continuum. Afterwards members can retire to the nearby bar and restuarant (TBA) ... (We will probably get started closer to 7pm to allow members who are out of town to commute in) The address is: Sun Microsystems Ltd. Customer Briefing Centre -- Cheapside Theatre Regis House 45 King William Street London EC4R 9AN Map (http://uk.sun.com/aboutsun/location/map-london-1.html) If you would like to attend : Please REGISTER so that you can be added to the Sun Security Detail. Join the ``http://groups.google.com/group/javawug'' JAVAWUG at Google Groups and Send a mail to the list you are attending http://jroller.com/page/javawug Thanks very much -- Peter Pilgrim UBS Investment Bank, PTS Portal / IT FIRC OPS LDN, 100 Liverpool Street, London EC2M 2RH, United Kingdom +44 (0) 20 75 75692 :: Java EE / E-Commerce / Enterprise Integration / Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
shameless self-promotion not considered harmful (was: WANTED: Suggestions on performing vendor-specific builds)
On Wed, Sep 13, 2006 at 11:21:02AM -0500, Eric Redmond spake thus: Well, as a shameless self-promotion, I did write an article about this recently (mostly about the concept, but it may help... I could only have 2500 words!) http://www.devx.com/Java/Article/32386 Eric I, for one, do not mind, and in fact, appreciate links posted to this list for articles or other new maven-related documentation. So thanks, Eric :-) -Al -- :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: Alan D. Salewski Software Developer Health Market Science, Inc. :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: shameless self-promotion not considered harmful (was: WANTED: Suggestions on performing vendor-specific builds)
On Wed, Sep 13, 2006 at 10:14:21AM -0700, Carlos Sanchez spake thus: There's a list here http://maven.apache.org/articles.html Hi Carlos, I'm aware of the list on the maven site, but I only check it when I find myself rummaging around there. On the other hand, I sit in my email client all day, so I'll become aware of maven-related resources announced there more quickly. Thanks for the heads-up, anyway... -Al -- :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: Alan D. Salewski Software Developer Health Market Science, Inc. Visit our new site: www.healthmarketscience.com :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Q: Creating a Macintosh application with Maven2.0.4?
With Maven 1 I was able to create a Macintosh application using Ant tasks in my maven.xml. A Macintosh application is particular directory structure that is blessed by setting an attribute on the directory. I've been able to duplicate everything in Maven2 except for the copying of the dependent jars to the correct location. In Maven 1 I used the deploy:copy-deps tag. In Maven 2 I've been trying to use the dependency plugin. If I follow the examples on the web site, I get an error The plugin 'org.apache.maven.plugin:maven-dependency-plugin' does not exist or no valid version could be found And I try to use the refactored plugin I get a similar error. The plugin 'org.apache.maven.plugin:dependency-maven-plugin' does not exist or no valid version could be found Is there a working dependency plugin that I can use? In the long term, I anticipate creating a MOJO to do this. If I create a MOJO, where do I find the necessary Java API documentation. Should I grab the Maven2 sources and start reading or is there a site with the Javadocs available? --- Erik Husby Senior Software Engineer Broad Institute of MIT and Harvard Rm. 2267, 320 Charles St, Cambridge, MA 02141-2023 mobile: 781.354.6669, office: 617.258.9227 email: [EMAIL PROTECTED] AIM: ErikAtBroad
Project Info Dependencies section missing some project dependencies
I've not been able to find out the cause of this issue, but under Maven 1.0.2 and a project set up as a master project and several subprojects built with the multiproject plugin, the subprojects do not include all the dependencies specified in project.xml. Specifically, they are missing in the Dependencies section of the Project Info portion of the site. In fact, even if I generate the site for a subproject directly (not using multiproject:site), the same dependencies are missing. I assume I'm mis-configuring something, but I've been unable to find any answers while searching around for this issue. Thanks for any help, Zach - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: shameless self-promotion not considered harmful (was: WANTED: Suggestions on performing vendor-specific builds)
There's a list here http://maven.apache.org/articles.html On 9/13/06, Alan D. Salewski [EMAIL PROTECTED] wrote: On Wed, Sep 13, 2006 at 11:21:02AM -0500, Eric Redmond spake thus: Well, as a shameless self-promotion, I did write an article about this recently (mostly about the concept, but it may help... I could only have 2500 words!) http://www.devx.com/Java/Article/32386 Eric I, for one, do not mind, and in fact, appreciate links posted to this list for articles or other new maven-related documentation. So thanks, Eric :-) -Al -- :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: Alan D. Salewski Software Developer Health Market Science, Inc. :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven-Proxy error
Hi all to use maven-proxy with maven 2, should I configure the maven2 repository? the original configuration in the maven-proxy.properties points to http://www.ibiblio.org/maven: #www.ibiblio.org repo.www-ibiblio-org.url=http://www.ibiblio.org/maven repo.www-ibiblio-org.description=www.ibiblio.org repo.www-ibiblio-org.proxy=one repo.www-ibiblio-org.hardfail=true #Cache this repository for 1 hour repo.www-ibiblio-org.cache.period=3600 repo.www-ibiblio-org.cache.failures=true #dist.codehaus.org repo.dist-codehaus-org.url=http://dist.codehaus.org repo.dist-codehaus-org.proxy=two repo.dist-codehaus-org.hardfail=false repo.dist-codehaus-org.cache.period=3600 repo.dist-codehaus-org.cache.failures=true Emerson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Q: Creating a Macintosh application with Maven2.0.4?
Plugins under o.a.m.p are generally named maven-xyz-plugin. Other plugins are generally named xyz-maven-plugin. This is what you want: groupIdorg.codehaus.mojo/groupId artifactIddependency-maven-plugin/artifactId Taken from: http://www.ibiblio.org/maven2/org/codehaus/mojo/dependency-maven-plugin/1.0/dependency-maven-plugin-1.0.pom Wayne On 9/13/06, Erik Husby [EMAIL PROTECTED] wrote: With Maven 1 I was able to create a Macintosh application using Ant tasks in my maven.xml. A Macintosh application is particular directory structure that is blessed by setting an attribute on the directory. I've been able to duplicate everything in Maven2 except for the copying of the dependent jars to the correct location. In Maven 1 I used the deploy:copy-deps tag. In Maven 2 I've been trying to use the dependency plugin. If I follow the examples on the web site, I get an error The plugin 'org.apache.maven.plugin:maven-dependency-plugin' does not exist or no valid version could be found And I try to use the refactored plugin I get a similar error. The plugin 'org.apache.maven.plugin:dependency-maven-plugin' does not exist or no valid version could be found Is there a working dependency plugin that I can use? In the long term, I anticipate creating a MOJO to do this. If I create a MOJO, where do I find the necessary Java API documentation. Should I grab the Maven2 sources and start reading or is there a site with the Javadocs available? --- Erik Husby Senior Software Engineer Broad Institute of MIT and Harvard Rm. 2267, 320 Charles St, Cambridge, MA 02141-2023 mobile: 781.354.6669, office: 617.258.9227 email: [EMAIL PROTECTED] AIM: ErikAtBroad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Determining the dependencies of a dependency ...
I need to determine the dependencies of each dependency in my project. I need to do some weird packaging and I need to process the dependencies of each dependency listed in the project. I know that if I use project.getArtifacts(), I will get all of the dependencies for a project (including transitive dependencies). What I don't see is something in the dependent artifact that lists its' dependent artifacts. Is this information available somewhere, or, if needed, how would I get the necessary dependencies for a particular artifact/dependency? Any help would be appreciated! Eric R. Medley The Palantir Corporation
RE: releasing a tag
Totally... However, I think I might check out the tag, edit the pom then, tag the working copy. D- -Original Message- From: Yann Le Du [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 5:11 PM To: Maven Users List Subject: Re: releasing a tag Maybe you could : - checkout the tag - change pom version to 2.2.3 - deploy (this is what mvn release:perform does from the tag) Does it address your need ? 2006/9/12, Douglas Ferguson [EMAIL PROTECTED]: Is there a way to release from a tag? Say I have my-app-2.2.3-RC-1 for release candidate 1 and I want to release that as my-ap-2.2.3 If I check out the tag and do a release, mvn is going to want to commit pom changes to the tag, which it I don't want it to do. Any other way to do this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [maven1.x] maven-test-plugin.jar 1.8.1
Jeff, After using the new repository, my test is running fine. Thank you. Sincerely, Ming Cheung WebSphere Web Services Developer Address: IBM, Inc. 11501 Burnet Road, Austin, TX 78758 Tie Line: 678-0733 Email: [EMAIL PROTECTED] Jeff Jensen [EMAIL PROTECTED] Jeff Jensen [EMAIL PROTECTED] 09/11/2006 07:55 PM Please respond to Maven Users List users@maven.apache.org To 'Maven Users List' users@maven.apache.org cc Subject RE: [maven1.x] maven-test-plugin.jar 1.8.1 You need to have http://cvs.apache.org/repository/on your remote repo list (maven.repo.remote property). There are 1.8.1 and 1.9 snapshots there. http://maven.apache.org/maven-1.x/using/repositories.html -Original Message- From: Ming Cheung [mailto:[EMAIL PROTECTED]] Sent: Monday, September 11, 2006 5:41 PM To: Maven Users List Cc: Maven Users List Subject: Re: [maven1.x] maven-test-plugin.jar 1.8.1 Jeff, The maven-test-plugin only comes with 1.8 so far. There is no 1.81. available online http://maven.apache.org/maven-1.x/plugins/test/downloads.html. Is there another option? Sincerely, Ming Cheung WebSphere Web Services Developer Address: IBM, Inc. 11501 Burnet Road, Austin, TX 78758 Tie Line: 678-0733 Email: [EMAIL PROTECTED] Jeff Jensen [EMAIL PROTECTED] 09/11/2006 05:04 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: [maven1.x] maven-test-plugin.jar 1.8.1 Read Non-Bundled Plugins here: http://maven.apache.org/maven-1.x/start/concepts.html Quoting Ming Cheung [EMAIL PROTECTED]: I need maven-test-plugin-1.8.1.jar for maven 1.x for my testcase be able to run successfully. Recently, I downloaded the maven 1.1-beta-3. and learned it only comes with maven-test-plugin-1.8.jar. Is there a way to make the plugin update to 1.8.1 automatically? Sincerely, Ming Cheung WebSphere Web Services Developer Address: IBM, Inc. 11501 Burnet Road, Austin, TX 78758 Tie Line: 678-0733 Email: [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]
Plugins Executions
If you are define a plugin in your pom that isnt binded to a lifecyle phase, and then add executions to the plugin. When will this execute? I was thinking that it would be great if you can define 2 executions with separate configs and then somehow instruct the commandline to run the specific execution. I guess you could do this with profiles
AW: Re: Re: maven native plugin
What kink of problem do you see? An exception comes up, that there is no setter for option in Native Sources. Regards, Thorsten -Ursprüngliche Nachricht- Von: dan tran [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 13. September 2006 17:32 An: Düvelmeyer, Thorsten; Maven Users List Betreff: Re: Re: Re: maven native plugin Please address to the maven group rather thru me directlty. Your configuration can be shorter with you are using MSVC6EnvFactory. There is a fix in latest SVN to support this feature for both resource and message compiler check out the snapshot You shoule move your resource file inside src/main/... directory ( same directory with your c source ) Other than that, every thing looks great including your configuration and the options elements What kink of problem do you see? -Dan On 9/13/06, Düvelmeyer, Thorsten [EMAIL PROTECTED] wrote: - for intel compiler, it is very similar to msvc, so you can wire up a new compiler/linker provide for intel. It could be as simple as subclassing from msvc classes I'm working on it - an example of resource compiler is at http://svn.codehaus.org/mojo/trunk/mojo/maven-native/native-maven-plugin /src/it/jni/native/win32/pom.xml Thanks! How can i set ressource compiler options? execution idresource-compile/id phasegenerate-sources/phase goals goalresource-compile/goal /goals configuration sources source directory${basedir}/directory fileNames fileNamePDV5400.rc/fileName /fileNames /source source directoryC:/Programme/Microsoft Visual Studio/VC98/MFC/Include/directory /source source directoryC:/Programme/Microsoft Visual Studio/Common/MSDev98/Template/ATL/directory /source source directoryC:/Programme/Microsoft Visual Studio/VC98/Include/directory /source source directory${basedir}/directory /source options option/l 0x409 /d NDEBUG /d _HMD1229/option what is the tag here??? /options /sources /configuration /execution Best Regards Thorsten -Ursprüngliche Nachricht- Von: dan tran [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 12. September 2006 12:44 An: Düvelmeyer, Thorsten; Maven Users List Betreff: Re: Re: Re: maven native plugin I will try answer as much as I can - for intel compiler, it is very similar to msvc, so you can wire up a new compiler/linker provide for intel. It could be as simple as subclassing from msvc classes - an example of resource compiler is at http://svn.codehaus.org/mojo/trunk/mojo/maven-native/native-maven-plugin /src/it/jni/native/win32/pom.xml - There is no support for reports and unit test. Helps are needed in these area - To submit patches, open JIRA at http://jira.codehaus.org/browse/MOJO component: native - source is at http://svn.codehaus.org/mojo/trunk/mojo/maven-native You dont need an account to fetch the source. -Dan On 9/11/06, Düvelmeyer, Thorsten [EMAIL PROTECTED] wrote: Hello Dan, sorry for that delay... first off all i have a new question: Would it be simple or complicated to add that Intel C++ Compiler als Provider? That should be files like that: * codecov.exe Code-coverage Tool * icl.cfg Configuration file for Microsoft Visual C++ .NET* compatibility. * icl6.cfg Configuration file for Microsoft Visual C++* 6.0compatibility. * icl.exe Driver for Intel(r) C++ Compiler. * iclvars.bat Batch file to set environment variables. * icpi.exe Compiler problem isolator. Used when working with Intel product support team. * libguide40.dll DLL version of libguide40.lib * libguide40_stats.dll DLL version of libguide40_stats.lib * libmmd.dll DLL version of libm.lib. * libmmdd.dll Debug version of libmmd.lib * mcpcom.exe Intel(r) C++ Compiler. * profmerge.exe Utility used for Profile Guided Optimizations. * proforder.exe Utility used for Profile Guided Optimizations. * tselect.exe Test Prioritization Tool * xilib.exe Tool used for Interprocedural Optimizations. * xilink.exe Tool used for Interprocedural Optimizations. * xilink5.exe Tool used for Interprocedural Optimizations. * xilink6.exe Tool used for Interprocedural Optimizations. It is not hard to allow user to override the default value, but I would like to understand is
Re: Re: Re: maven native plugin
please post your pom + -X log Thanks -Dan On 9/13/06, Thorsten Düvelmeyer [EMAIL PROTECTED] wrote: What kink of problem do you see? An exception comes up, that there is no setter for option in Native Sources. Regards, Thorsten -Ursprüngliche Nachricht- Von: dan tran [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 13. September 2006 17:32 An: Düvelmeyer, Thorsten; Maven Users List Betreff: Re: Re: Re: maven native plugin Please address to the maven group rather thru me directlty. Your configuration can be shorter with you are using MSVC6EnvFactory. There is a fix in latest SVN to support this feature for both resource and message compiler check out the snapshot You shoule move your resource file inside src/main/... directory ( same directory with your c source ) Other than that, every thing looks great including your configuration and the options elements What kink of problem do you see? -Dan On 9/13/06, Düvelmeyer, Thorsten [EMAIL PROTECTED] wrote: - for intel compiler, it is very similar to msvc, so you can wire up a new compiler/linker provide for intel. It could be as simple as subclassing from msvc classes I'm working on it - an example of resource compiler is at http://svn.codehaus.org/mojo/trunk/mojo/maven-native/native-maven-plugin /src/it/jni/native/win32/pom.xml Thanks! How can i set ressource compiler options? execution idresource-compile/id phasegenerate-sources/phase goals goalresource-compile/goal /goals configuration sources source directory${basedir}/directory fileNames fileNamePDV5400.rc/fileName /fileNames /source source directoryC:/Programme/Microsoft Visual Studio/VC98/MFC/Include/directory /source source directoryC:/Programme/Microsoft Visual Studio/Common/MSDev98/Template/ATL/directory /source source directoryC:/Programme/Microsoft Visual Studio/VC98/Include/directory /source source directory${basedir}/directory /source options option/l 0x409 /d NDEBUG /d _HMD1229/option what is the tag here??? /options /sources /configuration /execution Best Regards Thorsten -Ursprüngliche Nachricht- Von: dan tran [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 12. September 2006 12:44 An: Düvelmeyer, Thorsten; Maven Users List Betreff: Re: Re: Re: maven native plugin I will try answer as much as I can - for intel compiler, it is very similar to msvc, so you can wire up a new compiler/linker provide for intel. It could be as simple as subclassing from msvc classes - an example of resource compiler is at http://svn.codehaus.org/mojo/trunk/mojo/maven-native/native-maven-plugin /src/it/jni/native/win32/pom.xml - There is no support for reports and unit test. Helps are needed in these area - To submit patches, open JIRA at http://jira.codehaus.org/browse/MOJO component: native - source is at http://svn.codehaus.org/mojo/trunk/mojo/maven-native You dont need an account to fetch the source. -Dan On 9/11/06, Düvelmeyer, Thorsten [EMAIL PROTECTED] wrote: Hello Dan, sorry for that delay... first off all i have a new question: Would it be simple or complicated to add that Intel C++ Compiler als Provider? That should be files like that: * codecov.exe Code-coverage Tool * icl.cfg Configuration file for Microsoft Visual C++ .NET* compatibility. * icl6.cfg Configuration file for Microsoft Visual C++* 6.0compatibility. * icl.exe Driver for Intel(r) C++ Compiler. * iclvars.bat Batch file to set environment variables. * icpi.exe Compiler problem isolator. Used when working with Intel product support team. * libguide40.dll DLL version of libguide40.lib * libguide40_stats.dll DLL version of libguide40_stats.lib * libmmd.dll DLL version of libm.lib. * libmmdd.dll Debug version of libmmd.lib * mcpcom.exe Intel(r) C++ Compiler. * profmerge.exe Utility used for Profile Guided Optimizations. * proforder.exe Utility used for Profile Guided Optimizations. * tselect.exe Test Prioritization Tool * xilib.exe Tool used for Interprocedural Optimizations. * xilink.exe Tool used for Interprocedural Optimizations. * xilink5.exe Tool used for Interprocedural Optimizations. * xilink6.exe Tool used for Interprocedural Optimizations.
Re: Re: Re: maven native plugin
move options outside of source http://mojo.codehaus.org/maven-native/native-maven-plugin/resource-compile-mojo.html -Dan On 9/13/06, dan tran [EMAIL PROTECTED] wrote: please post your pom + -X log Thanks -Dan On 9/13/06, Thorsten Düvelmeyer [EMAIL PROTECTED] wrote: What kink of problem do you see? An exception comes up, that there is no setter for option in Native Sources. Regards, Thorsten -Ursprüngliche Nachricht- Von: dan tran [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 13. September 2006 17:32 An: Düvelmeyer, Thorsten; Maven Users List Betreff: Re: Re: Re: maven native plugin Please address to the maven group rather thru me directlty. Your configuration can be shorter with you are using MSVC6EnvFactory. There is a fix in latest SVN to support this feature for both resource and message compiler check out the snapshot You shoule move your resource file inside src/main/... directory ( same directory with your c source ) Other than that, every thing looks great including your configuration and the options elements What kink of problem do you see? -Dan On 9/13/06, Düvelmeyer, Thorsten [EMAIL PROTECTED] wrote: - for intel compiler, it is very similar to msvc, so you can wire up a new compiler/linker provide for intel. It could be as simple as subclassing from msvc classes I'm working on it - an example of resource compiler is at http://svn.codehaus.org/mojo/trunk/mojo/maven-native/native-maven-plugin /src/it/jni/native/win32/pom.xml Thanks! How can i set ressource compiler options? execution idresource-compile/id phasegenerate-sources/phase goals goalresource-compile/goal /goals configuration sources source directory${basedir}/directory fileNames fileNamePDV5400.rc/fileName /fileNames /source source directoryC:/Programme/Microsoft Visual Studio/VC98/MFC/Include/directory /source source directoryC:/Programme/Microsoft Visual Studio/Common/MSDev98/Template/ATL/directory /source source directoryC:/Programme/Microsoft Visual Studio/VC98/Include/directory /source source directory${basedir}/directory /source options option/l 0x409 /d NDEBUG /d _HMD1229/option what is the tag here??? /options /sources /configuration /execution Best Regards Thorsten -Ursprüngliche Nachricht- Von: dan tran [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 12. September 2006 12:44 An: Düvelmeyer, Thorsten; Maven Users List Betreff: Re: Re: Re: maven native plugin I will try answer as much as I can - for intel compiler, it is very similar to msvc, so you can wire up a new compiler/linker provide for intel. It could be as simple as subclassing from msvc classes - an example of resource compiler is at http://svn.codehaus.org/mojo/trunk/mojo/maven-native/native-maven-plugin /src/it/jni/native/win32/pom.xml - There is no support for reports and unit test. Helps are needed in these area - To submit patches, open JIRA at http://jira.codehaus.org/browse/MOJO component: native - source is at http://svn.codehaus.org/mojo/trunk/mojo/maven-native You dont need an account to fetch the source. -Dan On 9/11/06, Düvelmeyer, Thorsten [EMAIL PROTECTED] wrote: Hello Dan, sorry for that delay... first off all i have a new question: Would it be simple or complicated to add that Intel C++ Compiler als Provider? That should be files like that: * codecov.exe Code-coverage Tool * icl.cfg Configuration file for Microsoft Visual C++ .NET* compatibility. * icl6.cfg Configuration file for Microsoft Visual C++* 6.0compatibility. * icl.exe Driver for Intel(r) C++ Compiler. * iclvars.bat Batch file to set environment variables. * icpi.exe Compiler problem isolator. Used when working with Intel product support team. * libguide40.dll DLL version of libguide40.lib * libguide40_stats.dll DLL version of libguide40_stats.lib * libmmd.dll DLL version of libm.lib. * libmmdd.dll Debug version of libmmd.lib * mcpcom.exe Intel(r) C++ Compiler. * profmerge.exe Utility used for Profile Guided Optimizations. * proforder.exe Utility used for Profile Guided Optimizations. *
Re: Plugin issue with one developer?
Do you have similar local repositories too? I'd check the your ${user.dir}/.m2/repository/org/apache/maven/plugins/maven-ear-plugin directories for differences (specifically the pom and maven metadata files). If they are similar, then check maven-archiver and so on until you find a difference. Hm, a script might be the thing to do ;) Eric On 9/13/06, Sean McNamara [EMAIL PROTECTED] wrote: We're seeing a strange issue with one developer's workstation and I'm hoping someone will have some advice Both of us are running Maven v2.0.4, and I am able to build our project successfullly, however he gets the following error: [INFO] Internal error in the plugin manager executing goal ' org.apache.maven.plu gins:maven-ear-plugin:2.2:ear': Unable to find the mojo ' org.apache.maven.plugin s:maven-ear-plugin:2.2:ear' in the plugin ' org.apache.maven.plugins:maven-ear-pl ugin' org/codehaus/plexus/archiver/AbstractArchiver We have identical setting.xml files, and are using poms pulled directly from source control so there are no changes between mine and his. Any ideas, or tips on troubleshooting this? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eric Redmond http://codehaus.org/~eredmond
Re: [m2] Need help using new plugin (qalab)
Thanks, that helped. I notice that you have the checkstyle merge goal changed to the pre-site phase. How do you ensure that checkstyle has run at that point. I have a bootstrapping issue when I use that setting where qalab can't find the checkstyle results file. I changed mine to post-site. -- View this message in context: http://www.nabble.com/-m2--Need-help-using-new-plugin-%28qalab%29-tf2262938.html#a6293628 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven site doctype validation
I want to add the DOCTYPE tag to our xdocs so we can use a smart editor to create these documents. But, I don't want the url to point to http://maven.apache.org/dtd/xdoc_1_0.dtd;. There is a significant delay while maven site tries to validate these xdocs with the DOCTYPE tag. !DOCTYPE document PUBLIC -//Apache Software Foundation//DTD XDOC 1.0//EN http://maven.apache.org/dtd/xdoc_1_0.dtd; Can I host this dtd on an internal server and point the url to it's new location? Is this even the best solution? -- View this message in context: http://www.nabble.com/maven-site-doctype-validation-tf2267753.html#a6293746 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: properties in assembly descriptor.xml?
I checked it today, does not work. I can use properties in the same pom.xml file, but not in the assembly descriptor. What is the problem? dan tran wrote: yes, assembly descriptor supports interpolation. -D On 6/20/06, Claus Myglegaard Vagner [EMAIL PROTECTED] wrote: Hi, I have serveral assembly descriptor files. Is it possible to get properties (from pom,settings,filters) available in the assembly descriptor files? This would be useful for avoiding to much duplication in the descriptor files. Regards Claus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/properties-in-assembly-descriptor.xml--tf1817321.html#a6293959 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: properties in assembly descriptor.xml?
Please make sure this issue is listed in JIRA, under: http://jira.codehaus.org/browse/MASSEMBLY and I'll try to take a look at it before the 2.2 release. I agree that this would be useful, though...fwiw. -john On 9/13/06, leonid_ilyevsky [EMAIL PROTECTED] wrote: I checked it today, does not work. I can use properties in the same pom.xml file, but not in the assembly descriptor. What is the problem? dan tran wrote: yes, assembly descriptor supports interpolation. -D On 6/20/06, Claus Myglegaard Vagner [EMAIL PROTECTED] wrote: Hi, I have serveral assembly descriptor files. Is it possible to get properties (from pom,settings,filters) available in the assembly descriptor files? This would be useful for avoiding to much duplication in the descriptor files. Regards Claus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/properties-in-assembly-descriptor.xml--tf1817321.html#a6293959 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Determining the dependencies of a dependency ...
Currently, Maven doesn't offer much support for traversing sub-graphs of dependencies. If you cannot simply subtract the direct dependency artifacts from the project.getArtifacts(), then you'll have to get involved with the ArtifactResolver from maven-artifact/maven-artifact-manager, and track dependency conflicts between sub-graphs of direct dependencies yourself... Unfortunately, it is a recognized deficiency in Maven 2.0. -john On 9/13/06, Eric R. Medley [EMAIL PROTECTED] wrote: I need to determine the dependencies of each dependency in my project. I need to do some weird packaging and I need to process the dependencies of each dependency listed in the project. I know that if I use project.getArtifacts(), I will get all of the dependencies for a project (including transitive dependencies). What I don't see is something in the dependent artifact that lists its' dependent artifacts. Is this information available somewhere, or, if needed, how would I get the necessary dependencies for a particular artifact/dependency? Any help would be appreciated! Eric R. Medley The Palantir Corporation
release
I have two projects: commons and app. Commons is a parent pom for all the commons subprojects. At the end it creates about 10 jars. App is dependent on these 10. When working, we modify both code (commons and app). So we need to use dependency on snapshots. However when releasing, we can not depend on snapshots. This means I have to go and modify all dependencies in the app's pom manually. I need to set them to a version number (latest release). Then, after release, set the dependencies back to snapshots. Seems a lot of manual work to have a release. Is there a way to avoid this? thanks, Attila __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven site doctype validation
If your smart editor supports the use of com.sun.resolver.tools.CatalogResolver use rewriteURI and rewriteSystem mechanism to resolve the http DTD references to your local copies. !-- catalog.xml -- ?xml version=1.0 ? catalog xmlns=urn:oasis:names:tc:entity:xmlns:xml:catalog [snip] !-- Use formal public identifiers in preference to SYSTEM identifiers -- group xml:base=file:///c:/usr/local/share/sdl/apache_dtd/ rewriteURI uriStartString=http://maven.apache.org/dtd/; rewritePrefix=file:///c:/usr/local/share/sdl/apache_dtd/ / rewriteSystem systemIdStartString=http://maven.apache.org/dtd/xdoc_1_0.dtd; rewritePrefix=file:///c:/usr/local/share/sdl/apache_dtd/ / /group [snip] /catalog -Original Message- From: jblack [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 1:21 PM To: users@maven.apache.org Subject: maven site doctype validation I want to add the DOCTYPE tag to our xdocs so we can use a smart editor to create these documents. But, I don't want the url to point to http://maven.apache.org/dtd/xdoc_1_0.dtd;. There is a significant delay while maven site tries to validate these xdocs with the DOCTYPE tag. !DOCTYPE document PUBLIC -//Apache Software Foundation//DTD XDOC 1.0//EN http://maven.apache.org/dtd/xdoc_1_0.dtd; Can I host this dtd on an internal server and point the url to it's new location? Is this even the best solution? -- View this message in context: http://www.nabble.com/maven-site-doctype-validation-tf2267753.html#a6293 746 Sent from the Maven - Users forum at Nabble.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: Project Info Dependencies section missing some project dependencies
Can you send us a little test case please ? Arnaud On 9/13/06, Barrow, Zach [EMAIL PROTECTED] wrote: I've not been able to find out the cause of this issue, but under Maven 1.0.2 and a project set up as a master project and several subprojects built with the multiproject plugin, the subprojects do not include all the dependencies specified in project.xml. Specifically, they are missing in the Dependencies section of the Project Info portion of the site. In fact, even if I generate the site for a subproject directly (not using multiproject:site), the same dependencies are missing. I assume I'm mis-configuring something, but I've been unable to find any answers while searching around for this issue. Thanks for any help, Zach - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Modified WAR Plugin
I recently modified the maven-war-plugin source to accomodate some changes that I needed to support axis2. I submitted this code for inclusion into the next version of the plugin, but until that time I need to distribute the plugin to everyone on my development team. I can install it into the local repository and it works fine, but if I try to upload it to our development repository (internally) I can't seem to get the plugin to update. I have included the development repository in the settings.xml and have tried using 2.0.1-SNAPSHOT as well as 2.0.2 versions. I seem to get the same problem listed below. Can I disable the Super POM plugin repo? Having each developer install the plugin locally isn't really an issue, so I have to be able to distribute this via our development repository. I have also tried using the explicit plugin version in our root POM file and I get the same error. Any help would be greatly appreciated. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [INFO] artifact org.apache.maven.plugins:maven-war-plugin: checking for updates from devrepo [DEBUG] Skipping disabled repository codehaus-snapshots [INFO] artifact org.apache.maven.plugins:maven-war-plugin: checking for updates from central [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '867df7ba2a0c81782ac0fb14db5ccda5f85f5d42'; remote = '3009ca8b79c340cc83543ea789f57b1ee0128cb6' - RETRYING [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '867df7ba2a0c81782ac0fb14db5ccda5f85f5d42'; remote = '3009ca8b79c340cc83543ea789f57b1ee0128cb6' - IGNORING [DEBUG] maven-war-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the latest version org.apache.maven.plugins:maven-war-plugin:pom:LATEST [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-war-plugin:pom:LATEST [DEBUG] maven-war-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the release version org.apache.maven.plugins:maven-war-plugin:pom:RELEASE [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-war-plugin:pom:RELEASE [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-war-plugin' does not exist or no valid version could be found [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-war-plugin' does not exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1281) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1517) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1011) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:975) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:453) Thanks, JP4 -- View this message in context: http://www.nabble.com/Modified-WAR-Plugin-tf2268007.html#a6294602 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: notice about recent assembly plugin snapshot
I *think* the sources/ tag was in the 2.1 release. I'm guessing I'll have to put support back in for backward compat...but I need to check out when this element was added to the model first. As for the .svn files, I believe this is a shortcoming of the underlying scanner implementation's default excludes. I'm a little hesitant to put that exclusion in by default, because there's no way to take it back. In other words, it may help most people to exclude **/.svn/** by default, but for those who *need* that pattern to be included, I don't think it would be possible. -john On 9/13/06, Brett Porter [EMAIL PROTECTED] wrote: John? On 31/08/06, Brett Porter [EMAIL PROTECTED] wrote: was this behaviour only in previous snapshots of the current release, or was it that way in the previous release? On 31/08/06, John Casey [EMAIL PROTECTED] wrote: Hi everyone, I just wanted to send a quick note to let you know that I've made some modifications to the way the assembly plugin functions. These changes are likely to break your assemblies if you're using the moduleSets/moduleSet/sources element. The sources element used to be derived from fileSet, in that you could provide directory, outputDirectory, includes, excludes, etc. directly on that element. This sources element would determine how source-files from module children and grandchildren of your project were included. In some recent work, I've noticed that it's sometimes useful to be more flexible with module source inclusion. So, I've made the sources element a free-standing class, no longer derived from the fileSet. So, to replicate this: moduleSets moduleSet sources directorysrc/directory excludes exclude**/*.bak/exclude exclude**/*~/exclude /excludes /sources /moduleSet /moduleSets you'd need to change it to the following: moduleSets moduleSet sources fileSets fileSet directorysrc/directory excludes exclude**/*.bak/exclude exclude**/*~/exclude /excludes /fileSet /fileSets /sources /moduleSet /moduleSets I've deployed this new snapshot for people to try out, but changes like this and other new features of the moduleSet section are not documented yet. I'm planning to flesh out the documentation for these new parts soon, and call a release, as I think we're nearing a good cut-off point, before beginning a new round of features. I just wanted to make sure I didn't leave people saying, WTF? This used to work! tonight. -john -- Apache Maven - http://maven.apache.org Better Builds with Maven book - http://library.mergere.com/ -- Apache Maven - http://maven.apache.org Better Builds with Maven book - http://library.mergere.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: release
Ohh, I just observed that even in the commons project, if one jar had a dependency on another jar after the release now they are including version 1.0, instead of 1.1-snapshot for their dependency. Will I have to go through all pom-s and update them manually? That's going to hurt. Ex: A/pom.xml - has dependency on 1.0-SNAPSHOT version of B after release A/pom.xml snapshot-1.1 will have a dependency on version 1.0 B. I was expecting it would be a dependency on version 1.1-SNAPSHOT of B, since they are modules of the same pom.xml. Is there a way to avoid this? thanks, Attila --- Attila Mezei-Horvati [EMAIL PROTECTED] wrote: I have two projects: commons and app. Commons is a parent pom for all the commons subprojects. At the end it creates about 10 jars. App is dependent on these 10. When working, we modify both code (commons and app). So we need to use dependency on snapshots. However when releasing, we can not depend on snapshots. This means I have to go and modify all dependencies in the app's pom manually. I need to set them to a version number (latest release). Then, after release, set the dependencies back to snapshots. Seems a lot of manual work to have a release. Is there a way to avoid this? thanks, Attila __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: notice about recent assembly plugin snapshot
The standard pattern there is to have a useDefaultExcludes / tag that is by default true. If you turn it off, you have to exclude all the ones you don't want. I think it needs to do that, especially if it did in 2.1. Backwards compat is key. - Brett On 14/09/06, John Casey [EMAIL PROTECTED] wrote: I *think* the sources/ tag was in the 2.1 release. I'm guessing I'll have to put support back in for backward compat...but I need to check out when this element was added to the model first. As for the .svn files, I believe this is a shortcoming of the underlying scanner implementation's default excludes. I'm a little hesitant to put that exclusion in by default, because there's no way to take it back. In other words, it may help most people to exclude **/.svn/** by default, but for those who *need* that pattern to be included, I don't think it would be possible. -john On 9/13/06, Brett Porter [EMAIL PROTECTED] wrote: John? On 31/08/06, Brett Porter [EMAIL PROTECTED] wrote: was this behaviour only in previous snapshots of the current release, or was it that way in the previous release? On 31/08/06, John Casey [EMAIL PROTECTED] wrote: Hi everyone, I just wanted to send a quick note to let you know that I've made some modifications to the way the assembly plugin functions. These changes are likely to break your assemblies if you're using the moduleSets/moduleSet/sources element. The sources element used to be derived from fileSet, in that you could provide directory, outputDirectory, includes, excludes, etc. directly on that element. This sources element would determine how source-files from module children and grandchildren of your project were included. In some recent work, I've noticed that it's sometimes useful to be more flexible with module source inclusion. So, I've made the sources element a free-standing class, no longer derived from the fileSet. So, to replicate this: moduleSets moduleSet sources directorysrc/directory excludes exclude**/*.bak/exclude exclude**/*~/exclude /excludes /sources /moduleSet /moduleSets you'd need to change it to the following: moduleSets moduleSet sources fileSets fileSet directorysrc/directory excludes exclude**/*.bak/exclude exclude**/*~/exclude /excludes /fileSet /fileSets /sources /moduleSet /moduleSets I've deployed this new snapshot for people to try out, but changes like this and other new features of the moduleSet section are not documented yet. I'm planning to flesh out the documentation for these new parts soon, and call a release, as I think we're nearing a good cut-off point, before beginning a new round of features. I just wanted to make sure I didn't leave people saying, WTF? This used to work! tonight. -john -- Apache Maven - http://maven.apache.org Better Builds with Maven book - http://library.mergere.com/ -- Apache Maven - http://maven.apache.org Better Builds with Maven book - http://library.mergere.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Apache Maven - http://maven.apache.org Better Builds with Maven book - http://library.mergere.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Modified WAR Plugin
My project was using a modified version of the war plugin for a while. I decided that the best solution was to make the plugin another module in our project. This solution seemed easier than managing a release process for the modified plugin separately, or requiring team members to do something unusual like installing it themselves. We have since removed the plugin from our file tree because the released version now does what we need. It all went pretty smoothly. You might find that making the modified plugin just another module in your project to be the best solution. -Max jp4 wrote: I recently modified the maven-war-plugin source to accomodate some changes that I needed to support axis2. I submitted this code for inclusion into the next version of the plugin, but until that time I need to distribute the plugin to everyone on my development team. I can install it into the local repository and it works fine, but if I try to upload it to our development repository (internally) I can't seem to get the plugin to update. I have included the development repository in the settings.xml and have tried using 2.0.1-SNAPSHOT as well as 2.0.2 versions. I seem to get the same problem listed below. Can I disable the Super POM plugin repo? Having each developer install the plugin locally isn't really an option so I have to be able to distribute this via our development repository. I have also tried using the explicit plugin version in our root POM file and I get the same error. Any help would be greatly appreciated. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [INFO] artifact org.apache.maven.plugins:maven-war-plugin: checking for updates from devrepo [DEBUG] Skipping disabled repository codehaus-snapshots [INFO] artifact org.apache.maven.plugins:maven-war-plugin: checking for updates from central [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '867df7ba2a0c81782ac0fb14db5ccda5f85f5d42'; remote = '3009ca8b79c340cc83543ea789f57b1ee0128cb6' - RETRYING [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '867df7ba2a0c81782ac0fb14db5ccda5f85f5d42'; remote = '3009ca8b79c340cc83543ea789f57b1ee0128cb6' - IGNORING [DEBUG] maven-war-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the latest version org.apache.maven.plugins:maven-war-plugin:pom:LATEST [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-war-plugin:pom:LATEST [DEBUG] maven-war-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the release version org.apache.maven.plugins:maven-war-plugin:pom:RELEASE [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-war-plugin:pom:RELEASE [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-war-plugin' does not exist or no valid version could be found [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-war-plugin' does not exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1281) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1517) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1011) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:975) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:453) Thanks, JP4 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Skipping report generation
Just re-running it now: I can see the Surefire report running (i.e., running my tests), as well as the Corbetura report. I think Javadoc is smart enough not to run. On 9/4/06, Brett Porter [EMAIL PROTECTED] wrote: So it doesn't work at all under site? That's a bug report, as it should and I used to use it a bit. For site:run, it's a separate feature request since it's not in there. They should only be generated on demand, but I'm aware that there are some plugins that do the work up front which make this not possible. I think fixing it so that they are aways on demand is a better alternative if possible. - Brett On 05/09/06, Howard Lewis Ship [EMAIL PROTECTED] wrote: I often would like to skip report generation under mvn site and especially under mvn site:run, but this doesn't work. The documentation appears to state that -DgenerateReports=false will skip report generation. http://maven.apache.org/plugins/maven-site-plugin/site-mojo.html However, in practice, reports are always generated (very slow for me; large project, using AspectJ and Corbetura ... takes a minute or two). What is the correct way to turn this off, especially with site:run? -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com -- Apache Maven - http://maven.apache.org Better Builds with Maven book - http://library.mergere.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com
Re: File handling in Mojo's
On 9/13/06, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: Thanks. What I am looking for is a way to iterate over the files in a directory. For example, if I have the structure: A -src -A.java -B.java -C.java I want to do something like: FileSet a = ${project.src.directory} Iterator b=a.getIterator(); While(e=0; b has more elements){ file d=.getAt(e) } Also, for FileSet, I want to be able to specify inclusions/exclusions. How can I achieve this using Java code? Thanks. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] Good day to you, Alexander, AFAIK, the common way maven apache plugins handles that, is by using org.apache.maven.shared.model.fileset.FileSet, and org.codehaus.plexus.util.DirectoryScanner. But you may also want to take a look at plexus-utils for more functionalities that you may need :-) Anyway, the FileSet i mentioned takes care of your inclusions/exclusions. Thus, you can declare something like this /** * @parameter */ private List filesets; within your Mojo so that you can configure your includes and excludes (see [1] since the code snippet above was taken from CleanMojo) :-) After getting those FileSets, you can now configure your DirectoryScanner given the attributes of your FileSets, so that you can use that DirecotryScanner to do a scan (to find the files that complies with your includes and exludes). From then on, you can now retrieve the included files for whatever process you may need them (you may want to take a look at ResourcesMojo for an example on how it used FileSets and DirectoryScanner. Note: Resources is a subclass of FileSet). I hope I answered your question :-) Cheers, Franz [1] http://people.apache.org/~epunzalan/maven-clean-plugin/examples/delete_additional_files.html -- View this message in context: http://www.nabble.com/File-handling-in-Mojo%27s-tf2262210.html#a6298636 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Graphical View of Dependencies
I had install the plugin 1.0-SNAPSHOT in my own repository and when I cleared my .m2 directory, and try to run the plugin, it goes to the central site instead, eventhough I had set the pluginRepositories in my setting.xml of M2_HOME/conf. Any idea? On 9/5/06, Carlos Sanchez [EMAIL PROTECTED] wrote: btw it's not supposed to work correctly, that's why it's in the sandbox. If you just file issues with the errors without patches it won't make it be developed faster at all. On 9/5/06, Carlos Sanchez [EMAIL PROTECTED] wrote: it's not there yet, it's a sandbox project On 9/5/06, Pin Ngee Koh [EMAIL PROTECTED] wrote: I did not see that maven-grafo-plugin as one of the projects. Am I missing something? On 9/5/06, Carlos Sanchez [EMAIL PROTECTED] wrote: Can you create a issue under http://jira.codehaus.org/browse/MNG with your patches? On 9/5/06, Pin Ngee Koh [EMAIL PROTECTED] wrote: I had made some minor changes: 1. Remove dummy note and edge from graph.xml 2. Combine and extract distinct nodes from grafoResolutionListener's nodes and edges to get around the issue of dependency version differences of artifacts. On 8/21/06, Carlos Sanchez [EMAIL PROTECTED] wrote: On 8/21/06, Pin Ngee Koh [EMAIL PROTECTED] wrote: I see that you are currently using maven-artifact API. Are you saying that maven-project-info-reports-plugin needs to be used to determined the depedency information you mentioned? I meant project info report has already code to dig into the dependency tree And how do you intend to represent the different type of dependencies? Using just text or can we use different color coding for it? I can start trying to code it. color seems nice, anyway it's a small detail that won't impact the core functionality I was referring to the variable - version - in GrafoMojo which has a default value of 1.0-SNAPSHOT. Should it not take the version of the artifact we are trying to generate graph.xml for? sounds right On 8/18/06, Carlos Sanchez [EMAIL PROTECTED] wrote: It will generate a xml file suitable for www.prefuse.org. It needs to have into account all the dependency graph, dependencies excluded, dependencies that are not used because another version is chosen,... It needs to make use of the code for dependency graph in maven project-info plugin 1.0-SNAPSHOT will be the version until there's something that can be released On 8/18/06, Pin Ngee Koh [EMAIL PROTECTED] wrote: What are things planned for this plugin? If I have time, I like to help. Also, is there a reason why the default verison is 1.0-SNAPSHOT? On 8/17/06, Carlos Sanchez [EMAIL PROTECTED] wrote: yes, it's not finished and only shows some parts Samples: http://people.apache.org/~carlos/grafo/graphview.html http://people.apache.org/~carlos/grafo/radialgraphview.html On 8/16/06, Pin Ngee Koh [EMAIL PROTECTED] wrote: I tried grafo-maven-plugin mention in http://docs.codehaus.org/display/MAVEN/Dependency+Graphing Steps taken: 1. svn co https://svn.apache.org/repos/asf/maven/sandbox/grafo 2. mvn install (using j2se 1.5) 3. mvn grafo:grafo -Dversion=[version number of project] (running this in directory of desired project graph.xml is generated. However, there are edges which references nodes which does not exist. This is because I have dependencies to multiple version of a jar. Somehow the tool only create nodes for the resovled jar. Does anyone has similar experiences? On 8/16/06, Stefan Magnus Landrø [EMAIL PROTECTED] wrote: I think somebody is working on a jarjar-maven-plugin, but it hasn't been released yet Stefan Koh, Pin (STL) [EMAIL PROTECTED] skrev 15.08.2006 23:29:57: Is there a good graphic tool to visualize jar dependencies? Pin Koh *** Confidentiality Notice *** This email, its electronic document attachments, and the contents of its website linkages may contain confidential health information. This information is intended solely for use by the individual or entity to whom it is addressed. If you have received this information in error, please notify the sender immediately and arrange for the prompt destruction of the material and any accompanying attachments. -- /
maven repositories https
My IT department just started requiring my repository to use https. However they didnt install a signed cert. Maven is now failing with the error: Error transferring file Could this be because the cert isnt signed? Is there anything else that I need to consider when using https for the repository url?
RE: maven repositories https
Not sure if this is the recommended approach but I got it to work by using scp:// -Original Message- From: Douglas Ferguson Sent: Wednesday, September 13, 2006 10:51 PM To: users Subject: maven repositories https My IT department just started requiring my repository to use https. However they didnt install a signed cert. Maven is now failing with the error: Error transferring file Could this be because the cert isnt signed? Is there anything else that I need to consider when using https for the repository url? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]