Re: Build Error
This is severely underdocumented, here's what you get by reading the source code: SCM contains an error message which says: The scm url must be on the form 'scm:scm providerdelimiterprovider specific part' where delimiter can be either ':' or '|'. However, this is misleading. If you check the code, what it should say is this: The scm url must be on the form 'scmdelimiterscm providerdelimiterprovider specific part' where delimiter can be either ':' or '|'. (DefaultScmManager checks for the delimiter in the 4th character.) cvs supports a method called 'local', not to be confused with SCM's support for a 'local' SCM provider: scm|local|path_to_repository|module_name As to meaning of repository and module_name - the meanings are as for CVS, ie the repository is the root directory of where version control stores all the versions of all your projects; individual projects are called 'modules'. Hence I'd expect if you have a directory structure something like: C:\blah\myrepo\myproject1\project.xml C:\blah\myrepo\myproject1\src\java\RocketPower.java C:\blah\myrepo\myproject2\project.xml C:\blah\myrepo\myproject2\src\java\waterbased\Hydrophones.java Then you could use SCM URLs like scm|local|C:/blah/myrepo/|myproject1 scm|local|C:/blah/myrepo/|myproject2 NB I used forward slashes in the URL. This doesnt matter too much as SCM changes backslashes into forward slashes for you, but there are some circumstances - e.g. writing the URL as a java string, or in a properties file - where backslashes are special, so the habit of using forward slashes in URLs avoids errors. If you tried to use the ':' delimiter in the SCM URL above: scm:local:C:/blah/myrepo/:myproject2 You can see the delimiter now splits the URL into 5 components where SCM expected 4, hence it'll complain this is an invalid URL. If you want to know more about CVS, you'll need to read up on it. The manual is everywhere on the web, just google for it. -Baz On 11/2/05, Malcolm Wong Ho [EMAIL PROTECTED] wrote: From the Continuum web interface I try to change the Scm Url from the 'Update Continuum Project' page, with this format 'scm:local:path_to_repository:module_name' then I get an error 'Enter the Maven SCM URL[ You must provide an scm url ]', but if I enter this format 'scm:cvs:local:path_to_repository:module_name' it saves the changes. Another question, what is the module_name ? This e-mail is sent on the Terms and Conditions that can be accessed by Clicking on this link http://www.vodacom.net/legal/email.aspx
Re: Problem with plugin compilation
What about if you run with -U ? - Brett On 11/2/05, Nitko2 [EMAIL PROTECTED] wrote: No, repository is available all the time and i get this error all the time. I also have maven-plugin-plugin in local repository. Everything is the same as in tutorial, except local repository location which I changed in M2_HOME/conf/settings.xml Brett Porter wrote: It seems like there was an error contacting the repository while downloading the plugin plugin. Are there any other errors? Does it happen on repeated attempts? - Brett On 11/2/05, Anonimac Anonimac [EMAIL PROTECTED] wrote: Hi, I'm following example from Guide to developing Java plugins and I can't compile plugin. It fails with [INFO] The plugin 'org.apache.maven.plugins:maven-plugin-plugin' does not exist or no valid version could be found If I change packaging parameter to jar, everything compiles. This is my pom.xml: project modelVersion4.0.0/modelVersion groupIdsedamit.maven.javacvs/groupId artifactIdjavacvs-plugin/artifactId packagingmaven-plugin/packaging version1.0/version nameJavaCVS Maven Plugin/name dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-plugin-api/artifactId version2.0/version /dependency /dependencies /project Any help appreciated. Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] internal repository docs?
Hi, its weird that neither chris' or wendy's approach works on my machine. i already tried putting the following on both the pom and settings xml: repositories repository idlocalmirror/id !--urlfile://\\c:\temp\repository/url-- urlfile:///c:/temp/repository//url layoutlegacy/layout /repository /repositories ciao! On 11/1/05, Chris Berry [EMAIL PROTECTED] wrote: Hi Wendy, I had to do this too and used:: repositories repository idCWB/id urlfile:///C:/cberry/work/3rdparty-repo//url layoutlegacy/layout /repository /repositories Note the /// on windoze. And note the trailing / Cheers, -- Chris On 11/1/05, Wendy Smoak [EMAIL PROTECTED] wrote: I asked Google about 'maven internal repository' and it turned up: http://maven.apache.org/reference/internal-repositories.html It's at the top level of the site, so I'd expect it to apply to m2, but it doesn't seem to. I need to set up an internal repository to be accessed with file:// . I think this might have what I need... http://maven.apache.org/guides/mini/guide-multiple-repositories.html If that's not it, where else should I look? Thanks, -- Wendy -- Programming, an artform that fights back Anuerin G. Diaz Registered Linux User #246176 Friendly Linux Board @ http://mandrivausers.org/index.php http://capsule.ramfree17.org , when you absolutely have nothing else better to do - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with plugin compilation
Yes, it works now. Brett, thank you. Can you tell me what was I doing wrong? Brett Porter wrote: What about if you run with -U ? - Brett On 11/2/05, Nitko2 [EMAIL PROTECTED] wrote: No, repository is available all the time and i get this error all the time. I also have maven-plugin-plugin in local repository. Everything is the same as in tutorial, except local repository location which I changed in M2_HOME/conf/settings.xml Brett Porter wrote: It seems like there was an error contacting the repository while downloading the plugin plugin. Are there any other errors? Does it happen on repeated attempts? - Brett On 11/2/05, Anonimac Anonimac [EMAIL PROTECTED] wrote: Hi, I'm following example from Guide to developing Java plugins and I can't compile plugin. It fails with [INFO] The plugin 'org.apache.maven.plugins:maven-plugin-plugin' does not exist or no valid version could be found If I change packaging parameter to jar, everything compiles. This is my pom.xml: project modelVersion4.0.0/modelVersion groupIdsedamit.maven.javacvs/groupId artifactIdjavacvs-plugin/artifactId packagingmaven-plugin/packaging version1.0/version nameJavaCVS Maven Plugin/name dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-plugin-api/artifactId version2.0/version /dependency /dependencies /project Any help appreciated. Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with plugin compilation
This could actually be filed as a bug. It seems that the failed download recorded locally that the plugin was not available. -U forces an update (which also would have happened a day later). - Brett On 11/2/05, Nitko2 [EMAIL PROTECTED] wrote: Yes, it works now. Brett, thank you. Can you tell me what was I doing wrong? Brett Porter wrote: What about if you run with -U ? - Brett On 11/2/05, Nitko2 [EMAIL PROTECTED] wrote: No, repository is available all the time and i get this error all the time. I also have maven-plugin-plugin in local repository. Everything is the same as in tutorial, except local repository location which I changed in M2_HOME/conf/settings.xml Brett Porter wrote: It seems like there was an error contacting the repository while downloading the plugin plugin. Are there any other errors? Does it happen on repeated attempts? - Brett On 11/2/05, Anonimac Anonimac [EMAIL PROTECTED] wrote: Hi, I'm following example from Guide to developing Java plugins and I can't compile plugin. It fails with [INFO] The plugin 'org.apache.maven.plugins:maven-plugin-plugin' does not exist or no valid version could be found If I change packaging parameter to jar, everything compiles. This is my pom.xml: project modelVersion4.0.0/modelVersion groupIdsedamit.maven.javacvs/groupId artifactIdjavacvs-plugin/artifactId packagingmaven-plugin/packaging version1.0/version nameJavaCVS Maven Plugin/name dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-plugin-api/artifactId version2.0/version /dependency /dependencies /project Any help appreciated. Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSH proxy for deployments
No, it's an HTTP proxy 2005/10/31, Brett Porter [EMAIL PROTECTED]: Not over SSH, no. Is it a SOCKS proxy? - Brett On 10/28/05, Jose Gonzalez Gomez [EMAIL PROTECTED] wrote: Does Maven use the proxy defined in settings.xml for SSH connections? I've successfully deployed sites and artifacts inside my LAN, but as soon as I try to do the same for a computer outsite the LAN, I get a connection time out. Of course I've tried to connect to those hosts using an SSH client with no problem. TIA, best regards Jose - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSH proxy for deployments
How is it possible to use SSH over HTTP? - Brett On 11/2/05, Jose Gonzalez Gomez [EMAIL PROTECTED] wrote: No, it's an HTTP proxy 2005/10/31, Brett Porter [EMAIL PROTECTED]: Not over SSH, no. Is it a SOCKS proxy? - Brett On 10/28/05, Jose Gonzalez Gomez [EMAIL PROTECTED] wrote: Does Maven use the proxy defined in settings.xml for SSH connections? I've successfully deployed sites and artifacts inside my LAN, but as soon as I try to do the same for a computer outsite the LAN, I get a connection time out. Of course I've tried to connect to those hosts using an SSH client with no problem. TIA, best regards Jose - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javadoc-plugin error invalid flag: -J-Xmx
Hi, I build the latest version of maven 2 from the svn repository. Still I have an error in javadoc when I set maxmemory. I read that this bug has been fixed in the repository. Do I have to build the javadoc-plugin in an extra build run, or is there still another problem? Thanks Christian Embedded error: Exit code: 1 - javadoc: invalid flag: -J-Xmx768m __ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2 Problem with running getting started example
Hi there, replace the -artifactId=TheApp to -DartifactId=TheApp regards, -allan Sipho Mothobi wrote: Hi, I am Maven 1.x user and just started to go through the M2 documentation and examples. I'm trying to run the How do I make my first Maven project? and getting errors, i have also tried to to run mvn install an get the same error. I also tried to place in this directory a pom.xml which did not help. Please help. This is the error i am getting : [EMAIL PROTECTED] mvn-2-eg]$ mvn -e archetype:create -DgroupId=co.rmb.theapp -artifactId=TheApp + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1124) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1356) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:376) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:132) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:225) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:87) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:158) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1095) ... 14 more [INFO] [INFO] Total time: 1 second [INFO] Finished at: Tue Nov 01 17:32:47 SAST 2005 [INFO] Final Memory: 1M/2M [INFO] - 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: SSH proxy for deployments
Well, I don't know that much about proxies, but I'm using PuTTY, and in the Proxy type option I have HTTP selected. 2005/11/2, Brett Porter [EMAIL PROTECTED]: How is it possible to use SSH over HTTP? - Brett On 11/2/05, Jose Gonzalez Gomez [EMAIL PROTECTED] wrote: No, it's an HTTP proxy 2005/10/31, Brett Porter [EMAIL PROTECTED]: Not over SSH, no. Is it a SOCKS proxy? - Brett On 10/28/05, Jose Gonzalez Gomez [EMAIL PROTECTED] wrote: Does Maven use the proxy defined in settings.xml for SSH connections? I've successfully deployed sites and artifacts inside my LAN, but as soon as I try to do the same for a computer outsite the LAN, I get a connection time out. Of course I've tried to connect to those hosts using an SSH client with no problem. TIA, best regards Jose - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] How to exclude WEB-INF/lib/*.jar without excluding dependent jars?
Look at http://jira.codehaus.org/browse/MNG-1038 I don't know if the last patch has been applied to the WAR plugin. Anyway, the final version has not been released yet... (there are still some plugins that have not been released) Best Regards / Cordialement, Fabrice BELLINGARD DINQ/DSIN/INSI/EATE/IDVS/AIDV (+33) (01 61) 45 15 91 - [EMAIL PROTECTED] KC Baltz [EMAIL PROTECTED] .ComPour Maven Users List 02/11/2005 02:08 users@maven.apache.org cc VeuillezObjet répondre à RE: [m2] How to exclude Maven Users List WEB-INF/lib/*.jar without excluding [EMAIL PROTECTED] dependent jars? che.org No luck. That appears to have no effect at all. I end up with all the jars, those from source control and those from dependencies. K.C. -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 01, 2005 3:39 PM To: Maven Users List Subject: Re: [m2] How to exclude WEB-INF/lib/*.jar without excluding dependent jars? try excludes excludeWEB-INF/lib/*.jar/exclude /excludes On 11/2/05, KC Baltz [EMAIL PROTECTED] wrote: I'm in the process of converting a webapp from Ant builds to Maven2 builds and I'm running into a hitch with the packaging. When I first built the webapp, it put duplicate jars in my WEB-INF/lib since they exist there in my source directory and it also included the jars defined in my pom dependencies. I tried adding excludesWEB-INF/lib/*.jar/excludes to my war plugin configuration, but then I ended up with no jars in my war file. I'd rather not delete the jars at the moment since I'm still doing parallel development with Ant. Is there a way to accomplish this or am I wasting time trying to make M2 do something it really shouldn't? K.C. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Tomcat Plugin - execution phase 'package'
Moving to [EMAIL PROTECTED] On 31/10/05, Franck de Bruijn [EMAIL PROTECTED] wrote: Hi Mark, Thanks for your reply. I have been mixing 2 things. That's at least clear to me, now :). Still, I do believe that the user should have the flexibility to decide whether the 'package' goal is executed as part of the tomcat:deploy goal or not. If I understand correctly, now he does not have this choice. All my web projects consist of 2 or more modules, and are built like a 'multiproject' (probably a M1 term). My development process is to first execute 'mvn clean:clean install' on the parent module, then subdir into the web module and call 'mvn tomcat:deploy'. If I'm doing something suboptimal here please let me know, since I always forget the 'dir' part. Then, to see that tomcat:deploy repeats a few steps is not a major issue, but slightly irritating it is. Anyway, thanks for the plug-in, since it helps me at least to deploy WAR-files to TOMCAT with a different context root than the plain file name. Do you have any idea when it becomes officially available? Cheers, Franck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] html test report
Hi, After running the test, directory target\surefire-reports contains text and xml files. How do I generate html test reports? I can't find anything under plugin surefire and project-info-reports. Any help appreciated. Yudong Wang
New to Maven2 - is it ready?
Hi, We use maven today, but have used it like ant (meaning we have not used it as it was intended, with repository etc.) Now we want to clean up and use it properly, but then again, maybe we should go straight to maven2. My question is this. Given our needs, what do we do to use Maven2 (now). Do we write a lot of own custom plugins, or is this available for us? Our building process need to do: * Jar = OK * War = OK * Xdoclets / ejb * copyFiles (for deploying jar/war to local jboss etc) * axis java2wsdl * axis wsdl2java (generering av test-klient) * JasperReports (today we use a ant compile task) I would also like to know if anybody has started to use the plugins you will probably mention. mvh Svein Are Grønsund Distribution Innovation - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Help! scp, sftp deploy is failing
At this stage your probably better using normal ftp if you can. I spent a lot of time trying to get secure transfers to work (to port my Maven 1 projects) before I gave up. Tony -Original Message- From: KC Baltz [mailto:[EMAIL PROTECTED] Sent: 02 November 2005 00:26 To: Maven Users List (E-mail) Subject: [m2] Help! scp, sftp deploy is failing I'm trying to switch our development to Maven2 and I'm having trouble because I can't seem to get scp or sftp to work with Maven. scp dies because it can't cd to my home directory on the target server (Home directories aren't mounted on that server). It looks like the following: : Uploading: scp://cvs.copart.com/cvs/maven/com/copart/core/core/1.0-SNAPSHOT/core-1. 0-20051102.002057-8.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error deploying artifact: Error performing commands for file transfer Could not chdir to home directory /export/home/kcbaltz: No such file or directory sftp fails with the error message, session is down. I think I found a JIRA issue related to this. Is there any progress on a fix? Help please! K.C. http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Aggregation of modules in a multi-module project
Yann Le Du schrieb: http://jira.codehaus.org/browse/MNG-661 Thanks! -- Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [maven2] Failed to build model from plexus-utils-1.0.4.pom
Here's a snippet from my mvn -X compile. Is this what you wanted? Thanks. Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom 6K downloaded [DEBUG] Artifact resolved [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.codehaus.plexus:plexus-utils Reason: Failed to build model from file '/home/hughesj/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom'. Error: 'null' [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get dependency information: Unable to read the metadata file for artifact 'org.codehaus.plexus:plexus-utils:jar': Failed to build model from file '/home/hughesj/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom'. Error: 'null' org.codehaus.plexus:plexus-utils:1.0.4:jar from the specified remote repositories: central (http://repo1.maven.org/maven2), snapshots (http://snapshots.maven.codehaus.org/maven2) Path to dependency: 1) org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.1 2) org.apache.maven:maven-model:jar:2.0 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:536) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: Unable to get dependency information: Unable to read the metadata file for artifact 'org.codehaus.plexus:plexus-utils:jar': Failed to build model from file '/home/hughesj/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom'. Error: 'null' org.codehaus.plexus:plexus-utils:1.0.4:jar from the specified remote repositories: central (http://repo1.maven.org/maven2), snapshots (http://snapshots.maven.codehaus.org/maven2) Path to dependency: 1) org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.1 2) org.apache.maven:maven-model:jar:2.0 at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:289) at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:294) at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:67) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:223) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:211) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:182) at org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComplete(DefaultPluginManager.java:596) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:506) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:377) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519) ... 17 more Caused by: org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException: Unable to read the
[m2] jar-plugin: not including META-INF/maven
How can I configure Maven2 so that is stops including files in the META-INF/maven directory of every jar it produces ? Thanks you. -- Julien Stern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Assembly and classifiers
Is there a way to tell the assembly plugin to use dependencies with a specific classifier ? Specifically I have about 30 jars that I would like to assemble, however, each of these jars come in different flavors (different classifiers). I would like to assemble - a first version of all 30 jars with classifier 1 - a second version of all 30 jars with classifier 2 - a third version of all 30 jars with classifier 3 etc Is that possible at all ? Thanks. -- Julien Stern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Artifact with web resources (images, css etc.)
Hi, How should I handle artifact with web resources? Lets assume that I create JSF web UI components which consists of Java classes packaged in the Jar file and web resources (images, css and javascript library files). Shouldn't be there something like web-resources packaging type (packagingweb-resources/packaging) and artifact called ie. my-component-1.0.web-resources (it could be simple jar/zip file with all resources which could be unzipped into root dir of the webapp)? Then I could specify three poms for my project: pom.xml for my-jsf-component root project: project groupIdcom.mycompany/groupId artifactIdmy-jsf-component/artifactId packagingpom/packaging modules modulemy-jsf-component-lib/module modulemy-jsf-component-resources/module /modules .. /project pom.xml for my-jsf-component-resources: project parent../parent artifactIdmy-jsf-component-resources/artifactId packagingweb-resources/packaging . /project pom.xml for my-jsf-component-lib: project parent../parent artifactIdmy-jsf-component-lib/artifactId packagingjar/packaging .. dependencyManagement dependencies dependency groupIdcom.mycompany/groupId artifactIdmy-jsf-component-resources/artifactId version1.0/version typeweb-resources/type /dependency /dependencyManagement /project pom.xml for my-jsf-component-resources: project parent../parent artifactIdmy-jsf-component-resources/artifactId packagingweb-resources/packaging . /project Then maven-resources-plugin or maven-war-plugin could just fetch that jar/zip file from the repository and unzip it to the target webapp directory. Do you have better ideas? Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Creating a remote repository from a local one
I'm trying to do this and came upon this document: http://maven.apache.org/maven2/guides/introduction/introduction-to-repositories.html It looks like I can just copy the contents of ibiblio outright, or set up a maven proxy, in order to create my own repository structure. But what I'd really like to do is get my local repository in a place where I'm happy with it (everything is downloaded, my stuff builds, etc) and then make that a remote repository for all. The document above indicates The local and remote repositories are structured the same way... so it sounds like I could just literally copy my local repository as my remote repository. I tried this. I copied my local repository to a web server, set up that server in settings.xml as a mirror for central, blew away my local repo, and tried to mvn compile. No dice, plugins could not be found, and as a side note, mvn -X doesn't actually tell me what URLs it's trying to download from, which would be helpful: DEBUG] maven-resources-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the latest version org.apache.maven.plugins:maven-resources-plugin:LATEST:pom [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-resources-plugin:pom:LATEST [DEBUG] maven-resources-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the release version org.apache.maven.plugins:maven-resources-plugin:RELEASE:pom [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-resources-plugin:pom:RELEASE [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no valid version could be found Looking at the directory structures, the main difference I can see between my repo and ibiblio's is that the metadata file has a different name (maven-metadata-central.xml vs maven-metadata.xml). So I tried just changing the name. This seems to work but maven now complains about the checksum failing (as there is none): [WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for org/apache/maven/plugins/maven-resources-plugin/maven-metadata.xml - IGNORING I have a feeling there must be a better way to go about this than renaming all metadata files and ignoring checksum errors. Any suggestions? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2]Site internationalisation error!
When I wanted to generate a Chinese site use M2, I got the folowing exceptions. My pom.xml plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId configuration localesen,zh/locales outputEncodingGB2312/outputEncoding siteDirectorysite/siteDirectory /configuration /plugin And I have updated plexus-i18n to 1.0-beta-6. java.util.MissingResourceException: Can't find bundle for base name site-plugin, locale zh at org.codehaus.plexus.i18n.DefaultI18N.cacheBundle(DefaultI18N.java:394 ) at org.codehaus.plexus.i18n.DefaultI18N.getBundle(DefaultI18N.java:152) at org.apache.maven.plugins.site.SiteMojo.initLocalesList(SiteMojo.java: 482) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:244) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:399) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:519) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:469) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:448) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:301) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:137) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Using the tomcat plugin
Hi, I've successfully compiled and installed the tomcat plugin from svn, and tomcat:deploy works as expected. Now I'm wondering how to best use it. For development, I'd like to avoid zipping up the war file for each deployment. From gleaning at the source, I learned this means deploying in local mode. I guess I have to pass a parameter to the tomcat plugin, but I can't figure out the parameter's correct name (I know, this question is related to plugins in general, but I can't find the documentation). I tried $ mvn -Dorg.apache.maven.plugins.maven-tomcat-plugin.mode=local tomcat:deploy and $ mvn -Dorg.codehaus.mojo.tomcat.mode=local tomcat:deploy but all I get is [INFO] Deploying war remotely to /myProject on http://localhost:8080/ manager which means I'm running in the default remote mode. I also noticed there's a mode called inplace, that uses a context.xml file to deploy to tomcat, and requires the war plugin to run in exploded mode. What's the advantage of using inplace (I assume you get to use a path different from project.build.finalName?), and how do I configure the war plugin? How does everyone else use the tomcat plugin? Thanks, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Artifact with web resources (images, css etc.)
Hi Piotr, There's a similar issue open regarding including artifacts at the root-level of a war: http://jira.codehaus.org/browse/MNG-896 This would be for applets, JNLP apps, etc. but could be extended to explode specified dependencies as well - maybe worth adding your use case there to keep things together. Cheers, Mark On 02/11/05, Piotr Bzdyl [EMAIL PROTECTED] wrote: Hi, How should I handle artifact with web resources? Lets assume that I create JSF web UI components which consists of Java classes packaged in the Jar file and web resources (images, css and javascript library files). Shouldn't be there something like web-resources packaging type (packagingweb-resources/packaging) and artifact called ie. my-component-1.0.web-resources (it could be simple jar/zip file with all resources which could be unzipped into root dir of the webapp)? Then I could specify three poms for my project: pom.xml for my-jsf-component root project: project groupIdcom.mycompany/groupId artifactIdmy-jsf-component/artifactId packagingpom/packaging modules modulemy-jsf-component-lib/module modulemy-jsf-component-resources/module /modules .. /project pom.xml for my-jsf-component-resources: project parent../parent artifactIdmy-jsf-component-resources/artifactId packagingweb-resources/packaging . /project pom.xml for my-jsf-component-lib: project parent../parent artifactIdmy-jsf-component-lib/artifactId packagingjar/packaging .. dependencyManagement dependencies dependency groupIdcom.mycompany/groupId artifactIdmy-jsf-component-resources/artifactId version1.0/version typeweb-resources/type /dependency /dependencyManagement /project pom.xml for my-jsf-component-resources: project parent../parent artifactIdmy-jsf-component-resources/artifactId packagingweb-resources/packaging . /project Then maven-resources-plugin or maven-war-plugin could just fetch that jar/zip file from the repository and unzip it to the target webapp directory. Do you have better ideas? Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Artifact with web resources (images, css etc.)
Hi Mark, Hi Piotr, There's a similar issue open regarding including artifacts at the root-level of a war: http://jira.codehaus.org/browse/MNG-896 This would be for applets, JNLP apps, etc. but could be extended to explode specified dependencies as well - maybe worth adding your use case there to keep things together. Actually, I already added my comment on this (http://jira.codehaus.org/browse/MNG-896#action_49155), but I am asking here because maybe somebody solve this problem in other way. Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
unable to load commons-logging/commons-logging/1.02/commons-logging-1.02.pom
Hi, the compile goal outputs me following: Downloading: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.02/commons-logging-1.02.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) I searched for that plugin in my repository and didn't really find that, instead I found a version 1.0.2 of commons-logging. A search over the complete repository sayed me that the swarmcache-1.0RC2.pom reference that plugin with version 1.02. So I think that this is an writing error of the commons-logging version number. Is that correct ? Because, a change on that pom to version 1.0.2 succeeded the compile without the described message. Rico - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Artifact with web resources (images, css etc.)
http://jira.codehaus.org/browse/MNG-896 BTW: when is it expected to be solved? Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Artifact with web resources (images, css etc.)
On 02/11/05, Piotr Bzdyl [EMAIL PROTECTED] wrote: Actually, I already added my comment on this (http://jira.codehaus.org/browse/MNG-896#action_49155), but I am asking here because maybe somebody solve this problem in other way. So you did, that'll teach me to read properly.. :) I currently get around the applet problem via a custom ant script that uses the maven ant targets to download the applet to the webapp target dir. Although I can't run the ant script via antrun due to another issue (MNG-1017) .. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Artifact with web resources (images, css etc.)
On 02/11/05, Piotr Bzdyl [EMAIL PROTECTED] wrote: http://jira.codehaus.org/browse/MNG-896 BTW: when is it expected to be solved? It's destined for 2.0.1, so hopefully soonish. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
status of hibernate plugin for m2?
I have a project that will be using hibernate, but it appears that the hibernate plugin has not been developed yet for maven 2. Can someone confirm this for me? Thank you! Phillip Rhodeshttp://www.jsso.org Open source Java Identity and Authorization Serviceshttp://www.rhoderunner.com Open Source Java Ecommerce Suite - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Artifact with web resources (images, css etc.)
We solved it by packaging as a war, using a plugin to copy the war from the repository into a local folder, and using ant to unpackage the war and then waring up the combined contents. See the email from Damian Bradicich yesterday with details. -Original Message- From: Piotr Bzdyl [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 02, 2005 8:13 AM To: Maven Users List Subject: Re: [m2] Artifact with web resources (images, css etc.) Hi Mark, Hi Piotr, There's a similar issue open regarding including artifacts at the root-level of a war: http://jira.codehaus.org/browse/MNG-896 This would be for applets, JNLP apps, etc. but could be extended to explode specified dependencies as well - maybe worth adding your use case there to keep things together. Actually, I already added my comment on this (http://jira.codehaus.org/browse/MNG-896#action_49155), but I am asking here because maybe somebody solve this problem in other way. Best regards, Piotrek - 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]
Plugin Inheritance
Greetings, I am looking for guidance on POM inheritance. I know that I can set up a build system where all common functionality is pulled into a Parent POM, so that Child POMs can be remarkably small. What I'm uncertain on is how I override some of the plugins -- leaving the others as is. I see that I can override properties and customize the common plugin use that way. But can I completely override a particular plugin?? Or perhaps add another plugin?? I guess I'm looking for the rules of inheritance... I.e can I override a plugin like this?? Is there a better way to supply different configuration sets?? Parent POM: project build plugins plugin artifactIdmy-plugin/artifactId configuration somethingval1/something /configuration /plugin Child POM project parent/parent build plugins plugin artifactIdmy-plugin/artifactId configuration somethingval2/something somethingelseval3/somethingelse /configuration /plugin Thanks, -- Chris
RE: [m2] html test report
Hi Yudong, Try this report - doco can be found at http://mojo.codehaus.org/surefire-report-maven-plugin/ ~ plugin ~groupIdorg.codehaus.mojo/groupId ~artifactIdsurefire-report-maven-plugin/artifactId ~ /plugin Regards, Yann --- Yudong Wang [EMAIL PROTECTED] a écrit : Hi, After running the test, directory target\surefire-reports contains text and xml files. How do I generate html test reports? I can't find anything under plugin surefire and project-info-reports. Any help appreciated. Yudong Wang ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN][M1] Findbugs 1.0 Release
The maven-plugins team is pleased to announce the FindBugs Plug-in 1.0 release! http://maven-plugins.sourceforge.net/maven-findbugs-plugin A plugin to automate FindBugs tasks Changes in this version include: Fixed bugs: o Sample findbugs report didn't have xref source to link to. Issue: 1078970. o FindBugs does not xref to source of inner classes correctly. Issue: 1194218. Thanks to John Whaley. o Use libraries as dependencies instead of bundle them. Changes: o Switch from naming Maven Findbugs releases after Findbugs versions to using a sequence just for Maven Findbugs Plugin. o Upgrade to findbugs 0.9.3. To automatically install the plugin, type the following on a single line: maven plugin:download -DgroupId=maven-plugins -DartifactId=maven-findbugs-plugin -Dversion=1.0 For a manual installation, you can download the plugin here: http://maven-plugins.sourceforge.net/repository/maven-plugins/plugins/ maven-findbugs-plugin-1.0.jar Have fun! -The maven-plugins team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
deploying error
Im trying to deploy my artifact to my internal repositpry. When I exceuted mvn deploy I ahd this error: [INFO] The packaging for this project did not assign a file to the build artifact. Thisi is my pom.xml: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdit.telecomitalia.rossoalice.template/groupId artifactIdsimple-servlet/artifactId packagingwar/packaging version1.0-SNAPSHOT/version nameRossoalice Webapp Template/name urlhttp://www.rossoalice.it/url distributionManagement !-- use the following if you're not using a snapshot version. -- repository idrepo/id nameRossoAlice Repo/name urlwinscp3://live01:[EMAIL PROTECTED]/sw/alive/instance/jetty-5.1.5rc2 /docroot/repository/url /repository !-- use the following if you ARE using a snapshot version. snapshotRepository idrepo/id nameRepository Name/name urlscp://host/path/to/repo/url /snapshotRepository -- /distributionManagement repositories repository idRossoAlice Repo/id urlhttp://192.168.25.217:8089/pub/maven/url /repository /repositories dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopesource/scope /dependency dependency groupIdcommons-collections/groupId artifactIdcommons-collections/artifactId version3.1/version scopetest/scope /dependency dependency groupIdalice-commons/groupId artifactIdalice-commons/artifactId version1.2/version scopecompile/scope /dependency dependency groupIdjsdk/groupId artifactIdjsdk/artifactId version24/version typejar/type scopecompile/scope /dependency /dependencies build finalName${artifactId}-${version}/finalName plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin /plugins sourceDirectorysrc/main/java/sourceDirectory resources resource directorysrc/main/resources/directory targetPath../targetPath /resource /resources /build /project Tnx, luca
Re: test-jar transitive dependencies
Since I have a ton of test dependencies to manage, is there any recommended workaround? What I thinking of doing is simply not using tests dependencies, and creating a issue to go back and change them once maven adds support for test dependencies. Another option that I might consider (but it really smells of maven1) is to define test dependencies in a snippet file and use an entity-include to suck them in. -barry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deploying error
hi, check your command again to ensure that you are using install:install-file as shown in http://maven.apache.org/maven2/guides/mini/guide-coping-with-sun-jars.html. i encountered that error a while ago and the cause was i did not type the -file part of the goal. :D ciao! On 11/2/05, Luca Gmail [EMAIL PROTECTED] wrote: Im trying to deploy my artifact to my internal repositpry. When I exceuted mvn deploy I ahd this error: [INFO] The packaging for this project did not assign a file to the build artifact. snip -- Programming, an artform that fights back Anuerin G. Diaz Registered Linux User #246176 Friendly Linux Board @ http://mandrivausers.org/index.php http://capsule.ramfree17.org , when you absolutely have nothing else better to do - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] html test report
Hi Yann, Thanks !! It works, there is however a known bug with the plugin: http://jira.codehaus.org/browse/MOJO-100 Workaround: I changed my Windows locale to eng-us. Regards, Yudong On 11/2/05, Yann Le Du [EMAIL PROTECTED] wrote: Hi Yudong, Try this report - doco can be found at http://mojo.codehaus.org/surefire-report-maven-plugin/ ~ plugin ~ groupIdorg.codehaus.mojo/groupId ~ artifactIdsurefire-report-maven-plugin/artifactId ~ /plugin Regards, Yann --- Yudong Wang [EMAIL PROTECTED] a écrit : Hi, After running the test, directory target\surefire-reports contains text and xml files. How do I generate html test reports? I can't find anything under plugin surefire and project-info-reports. Any help appreciated. Yudong Wang ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deploying error
Or even simpler: mvn install This will install the file in your local repo as defined in your pom.xml. Otherwise you have to provide all these parameters as Anuerin mentioned. Yudong On 11/2/05, Anuerin Diaz [EMAIL PROTECTED] wrote: hi, check your command again to ensure that you are using install:install-file as shown in http://maven.apache.org/maven2/guides/mini/guide-coping-with-sun-jars.html . i encountered that error a while ago and the cause was i did not type the -file part of the goal. :D ciao! On 11/2/05, Luca Gmail [EMAIL PROTECTED] wrote: Im trying to deploy my artifact to my internal repositpry. When I exceuted mvn deploy I ahd this error: [INFO] The packaging for this project did not assign a file to the build artifact. snip -- Programming, an artform that fights back Anuerin G. Diaz Registered Linux User #246176 Friendly Linux Board @ http://mandrivausers.org/index.php http://capsule.ramfree17.org , when you absolutely have nothing else better to do - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN][M1] Findbugs 1.0 Release
Fantastic - any word on a maven 2 version? Kind regards, Dave Sag Eric Pugh [EMAIL PROTECTED] wrote on 02/11/2005 03:30:32 PM: The maven-plugins team is pleased to announce the FindBugs Plug-in 1.0 release! http://maven-plugins.sourceforge.net/maven-findbugs-plugin A plugin to automate FindBugs tasks Changes in this version include: Fixed bugs: o Sample findbugs report didn't have xref source to link to. Issue: 1078970. o FindBugs does not xref to source of inner classes correctly. Issue: 1194218. Thanks to John Whaley. o Use libraries as dependencies instead of bundle them. Changes: o Switch from naming Maven Findbugs releases after Findbugs versions to using a sequence just for Maven Findbugs Plugin. o Upgrade to findbugs 0.9.3. To automatically install the plugin, type the following on a single line: maven plugin:download -DgroupId=maven-plugins -DartifactId=maven-findbugs-plugin -Dversion=1.0 For a manual installation, you can download the plugin here: http://maven-plugins.sourceforge.net/repository/maven-plugins/plugins/ maven-findbugs-plugin-1.0.jar Have fun! -The maven-plugins team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pom.xml in a build directory
I reported this problem for maven 1 projects: http://jira.codehaus.org/browse/CONTINUUM-381 Wim Deblauwe wrote: Hi, I'm using a structure where my pom.xml is in a subdirectory called build like this: module-name + build + pom.xml + src + ... Continuum seems to handle this case inproperly. In working-directory\21 of my continuum installation, only the contents of the build directory is copied there. As a result no java files can be found to compile. I'm using scm:local by the way and I also extend a parent pom. This parent pom gets read, because I specify there that my reports should be in a temp directory and this happens. Is this a known bug or am I doing something wrong? regards, Wim
Re: pom.xml in a build directory
Should I open a new issue in JIRA for my problem or just comment on the current one? 2005/11/2, Doug Douglass [EMAIL PROTECTED]: I reported this problem for maven 1 projects: http://jira.codehaus.org/browse/CONTINUUM-381 Wim Deblauwe wrote: Hi, I'm using a structure where my pom.xml is in a subdirectory called build like this: module-name + build + pom.xml + src + ... Continuum seems to handle this case inproperly. In working-directory\21 of my continuum installation, only the contents of the build directory is copied there. As a result no java files can be found to compile. I'm using scm:local by the way and I also extend a parent pom. This parent pom gets read, because I specify there that my reports should be in a temp directory and this happens. Is this a known bug or am I doing something wrong? regards, Wim
RE: Installing Commercial Jars and missing POM XML files
Thanks very much K.C Hey you aren't related to 1970's The Sunshine Band, are you? |-D # Cheers again -- Peter Pilgrim Organiser / Founder ( JAVAWUG http://developers.sun.com/jugs/display/europe/gbr/london ) ( ( ( ( ( ( )\( ( )\)\))( ' ( )\ ) )_)( )\ )_)( ((_)()\ ))\(()/( ((_)\ _ )\((_)((_)\ _ )\_(())\_)()_ ((_)/(_))_ _ | (_)_\(_) \ / /(_)_\(_) \((_)/ / | | (_)) __| | || |/ _ \ \ V / / _ \ \ \/\/ /| |_| | | (_ | \__//_/ \_\ \_/ /_/ \_\ \_/\_/ \___/ \___| = -Original Message- From: KC Baltz [mailto:[EMAIL PROTECTED] Sent: 01 November 2005 19:23 To: Maven Users List Subject: RE: Installing Commercial Jars and missing POM XML files Peter, Your MvnCreateLocalPom works well, but I think it needed a small fix and an enhancement. You have two places in dumpPom(String, String) where groupId is used to create a path. I appended .replace('.', '/') to the groupId to handle dotted groups. Also, when you actually create the pom, you were doing artifact.version.pom, when I think it's supposed to be artifact-version.pom (note the dash). My modified version is pasted below. K.C. import java.io.*; /** * Create missing POM XML descriptions for maven repository * elements * * * @author Peter Pilgrim, Oct 24, 2005 2:43:57 PM * @version $Id$ */ public class MvnCreateLocalPom { private static String repositoryPath = System.getProperty(user.home)+/.m2/repository; /** * Default constructor */ public MvnCreateLocalPom() { super(); } /** * Write the POM to standard output * @param groupId the group name * * @see #dumpPom(String, String) */ public void dumpPom( String groupId ) throws IOException { File groupDir = new File( repositoryPath +/ +groupId ); if ( !groupDir.exists() ) throw new FileNotFoundException( no such group directory = +groupDir ); File contents[] = groupDir.listFiles(); for ( int j=0; jcontents.length; ++j ) { String oneFile = contents[j].getName(); if ( oneFile.equals(.) || oneFile.equals(..) ) continue; // System.out.println( oneFile+ file +( contents[j].exists() ? exists : not file)); dumpPom( groupId, oneFile ); } } /** * Write the POM to standard output * @param groupId the group name * @param artifactId the artifact name */ public void dumpPom( String groupId, String artifactId ) throws IOException { File groupArtifactDir = new File( repositoryPath +/ +groupId.replace('.', '/')+/+artifactId ); if ( !groupArtifactDir.exists() ) throw new FileNotFoundException( no such group artifact directory = +groupArtifactDir ); File contents[] = groupArtifactDir.listFiles(); for ( int j=0; jcontents.length; ++j ) { String oneFile = contents[j].getName(); if ( oneFile.equals(.) || oneFile.equals(..) ) continue; //System.out.println( oneFile+ file +( contents[j].exists() ? exists : not file)); if ( contents[j].isDirectory() !oneFile.equals(maven-metadata-local.xml) ) { // We could have a better stringent test here. File outputFile = new File( repositoryPath +/ +groupId.replace('.', '/')+/+artifactId +/+ oneFile+/+ artifactId+-+oneFile+.pom ); // Here oneFile should be version identifier number! FileWriter fwriter = new FileWriter( outputFile ); PrintWriter pwriter = new PrintWriter( fwriter ); pwriter.println(project); pwriter.println( modelVersion4.0.0/modelVersion); pwriter.println(groupId+groupId+/groupId); pwriter.println( artifactId+artifactId+/artifactId); pwriter.println(version+oneFile+/version); pwriter.println(/project); pwriter.close(); } } } public static void main( String args[] ) { MvnCreateLocalPom pommer = new MvnCreateLocalPom(); try { //pommer.dumpPom( com.sun.jsfcl, jsfcl); pommer.dumpPom( com.sun.data, dataprovider); pommer.dumpPom( javax.faces, jsf-impl); pommer.dumpPom( com.sun.web, defaulttheme); //pommer.dumpPom( expresso);
RE: deploying error
It seems is a struggle!!! I work in ditributed environement and I would like to deploy my artifact in a internal (remote) repository mantaining the correct versioning. What is the best way to do it? Im a bit cofused about this argument. Tnx, Luca -Original Message- From: Yudong Wang [mailto:[EMAIL PROTECTED] Sent: mercoledì 2 novembre 2005 16.05 To: Maven Users List Subject: Re: deploying error Or even simpler: mvn install This will install the file in your local repo as defined in your pom.xml. Otherwise you have to provide all these parameters as Anuerin mentioned. Yudong On 11/2/05, Anuerin Diaz [EMAIL PROTECTED] wrote: hi, check your command again to ensure that you are using install:install-file as shown in http://maven.apache.org/maven2/guides/mini/guide-coping-with-sun-jars.html . i encountered that error a while ago and the cause was i did not type the -file part of the goal. :D ciao! On 11/2/05, Luca Gmail [EMAIL PROTECTED] wrote: Im trying to deploy my artifact to my internal repositpry. When I exceuted mvn deploy I ahd this error: [INFO] The packaging for this project did not assign a file to the build artifact. snip -- Programming, an artform that fights back Anuerin G. Diaz Registered Linux User #246176 Friendly Linux Board @ http://mandrivausers.org/index.php http://capsule.ramfree17.org , when you absolutely have nothing else better to do - 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: Building C++ projects with Maven (2)
What's the status of the M2 version of the FreeHEP plugin? Is this becoming the defacto standard, or are there other attempts at this problem? ..David.. -Original Message- From: Donszelmann, Mark [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 01, 2005 6:08 PM To: Maven Users List Subject: RE: Building C++ projects with Maven (2) Hi Chris, for maven 1 we create zip files (.nar extension) which we download using the nar plugin. These files have the same name as a properties file which the user depends on, but with a postfix -aol (architecture-os-linker) or -noarch, and extension .nar The -noarch file is for include files. maven 1 downloads the properties file, since the user depends on it. The nar plugin downloads the -aol.nar file and the -noarch.nar file. Both these files are unpacked in the repository, since all native compilers will not understand zip files (java does), so we need the library files and include files in some directory structure. Unpacking is done by the nar plugin. For Maven 2 we use the classifier, as suggested by Brett. However, the plugin will still handle the download and unpacking, since we do not expect the user to modify the pom to be dependent on the classifier. Regards Mark -Original Message- From: Chris Berry [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 01, 2005 4:17 PM To: Maven Users List Subject: Re: Building C++ projects with Maven (2) Hi Mark, So, if I have it right, your solution is to transparently augment the versionId on-the-fly?? And you keep all of these artifacts together in the same repo dir i.e. all under the same version subdir (in m2) i.e. openssl/0.9.8/i386-linux-gcc-openssl-nar-0.9.8.nar Thanks, -- Chris On 11/1/05, Donszelmann, Mark [EMAIL PROTECTED] wrote: Hi that is what we did with our NAR (Native Archive) plugin in Maven 1, which we are porting to M2 at this time. See for maven 1: http://java.freehep.org/freehep-nar-plugin we let the user depend on an artifact, and add Architecture-OS-Linkername to it. Regards Mark Donszelmann -Original Message- From: Roger Hoover [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 01, 2005 12:28 PM To: Maven Users List Subject: Re: Building C++ projects with Maven (2) The concern I would have with this is that you have the same logical package (let's say apr 1.2.2) built for different architectures needing to have a different groupId or artifactId for each architecture type. Unless the groupId or artifactId is constructed dynamically, poms that depend on a native artifact have to depend on a specific architecture type. I think it would be nice to write generic poms that depend on just the logical package (apr 1.2.2 instead of apr 1.2.2 x86_64) and have maven sense the machine architecture (and OS) and fetch the correct native artifact. Roger On 11/1/05, dan tran [EMAIL PROTECTED] wrote: You can use groupId for platform specific or add platform specific string to your artifact id. -D On 11/1/05, Chris Berry [EMAIL PROTECTED] wrote: This brings up a bigger question; How does maven want to handle OS information in the repo?? To be successful w/ other languages like C, the repo will need to delineate information such as i586 and linux. Are these to be rolled into the groupId?? That doesn't smell right. Seems that we may need new Artifact Resolvers that understand this sort of info natively and can transparently supply the the correct pieces to the URL. Cheers, -- Chris On 11/1/05, dan tran [EMAIL PROTECTED] wrote: Hi David, There is a work in progress for native-maven-plugin http://svn.mojo.codehaus.org/trunk/mojo/maven-native/ You can build it and take a look at some doc. -Dan On 11/1/05, David Jackman [EMAIL PROTECTED] wrote: I've just found out that I'm going to need to expand our Maven build process to include several C++ project (which I believe are built using gcc). I seem to remember seeing some traffic on this list from people doing this sort of thing (which I promptly ignored because I wasn't at the time). Can anyone offer some insight on how you got this to work and how you overcame the problems that came up? What plugins are available to build this way and do they do everything you need? Are you able to have dependencies in the Maven repository and have the build use them from there (similar to .jar dependencies)? How do you access the header files, possible library, and runtime library for the different portions of the build? Is there a mini guide for this kind of project in
Re: [m2] Using the tomcat plugin
Ralph, Just a suggestion: if you want to run your webapp without having to create a war first, you could try the Jetty6 plugin. It is extremely lightweight, you don't have to have any external config files for it, plus it will automatically hot-redeploy your webapp whenever you change any class files or dependencies. You can get it from scpexe://jetty.mortbay.org/home/ftp/pub/maven2. cheers Jan Ralph Pöllath wrote: Hi, I've successfully compiled and installed the tomcat plugin from svn, and tomcat:deploy works as expected. Now I'm wondering how to best use it. For development, I'd like to avoid zipping up the war file for each deployment. From gleaning at the source, I learned this means deploying in local mode. I guess I have to pass a parameter to the tomcat plugin, but I can't figure out the parameter's correct name (I know, this question is related to plugins in general, but I can't find the documentation). I tried $ mvn -Dorg.apache.maven.plugins.maven-tomcat-plugin.mode=local tomcat:deploy and $ mvn -Dorg.codehaus.mojo.tomcat.mode=local tomcat:deploy but all I get is [INFO] Deploying war remotely to /myProject on http://localhost:8080/ manager which means I'm running in the default remote mode. I also noticed there's a mode called inplace, that uses a context.xml file to deploy to tomcat, and requires the war plugin to run in exploded mode. What's the advantage of using inplace (I assume you get to use a path different from project.build.finalName?), and how do I configure the war plugin? How does everyone else use the tomcat plugin? Thanks, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: deploying error
But what is the meaning of deploy plugin? If I follow the maven doc I sould use the deploy plugin if I want to deploy my artifact to the remote repository. Why you said using the install plugin? I don't understand. It's seems all so random!!! tnx, Luca -Original Message- From: Yudong Wang [mailto:[EMAIL PROTECTED] Sent: mercoledì 2 novembre 2005 16.05 To: Maven Users List Subject: Re: deploying error Or even simpler: mvn install This will install the file in your local repo as defined in your pom.xml. Otherwise you have to provide all these parameters as Anuerin mentioned. Yudong On 11/2/05, Anuerin Diaz [EMAIL PROTECTED] wrote: hi, check your command again to ensure that you are using install:install-file as shown in http://maven.apache.org/maven2/guides/mini/guide-coping-with-sun-jars.html . i encountered that error a while ago and the cause was i did not type the -file part of the goal. :D ciao! On 11/2/05, Luca Gmail [EMAIL PROTECTED] wrote: Im trying to deploy my artifact to my internal repositpry. When I exceuted mvn deploy I ahd this error: [INFO] The packaging for this project did not assign a file to the build artifact. snip -- Programming, an artform that fights back Anuerin G. Diaz Registered Linux User #246176 Friendly Linux Board @ http://mandrivausers.org/index.php http://capsule.ramfree17.org , when you absolutely have nothing else better to do - 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: deploying error
There are two different repositories you deal with in Maven: -- The local repository is the one that is located in ${user.home}/.m2/repository by default. This is a place where artifacts needed for the build are stored, and cannot be shared between users. When you do an install, the artifact is placed in this repository. -- The remote repository is one located somewhere else, usually on a central server (whether central to your company or home or the world is not important to this discussion). This is a place where artifacts to be shared are stored; artifacts are downloaded from this repository to your local repository when you need them for a build. When you do a deploy, the artifact is placed in this repository. Also note that it is quite reasonable to have a number of remote repositories. Does this help clear up the confusion? -Original Message- From: Luca Gmail [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 02, 2005 11:05 To: 'Maven Users List' Subject: RE: deploying error But what is the meaning of deploy plugin? If I follow the maven doc I sould use the deploy plugin if I want to deploy my artifact to the remote repository. Why you said using the install plugin? I don't understand. It's seems all so random!!! tnx, Luca -Original Message- From: Yudong Wang [mailto:[EMAIL PROTECTED] Sent: mercoledì 2 novembre 2005 16.05 To: Maven Users List Subject: Re: deploying error Or even simpler: mvn install This will install the file in your local repo as defined in your pom.xml. Otherwise you have to provide all these parameters as Anuerin mentioned. Yudong On 11/2/05, Anuerin Diaz [EMAIL PROTECTED] wrote: hi, check your command again to ensure that you are using install:install-file as shown in http://maven.apache.org/maven2/guides/mini/guide-coping-with-sun-jars.html . i encountered that error a while ago and the cause was i did not type the -file part of the goal. :D ciao! On 11/2/05, Luca Gmail [EMAIL PROTECTED] wrote: Im trying to deploy my artifact to my internal repositpry. When I exceuted mvn deploy I ahd this error: [INFO] The packaging for this project did not assign a file to the build artifact. snip -- Programming, an artform that fights back Anuerin G. Diaz Registered Linux User #246176 Friendly Linux Board @ http://mandrivausers.org/index.php http://capsule.ramfree17.org , when you absolutely have nothing else better to do - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: deploying error
Yes Bob, but in the first mail i asked that i had an error deploying (to remote as you said and as I expected) my artifact. You answered me to use the install pugin. Why? First install locally and the deploy remotely? In such a way? I created my artifact (a jar file). I would like to share and reuse inside other project. How can do it? If I read doc I have ti use deploy plugin. Hope being clear :-) Tnx, Luca -Original Message- From: Allison, Bob [mailto:[EMAIL PROTECTED] Sent: mercoledì 2 novembre 2005 17.11 To: Maven Users List Subject: RE: deploying error There are two different repositories you deal with in Maven: -- The local repository is the one that is located in ${user.home}/.m2/repository by default. This is a place where artifacts needed for the build are stored, and cannot be shared between users. When you do an install, the artifact is placed in this repository. -- The remote repository is one located somewhere else, usually on a central server (whether central to your company or home or the world is not important to this discussion). This is a place where artifacts to be shared are stored; artifacts are downloaded from this repository to your local repository when you need them for a build. When you do a deploy, the artifact is placed in this repository. Also note that it is quite reasonable to have a number of remote repositories. Does this help clear up the confusion? -Original Message- From: Luca Gmail [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 02, 2005 11:05 To: 'Maven Users List' Subject: RE: deploying error But what is the meaning of deploy plugin? If I follow the maven doc I sould use the deploy plugin if I want to deploy my artifact to the remote repository. Why you said using the install plugin? I don't understand. It's seems all so random!!! tnx, Luca -Original Message- From: Yudong Wang [mailto:[EMAIL PROTECTED] Sent: mercoledì 2 novembre 2005 16.05 To: Maven Users List Subject: Re: deploying error Or even simpler: mvn install This will install the file in your local repo as defined in your pom.xml. Otherwise you have to provide all these parameters as Anuerin mentioned. Yudong On 11/2/05, Anuerin Diaz [EMAIL PROTECTED] wrote: hi, check your command again to ensure that you are using install:install-file as shown in http://maven.apache.org/maven2/guides/mini/guide-coping-with-sun-jars.html . i encountered that error a while ago and the cause was i did not type the -file part of the goal. :D ciao! On 11/2/05, Luca Gmail [EMAIL PROTECTED] wrote: Im trying to deploy my artifact to my internal repositpry. When I exceuted mvn deploy I ahd this error: [INFO] The packaging for this project did not assign a file to the build artifact. snip -- Programming, an artform that fights back Anuerin G. Diaz Registered Linux User #246176 Friendly Linux Board @ http://mandrivausers.org/index.php http://capsule.ramfree17.org , when you absolutely have nothing else better to do - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2]Site internationalisation error!
Help!!! 2005/11/2, Hong Xing [EMAIL PROTECTED]: When I wanted to generate a Chinese site use M2, I got the folowing exceptions. My pom.xml plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId configuration localesen,zh/locales outputEncodingGB2312/outputEncoding siteDirectorysite/siteDirectory /configuration /plugin And I have updated plexus-i18n to 1.0-beta-6. java.util.MissingResourceException: Can't find bundle for base name site-plugin, locale zh at org.codehaus.plexus.i18n.DefaultI18N.cacheBundle(DefaultI18N.java:394 ) at org.codehaus.plexus.i18n.DefaultI18N.getBundle(DefaultI18N.java:152) at org.apache.maven.plugins.site.SiteMojo.initLocalesList(SiteMojo.java: 482) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:244) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:399) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:519) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:469) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:448) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:301) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:137) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] deploy from maven2 to maven1
great! thanks On 10/31/05, Brett Porter [EMAIL PROTECTED] wrote: yep, add: layoutlegacy/layout to your distribution repository. On 11/1/05, Miguel Griffa [EMAIL PROTECTED] wrote: Is there a way to deploy a m2 artifact to a m1 repo? oviously, the pom won't be of any use there, but still the jar would be usefull -- Miguel Griffa Skype: miguel.griffa Y!: m_griffa MSN: [EMAIL PROTECTED] Cell: 54-911-62519355 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Miguel Griffa Skype: miguel.griffa Y!: m_griffa MSN: [EMAIL PROTECTED] Cell: 54-911-62519355
[m2] xdoclet plugin
Is there any xdoclet plugin ready for m2? I haven't found a reference in m2 site, any idea? -- Miguel Griffa Skype: miguel.griffa Y!: m_griffa MSN: [EMAIL PROTECTED] Cell: 54-911-62519355
RE: Continuum not recognizing maven exit code
I filed an issue http://jira.codehaus.org/browse/CONTINUUM-413 -Zach -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 01, 2005 7:37 AM To: continuum-users@maven.apache.org Subject: Re: Continuum not recognizing maven exit code It's a know bug, but we don't have issue for it. Can you filed an issue? Emmanuel Barrow, Zach a écrit : I've tried both: exit /B errorlevel and exit /B %errorlevel% The bottom of my maven build result is as such: ... java:jar-resources: Copying 12 files to c:\apps\continuum-1.0\apps\continuum\working-directory\62\core\target\ cl asses test:prepare-filesystem: test:test-resources: test:compile: test:test: [junit] Running com.sys.test.RouterCRUDTest [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.05 sec [junit] [ERROR] TEST com.sys.test.RouterCRUDTest FAILED BUILD FAILED File.. c:\cygwin\home\zbarrow\.maven\cache\maven-multiproject-plugin-1.3.1\pl ug in.jelly Element... maven:reactor Line.. 217 Column 9 Unable to obtain goal [multiproject:install-callback] -- c:\cygwin\home\zbarrow\.maven\cache\maven-test-plugin-1.6.2\plugin.jel ly :181:54: There were test failures. INFO [App] Total time: 1 minutes 30 seconds INFO [App] Finished at: Mon Oct 31 09:03:52 PST 2005 INFO [App] In neither instance do I get a Continuum build failure. -Original Message- From: Barrow, Zach Sent: Friday, October 28, 2005 4:59 PM To: 'continuum-users@maven.apache.org' Subject: Continuum not recognizing maven exit code I've read up on the site and added exit /B %ERRORLEVEL% to my maven.bat file (although the documentation says exit /B errorlevel), and have even echoed the result to see what error code is getting returned, and it should be returning 70 to Continuum. However, Continuum is still giving a build successful result. Any ideas? Here's my environment: Windows XP SP2 Java 1.5 Maven version 1.0.2 Continuum version 1.0 edited maven.bat ... @REM pause the batch file if MAVEN_BATCH_PAUSE is set to 'on' if %MAVEN_BATCH_PAUSE% == on pause exit /B %ERRORLEVEL% Continuum wrapper.log ... INFO | jvm 2| 2005/10/28 16:48:50 | 2005-10-28 16:48:50,883 [Thread-1] INFO Action:update-project-from-working-directory - Updating project 'commplanner' from checkout. INFO | jvm 2| 2005/10/28 16:48:51 | 2005-10-28 16:48:51,213 [Thread-1] WARN ContinuumBuildExecutor:maven-1 - Executable 'c:\apps\Maven-1.0\bin\maven'. INFO | jvm 2| 2005/10/28 16:48:51 | 2005-10-28 16:48:51,213 [Thread-1] INFO ContinuumBuildExecutor:maven-1 - Arguments: -o -Duser.home=c:/cygwin/home/zbarrow clean:clean multiproject:install INFO | jvm 2| 2005/10/28 16:48:51 | 2005-10-28 16:48:51,213 [Thread-1] INFO ContinuumBuildExecutor:maven-1 - Working directory: c:\apps\continuum-1.0\bin\win32\..\..\apps\continuum\working-directory \6 2 INFO | jvm 2| 2005/10/28 16:49:56 | 2005-10-28 16:49:56,558 [Thread-1] INFO ContinuumBuildExecutor:maven-1 - Exit code: 0 INFO | jvm 2| 2005/10/28 16:49:57 | 2005-10-28 16:49:57,049 [Thread-1] INFO Notifier:mail - Current build state: 2, previous build state: 2 INFO | jvm 2| 2005/10/28 16:49:57 | 2005-10-28 16:49:57,049 [Thread-1] INFO Notifier:mail - Same state, not sending mail. INFO | jvm 2| 2005/10/28 16:50:25 | 2005-10-28 16:50:25,120 [SocketListener0-1] ERROR VelocityComponent - RHS of #set statement is null. Context will not be modified. screens/ProjectBuild.vm [line 73, column 3] I notice in the log that ContinuumBuildExecutor returns Exit code: 0, even though maven is returning exit code 70 for my build. Thanks for any help, Zach
Getting project classpath in ant
Using M2, how do I get the the projects classpath (which includes multiple modules) in ant? Can I assume this classpath would include the target/classes directory for all the included modules? Thanks
Re: Did you ever get an answer to: Surefire crashing..?
I wouldn't recommend that. Are you using the 2.0 final release? Tauber, Richard wrote: Thanks for your response. I saw the jira issue too. I am just beginning with Maven 2, should I begin with something else -- like the beta3 release? Regards, Rick Tauber Contact Work: 858-525-8438 Cell: 858-232-5286 Email: [EMAIL PROTECTED] Text: [EMAIL PROTECTED] -Original Message- From: Erick Dovale [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 01, 2005 6:10 PM To: [EMAIL PROTECTED]; Maven Users List Subject: Re: Did you ever get an answer to: Surefire crashing..? Nope, no answer so far.. I opened a jira issue on it though.. Will be hearing about it soon... hopefully.. cheers, [EMAIL PROTECTED] wrote: I'm getting the same thing and looking for an answer. Reporter method testStarting completed abruptly with an exception. java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1480) at org.codehaus.surefire.report.XMLReporter.testStarting(XMLReporter.java:101). .. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
simple questions
Where can I put my User-specific configuration file? What is his name? exists some default coming from installation? Tnx, Luca
Re: simple questions
By default it is in ${user.home}/.m2/settings.xml. In windows 2k/XP user.home translates to c:\Documents and Settings\username\ ciao! On 11/2/05, Luca Gmail [EMAIL PROTECTED] wrote: Where can I put my User-specific configuration file? What is his name? exists some default coming from installation? Tnx, Luca -- Programming, an artform that fights back Anuerin G. Diaz Registered Linux User #246176 Friendly Linux Board @ http://mandrivausers.org/index.php http://capsule.ramfree17.org , when you absolutely have nothing else better to do - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] What is wrong with my scm url?
Hi, I got the following url string : scm:cvs:pserver:spssoww11:2401:/cvs/ocatest:gduapi in my project pom under the project/scm/developerConnection element. I then try to run the goal release:prepare but I end up with a Embedded error: Can't load the scm provider. The scm url is invalid. I tried to tweak my url but I can't seem to make it work. Does someone has any idea why it's not working? Thank for any help. Really appreciated! -- Alexandre Poitras Québec, Canada
RE: [m2] xdoclet plugin
Hi Miguel, You got one at mojo.codehaus.org : http://mojo.codehaus.org/xdoclet-maven-plugin/ Regards, Yann --- Miguel Griffa [EMAIL PROTECTED] a écrit : Is there any xdoclet plugin ready for m2? I haven't found a reference in m2 site, any idea? -- Miguel Griffa Skype: miguel.griffa Y!: m_griffa MSN: [EMAIL PROTECTED] Cell: 54-911-62519355 ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [M2] What is wrong with my scm url?
Hi Alexandre, Please check this page : http://maven.apache.org/reference/plugins/scm/scmurl.html Is spssoww11 your username or your host ? Regards, Yann --- Alexandre Poitras [EMAIL PROTECTED] a écrit : Hi, I got the following url string : scm:cvs:pserver:spssoww11:2401:/cvs/ocatest:gduapi in my project pom under the project/scm/developerConnection element. I then try to run the goal release:prepare but I end up with a Embedded error: Can't load the scm provider. The scm url is invalid. I tried to tweak my url but I can't seem to make it work. Does someone has any idea why it's not working? Thank for any help. Really appreciated! -- Alexandre Poitras Québec, Canada ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: deploying error
Actually, no I didn't say anything about doing an install. If you look back at the earlier messages, the comment about install came from Anuerin Diaz. I was just commenting on the difference between install and deploy to help clear up some apparent confusion. -Original Message- From: Luca Gmail [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 02, 2005 11:22 To: 'Maven Users List' Subject: RE: deploying error Yes Bob, but in the first mail i asked that i had an error deploying (to remote as you said and as I expected) my artifact. You answered me to use the install pugin. Why? First install locally and the deploy remotely? In such a way? I created my artifact (a jar file). I would like to share and reuse inside other project. How can do it? If I read doc I have ti use deploy plugin. Hope being clear :-) Tnx, Luca -Original Message- From: Allison, Bob [mailto:[EMAIL PROTECTED] Sent: mercoledì 2 novembre 2005 17.11 To: Maven Users List Subject: RE: deploying error There are two different repositories you deal with in Maven: -- The local repository is the one that is located in ${user.home}/.m2/repository by default. This is a place where artifacts needed for the build are stored, and cannot be shared between users. When you do an install, the artifact is placed in this repository. -- The remote repository is one located somewhere else, usually on a central server (whether central to your company or home or the world is not important to this discussion). This is a place where artifacts to be shared are stored; artifacts are downloaded from this repository to your local repository when you need them for a build. When you do a deploy, the artifact is placed in this repository. Also note that it is quite reasonable to have a number of remote repositories. Does this help clear up the confusion? -Original Message- From: Luca Gmail [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 02, 2005 11:05 To: 'Maven Users List' Subject: RE: deploying error But what is the meaning of deploy plugin? If I follow the maven doc I sould use the deploy plugin if I want to deploy my artifact to the remote repository. Why you said using the install plugin? I don't understand. It's seems all so random!!! tnx, Luca -Original Message- From: Yudong Wang [mailto:[EMAIL PROTECTED] Sent: mercoledì 2 novembre 2005 16.05 To: Maven Users List Subject: Re: deploying error Or even simpler: mvn install This will install the file in your local repo as defined in your pom.xml. Otherwise you have to provide all these parameters as Anuerin mentioned. Yudong On 11/2/05, Anuerin Diaz [EMAIL PROTECTED] wrote: hi, check your command again to ensure that you are using install:install-file as shown in http://maven.apache.org/maven2/guides/mini/guide-coping-with-sun-jars.html . i encountered that error a while ago and the cause was i did not type the -file part of the goal. :D ciao! On 11/2/05, Luca Gmail [EMAIL PROTECTED] wrote: Im trying to deploy my artifact to my internal repositpry. When I exceuted mvn deploy I ahd this error: [INFO] The packaging for this project did not assign a file to the build artifact. snip -- Programming, an artform that fights back Anuerin G. Diaz Registered Linux User #246176 Friendly Linux Board @ http://mandrivausers.org/index.php http://capsule.ramfree17.org , when you absolutely have nothing else better to do - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Properties and current date/time
Hi, How can I get a property with current date or time as property in the form as with ${pom.version}? I would like to use it in the pom.xml. Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Using the tomcat plugin
On 02.11.2005, at 16:55, Jan Bartel wrote: Ralph, Just a suggestion: if you want to run your webapp without having to create a war first, you could try the Jetty6 plugin. It is extremely lightweight, you don't have to have any external config files for it, plus it will automatically hot-redeploy your webapp whenever you change any class files or dependencies. You can get it from scpexe://jetty.mortbay.org/home/ftp/pub/maven2. Hi, sounds great, but I can't figure out what to do with scpexe:// jetty.mortbay.org/home/ftp/pub/maven2. I tried creating a pluginRepository in ~/.m2/settings.xml but can't get it to work. Cheers, -Ralph. Ralph Pöllath wrote: Hi, I've successfully compiled and installed the tomcat plugin from svn, and tomcat:deploy works as expected. Now I'm wondering how to best use it. For development, I'd like to avoid zipping up the war file for each deployment. From gleaning at the source, I learned this means deploying in local mode. I guess I have to pass a parameter to the tomcat plugin, but I can't figure out the parameter's correct name (I know, this question is related to plugins in general, but I can't find the documentation). I tried $ mvn -Dorg.apache.maven.plugins.maven-tomcat-plugin.mode=local tomcat:deploy and $ mvn -Dorg.codehaus.mojo.tomcat.mode=local tomcat:deploy but all I get is [INFO] Deploying war remotely to /myProject on http://localhost: 8080/ manager which means I'm running in the default remote mode. I also noticed there's a mode called inplace, that uses a context.xml file to deploy to tomcat, and requires the war plugin to run in exploded mode. What's the advantage of using inplace (I assume you get to use a path different from project.build.finalName?), and how do I configure the war plugin? How does everyone else use the tomcat plugin? Thanks, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
running continuum with mysql
Hello, Has anyone succeeded in running Continuum-1.0 on mysql database? Environment: Debian GNU/Linux 2.6.8-2-k7 MySQL 4.0.24_Debian-10-log MySQL-AB JDBC Driver, version=mysql-connector-java-3.1.11 ( $Date: 2005-09-21 18:20:03 + (Wed, 21 Sep 2005) $, $Revision: 4287 $ ), major=3, minor=1 application.xml: component roleorg.codehaus.plexus.jdo.JdoFactory/role implementationorg.codehaus.plexus.jdo.DefaultJdoFactory/implementation configuration properties !-- JPOX and JDO configuration -- property namejavax.jdo.PersistenceManagerFactoryClass/name valueorg.jpox.PersistenceManagerFactoryImpl/value /property property nameorg.jpox.autoCreateSchema/name valuetrue/value /property property nameorg.jpox.autoStartMechanism/name valueSchemaTable/value /property property nameorg.jpox.autoStartMechanismMode/name valueIgnored/value /property !-- Apache Derby Configuration -- property namejavax.jdo.option.ConnectionDriverName/name valuecom.mysql.jdbc.Driver/value /property property namejavax.jdo.option.ConnectionURL/name valuejdbc:mysql://localhost/continuum/value /property property namejavax.jdo.option.ConnectionUserName/name valuecontinuum/value property namejavax.jdo.option.ConnectionPassword/name value##/value /property LOGS: 1[WrapperSimpleAppMain] DEBUG org.codehaus.plexus.PlexusContainer - Found 3 components to load on start 4[WrapperSimpleAppMain] INFO org.codehaus.plexus.PlexusContainer - Loading on start [role]: [org.apache.maven.continuum.Continuum] 175 [WrapperSimpleAppMain] INFO org.codehaus.plexus.jdo.JdoFactory - Initializing JDO. 365 [WrapperSimpleAppMain] INFO JPOX.JDO - PersistenceManagerFactory - Vendor: JPOX Version: 1.1.0-beta-4 366 [WrapperSimpleAppMain] INFO JPOX.JDO - PersistenceManagerFactory initialised for datastore URL=jdbc:mysql://localhost/continuum driver=com.mysql.jdbc.Driver userName=continuum 598 [WrapperSimpleAppMain] INFO org.apache.maven.continuum.Continuum - Initializing Continuum. 598 [WrapperSimpleAppMain] INFO org.apache.maven.continuum.Continuum - Showing all projects: 1064 [WrapperSimpleAppMain] INFO JPOX.RDBMS - RDBMS Adapter initialised : MySQLAdapter : MySQL version=4.0.24_Debian-10-log, major=4, minor=0, revision=240 Identifier Names : UPPERCASE Driver name=MySQL-AB JDBC Driver, version=mysql-connector-java-3.1.11 ( $Date: 2005-09-21 18:20:03 + (Wed, 21 Sep 2005) $, $Revision: 4287 $ ), major=3, minor=1 Identifier Max Lengths : Table=64 Column=64 Constraint=64 Index=64 Delimeters=` Identifier Support in DDL : catalog=false schema=false 1815 [WrapperSimpleAppMain] INFO JPOX.RDBMS - Creating table DELETEME1130932289923 1921 [WrapperSimpleAppMain] INFO JPOX.RDBMS.SCHEMA - Schema Name could not be determined for this datastore 1921 [WrapperSimpleAppMain] INFO JPOX.RDBMS - Dropping table DELETEME1130932289923 1937 [WrapperSimpleAppMain] INFO JPOX.RDBMS.SCHEMA - Initialising Catalog continuum, Schema using SchemaTable auto-start option 1953 [WrapperSimpleAppMain] INFO JPOX.RDBMS - Creating table JPOX_TABLES 2034 [WrapperSimpleAppMain] INFO JPOX.RDBMS.SCHEMA - Catalog continuum, Schema initialised - managing 0 classes 2111 [WrapperSimpleAppMain] INFO JPOX.MetaData - Parsing MetaData from file file:/home/continuum/continuum-1.0/bin/linux/../../apps/continuum/lib/continuum-model-1.0.jar!/META-INF/package.jdo 2733 [WrapperSimpleAppMain] INFO JPOX.RDBMS.SCHEMA - Managing Persistence of Class : org.apache.maven.continuum.model.system.Installation [Table : INSTALLATION, InheritanceStrategy : new-table] 2945 [WrapperSimpleAppMain] INFO JPOX.RDBMS.SCHEMA - Managing Persistence of Class : org.apache.maven.continuum.model.project.Profile [Table : PROFILE, InheritanceStrategy : new-table] 2989 [WrapperSimpleAppMain] INFO JPOX.RDBMS.SCHEMA - Managing Persistence of Class : org.apache.maven.continuum.model.project.Schedule [Table : SCHEDULE, InheritanceStrategy : new-table] 3006 [WrapperSimpleAppMain] INFO JPOX.RDBMS.SCHEMA - Managing Persistence of Class : org.apache.maven.continuum.model.project.BuildDefinition [Table : BUILDDEFINITION, InheritanceStrategy : new-table] 3009 [WrapperSimpleAppMain] INFO JPOX.RDBMS.SCHEMA - Managing Persistence of Class : org.apache.maven.continuum.model.scm.ChangeFile [Table : CHANGEFILE, InheritanceStrategy : new-table] 3024 [WrapperSimpleAppMain] INFO JPOX.RDBMS.SCHEMA - Managing Persistence of Class : org.apache.maven.continuum.model.scm.ChangeSet [Table : CHANGESET, InheritanceStrategy : new-table] 3040 [WrapperSimpleAppMain] INFO JPOX.RDBMS.SCHEMA - Managing
Re: [M2] What is wrong with my scm url?
I already checked this page, great information by the way. spssoww11 is my host, I am trying to not put my username in the url so we can share the same pom among the project developpers. I think it is possible. Am I right? On 11/2/05, Yann Le Du [EMAIL PROTECTED] wrote: Hi Alexandre, Please check this page : http://maven.apache.org/reference/plugins/scm/scmurl.html Is spssoww11 your username or your host ? Regards, Yann --- Alexandre Poitras [EMAIL PROTECTED] a écrit : Hi, I got the following url string : scm:cvs:pserver:spssoww11:2401:/cvs/ocatest:gduapi in my project pom under the project/scm/developerConnection element. I then try to run the goal release:prepare but I end up with a Embedded error: Can't load the scm provider. The scm url is invalid. I tried to tweak my url but I can't seem to make it work. Does someone has any idea why it's not working? Thank for any help. Really appreciated! -- Alexandre Poitras Québec, Canada ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexandre Poitras Québec, Canada
Re: [M2] What is wrong with my scm url?
Hi, From http://maven.apache.org/reference/plugins/scm/scmurl.html scm:cvs:protocol[:host]:CVS root:CVS module I cannot see any place for port number... (scm:cvs:pserver:spssoww11:2401:/cvs/ocatest:gduapi). Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: status of hibernate plugin for m2?
On 02/11/05, phillip rhodes [EMAIL PROTECTED] wrote: I have a project that will be using hibernate, but it appears that the hibernate plugin has not been developed yet for maven 2. There's plugins at mojo.codehaus.org for both Hibernate 2 and 3: http://svn.codehaus.org/trunk/mojo/hibernate2-maven-plugin/?root=mojo http://svn.codehaus.org/trunk/mojo/mojo-sandbox/hibernate3-maven-plugin/?root=mojo Hop over to [EMAIL PROTECTED] for further discussion. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] What is wrong with my scm url?
Ok I got it, it's because after my failed attempt, the file release.properties was created and the url was stocked in it. So the plugin used this url and didn't care about all the changes I made to pom.xmlafterwar. To make it work again, I just had to delete this file, so the plugin would create a new one with the url value updated. It is normal? Should I file a bug about this. I think the file should be deleted at least after a failure. On 11/2/05, Piotr Bzdyl [EMAIL PROTECTED] wrote: Hi, From http://maven.apache.org/reference/plugins/scm/scmurl.html scm:cvs:protocol[:host]:CVS root:CVS module I cannot see any place for port number... (scm:cvs:pserver:spssoww11:2401:/cvs/ocatest:gduapi). Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexandre Poitras Québec, Canada
Re: [M2] What is wrong with my scm url?
Hi, Ok I got it, it's because after my failed attempt, the file release.properties was created and the url was stocked in it. So the plugin used this url and didn't care about all the changes I made to pom.xmlafterwar. To make it work again, I just had to delete this file, so the plugin would create a new one with the url value updated. It is normal? Should I file a bug about this. I think the file should be deleted at least after a failure. Already filed: http://jira.codehaus.org/browse/MNG-1105 Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] What is wrong with my scm url?
One last question, how can I provide my password outside of the pom so I can share it among developpers. Thank! On 11/2/05, Piotr Bzdyl [EMAIL PROTECTED] wrote: Hi, Ok I got it, it's because after my failed attempt, the file release.properties was created and the url was stocked in it. So the plugin used this url and didn't care about all the changes I made to pom.xmlafterwar. To make it work again, I just had to delete this file, so the plugin would create a new one with the url value updated. It is normal? Should I file a bug about this. I think the file should be deleted at least after a failure. Already filed: http://jira.codehaus.org/browse/MNG-1105 Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexandre Poitras Québec, Canada
[m2] install plugin bug with classifiers ?
The install plugin does not seem to work when used with classifiers. When I use the jar plugin with a classifier, the install fails (the install plugin tries to use $MYPROJECTDIR/target/classes as the artifact name to install. Is it forbidden to use classifier with install/deploy ? Or is it a bug ? Or is there a correct way to configure the use of this case ? Thanks, -- Julien Stern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Using the tomcat plugin
Ralph, Try putting the following in your pom.xml: pluginRepositories pluginRepository idmortbay-repo/id namemortbay-repo/name urlhttp://www.mortbay.org/maven2/url /pluginRepository /pluginRepositories I should have the site doco for the plugin linked into the Jetty website in the next day. In the meanwhile, all you should need to do is to add these plugin config lines to your pom.xml: plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty6-plugin/artifactId configuration scanIntervalSeconds20/scanIntervalSeconds /configuration /plugin That will cause the plugin to keep running and scan for class/lib changes every 20secs. You can change it to whatever you prefer. There are also a couple of other config options, but that should get you going. You can run it: mvn org.mortbay.jetty:maven-jetty6-plugin:1.0:run You can shorten that to: mvn jetty6:run but I'm not sure exactly how to do that other than as the plugin developer (I followed the instructions at http://maven.apache.org/maven2/guides/plugin/guide-java-plugin-development.html). Jason, is there any update on how we get the Jetty repository mirrored to the central Maven2 repository? cheers Jan Ralph Pöllath wrote: On 02.11.2005, at 16:55, Jan Bartel wrote: Ralph, Just a suggestion: if you want to run your webapp without having to create a war first, you could try the Jetty6 plugin. It is extremely lightweight, you don't have to have any external config files for it, plus it will automatically hot-redeploy your webapp whenever you change any class files or dependencies. You can get it from scpexe://jetty.mortbay.org/home/ftp/pub/maven2. Hi, sounds great, but I can't figure out what to do with scpexe:// jetty.mortbay.org/home/ftp/pub/maven2. I tried creating a pluginRepository in ~/.m2/settings.xml but can't get it to work. Cheers, -Ralph. Ralph Pöllath wrote: Hi, I've successfully compiled and installed the tomcat plugin from svn, and tomcat:deploy works as expected. Now I'm wondering how to best use it. For development, I'd like to avoid zipping up the war file for each deployment. From gleaning at the source, I learned this means deploying in local mode. I guess I have to pass a parameter to the tomcat plugin, but I can't figure out the parameter's correct name (I know, this question is related to plugins in general, but I can't find the documentation). I tried $ mvn -Dorg.apache.maven.plugins.maven-tomcat-plugin.mode=local tomcat:deploy and $ mvn -Dorg.codehaus.mojo.tomcat.mode=local tomcat:deploy but all I get is [INFO] Deploying war remotely to /myProject on http://localhost: 8080/ manager which means I'm running in the default remote mode. I also noticed there's a mode called inplace, that uses a context.xml file to deploy to tomcat, and requires the war plugin to run in exploded mode. What's the advantage of using inplace (I assume you get to use a path different from project.build.finalName?), and how do I configure the war plugin? How does everyone else use the tomcat plugin? Thanks, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] How to make maven include generated sources in build
Hi, I am new to Maven and would like integrate Castor to generate source code from XML Schema files. I found a Castor plug-in for Maven 2.0 at http://svn.mojo.codehaus.org/trunk/mojo/castor-maven-plugin which I built and installed the plug-in in my local maven repository. I have the attached pom.xml which uses the plug-in. Code generation works fine. The code is generated in target/generated-sources/castor. However, I have been unable to find out how to tell Maven to include the generated source files in the build. When I call 'mvn compile' I get error messages from the compiler stating that the generated classes were not found. I'd be glad about any hints. Christoph project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupId.../groupId artifactId.../artifactId packagingjar/packaging version1.0/version name.../name build !--sourceDirectorysrc/main/java/sourceDirectory sourceDirectory${project.build.directory}/generated-sources/castor/src/sourceDirectory-- plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdcastor-maven-plugin/artifactId version1.0/version configuration schema${basedir}/src/main/xml-schemas/my.xsd/schema dest${project.build.directory}/generated-sources/castor/src/dest packagingcom.mycompany.schemas/packaging marshalfalse/marshal tstamp${project.build.directory}/generated-sources/castor/tstamp /configuration executions execution goals goalgenerate/goal /goals /execution /executions /plugin /plugins /build dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdcastor/groupId artifactIdcastor/artifactId version0.9.7/version /dependency /dependencies /project - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Using the tomcat plugin
Thanks Jan, I'll give this a shot later on. Cheers, -Ralph. On 02.11.2005, at 19:31, Jan Bartel wrote: Ralph, Try putting the following in your pom.xml: pluginRepositories pluginRepository idmortbay-repo/id namemortbay-repo/name urlhttp://www.mortbay.org/maven2/url /pluginRepository /pluginRepositories I should have the site doco for the plugin linked into the Jetty website in the next day. In the meanwhile, all you should need to do is to add these plugin config lines to your pom.xml: plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty6-plugin/artifactId configuration scanIntervalSeconds20/scanIntervalSeconds /configuration /plugin That will cause the plugin to keep running and scan for class/lib changes every 20secs. You can change it to whatever you prefer. There are also a couple of other config options, but that should get you going. You can run it: mvn org.mortbay.jetty:maven-jetty6-plugin:1.0:run You can shorten that to: mvn jetty6:run but I'm not sure exactly how to do that other than as the plugin developer (I followed the instructions at http://maven.apache.org/maven2/guides/plugin/guide- java-plugin-development.html). Jason, is there any update on how we get the Jetty repository mirrored to the central Maven2 repository? cheers Jan Ralph Pöllath wrote: On 02.11.2005, at 16:55, Jan Bartel wrote: Ralph, Just a suggestion: if you want to run your webapp without having to create a war first, you could try the Jetty6 plugin. It is extremely lightweight, you don't have to have any external config files for it, plus it will automatically hot-redeploy your webapp whenever you change any class files or dependencies. You can get it from scpexe://jetty.mortbay.org/home/ftp/pub/maven2. Hi, sounds great, but I can't figure out what to do with scpexe:// jetty.mortbay.org/home/ftp/pub/maven2. I tried creating a pluginRepository in ~/.m2/settings.xml but can't get it to work. Cheers, -Ralph. Ralph Pöllath wrote: Hi, I've successfully compiled and installed the tomcat plugin from svn, and tomcat:deploy works as expected. Now I'm wondering how to best use it. For development, I'd like to avoid zipping up the war file for each deployment. From gleaning at the source, I learned this means deploying in local mode. I guess I have to pass a parameter to the tomcat plugin, but I can't figure out the parameter's correct name (I know, this question is related to plugins in general, but I can't find the documentation). I tried $ mvn -Dorg.apache.maven.plugins.maven-tomcat- plugin.mode=local tomcat:deploy and $ mvn -Dorg.codehaus.mojo.tomcat.mode=local tomcat:deploy but all I get is [INFO] Deploying war remotely to /myProject on http://localhost: 8080/ manager which means I'm running in the default remote mode. I also noticed there's a mode called inplace, that uses a context.xml file to deploy to tomcat, and requires the war plugin to run in exploded mode. What's the advantage of using inplace (I assume you get to use a path different from project.build.finalName?), and how do I configure the war plugin? How does everyone else use the tomcat plugin? Thanks, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] How to make jar project recompile dependent jar project
I'm new to Maven. I have the following structure where JAR2 depends on JAR1. : |- JAR1 | |- pom.xml | : | |- JAR2 | |- pom.xml : : The JAR1 and JAR2 projects are developed concurrently. I currently have JAR1 installed in my local repository and the pom.xml for JAR2 lists JAR1 as a dependency. This builds fine. However, is there a way to have JAR1 recompiled when JAR2 is compiled, only if the source for JAR2 has changed (updated from Subversion)? Thanks, Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Right way to structure a project (and its site)
I have a multi module project that I have structured similar to how maven itself is structured: data-publishing-service + dps-shared src/main/java... src/main/test... pom.xml + dps-client src/main/java... src/main/test... pom.xml + dps-server-core src/main/java... src/main/test... pom.xml + dps-site src/site/... src/site/site.xml pom.xml pom.xml Each one of those subdirectories is itself a project with the parent specified as data-publishing-service. The problem I am having is with the site. How do I get a site to be generated with the javadoc for all the subprojects when using a directory structure where dps-site is itself a subproject. This is similar to how maven does it and they have javadoc for the project as a whole. Anyone know the trick I need to get the javadoc for the project into the dps-site? Im currently running: C:\src\data-publishing-service\dps-site\mvn site-deploy Thanks Duane Homick [EMAIL PROTECTED] Software Engineer - Sandvine Incorporated - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Third party JAR version naming conventions
Thanks. I read the coping with sun jars guide, but I don't know what the proper naming convention for versions is. I didn't think it was what Sun is using, which is 1.1.2_01. For now I'm using 1.1.2.1. Carlos Sanchez wrote: http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html I'm preparing a naming conventions doc that will be available at http://maven.apache.org/guides/mini/guide-naming-conventions.html On 11/1/05, Richard Allen [EMAIL PROTECTED] wrote: I'm new to Maven and I'm trying to convert an existing build process that uses Ant to Maven 2. I've started creating a POM where I have to add third party SUN JARs as dependencies, one of them being JAI. JAI version 1.1.2_01 includes three JARs. Is there a way to install JAI into my repository such that I only have to reference JAI as a dependency instead of referencing each JAR as a separate dependency? And what is the version naming convention that I should use within the POM version tag for JAI? Should it read version1.1.2_01/version ? Thanks, Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Did you ever get an answer to: Surefire crashing..?
Hi Richard, Unfortunatly nobody have replied to the question. It seems like this is not a problem affecting many people. I am gonna ask for some guidance debuging maven and see if I can figure it out my self. In any case I'll let you know how it develops.. cheers, Erick. Tauber, Richard wrote: Yes the final, or at least is said it was from the download site, and that is where the bug is, right? Interestingly when I run mvn -version I get Maven version: 2.0-beta-3. The download came from: http://www.apache.org/dyn/closer.cgi/maven/binaries/maven-2.0-bin.zip?update =200510191232 I really appreciate your responding to me. I actually had begun with beta 3, so I thought of going back to that. I'll probably try it just to see what it does. Regards, Rick Tauber Contact Work: 858-525-8438 Cell: 858-232-5286 Email: [EMAIL PROTECTED] Text: [EMAIL PROTECTED] -Original Message- From: Erick Dovale [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 02, 2005 8:56 AM To: Tauber, Richard; Maven Users List Subject: Re: Did you ever get an answer to: Surefire crashing..? I wouldn't recommend that. Are you using the 2.0 final release? Tauber, Richard wrote: Thanks for your response. I saw the jira issue too. I am just beginning with Maven 2, should I begin with something else -- like the beta3 release? Regards, Rick Tauber Contact Work: 858-525-8438 Cell: 858-232-5286 Email: [EMAIL PROTECTED] Text: [EMAIL PROTECTED] -Original Message- From: Erick Dovale [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 01, 2005 6:10 PM To: [EMAIL PROTECTED]; Maven Users List Subject: Re: Did you ever get an answer to: Surefire crashing..? Nope, no answer so far.. I opened a jira issue on it though.. Will be hearing about it soon... hopefully.. cheers, [EMAIL PROTECTED] wrote: I'm getting the same thing and looking for an answer. Reporter method testStarting completed abruptly with an exception. java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1480) at org.codehaus.surefire.report.XMLReporter.testStarting(XMLReporter.java:101) . .. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Building C++ projects with Maven (2)
Hi David, -Original Message- From: David Jackman [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 02, 2005 7:49 AM To: Maven Users List Subject: RE: Building C++ projects with Maven (2) What's the status of the M2 version of the FreeHEP plugin? I can publish my alpha version by Friday this week. The current version compiles code in C, C++ and Fortran, builds shared and static libraries. It handles native dependencies. It uses CPPTasks underneath, which could be replaced by something better (more maintained), but I currently see no time to deal with that. Next on my list is to create tests and executables, and check the jni library creation. Is this becoming the defacto standard, or are there other attempts at this problem? There is an effort from Dan Tran ongoing, but he chose a slightly different approach. The nar-plugin unifies (via cpptasks) as many options as possible for compiler and linker. You can still set specific options, but you would not have to. Dan's approach is (as we last spoke) to have the user define all. Regards Mark Donszelmann ..David.. -Original Message- From: Donszelmann, Mark [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 01, 2005 6:08 PM To: Maven Users List Subject: RE: Building C++ projects with Maven (2) Hi Chris, for maven 1 we create zip files (.nar extension) which we download using the nar plugin. These files have the same name as a properties file which the user depends on, but with a postfix -aol (architecture-os-linker) or -noarch, and extension .nar The -noarch file is for include files. maven 1 downloads the properties file, since the user depends on it. The nar plugin downloads the -aol.nar file and the -noarch.nar file. Both these files are unpacked in the repository, since all native compilers will not understand zip files (java does), so we need the library files and include files in some directory structure. Unpacking is done by the nar plugin. For Maven 2 we use the classifier, as suggested by Brett. However, the plugin will still handle the download and unpacking, since we do not expect the user to modify the pom to be dependent on the classifier. Regards Mark -Original Message- From: Chris Berry [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 01, 2005 4:17 PM To: Maven Users List Subject: Re: Building C++ projects with Maven (2) Hi Mark, So, if I have it right, your solution is to transparently augment the versionId on-the-fly?? And you keep all of these artifacts together in the same repo dir i.e. all under the same version subdir (in m2) i.e. openssl/0.9.8/i386-linux-gcc-openssl-nar-0.9.8.nar Thanks, -- Chris On 11/1/05, Donszelmann, Mark [EMAIL PROTECTED] wrote: Hi that is what we did with our NAR (Native Archive) plugin in Maven 1, which we are porting to M2 at this time. See for maven 1: http://java.freehep.org/freehep-nar-plugin we let the user depend on an artifact, and add Architecture-OS-Linkername to it. Regards Mark Donszelmann -Original Message- From: Roger Hoover [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 01, 2005 12:28 PM To: Maven Users List Subject: Re: Building C++ projects with Maven (2) The concern I would have with this is that you have the same logical package (let's say apr 1.2.2) built for different architectures needing to have a different groupId or artifactId for each architecture type. Unless the groupId or artifactId is constructed dynamically, poms that depend on a native artifact have to depend on a specific architecture type. I think it would be nice to write generic poms that depend on just the logical package (apr 1.2.2 instead of apr 1.2.2 x86_64) and have maven sense the machine architecture (and OS) and fetch the correct native artifact. Roger On 11/1/05, dan tran [EMAIL PROTECTED] wrote: You can use groupId for platform specific or add platform specific string to your artifact id. -D On 11/1/05, Chris Berry [EMAIL PROTECTED] wrote: This brings up a bigger question; How does maven want to handle OS information in the repo?? To be successful w/ other languages like C, the repo will need to delineate information such as i586 and linux. Are these to be rolled into the groupId?? That doesn't smell right. Seems that we may need new Artifact Resolvers that understand this sort of info natively and can transparently supply the the correct pieces to the URL. Cheers, -- Chris On 11/1/05, dan tran [EMAIL PROTECTED] wrote: Hi David, There is a work in progress for native-maven-plugin http://svn.mojo.codehaus.org/trunk/mojo/maven-native/
RE: status of hibernate plugin for m2?
Hello Phillip, what version of hibernate 2 or 3? There are plug-ins for both versions, that you find it in http://mojo.codehaus.org/ Regards Johann Reyes -Original Message- From: phillip rhodes [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 02, 2005 9:08 AM To: users@maven.apache.org Subject: status of hibernate plugin for m2? I have a project that will be using hibernate, but it appears that the hibernate plugin has not been developed yet for maven 2. Can someone confirm this for me? Thank you! Phillip Rhodeshttp://www.jsso.org Open source Java Identity and Authorization Serviceshttp://www.rhoderunner.com Open Source Java Ecommerce Suite - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] xdoclet plugin
great! thanks I'll try it asap On 11/2/05, Yann Le Du [EMAIL PROTECTED] wrote: Hi Miguel, You got one at mojo.codehaus.org http://mojo.codehaus.org : http://mojo.codehaus.org/xdoclet-maven-plugin/ Regards, Yann --- Miguel Griffa [EMAIL PROTECTED] a écrit : Is there any xdoclet plugin ready for m2? I haven't found a reference in m2 site, any idea? -- Miguel Griffa Skype: miguel.griffa Y!: m_griffa MSN: [EMAIL PROTECTED] Cell: 54-911-62519355 ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Miguel Griffa Skype: miguel.griffa Y!: m_griffa MSN: [EMAIL PROTECTED] Cell: 54-911-62519355
Getting project classpath in ant
Using M2, how do I get the the projects classpath (which includes multiple modules) in ant? Can I assume this classpath would include the target/classes directory for all the included modules? Thanks, Dillon __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] html test report
Hi, you can use the report plugin from the mojo project. http://mojo.codehaus.org/ Christian Hi, After running the test, directory target\surefire-reports contains text and xml files. How do I generate html test reports? I can't find anything under plugin surefire and project-info-reports. Any help appreciated. Yudong Wang __ Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach! Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] How can I register an archiver?
The assembly mechanism has a small problem: It can not be used to just copy plain files plus dependencies into some target directory structure (without compressing/zipping/packing or changing the copied files in any way). In my case, I need this because I am using an unsupported packaging mechanism (I am generating an installation executable using a command line install file generator). But there are probably many other cases where this would be useful. There is at least one other user who has created his own plugin to get around some of these problems but I believe the best approach would be to just add another non-packaging archiver. I have looked into the codehaus archiver classes. It would be easy to add my own AbstractArchiver descendant but it would have to be registered by the ArchiverManager. How can that be done? Thanks for your help. - Alexander - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Third party JAR version naming conventions
If they call it 1.1.2_01 the version is 1.1.2_01 On 11/2/05, Richard Allen [EMAIL PROTECTED] wrote: Thanks. I read the coping with sun jars guide, but I don't know what the proper naming convention for versions is. I didn't think it was what Sun is using, which is 1.1.2_01. For now I'm using 1.1.2.1. Carlos Sanchez wrote: http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html I'm preparing a naming conventions doc that will be available at http://maven.apache.org/guides/mini/guide-naming-conventions.html On 11/1/05, Richard Allen [EMAIL PROTECTED] wrote: I'm new to Maven and I'm trying to convert an existing build process that uses Ant to Maven 2. I've started creating a POM where I have to add third party SUN JARs as dependencies, one of them being JAI. JAI version 1.1.2_01 includes three JARs. Is there a way to install JAI into my repository such that I only have to reference JAI as a dependency instead of referencing each JAR as a separate dependency? And what is the version naming convention that I should use within the POM version tag for JAI? Should it read version1.1.2_01/version ? Thanks, Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Plugin Inheritance
I can now answer this myself. It appears that m2 does the right thing -- i.e. what you'd expect All plugins are inherited from the Parent. To override any Plugin, simply declare it in the Child. Those you don't declare remain unchanged. All configuration in the overriding Plugin declaration is inherited. And you can override any config properties or add new ones where necessary. Powerful, good stuff. This, plus the ability to parameterize with properties, makes it really easy to create a malleable build system good job maven guys ;-) Cheers, -- Chris On 11/2/05, Chris Berry [EMAIL PROTECTED] wrote: Greetings, I am looking for guidance on POM inheritance. I know that I can set up a build system where all common functionality is pulled into a Parent POM, so that Child POMs can be remarkably small. What I'm uncertain on is how I override some of the plugins -- leaving the others as is. I see that I can override properties and customize the common plugin use that way. But can I completely override a particular plugin?? Or perhaps add another plugin?? I guess I'm looking for the rules of inheritance... I.e can I override a plugin like this?? Is there a better way to supply different configuration sets?? Parent POM: project build plugins plugin artifactIdmy-plugin/artifactId configuration somethingval1/something /configuration /plugin Child POM project parent/parent build plugins plugin artifactIdmy-plugin/artifactId configuration somethingval2/something somethingelseval3/somethingelse /configuration /plugin Thanks, -- Chris
RE: Errors when starting Continuum which is built on my machine
We tried it on Windows today and got the same error. Could it be possible that some files are mismatched recently, but you have the correct files cached on your machine? Thanks, Frank -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Tue 11/1/2005 4:55 PM To: continuum-users@maven.apache.org Subject: Re: Errors when starting Continuum which is built on my machine I don't have this problem on my windows machine but we have the same problem on continuous integration machine. I'll look at log4j jar for see if it's wrong. Emmanuel Frank Zhao a écrit : On Linux machine, I check out the Continuum trunk from the svn repository, run ./build.sh, the compilation was OK (with a few test failure). Then followed the README file, under the continuum-plexus-application/target/plexus-test-runtime/, I ran ./bin/plexus.sh, I got the following errors: Exception in thread main java.lang.NoSuchMethodError: java.lang.IllegalArgumentException: method init(Ljava/lang/String;Ljava/lang/Throwable;)V not found at org.codehaus.plexus.logging.log4j.Log4JLoggerManager.initialize(Log4JLoggerManager.java:202) at org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:16) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105) ... ... I couldn't find the Log4JLoggerManager.java on my machine. It seems the jar containing the Log4JLoggerManager.class is in the wrong version or mismatched with other classes and therefore caused the NoSuchMethodError. Is there anyone on this list who recently build Continuum 1.0 on Linux? I have been working on this for a week and have no idea how to make it work. Thanks in advance! Frank
Re: Plugin Inheritance
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sorry, I'm tracking a little behind on the list. ;) Just for completeness, I should mention that it *is* possible to write a plugin which is *not* inherited by default. When this is the case, the user can still override this by specifying: inheritedtrue/inherited inside the plugin definition (within the parent POM). - -john Chris Berry wrote: | I can now answer this myself. | It appears that m2 does the right thing -- i.e. what you'd expect | All plugins are inherited from the Parent. To override any Plugin, simply | declare it in the Child. Those you don't declare remain unchanged. All | configuration in the overriding Plugin declaration is inherited. And you | can override any config properties or add new ones where necessary. | Powerful, good stuff. This, plus the ability to parameterize with | properties, makes it really easy to create a malleable build system | good job maven guys ;-) | Cheers, | -- Chris | | On 11/2/05, Chris Berry [EMAIL PROTECTED] wrote: | |Greetings, |I am looking for guidance on POM inheritance. I know that I can set up a |build system where all common functionality is pulled into a Parent POM, so |that Child POMs can be remarkably small. What I'm uncertain on is how I |override some of the plugins -- leaving the others as is. I see that I can |override properties and customize the common plugin use that way. But can I |completely override a particular plugin?? Or perhaps add another plugin?? I |guess I'm looking for the rules of inheritance... | |I.e can I override a plugin like this?? Is there a better way to supply |different configuration sets?? | |Parent POM: | |project | |build |plugins |plugin | |artifactIdmy-plugin/artifactId |configuration |somethingval1/something |/configuration |/plugin | | |Child POM | |project | |parent/parent |build |plugins |plugin | |artifactIdmy-plugin/artifactId |configuration |somethingval2/something |somethingelseval3/somethingelse |/configuration |/plugin | |Thanks, |-- Chris | | | | | | | -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFDaSEwK3h2CZwO/4URAjNYAKCphwobRsVVPR/dansXyiyILK3A4wCgq2ar SgSzPp1SFvAo1RyvfsMj5O0= =vwGZ -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New to Maven2 - is it ready?
I would say its ready i my self use it at my customer, and find it very good. when it comes to the build needs you mention you will find many of them here http://mojo.codehaus.org/ there you will find plugins to support most of your needs. also you would like to look at http://cargo.codehaus.org/ for deployment needs. and if you still do not find all you need, you could while you wait for someone to make a plugin for you, or you write one for yourself always use the antrun plugin to execute ant tasks that would do the trick /Kaare On 02/11/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, We use maven today, but have used it like ant (meaning we have not used it as it was intended, with repository etc.) Now we want to clean up and use it properly, but then again, maybe we should go straight to maven2. My question is this. Given our needs, what do we do to use Maven2 (now). Do we write a lot of own custom plugins, or is this available for us? Our building process need to do: * Jar = OK * War = OK * Xdoclets / ejb * copyFiles (for deploying jar/war to local jboss etc) * axis java2wsdl * axis wsdl2java (generering av test-klient) * JasperReports (today we use a ant compile task) I would also like to know if anybody has started to use the plugins you will probably mention. mvh Svein Are Grønsund Distribution Innovation - 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: Right way to structure a project (and its site)
I am wondering the same thing right now. Any hints would be appreciated! On 11/2/05, Duane Homick [EMAIL PROTECTED] wrote: I have a multi module project that I have structured similar to how maven itself is structured: data-publishing-service + dps-shared src/main/java... src/main/test... pom.xml + dps-client src/main/java... src/main/test... pom.xml + dps-server-core src/main/java... src/main/test... pom.xml + dps-site src/site/... src/site/site.xml pom.xml pom.xml Each one of those subdirectories is itself a project with the parent specified as data-publishing-service. The problem I am having is with the site. How do I get a site to be generated with the javadoc for all the subprojects when using a directory structure where dps-site is itself a subproject. This is similar to how maven does it and they have javadoc for the project as a whole. Anyone know the trick I need to get the javadoc for the project into the dps-site? Im currently running: C:\src\data-publishing-service\dps-site\mvn site-deploy Thanks Duane Homick [EMAIL PROTECTED] Software Engineer - Sandvine Incorporated - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexandre Poitras Québec, Canada
[m2] Jetty repo was: Using the tomcat plugin
I've just reorganized the mortbay jetty m2 repositories. There now is urlhttp://www.mortbay.org/maven2/snapshot/url urlhttp://www.mortbay.org/maven2/release/url(currently empty) The old urlhttp://www.mortbay.org/maven2/url will continue to work for a while. cheers Jan Bartel wrote: Ralph, Try putting the following in your pom.xml: pluginRepositories pluginRepository idmortbay-repo/id namemortbay-repo/name urlhttp://www.mortbay.org/maven2/url /pluginRepository /pluginRepositories I should have the site doco for the plugin linked into the Jetty website in the next day. In the meanwhile, all you should need to do is to add these plugin config lines to your pom.xml: plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty6-plugin/artifactId configuration scanIntervalSeconds20/scanIntervalSeconds /configuration /plugin That will cause the plugin to keep running and scan for class/lib changes every 20secs. You can change it to whatever you prefer. There are also a couple of other config options, but that should get you going. You can run it: mvn org.mortbay.jetty:maven-jetty6-plugin:1.0:run You can shorten that to: mvn jetty6:run but I'm not sure exactly how to do that other than as the plugin developer (I followed the instructions at http://maven.apache.org/maven2/guides/plugin/guide-java-plugin-development.html). Jason, is there any update on how we get the Jetty repository mirrored to the central Maven2 repository? cheers Jan Ralph Pöllath wrote: On 02.11.2005, at 16:55, Jan Bartel wrote: Ralph, Just a suggestion: if you want to run your webapp without having to create a war first, you could try the Jetty6 plugin. It is extremely lightweight, you don't have to have any external config files for it, plus it will automatically hot-redeploy your webapp whenever you change any class files or dependencies. You can get it from scpexe://jetty.mortbay.org/home/ftp/pub/maven2. Hi, sounds great, but I can't figure out what to do with scpexe:// jetty.mortbay.org/home/ftp/pub/maven2. I tried creating a pluginRepository in ~/.m2/settings.xml but can't get it to work. Cheers, -Ralph. Ralph Pöllath wrote: Hi, I've successfully compiled and installed the tomcat plugin from svn, and tomcat:deploy works as expected. Now I'm wondering how to best use it. For development, I'd like to avoid zipping up the war file for each deployment. From gleaning at the source, I learned this means deploying in local mode. I guess I have to pass a parameter to the tomcat plugin, but I can't figure out the parameter's correct name (I know, this question is related to plugins in general, but I can't find the documentation). I tried $ mvn -Dorg.apache.maven.plugins.maven-tomcat-plugin.mode=local tomcat:deploy and $ mvn -Dorg.codehaus.mojo.tomcat.mode=local tomcat:deploy but all I get is [INFO] Deploying war remotely to /myProject on http://localhost: 8080/ manager which means I'm running in the default remote mode. I also noticed there's a mode called inplace, that uses a context.xml file to deploy to tomcat, and requires the war plugin to run in exploded mode. What's the advantage of using inplace (I assume you get to use a path different from project.build.finalName?), and how do I configure the war plugin? How does everyone else use the tomcat plugin? Thanks, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven(2.0): Web apps and transitive dependencies
Greetings, I'm new to Maven and am using Maven 2.0. I'm trying to build a web application. That application has some dependencies such as Hibernate3 and Spring. The transitive dependency feature of Maven is copying in several .jar files which I don't necessarily need at run time because I'm not using those particular features of Hibernate3 and Spring. Is there a way to only have Maven copy over those dependencies that are explicitely defined or do I have to use the excludes feature to exclude those dependent dependencies which I don't need. /robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Assembly plugin: How to include javadoc from other dependencies
Hi all, I have a project client, wich depends of another project common. They both produce jar artifacts. Now what I want to do is distributing an archive on a web site by using the assembly plugin. In the archive, I want to include client.jar and common.jar, wich is quite easy to do. But, I also want to include the javadoc of both projects, wich I have absolutly no idea how to do it. Does somebody has any suggestions? Thank in advance! -- Alexandre Poitras Québec, Canada
Re: Maven(2.0): Web apps and transitive dependencies
In my opinion, what you can do is define somewhere in your internal repository, a light version of hibernate. You just copy the hibernate jar and pom in another location and then you remove the dependances you don't want in the pom. This way, you keep the regular version of hibernate but you can use your light version for any number of projects. On 11/2/05, Robert Taylor [EMAIL PROTECTED] wrote: Greetings, I'm new to Maven and am using Maven 2.0. I'm trying to build a web application. That application has some dependencies such as Hibernate3 and Spring. The transitive dependency feature of Maven is copying in several .jar files which I don't necessarily need at run time because I'm not using those particular features of Hibernate3 and Spring. Is there a way to only have Maven copy over those dependencies that are explicitely defined or do I have to use the excludes feature to exclude those dependent dependencies which I don't need. /robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexandre Poitras Québec, Canada
Re: Maven(2.0): Web apps and transitive dependencies
Alexandre, Thanks for the prompt response! I'll give your suggestion a try. /robert Alexandre Poitras wrote: Oh and don't forget to change your dependencies in your pom to point on your new Hibernate version. Hope this help! On 11/2/05, Alexandre Poitras [EMAIL PROTECTED] wrote: In my opinion, what you can do is define somewhere in your internal repository, a light version of hibernate. You just copy the hibernate jar and pom in another location and then you remove the dependances you don't want in the pom. This way, you keep the regular version of hibernate but you can use your light version for any number of projects. On 11/2/05, Robert Taylor [EMAIL PROTECTED] wrote: Greetings, I'm new to Maven and am using Maven 2.0. I'm trying to build a web application. That application has some dependencies such as Hibernate3 and Spring. The transitive dependency feature of Maven is copying in several .jar files which I don't necessarily need at run time because I'm not using those particular features of Hibernate3 and Spring. Is there a way to only have Maven copy over those dependencies that are explicitely defined or do I have to use the excludes feature to exclude those dependent dependencies which I don't need. /robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexandre Poitras Québec, Canada -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Right way to structure a project (and its site)
There may be a couple of options, however, the approach I prefer is the following: 1) leave the structure just as you have defined below 2) define the site distribution management section in your parent pom as follows: distributionManagement site idwebsite/id urlscp://minotaur.apache.org/www/portals.apache.org/pluto/url /site /distributionManagement because m2 appends the subproject name to the uri when the url is defined in the parent, when executing site:site site:deploy at the parent level, the reactor will deploy the site to each of the modules to the appropriate sub-site location. 3) override the distribution management in the dps-site module. This will ensure that the dps-site module is deployed to the root directory instead of to root/dps-site 4) your results: root = contents of dps-site website root/dps-shared = contents of dps-shared website root/dps-client = contents of dbs-client website etc. . . Hope that helps, David On 11/2/05, Duane Homick [EMAIL PROTECTED] wrote: I have a multi module project that I have structured similar to how maven itself is structured: data-publishing-service + dps-shared src/main/java... src/main/test... pom.xml + dps-client src/main/java... src/main/test... pom.xml + dps-server-core src/main/java... src/main/test... pom.xml + dps-site src/site/... src/site/site.xml pom.xml pom.xml Each one of those subdirectories is itself a project with the parent specified as data-publishing-service. The problem I am having is with the site. How do I get a site to be generated with the javadoc for all the subprojects when using a directory structure where dps-site is itself a subproject. This is similar to how maven does it and they have javadoc for the project as a whole. Anyone know the trick I need to get the javadoc for the project into the dps-site? Im currently running: C:\src\data-publishing-service\dps-site\mvn site-deploy Thanks Duane Homick [EMAIL PROTECTED] Software Engineer - Sandvine Incorporated - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Missing dependency: icu4j:icu4j:2.6.1:jar
I was unable to build my project with Maven 2.0 due to the following missing dependency: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: icu4j ArtifactId: icu4j Version: 2.6.1 Reason: Unable to download the artifact from any repository icu4j:icu4j:2.6.1:jar In case anyone else is struggling with this problem, I was able to manually install the missing library by 1. downloading it from the following location: http://ftp.software.ibm.com/software/globalization/icu/icu4j/2.6.1/icu4j _2_6_1.jar 2. installing it to my local repository as follows: mvn install:install-file -DgroupId=icu4j -DartifactId=icu4j -Dversion=2.6.1 -Dpackaging=jar -Dfile=icu4j_2_6_1.jar Hope that saves someone all the time I just spent trying to figure this out!! Travis Esta comunicacion es confidencial y puede contener informacion cuya divulgacion este restringida por la ley o en virtud de obligaciones de confidencialidad asumidas por acuerdos escritos. Si usted no es su destinatario, por favor advierta que cualquier divulgacion, distribucion o copia de esta comunicacion le esta estrictamente prohibida. Si usted recibio este mail por error, agradeceremos tenga a bien informar esa circunstancia al remitente mediante comunicacion a la direccion de e-mail o al numero telefonico : (5411) 5170-, y le solicitamos asimismo que por favor proceda a borrarlo de su computadora. Por favor no copie ni use la informacion contenida en este mail para ningun proposito y no divulgue su contenido a ninguna otra persona. This communication is confidential and may contain information that is exempt from disclosure by law or pursuant to confidentiality obligations assumed by written agreement. If you are not the intended recipient, please note that any dissemination, distribution, or copying of this communication is strictly prohibited. If you receive this e-mail in error, please notify the sender immediately at the electronic mail address or phone number : (5411) 5170- and delete the information from your computer. Please do not copy or use it for any purpose nor disclose its contents to any other person. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Building C++ projects with Maven (2)
Hi Chris, -Original Message- From: Chris Berry [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 01, 2005 4:17 PM To: Maven Users List Subject: Re: Building C++ projects with Maven (2) Hi Mark, So, if I have it right, your solution is to transparently augment the versionId on-the-fly?? And you keep all of these artifacts together in the same repo dir i.e. all under the same version subdir (in m2) i.e. openssl/0.9.8/i386-linux-gcc-openssl-nar-0.9.8.nar correct, with the exception that the -nar- part in the filename is gone since m2 reports all dependencies irregardless of types, and the classifier is at the end. So you would end up with: 0. openssl/0.9.8/openssl-0.9.8.pom 1. openssl/0.9.8/openssl-0.9.8.jar 2. openssl/0.9.8/openssl-0.9.8-noarch.nar 3. openssl/0.9.8/openssl-0.9.8-i386-linux-gcc.nar 4. openssl/0.9.8/nar/include 5. openssl/0.9.8/nar/lib/i386-linux-gcc/shared/openssl-0.9.8.so where 0. is the generic pom file, referring to other jar and/or nar dependencies, 1. is a standard jar file, which may contain class files, but for sure contains a properties file referring to 2. and 3. The nar-plugin will download 2. and 3. and unpack them in 4. and 5. if another project is dependent on openssl-0.9.8. Regards Mark Donszelmann Thanks, -- Chris On 11/1/05, Donszelmann, Mark [EMAIL PROTECTED] wrote: Hi that is what we did with our NAR (Native Archive) plugin in Maven 1, which we are porting to M2 at this time. See for maven 1: http://java.freehep.org/freehep-nar-plugin we let the user depend on an artifact, and add Architecture-OS-Linkername to it. Regards Mark Donszelmann -Original Message- From: Roger Hoover [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 01, 2005 12:28 PM To: Maven Users List Subject: Re: Building C++ projects with Maven (2) The concern I would have with this is that you have the same logical package (let's say apr 1.2.2) built for different architectures needing to have a different groupId or artifactId for each architecture type. Unless the groupId or artifactId is constructed dynamically, poms that depend on a native artifact have to depend on a specific architecture type. I think it would be nice to write generic poms that depend on just the logical package (apr 1.2.2 instead of apr 1.2.2 x86_64) and have maven sense the machine architecture (and OS) and fetch the correct native artifact. Roger On 11/1/05, dan tran [EMAIL PROTECTED] wrote: You can use groupId for platform specific or add platform specific string to your artifact id. -D On 11/1/05, Chris Berry [EMAIL PROTECTED] wrote: This brings up a bigger question; How does maven want to handle OS information in the repo?? To be successful w/ other languages like C, the repo will need to delineate information such as i586 and linux. Are these to be rolled into the groupId?? That doesn't smell right. Seems that we may need new Artifact Resolvers that understand this sort of info natively and can transparently supply the the correct pieces to the URL. Cheers, -- Chris On 11/1/05, dan tran [EMAIL PROTECTED] wrote: Hi David, There is a work in progress for native-maven-plugin http://svn.mojo.codehaus.org/trunk/mojo/maven-native/ You can build it and take a look at some doc. -Dan On 11/1/05, David Jackman [EMAIL PROTECTED] wrote: I've just found out that I'm going to need to expand our Maven build process to include several C++ project (which I believe are built using gcc). I seem to remember seeing some traffic on this list from people doing this sort of thing (which I promptly ignored because I wasn't at the time). Can anyone offer some insight on how you got this to work and how you overcame the problems that came up? What plugins are available to build this way and do they do everything you need? Are you able to have dependencies in the Maven repository and have the build use them from there (similar to .jar dependencies)? How do you access the header files, possible library, and runtime library for the different portions of the build? Is there a mini guide for this kind of project in the works? Thanks, ..David.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Re: [maven2] Failed to build model from plexus-utils-1.0.4.pom
I think this is the key: Caused by: sun.io.MalformedInputException at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java(Compiled Code)) What is your locale? I seem to recall something like this recently, but I'm not sure. - Brett On 11/2/05, Jeremy Hughes [EMAIL PROTECTED] wrote: Here's a snippet from my mvn -X compile. Is this what you wanted? Thanks. Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom 6K downloaded [DEBUG] Artifact resolved [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.codehaus.plexus:plexus-utils Reason: Failed to build model from file '/home/hughesj/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom'. Error: 'null' [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get dependency information: Unable to read the metadata file for artifact 'org.codehaus.plexus:plexus-utils:jar': Failed to build model from file '/home/hughesj/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom'. Error: 'null' org.codehaus.plexus:plexus-utils:1.0.4:jar from the specified remote repositories: central (http://repo1.maven.org/maven2), snapshots (http://snapshots.maven.codehaus.org/maven2) Path to dependency: 1) org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.1 2) org.apache.maven:maven-model:jar:2.0 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:536) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: Unable to get dependency information: Unable to read the metadata file for artifact 'org.codehaus.plexus:plexus-utils:jar': Failed to build model from file '/home/hughesj/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom'. Error: 'null' org.codehaus.plexus:plexus-utils:1.0.4:jar from the specified remote repositories: central (http://repo1.maven.org/maven2), snapshots (http://snapshots.maven.codehaus.org/maven2) Path to dependency: 1) org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.1 2) org.apache.maven:maven-model:jar:2.0 at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:289) at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:294) at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:67) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:223) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:211) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:182) at org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComplete(DefaultPluginManager.java:596) at
Re: [m2] jar-plugin: not including META-INF/maven
Actually this is not currently possible. Please make an improvement request. - Brett On 11/2/05, Julien Stern [EMAIL PROTECTED] wrote: How can I configure Maven2 so that is stops including files in the META-INF/maven directory of every jar it produces ? Thanks you. -- Julien Stern - 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]