RE: woodstox 3.2.x pom
Wayne Fay wrote: It seems like the JAXWS-RT people simply need to update THEIR pom file to reflect Woodstox's groupId change. Woodstox changed its groupId to org.codehaus.woodstox a while back: http://jira.codehaus.org/browse/WSTX-86 As for the missing pom files, this is simply incorrect if you look in the proper groupId: http://jira.codehaus.org/browse/WSTX-85 http://repo1.maven.org/maven2/org/codehaus/woodstox/wstx-asl/ Feel free to complain to the jaxws people -- this is their problem/fault. In the meantime, I would specify an excludes inside the jaxws-rt dependency to remove the incorrect woodstox, and then add back the correct one with a proper dependency node. The even more interesting question is where those artifacts (http://repo1.maven.org/maven2/woodstox/) came from, because they should have been replicated from the Codehaus' repo where nothing is available (http://repository.codehaus.org/woodstox/). - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need *end-to-end* example using the maven assembly plugin
setting the Class-Path in MANIFEST.MF can be done (and should be done) with the assembly plugin. There is an option for that. Also copying jars to a lib/ directory (and checking them in) is the reason we moved away from ant to maven and I do not believe this is necessary. Lisa baerrach wrote: On Wed, Nov 26, 2008 at 10:22 AM, CheapLisa [EMAIL PROTECTED] wrote: Does anyone have an *end-to-end* example (with files you can send or attach) that will allow me to create a single jar with all dependencies using maven? This is more than just the assembly. Setting the MANIFEST.MF correctly with Class-Path is the jar plugin's job. See http://maven.apache.org/shared/maven-archiver/examples/classpath.html In the end I want to be able to: $cd dist $java -jar patch-main.jar We are doing this. You need to setup both maven-jar-plugin and maven-assembly-plugin. I copy all my dependencies into the lib/ directory of the binary bundle and always include the config/ on the classpath so that I can include files like log4j.properties, spring configs, etc so the admin/user can customize the files outside of jars. Here are snippets from the files you need. pom.xml -- build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-assembly-plugin/artifactId executions execution idassembly:package/id phasepackage/phase goals !-- Work around for http://jira.codehaus.org/browse/MASSEMBLY-97 as the goal should be attached. -- goalsingle/goal /goals configuration descriptors descriptorsrc/main/assembly/bin.xml/descriptor /descriptors /configuration /execution /executions /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifest mainClassyour.fully.qalified.MainClassname/mainClass /manifest manifestEntries Class-Pathconfig//Class-Path /manifestEntries manifest addClasspathtrue/addClasspath classpathPrefixlib//classpathPrefix /manifest /archive /configuration /plugin /plugins /build - src/main/assembly/bin.xml -- assembly idbin/id formats formatdir/format formatzip/format /formats includeBaseDirectorytrue/includeBaseDirectory fileSets fileSet directorysrc/main/config/directory outputDirectoryconfig//outputDirectory includes include*/include /includes excludes excludeCVS/exclude /excludes /fileSet fileSet directorytarget/directory outputDirectory/outputDirectory includes include${artifactId}-${version}.jar/include /includes /fileSet /fileSets files file sourcesrc/main/scripts/start_debug.bat/source filteredtrue/filtered /file file sourcesrc/main/scripts/start.bat/source filteredtrue/filtered /file file sourcesrc/main/scripts/stop.bat/source filteredtrue/filtered /file file sourcesrc/main/scripts/start.sh/source filteredtrue/filtered fileMode0744/fileMode /file file sourcesrc/main/scripts/stop.sh/source filteredtrue/filtered fileMode0744/fileMode /file /files dependencySets dependencySet outputDirectorylib/outputDirectory unpackfalse/unpack /dependencySet /dependencySets /assembly - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Need-*end-to-end*-example-using-the-maven-assembly-plugin-tp20692137p20696754.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need *end-to-end* example using the maven assembly plugin
thanks John: I will go through this and give it a try. If the simplest example will work, then I want to exclude things like the docs/ directory and other artifacts from the jar that is produced. The book example might work, but most likely not. The manifest section was left completely out. It was probably not tried first before going to press. Lisa John Stoneham wrote: On Wed, Nov 26, 2008 at 10:22 AM, CheapLisa [EMAIL PROTECTED] wrote: Does anyone have an *end-to-end* example (with files you can send or attach) that will allow me to create a single jar with all dependencies using maven? Lisa, I believe that Sonatype's Maven book has exactly the example you're looking for. The key piece is to build up all your artifacts with dependencies as usual and then use the Maven assembly plugin using the built-in descriptor jar-with-dependencies. Turns out your particular use case is actually very simple. The example is covered from start to finish in chapter 4. Start with http://books.sonatype.com/maven-book/reference/customizing.html#section-custom-packaged and work backwards until you reach the point you're at. Hope this helps, - John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Need-*end-to-end*-example-using-the-maven-assembly-plugin-tp20692137p20696818.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Regd: Incremental build
Hello, I have just started working on Maven. I need one clarification. In the big project which has many modules when source files of one module get modified Maven builds only that module or it builds entire project?. I have noticed that Maven doesn't compile any files even after modification in source file without performing mvn clean operation. Please clarify me. Thanks for your time Elavarasan.S
Re: mvn release:perform blowing up?
On Wed, 26 Nov 2008 16:13:32 David C. Hicks wrote: Have you tried using the eclipse:eclipse plugin? That's how I'm talk about the hard way... eclipse:m2eclipse... and install the m2eclipse plugin... -- Michael McCallum Enterprise Engineer mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn release:perform blowing up?
m2eclipse and Q4E support nicely hierachical projects (with eclipse 3.3+ i think) and the release plugin will be happy. Arnaud On Wed, Nov 26, 2008 at 4:10 AM, Rusty Wright [EMAIL PROTECTED]wrote: Ok, thanks. I'm using the flat structure because that seems to work better with eclipse. I guess I'll just have to walk away from the release plugin. David C. Hicks wrote: It has been well over a year ago, but the last time I tried to do this, I encountered similar problems. It was at that time I learned that the release plugin couldn't work with the flat structure of my project - or so I was told by someone, then. I haven't tried it since then. Instead, I've just adjusted the way my projects are structured so that they work the way Maven wants them to. I wish I could give you something better than that. Dave Paulo Cesar Silva Reis wrote: I have the same problem. I tried to get the answer here but no one could help me, maybe you are luck. On 11/24/08 7:58 PM, Rusty Wright [EMAIL PROTECTED] wrote: I'm using the flat structure where the parent directory (cars_parent) is a sibling of its sub modules. The parent's pom starts with 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 packagingpom/packaging artifactIdwmf-paper/artifactId groupIdedu.berkeley.ist.cars/groupId modules module../cars_net/module module../cars_download/module module../cars_upload/module /modules In the pluginManagement section the section for the release plugin is as follows: plugin artifactIdmaven-release-plugin/artifactId groupIdorg.apache.maven.plugins/groupId version2.0-beta-7/version configuration tagBasesvn+ssh:// [EMAIL PROTECTED]/svn/ist-svn/berkeley/projects/ist/as /webapps/cafe-paper-cars/tags/tagBase /configuration /plugin Here's the tail of the output when it blows up. I don't understand what the problem is: [INFO] Working directory: /home/rusty/java/cars/cars_parent [INFO] Tagging release with the label wmf-paper-1.0.0... [INFO] Executing: svn --non-interactive copy --file /tmp/maven-scm-56313007.commit . svn+ssh:// [EMAIL PROTECTED]/svn/ist-svn/berkeley/projects/ist/as/webapps/ cafe-paper-cars/tags/wmf-paper-1.0.0 [INFO] Working directory: /home/rusty/java/cars/cars_parent [INFO] Transforming 'CARS paper accounting parent'... [INFO] Transforming 'CARS paper accounting net module (ftp and email)'... [INFO] Transforming 'CARS paper accounting downloader'... [INFO] Transforming 'CARS paper accounting uploader'... [INFO] Not removing release POMs [INFO] Checking in modified POMs... [INFO] Executing: svn --non-interactive commit --file /tmp/maven-scm-381006407.commit --targets /tmp/maven-scm-12275-targets [INFO] Working directory: /home/rusty/java/cars/cars_parent [INFO] Release preparation complete. [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 1 minute 21 seconds [INFO] Finished at: Mon Nov 24 13:42:19 PST 2008 [INFO] Final Memory: 6M/12M [INFO] [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] CARS paper accounting parent [INFO] CARS paper accounting net module (ftp and email) [INFO] CARS paper accounting downloader [INFO] CARS paper accounting uploader [INFO] Searching repository for plugin with prefix: 'release'. [INFO] [INFO] Building CARS paper accounting parent [INFO]task-segment: [release:perform] (aggregator-style) [INFO] [INFO] [release:perform] [INFO] Checking out the project to perform the release ... [INFO] Executing: svn --non-interactive checkout svn+ssh:// [EMAIL PROTECTED]/svn/ist-svn/berkeley/projects/ist/as/webapps/ cafe-paper-cars/tags/wmf-paper-1.0.0 checkout [INFO] Working directory: /home/rusty/java/cars/cars_parent/target [INFO] Executing goals 'deploy site-deploy'... [INFO] Executing: mvn deploy site-deploy --no-plugin-updates -P dev -DperformRelease=true -f pom.xml [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: unknown Reason:
Re: problems building a multimodule project with EJB3 modules
No one having problems with EJB3 modules in a multimodule build? Or is it just a bad subject? Could someone please test the attached project and confirm that the build fails. thanks, - martin On Monday 24 November 2008 Martin Höller wrote: Hi all! On 25 Apr 2008, Martin Höller wrote: I'll report back when I found out more about why my complex project failed with similar dependencies as the example. It's been a while, but the problem still exists and hit me again. The whole story can be found at http://www.nabble.com/problems-building-a-multimodule-project-with-EJB3-m odules-to16851710.html#a16891383 The summary of my problem is, that I have a multi-module project where one module (child2) is an EJB and another module (child1) depends on this EJB. It declares the dependency as dependency groupIdat.co.xss.mhtest.multimodule/groupId artifactIdchild2/artifactId version1.0-SNAPSHOT/version typeejb-client/type /dependency Note the ejb-client type! The build of this project fails, if child2 is not already in the local repository. I managed to create a small sample project which is attached to this mail (hope it will come through). It demonstrates the problem. Just run mvn test and it will fail with ---8- ... [INFO] Failed to resolve artifact. Missing: -- 1) at.co.xss.mhtest.multimodule:child2:ejb-client:client:1.0-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=at.co.xss.mhtest.multimodule -DartifactId=child2 -Dversion=1.0-SNAPSHOT -Dclassifier=client -Dpackaging=ejb-client -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=at.co.xss.mhtest.multimodule -DartifactId=child2 -Dversion=1.0-SNAPSHOT -Dclassifier=client -Dpackaging=ejb-client -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) at.co.xss.mhtest.multimodule:child1:jar:1.0-SNAPSHOT 2) at.co.xss.mhtest.multimodule:child2:ejb-client:client:1.0-SNAPSHOT -- 1 required artifact is missing. ... ---8- Currently I'm running maven 2.0.9. Any ideas? - martin signature.asc Description: This is a digitally signed message part.
Re: Regd: Incremental build
correct 2008/11/26 prince s [EMAIL PROTECTED] Hello, I have just started working on Maven. I need one clarification. In the big project which has many modules when source files of one module get modified Maven builds only that module or it builds entire project?. I have noticed that Maven doesn't compile any files even after modification in source file without performing mvn clean operation. Please clarify me. Thanks for your time Elavarasan.S
Re: Regd: Incremental build
FYI, you are probably using an IDE. Maven has tools or integrations to help set up most of the IDEs (InteilliJ, Eclipse, Netbeans) These IDEs will usually do incremental compiles for you while you are developing, you then just use maven every so often to do a full rebuild (to make sure that the IDEs have not got out of sync) Typically, we just develop using the IDE until it's time to commit, then we'll do a mvn clean package of either the module or the whole project depending on the scope of the changes. We use a CI server to do full clean builds with Maven (in our case we use Hudson) and email us if we broke something -Stephen 2008/11/26 Stephen Connolly [EMAIL PROTECTED] correct 2008/11/26 prince s [EMAIL PROTECTED] Hello, I have just started working on Maven. I need one clarification. In the big project which has many modules when source files of one module get modified Maven builds only that module or it builds entire project?. I have noticed that Maven doesn't compile any files even after modification in source file without performing mvn clean operation. Please clarify me. Thanks for your time Elavarasan.S
Re: woodstox 3.2.x pom
Thanks Jorg I'll send this to jax-ws dev list and meanwhile will update my poms. BTW, do you recommand switching to 3.2.7 instead of 3.2.2 ? 2008/11/26 Jörg Schaible [EMAIL PROTECTED]: Wayne Fay wrote: It seems like the JAXWS-RT people simply need to update THEIR pom file to reflect Woodstox's groupId change. Woodstox changed its groupId to org.codehaus.woodstox a while back: http://jira.codehaus.org/browse/WSTX-86 As for the missing pom files, this is simply incorrect if you look in the proper groupId: http://jira.codehaus.org/browse/WSTX-85 http://repo1.maven.org/maven2/org/codehaus/woodstox/wstx-asl/ Feel free to complain to the jaxws people -- this is their problem/fault. In the meantime, I would specify an excludes inside the jaxws-rt dependency to remove the incorrect woodstox, and then add back the correct one with a proper dependency node. The even more interesting question is where those artifacts (http://repo1.maven.org/maven2/woodstox/) came from, because they should have been replicated from the Codehaus' repo where nothing is available (http://repository.codehaus.org/woodstox/). - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ignore errors from exec-maven-plugin
Hi All, I'm having a problem getting the exec-maven-plugin to support my requirements and I hoped the list might be able to help. I need to run a binary application to tickle some hardware into life before I run a test. This application exits with various status codes to indicate certain aspects of the hardware. Unfortunately, as they are not always zero, they are getting interpreted by the exec:exec plugin as an error which stops the run. Is there a way to tell the plugin to ignore errors in a similar way to the onError directive of the sql plugin? Thanks.
metadata download and 404
Hi, I have a problem with 404 server answers when maven downloads the maven-metadata.xml files. We have 3 internal repositories, behind a simple apache (so it's all static), and we're using mirrors to access only our internal repos. From time to time, maven writes the maven-metadata-myrepo2.xml file for an artifact with the following content : !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN htmlhead title404 Not Found/title /headbody h1Not Found/h1 pThe requested URL /maven2-repos/myrepo1/.../maven-metadata.xml was not found on this server./p /body/html HTTP/1.1 404 Not Found Date: Wed, 26 Nov 2008 10:41:34 GMT Server: Apache/2.2.3 (Unix) mod_ssl/2.2.3 OpenSSL/0.9.8d Content-Length: 311 Keep-Alive: timeout=5, max=93 Connection: Keep-Alive Content-Type: text/html; charset=iso-8859-1 !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN htmlhead title404 Not Found/title /headbody h1Not Found/h1 pThe requested URL /maven2-repos/myrepo2/.../maven-metadata.xml was not found on this server./p /body/html As the content of the file is wrong (it is the 404 HTML answer and not the well-formatted XML), then maven fails with the following error : Unable to read local copy of metadata: Cannot read metadata from 'xxx/maven-metadata-myrepo2.xml' : in epilog non whitespace content is not allowed but got H (position: END_TAG seen .../body/html\nH... @8:2) The strange thing is that most of the time it is working well. So if anyone has a similar comportment, or knows why from times to times maven writes the 404 html answer to the file... Thanks for any answer, Vincent -- View this message in context: http://www.nabble.com/metadata-download-and-404-tp20699722p20699722.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running custom report
a dependency on plexus-utils seems to be missing or set to an incompatible version with Maven (which depends on the version of Maven you are using). - Brett On 25/11/2008, at 6:28 PM, Gérald Quintana wrote: Hello, I wrote my own report (simple Hello World at the moment) following the tutorial http://docs.codehaus.org/display/MAVENUSER/Write+your+own+report+plugin But I can't run it, I get the following exception: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error getting reports from the plugin 'com.mycompany.mojo:maven-hello-plugin': Unable to find the mojo 'com.mycompany.mojo:maven-hello-plugin:1.0-alpha-1:hello-report' in the plugin 'com.mycompany.mojo:maven-hello-plugin' org.codehaus.plexus.util.xml.XmlStreamReader What did I miss? Gérald - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Brett Porter [EMAIL PROTECTED] http://blogs.exist.com/bporter/
Re: pom properties
${one} in that case, ${project.*} should be used to access the actual elements of the project. - Brett On 26/11/2008, at 2:49 AM, Randy Kamradt wrote: There has been some confusion in the past about accessing pom properties using the ${} notation. I know that to access the project version you should use ${project.version}. But for pom defined properties is the project prefix required? for instance, in a pom.xml: properties one1/one /properties ${project.one} or ${one} either seems to work, but is there a preferred method? -- Brett Porter [EMAIL PROTECTED] http://blogs.exist.com/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jetty Plugin Heap Size
It runs within the same VM, so the standard MAVEN_OPTS variable used before Maven works. - Brett On 25/11/2008, at 6:36 AM, David C. Hicks wrote: Is there a way to control the heap size for the Jetty Plugin? I've been looking, but I don't see anything. Thanks, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Brett Porter [EMAIL PROTECTED] http://blogs.exist.com/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to version modules when using different parents per module
No, there is only single inheritance, so you can't have different inheritance and a central location, unless there is a common ancestor somewhere. The setup you describe sounds rather confusing - Maven inheritance differs from the object oriented concept in that it is largely structural rather than typed. Can you have the types share a single ancestor so the module build and the inheritance hierarchy line up? Cheers, Brett On 25/11/2008, at 8:10 AM, Stefan Fritz wrote: Hi all, We have multiple projects which should be built using a module build. Each project is of a different type and therefore has a different parent pom (not the module build pom!). Now my problem is that I want to maintain the version at a central place. The only solution I could think of is to have one master pom where I define the module versions as properties in this pom. As we will have many module builds this although will lead to a chaos when branching multiple module builds. Is there a way to have: - projects built via a module build - a central place for maintaining the modules version - different parents per project in my module build ? Thanks Stefan -- Brett Porter [EMAIL PROTECTED] http://blogs.exist.com/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running custom report
Excellent! Using Maven 2.0.9, this should be added in the tutorial. Thank you Brett, Gérald 2008/11/26 Brett Porter [EMAIL PROTECTED]: a dependency on plexus-utils seems to be missing or set to an incompatible version with Maven (which depends on the version of Maven you are using). - Brett On 25/11/2008, at 6:28 PM, Gérald Quintana wrote: Hello, I wrote my own report (simple Hello World at the moment) following the tutorial http://docs.codehaus.org/display/MAVENUSER/Write+your+own+report+plugin But I can't run it, I get the following exception: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error getting reports from the plugin 'com.mycompany.mojo:maven-hello-plugin': Unable to find the mojo 'com.mycompany.mojo:maven-hello-plugin:1.0-alpha-1:hello-report' in the plugin 'com.mycompany.mojo:maven-hello-plugin' org.codehaus.plexus.util.xml.XmlStreamReader What did I miss? Gérald - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Brett Porter [EMAIL PROTECTED] http://blogs.exist.com/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jetty Plugin Heap Size
As a fast copy paste example, this is the line I use for running my Alfresco Maven powered projects (a 70MB webapp): MAVEN_OPTS=-Xms256m -Xmx512m -XX:PermSize=128m mvn jetty:run HTH, Gab 2008/11/26 Brett Porter [EMAIL PROTECTED] It runs within the same VM, so the standard MAVEN_OPTS variable used before Maven works. - Brett On 25/11/2008, at 6:36 AM, David C. Hicks wrote: Is there a way to control the heap size for the Jetty Plugin? I've been looking, but I don't see anything. Thanks, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Brett Porter [EMAIL PROTECTED] http://blogs.exist.com/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gabriele Columbro Alfresco ECM Product Strategy Consultant +31 627 565 103 Sourcesense - Making sense of open Source (http://www.sourcesense.com)
POM errors
Hello! Is there a tool or editor, that verifies if there are errors in the POM? Thanks Sonia -- View this message in context: http://www.nabble.com/POM-errors-tp20702653p20702653.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: POM errors
1. the pom has an xsd, if your editor supports xml validation using xsd schemas, use that. 2. run mvn validate 2008/11/26 solo1970 [EMAIL PROTECTED] Hello! Is there a tool or editor, that verifies if there are errors in the POM? Thanks Sonia -- View this message in context: http://www.nabble.com/POM-errors-tp20702653p20702653.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: metadata download and 404
So if anyone has a similar comportment, or knows why from times to times maven writes the 404 html answer to the file... This is generally caused by incorrectly configured webservers running at the mirrors you are connecting to. It needs to send a real 404. Not just an error message that looks like a 404. Wayne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: metadata download and 404
Wayne Fay wrote: This is generally caused by incorrectly configured webservers running at the mirrors you are connecting to. It needs to send a real 404. Not just an error message that looks like a 404. I've already checked, and our webserver is well configured. As you can see in the file, maven writes the HTTP headers response, and there is : HTTP/1.1 404 Not Found Thanks anyway for the answer -- View this message in context: http://www.nabble.com/metadata-download-and-404-tp20699722p20703491.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn release:perform blowing up?
Michael McCallum wrote: On Wed, 26 Nov 2008 16:13:32 David C. Hicks wrote: Have you tried using the eclipse:eclipse plugin? That's how I'm talk about the hard way... eclipse:m2eclipse... and install the m2eclipse plugin... I like m2eclipse, but the last few times I've tried to install it I get all kinds of errors from the Eclipse plugin installer - something about missing dependencies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need *end-to-end* example using the maven assembly plugin
I will go through this and give it a try. If the simplest example will work, then I want to exclude things like the docs/ directory and other artifacts from the jar that is produced. The book example might work, but most likely not. The manifest section was left completely out. It was probably not tried first before going to press. Whoops. I misremembered - this chapter didn't feature the manifest piece, it has you run it by specifying the main class. However, I just tried the example (I skipped all the unit test pieces) as printed in the dead-tree version of their book which I have here. I found a couple of problems that I'll make sure are reported to the Sonatype guys: - Main.java ought to have int zipcode = 60202; and zipcode = Integer.parseInt(args[0]), and the member variable/ctor argument should be ints as well - YahooRetriever.retrieve() should throw Exception - the project POM is missing the Java 1.5 compiler configuration: build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin /plugins /build As I said, I skipped all the test stuff, but did verify that simply adding plugin artifactIdmaven-assembly-plugin/artifactId configuration descriptorRefs descriptorRefjar-with-dependencies/descriptorRef /descriptorRefs /configuration /plugin will cause mvn assembly:assembly to build the JAR with dependencies. We can bind this automatically to the project lifecycle by adding executions execution phasepackage/phase goals goalassembly/goal /goals /execution /executions so we'll also get our jar-with-dependencies during the package phase. Lastly to customize the manifest you want to add archive manifest mainClassorg.sonatype.mavenbook.weather.Main/mainClass /manifest /archive within the configuration element. Final POM snipper for the assembly plugin: plugin artifactIdmaven-assembly-plugin/artifactId executions execution phasepackage/phase goals goalassembly/goal /goals /execution /executions configuration archive manifest mainClassorg.sonatype.mavenbook.weather.Main/mainClass /manifest /archive descriptorRefs descriptorRefjar-with-dependencies/descriptorRef /descriptorRefs /configuration /plugin The only tricky bit here was knowing how to add archive there. Originally I attempted to configure the maven-jar-plugin, but the assembly plugin doesn't use the jar plugin - it goes to the Maven Archiver directly, which has manifest support built into it (the jar plugin also uses this). When you look at the jar plugin's documentation at http://maven.apache.org/plugins/maven-jar-plugin/, it links to the Archiver site for docs on what can go into the archive element that you use to configure the JAR plugin. The assembly plugin takes the same argument - which you can see documented at http://maven.apache.org/plugins/maven-assembly-plugin/assembly-mojo.html - so you can pass the same configuration. I give you the documentation pointers not to assert that it's the best way to present this information - there is clearly a knowledge chicken-and-egg problem where you have to know something's there before you know to look there for it - but to illustrate my thought process when I look for things like this. Hope this helps - - John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: metadata download and 404
Hello Vincent, From what I've seen [ I'm no expert ;-) ] you need to have web read rights on the folders on the server, not just the artifacts. I.e. in your case, putting 'http://server/maven2-repos/myrepo2/' above in a browser should provide listing on contents (as well as for sub-folders), instead of just being able to download the xml file... Another possible reason could be proxy configuration in your settings.xml file, i.e. the visibility of the server _from_ where you're starting mvn. HTH, w On Wed, Nov 26, 2008 at 4:45 PM, vbehar [EMAIL PROTECTED] wrote: Wayne Fay wrote: This is generally caused by incorrectly configured webservers running at the mirrors you are connecting to. It needs to send a real 404. Not just an error message that looks like a 404. I've already checked, and our webserver is well configured. As you can see in the file, maven writes the HTTP headers response, and there is : HTTP/1.1 404 Not Found Thanks anyway for the answer -- View this message in context: http://www.nabble.com/metadata-download-and-404-tp20699722p20703491.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with jar signing
Hello, I'm building some Eclipse plug ins with Maven, and because of the requirements, I'm not using the Felix bundle plug in, I'm making the bundle using some Ant tasks, the dependency:copy goal and some other things. I'm trying to: - compile the classes (target/classes) - jar them and put the jar in another folder (target/osgi-bundle-symbolic-name/jarname.jar) - sign the resulting jar (I don't change the name) I'm copying the key store at the process-resources phase, and I'm making the jar at the compile phase. However, jar signing does not work: [INFO] [jar:sign {execution: jar-classes}] [DEBUG] Not executing jar:sign as the project is not a Java module Project packaging is zip, it's basically an OSGi unpacked bundle put in a zip: a folder which has a jar, a META-INF folder, and some other things in there. Any ideas? I found some bug reports regarding something similar, but I'm not sure they're related. http://jira.codehaus.org/browse/MJAR-20 I do have the target/classes folder at compile time, it looks like something in the check is wrong. Are there any workarounds? PS: I know about making a different module for the jar itself, I don't really want to pollute the project structure with additional folders, I already have 70. If I make 30 more, it will be even more confusing. I believe I will still have to make an additional module, because I might have to publish the simple jar too... However, does anyone know if I can make it work without additional modules? Thank you, Costin. -- View this message in context: http://www.nabble.com/Problems-with-jar-signing-tp20705582p20705582.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need *end-to-end* example using the maven assembly plugin
On Wed, Nov 26, 2008 at 7:10 PM, CheapLisa [EMAIL PROTECTED] wrote: setting the Class-Path in MANIFEST.MF can be done (and should be done) with the assembly plugin. There is an option for that. It may do that. What I have posted will work and is perfectly acceptable. By using the jar plugin you are saying that the jar containing your Main class also has known dependencies which must be on the classpath. And that this artifact will be in your maven repository. By using the assembly plugin (and I am guessing) then the assembly plugin must change your artifact containing the Main jar to include a classpath definition. Which doesn't feel right. Also copying jars to a lib/ directory (and checking them in) is the reason we moved away from ant to maven and I do not believe this is necessary. Where did I say that you check in a lib directory? The assembly is built in target/artifact-bin.zip and the ZIP file contains a lib/ directory. When you unzip the -bin.zip file your executable bundle will have all your dependencies located in the lib/ directoy. Perhaps you should try the example first and see what it does prior to commenting? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Partial Archetype and Sub-Modules
Hello all, I was reading about the new *maven-archetype-plugin 2.0* and there is something about Partial Archetype for creating sub-modules. Unfortunately the documentation is not available. Could anyone explain me how this works and how to use this feature? Thanks in advance!
Aggregating checkstyle reports
In a multi-module project, is it possible to aggregate all checkstyle reports of the child projects into a single report for all projects? --- Todd Thiessen
RE: Aggregating checkstyle reports
And also for cobertura reports or any reports in general. --- Todd Thiessen _ From: Thiessen, Todd (BVW:9T16) Sent: Wednesday, November 26, 2008 2:14 PM To: 'Maven Users List' Subject: Aggregating checkstyle reports In a multi-module project, is it possible to aggregate all checkstyle reports of the child projects into a single report for all projects? --- Todd Thiessen
Re: Aggregating checkstyle reports
On Wed, Nov 26, 2008 at 12:13 PM, Todd Thiessen [EMAIL PROTECTED] wrote: In a multi-module project, is it possible to aggregate all checkstyle reports of the child projects into a single report for all projects? If the plugin supports it, there is usually an 'aggregate' parameter or configuration that you can set to true. Checkstyle does not seem to have this option [1] but there is an issue open [2]. [1] http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle-mojo.html [2] http://jira.codehaus.org/browse/MCHECKSTYLE-62 -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Aggregating checkstyle reports
Yes thanks. I noticed that the documentation didn't mention it. Thanks for the jira link though. I voted for it ;-). I presume you could do the aggregation in ant task and then call that task from Maven? I am not familiar with Maven yet though to do this. --- Todd Thiessen -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2008 2:23 PM To: Maven Users List Subject: Re: Aggregating checkstyle reports On Wed, Nov 26, 2008 at 12:13 PM, Todd Thiessen [EMAIL PROTECTED] wrote: In a multi-module project, is it possible to aggregate all checkstyle reports of the child projects into a single report for all projects? If the plugin supports it, there is usually an 'aggregate' parameter or configuration that you can set to true. Checkstyle does not seem to have this option [1] but there is an issue open [2]. [1] http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle-mojo. html [2] http://jira.codehaus.org/browse/MCHECKSTYLE-62 -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Remote resources and version
Hello, I am looking for an approach or plugin for the following: I have a multi module project, where it is very likely that different modules need the same resources (specifically, xsd files and some configuration files). I do not want to copy each file on every module, so I though that I should have an independent module that includes this files. I have researched about this and found the remote-resources plugin. It seems this is possible, and one must declare the resources like this: configuration resourceBundles resourceBundleorg.apache:apache-jar-resource-bundle:1.0/resourceBundle /resourceBundles /configuration I would like to know if anyone has experience with this plugin. Also, I am worried that I would have to declare the resource version, which could be a pain. Is it possible to declare the snapshot version? Does anyone manage this with another plugin or different approach? Thanks for your help. -- David Ojeda
Re: Partial Archetype and Sub-Modules
Hi Felipe, Reading the code, when an archetype is partial (declared in archetype-metadata.xml), There if 4 cases : 1. mvn is called in a directory in which exists a subdir called $artifactId and that does'nt contain any pom, this is an error 2. like 1 but with a pom existing in that sub dir, the generation is made in partial mode 3. mvn is called in a directory in which no subdir named $artifactId and with a pom in the root dir, the generation is made in partial mode 4. like 3 but nosubdir nor pom in root dir, the generation is made in complete mode. In partial mode, the files are created in the selected dir instead in a sub dir the new pom is made by merging the submodules in the archetypes are processed as in complete mode. Hope this help. Raphaël 2008/11/26 Felipe Kamakura [EMAIL PROTECTED]: Hello all, I was reading about the new *maven-archetype-plugin 2.0* and there is something about Partial Archetype for creating sub-modules. Unfortunately the documentation is not available. Could anyone explain me how this works and how to use this feature? Thanks in advance!
Errors while using maven-changelog-plugin
Hello, Using the patch given in the JIRA link: http://jira.codehaus.org/browse/MCHANGELOG-79, I tried generating the changelog between two Subversion tags in our repo due to which I get the error as below. Can some one please advise me what could be the reason for getting this error 'Can't find bundle for base name scm-activity, locale en'. I have also pasted the plugin what am using for this generation. Please pour in your inputs in this regard. //Plugin used in POM plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changelog-plugin/artifactId version2.1.1/version configuration !-- type is tag -- basedir${basedir}/basedir typetag/type outputXMLchangelog.xml/outputXML tags !-- between tags -- tag implementation=java.lang.String08A12.0-9.9.0.25/tag tag implementation=java.lang.String08A12.0-9.9.0.24/tag /tags !-- In trunk (Default brancheBase is trunk. So, branchBase element is optional when to use trunk. ) -- branchBasebranches/9.9.0/branchBase /configuration /plugin // Errors after build Executing: svn --non-interactive log -v -r 2845:2838 http://subversion.loc.corp.com/svn/repos/ApplicationSVN/branches/9.9.0 Working directory: C:\SVN-Sources\BRANCHES\APPLICATION [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Can't find bundle for base name scm-activity, locale en [INFO] [DEBUG] Trace java.util.MissingResourceException: Can't find bundle for base name scm-activity, locale en at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:837) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:806) Thanks Regards, Logu Rajamanickam - This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK legal entities.
issue: Removing: prebuild from forked lifecycle, to prevent recursive invocation.
Hello I have created maven plugin that has a prebuild goal. But, during execution, maven throws the following warning, [WARNING] Removing: prebuild from forked lifecycle, to prevent recursive invocation. Why does this happen? What is the problem? thanks nambi
maven antrun plugin
Hi, I am struggling for a couple of days to use the maven-antrun-plugin to do some tasks. For start to display something in the console. I run the pom file with the command mvn compile but no results (it compiles correctly the java files and everything but I'm not getting the desired message defined in the compile goal back in the console). Maybe I'm missing something but can't figure it out. We're currently switching the scripts from ant to maven and we discovered that we need some of the ant functionality also in maven scripts. I've checked my repository and the maven-antrun-plugin is there. Thank you very much. Here is my pom.xml code: 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 groupIdmyMavenTest/groupId artifactIdgeneratedWarFile/artifactId packagingwar/packaging version1.0/version namegeneratedWarFile/name url/url dependencies dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.13/version /dependency dependency groupIdantlr/groupId artifactIdantlr/artifactId version2.7.2/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.0/version scopetest/scope /dependency dependency groupIdant/groupId artifactIdant/artifactId version1.6.1/version /dependency /dependencies build pluginManagement plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions execution idcompile/id phasecompile/phase configuration tasks echo message=== / echo message=Test / echo message=== / /tasks /configuration goals goalcompile/goal /goals /execution /executions /plugin /plugins /pluginManagement resources resource directorysrc/main/resources/directory filteringtrue/filtering /resource /resources /build repositories repository idinternal/id nameLocal repository/name url http://my-local-repository:8080/maven2/internal /url /repository /repositories /project -- View this message in context: http://n2.nabble.com/maven-antrun-plugin-tp1583057p1583057.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Remote resources and version
Sorry to bother, but It seems that the remote resources plugin will not fit my needs. What I need is to extract some files from a dependency into the resources of a maven module. Or extract them into the target/classes directory. A more specific example, what would you do if you want N projects to use the same log4j.properties and the same other files (xml schemas). This files are used in the generate-sources phase. Thank you, David On Wednesday 26 November 2008 16:08:50 David Ojeda wrote: Hello, I am looking for an approach or plugin for the following: I have a multi module project, where it is very likely that different modules need the same resources (specifically, xsd files and some configuration files). I do not want to copy each file on every module, so I though that I should have an independent module that includes this files. I have researched about this and found the remote-resources plugin. It seems this is possible, and one must declare the resources like this: configuration resourceBundles resourceBundleorg.apache:apache-jar-resource-bundle:1.0/resourceBundle /resourceBundles /configuration I would like to know if anyone has experience with this plugin. Also, I am worried that I would have to declare the resource version, which could be a pain. Is it possible to declare the snapshot version? Does anyone manage this with another plugin or different approach? Thanks for your help. -- David Ojeda
RE: maven antrun plugin
Try this.. http://maven.apache.org/plugins/maven-antrun-plugin/examples/customTasks .html -Original Message- From: Cristian3210 [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2008 4:18 PM To: users@maven.apache.org Subject: maven antrun plugin Hi, I am struggling for a couple of days to use the maven-antrun-plugin to do some tasks. For start to display something in the console. I run the pom file with the command mvn compile but no results (it compiles correctly the java files and everything but I'm not getting the desired message defined in the compile goal back in the console). Maybe I'm missing something but can't figure it out. We're currently switching the scripts from ant to maven and we discovered that we need some of the ant functionality also in maven scripts. I've checked my repository and the maven-antrun-plugin is there. Thank you very much. Here is my pom.xml code: 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 groupIdmyMavenTest/groupId artifactIdgeneratedWarFile/artifactId packagingwar/packaging version1.0/version namegeneratedWarFile/name url/url dependencies dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.13/version /dependency dependency groupIdantlr/groupId artifactIdantlr/artifactId version2.7.2/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.0/version scopetest/scope /dependency dependency groupIdant/groupId artifactIdant/artifactId version1.6.1/version /dependency /dependencies build pluginManagement plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions execution idcompile/id phasecompile/phase configuration tasks echo message=== / echo message=Test / echo message=== / /tasks /configuration goals goalcompile/goal /goals /execution /executions /plugin /plugins /pluginManagement resources resource directorysrc/main/resources/directory filteringtrue/filtering /resource /resources /build repositories repository idinternal/id nameLocal repository/name url http://my-local-repository:8080/maven2/internal /url /repository /repositories /project -- View this message in context: http://n2.nabble.com/maven-antrun-plugin-tp1583057p1583057.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Remote resources and version
trye the maven-dependency-plugin specifically either the unpack-dependencies or unpack 2008/11/26 David Ojeda [EMAIL PROTECTED] Sorry to bother, but It seems that the remote resources plugin will not fit my needs. What I need is to extract some files from a dependency into the resources of a maven module. Or extract them into the target/classes directory. A more specific example, what would you do if you want N projects to use the same log4j.properties and the same other files (xml schemas). This files are used in the generate-sources phase. Thank you, David On Wednesday 26 November 2008 16:08:50 David Ojeda wrote: Hello, I am looking for an approach or plugin for the following: I have a multi module project, where it is very likely that different modules need the same resources (specifically, xsd files and some configuration files). I do not want to copy each file on every module, so I though that I should have an independent module that includes this files. I have researched about this and found the remote-resources plugin. It seems this is possible, and one must declare the resources like this: configuration resourceBundles resourceBundleorg.apache:apache-jar-resource-bundle:1.0/resourceBundle /resourceBundles /configuration I would like to know if anyone has experience with this plugin. Also, I am worried that I would have to declare the resource version, which could be a pain. Is it possible to declare the snapshot version? Does anyone manage this with another plugin or different approach? Thanks for your help. -- David Ojeda
Re: Remote resources and version
Thank you Stephen, that plugin was the one I was looking for. On Wednesday 26 November 2008 18:36:51 Stephen Connolly wrote: trye the maven-dependency-plugin specifically either the unpack-dependencies or unpack 2008/11/26 David Ojeda [EMAIL PROTECTED] Sorry to bother, but It seems that the remote resources plugin will not fit my needs. What I need is to extract some files from a dependency into the resources of a maven module. Or extract them into the target/classes directory. A more specific example, what would you do if you want N projects to use the same log4j.properties and the same other files (xml schemas). This files are used in the generate-sources phase. Thank you, David On Wednesday 26 November 2008 16:08:50 David Ojeda wrote: Hello, I am looking for an approach or plugin for the following: I have a multi module project, where it is very likely that different modules need the same resources (specifically, xsd files and some configuration files). I do not want to copy each file on every module, so I though that I should have an independent module that includes this files. I have researched about this and found the remote-resources plugin. It seems this is possible, and one must declare the resources like this: configuration resourceBundles resourceBundleorg.apache:apache-jar-resource-bundle:1.0/resourceBundle /resourceBundles /configuration I would like to know if anyone has experience with this plugin. Also, I am worried that I would have to declare the resource version, which could be a pain. Is it possible to declare the snapshot version? Does anyone manage this with another plugin or different approach? Thanks for your help. -- David Ojeda -- David Ojeda
archetype-catalog.xml location - archetype:crawl versus archetype:generate
Hi, I've just started working with our own archetypes, so very possible that I am missing something here: 1) We created a new archetype and mvn install -ed it to local. 2) Went to ~/.m2 (on Windows) and ran mvn archetype:crawl. This created archetype-catalog.xml in the sub-directory repository. 3) Ran mvn archetype:generate -DarchetypeCatalog=local, but could not locate the archetype. 4) Noticed that the documenation herehttp://maven.apache.org/plugins/maven-archetype-plugin/generate-mojo.html#archetypeCatalogsuggests that -DarchetypeCatalog=local is a synonym for file://~/.m2/archetype-catalog.xml (i.e. not file://~/.m2/*repository*/archetype-catalog.xml . 5) Moved archetype-catalog.xml up one folder and everything is fine - archetype:generate finds the catalog. So do archetype:crawl and archetype:generate have different expectations on where archetype-catalog.xml should live, and is this expected? Thanks Brett
maven2 : getting error in executing weblogic clientgen , pls help
Hi, My task is to execute clientgen in weblogic. 1) Following 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 groupIdcom.prof.managedirectdebit/groupId artifactIdeim-manage-direct-debit/artifactId packagingjar/packaging version1.0/version nameeIM Transport - webservice/name urlhttp://172.21.176.158:7009//url dependencies dependency groupIdweblogic/groupId artifactIdweblogic/artifactId version9.0/version scopecompile/scope /dependency dependency groupIdweblogic/groupId artifactIdwebservices/artifactId version9.0/version scopecompile/scope /dependency dependency groupIdorg.springframework/groupId artifactIdspring/artifactId version1.0/version scopecompile/scope /dependency /dependencies build resources resource directorysrc/main/wsdl/directory includes include*.wsdl/include /includes /resource /resources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdweblogic-maven-plugin/artifactId version2.9.1/version executions execution phasegenerate-sources/phase configuration !-- inputWSDLsrc/main/wsdl/*.wsdl/inputWSDL -- outputDir${project.build.directory}/generated-sources/outputDir packageNamecom.prof.managedirectdebit/packageName serviceNameTestWS_service/serviceName /configuration goals goalclientgen/goal /goals /execution /executions /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-clean-plugin/artifactId version2.2/version executions execution idauto-clean/id phasevalidate/phase goals goalclean/goal /goals /execution /executions /plugin /plugins /build /project 2) please find my wsdl file attached here. http://www.nabble.com/file/p20713598/TestWs.wsdl TestWs.wsdl 3) while executing mvn compile , i am getting following error. [INFO] [weblogic:clientgen {execution: default}] [INFO] Weblogic client gen beginning Nov 27, 2008 10:31:29 AM GMT+05:30 Info WebService BEA-220094 An IOExce ption was thrown trying to access the WSDL at the given URL. Nov 27, 2008 10:31:29 AM GMT+05:30 Info WebService BEA-220034 (HttpClient.java:233) at sun.net.www.http.HttpClient.New(HttpClient.java:306) at sun.net.www.http.HttpClient.New(HttpClient.java:323) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC onnection.java:788) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne ction.java:729) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection .java:654) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon nection.java:977) at weblogic.webservice.wsdl.DefinitionFactory.createDefinition(Definitio nFactory.java:120) at weblogic.webservice.tools.build.internal.ClientGenImpl.doClientGenFro mWsdl(ClientGenImpl.java:397) at weblogic.webservice.tools.build.internal.ClientGenImpl.run(ClientGenI mpl.java:341) at weblogic.webservice.tools.clientgen.ClientGen.generateClientJar(Clien tGen.java:309) at org.codehaus.mojo.weblogic.ClientGenMojo.execute(ClientGenMojo.java:1 32) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:539)
Re: How to version modules when using different parents per module
Brett, We thought about adding the version numbers to a master pom but this would cause trouble if we start branching. I guess we will have to move away from our project type specific poms to a single master pom and then we can use the moude-build pom to define the versions. Thanks Stefan Brett Porter wrote: No, there is only single inheritance, so you can't have different inheritance and a central location, unless there is a common ancestor somewhere. The setup you describe sounds rather confusing - Maven inheritance differs from the object oriented concept in that it is largely structural rather than typed. Can you have the types share a single ancestor so the module build and the inheritance hierarchy line up? Cheers, Brett On 25/11/2008, at 8:10 AM, Stefan Fritz wrote: Hi all, We have multiple projects which should be built using a module build. Each project is of a different type and therefore has a different parent pom (not the module build pom!). Now my problem is that I want to maintain the version at a central place. The only solution I could think of is to have one master pom where I define the module versions as properties in this pom. As we will have many module builds this although will lead to a chaos when branching multiple module builds. Is there a way to have: - projects built via a module build - a central place for maintaining the modules version - different parents per project in my module build ? Thanks Stefan -- Brett Porter [EMAIL PROTECTED] http://blogs.exist.com/bporter/ - 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: archetype-catalog.xml location - archetype:crawl versus archetype:generate
This problem is known. http://jira.codehaus.org/browse/ARCHETYPE-142 the crawl goal is intended to create a catalog for a remote repository (but called in the fs of that repository) the local catalog is intended to be updated : by hand or by the create-from-project goal. This is why the locations are different. Please note that the crawl goal can be configured to create a catalog in another directory from where it search. Hope this helps. Raphaël 2008/11/27 Brett Randall [EMAIL PROTECTED]: Hi, I've just started working with our own archetypes, so very possible that I am missing something here: 1) We created a new archetype and mvn install -ed it to local. 2) Went to ~/.m2 (on Windows) and ran mvn archetype:crawl. This created archetype-catalog.xml in the sub-directory repository. 3) Ran mvn archetype:generate -DarchetypeCatalog=local, but could not locate the archetype. 4) Noticed that the documenation herehttp://maven.apache.org/plugins/maven-archetype-plugin/generate-mojo.html#archetypeCatalogsuggests that -DarchetypeCatalog=local is a synonym for file://~/.m2/archetype-catalog.xml (i.e. not file://~/.m2/*repository*/archetype-catalog.xml . 5) Moved archetype-catalog.xml up one folder and everything is fine - archetype:generate finds the catalog. So do archetype:crawl and archetype:generate have different expectations on where archetype-catalog.xml should live, and is this expected? Thanks Brett
Re: Problems with jar signing
[INFO] [jar:sign {execution: jar-classes}] [DEBUG] Not executing jar:sign as the project is not a Java module What packaging is defined in the module's pom file? Wayne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with jar signing
Project packaging is zip So, zip it is :) Wayne Fay wrote: [INFO] [jar:sign {execution: jar-classes}] [DEBUG] Not executing jar:sign as the project is not a Java module What packaging is defined in the module's pom file? Wayne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problems-with-jar-signing-tp20705582p20714740.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]