Re: Converting AppFuse to a Maven 2 Project
Hi Matt, We have worked on some ideas here http://saturnism.wordpress.com/2006/06/16/prototype/ . We can post the code fairly easily to somehwere. I think there were talks about a war plugin that are able to make copies of another war project into the current? But to include lots of common files (dojo javascripts in our case) was a pain w/ how maven2 archetype works. Currently we serve it from a resource servlet that serves those from the classpath (i.e. a single jar dependecy). ray, On 7/18/06, Matt Raible <[EMAIL PROTECTED]> wrote: Hello all, I'm starting to convert AppFuse to be a Maven 2 project, and (hopefully) use Maven 2's archetype system to allow users to create new projects. Initially, I'm thinking of a directory structure that contains many different modules, maybe something like this: hibernate ibatis core (services and common dao/web/model classes, could also be named service) jsf tapestry struts-1 struts-2 springmvc (or spring-mvc) I'm also open to allowing the dao and web tiers to be nested, so they can be built and tested together: data hibernate ibatis core web jsf tapestry etc. Which is a better way to structure things in our source control repository? For the end user, hopefully it won't matter because they'll only have a few AppFuse dependencies in their pom.xml (i.e. appfuse-hibernate + appfuse-struts). We can hopefully prompt them for a multi-module project or a single-module project, and create the directory structure appropriately. Currently, AppFuse uses Ant to "install" the various modules. This is a pain because it requires parsing and replacing XML. The good thing about it is it reduces duplication. With Maven and separate modules, it seems like duplication might be a necessary evil. For example, there are many common CSS/JavaScript files between the web framework implementations. There's no way to copy these into each option's WAR at build-time is there? The easiest way to solve this might be svn:externals AFAIK. Thanks, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Converting AppFuse to a Maven 2 Project
Hello all, I'm starting to convert AppFuse to be a Maven 2 project, and (hopefully) use Maven 2's archetype system to allow users to create new projects. Initially, I'm thinking of a directory structure that contains many different modules, maybe something like this: hibernate ibatis core (services and common dao/web/model classes, could also be named service) jsf tapestry struts-1 struts-2 springmvc (or spring-mvc) I'm also open to allowing the dao and web tiers to be nested, so they can be built and tested together: data hibernate ibatis core web jsf tapestry etc. Which is a better way to structure things in our source control repository? For the end user, hopefully it won't matter because they'll only have a few AppFuse dependencies in their pom.xml (i.e. appfuse-hibernate + appfuse-struts). We can hopefully prompt them for a multi-module project or a single-module project, and create the directory structure appropriately. Currently, AppFuse uses Ant to "install" the various modules. This is a pain because it requires parsing and replacing XML. The good thing about it is it reduces duplication. With Maven and separate modules, it seems like duplication might be a necessary evil. For example, there are many common CSS/JavaScript files between the web framework implementations. There's no way to copy these into each option's WAR at build-time is there? The easiest way to solve this might be svn:externals AFAIK. Thanks, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Surefire reporting in html
Actually, with a bit of configuration of the surefire plugins, I seem to be able to do this. I simply change the output of the tests to all point to the same folder in the parent directory, then the reporting plugin looks there. Looks ok to me, is there anything wrong with this approach? -Original Message- From: Mike Perham [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 5:13 PM To: Maven Users List Subject: RE: Surefire reporting in html Report aggregation is hit and miss currently. Javadoc, javancss and clover for instance have home-grown aggregation support but there is no standard way to do it. For most reporting plugins, the answer is no. -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 3:58 PM To: Maven Users List Subject: RE: Surefire reporting in html Better yet - is there a way to condense all the reports into one comprehensive page (instead of each module having its own page)? -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 4:44 PM To: Maven Users List Subject: RE: Surefire reporting in html Where is the configuration page for the surefire plugin? (not the surefire reporting plugin) -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 3:52 PM To: Maven Users List Subject: RE: Surefire reporting in html Actually at the bottom of the mvn 2 output, I see this: [WARNING] Unable to locate Test Source XRef to link to - DISABLED Anything in the reporting docs say everything is optional: http://maven.apache.org/plugins/maven-surefire-report-plugin/report-mojo .html What am I doing wrong? -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 3:49 PM To: Maven Users List Subject: Surefire reporting in html So I've configured my maven-surefire-report-plugin but I can't seem to get any html output. What lifecycle goal is this plugin associated with? How do I get html? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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]
Parameterizing version
I am trying to run an install goal with a version parameter on the command line. Maven (version 2) applies the version parameter to the JAR created in the build directory but changes it to the value of version in the POM. I've tried removing the version tag from the POM but then Maven fails. See the console output & POM.xml below. Regards, Tom Harris C:\mvnbook\my-app>mvn install -Dversion=rel_1_1 [INFO] Scanning for projects... [INFO] - --- [INFO] Building Maven Quick Start Archetype [INFO]task-segment: [install] [INFO] - --- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test] [INFO] Setting reports dir: C:\mvnbook\my-app\target/surefire-reports --- T E S T S --- [surefire] Running com.mycompany.app.AppTest [surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.031 sec [INFO] [jar:jar] [INFO] Building jar: C:\mvnbook\my-app\target\my-app-rel_1_1.jar [INFO] [install:install] [INFO] Installing C:\mvnbook\my-app\target\my-app-rel_1_1.jar to C:\Documents an d Settings\E64817\.m2\repository\com\mycompany\app\my-app\1.0-SNAPSHOT\my-app-1. 0-SNAPSHOT.jar [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Wed Jul 19 14:24:48 EST 2006 [INFO] Final Memory: 3M/7M [INFO] 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";> 4.0.0 com.mycompany.app my-app 1.0-SNAPSHOT jar Maven Quick Start Archetype http://maven.apache.org junit junit 3.8.1 test ** * IMPORTANT INFORMATION* This document should be read only by those persons to whom it is addressed and its content is not intended for use by any other persons. If you have received this message in error, please notify us immediately. Please also destroy and delete the message from your computer. Any unauthorised form of reproduction of this message is strictly prohibited. St George Bank Limited AFSL 240997, Advance Asset Management Limited AFSL 240902, St George Life Limited AFSL 240900, ASGARD Capital Management Limited AFSL 240695 and Securitor Financial Group Limited AFSL 240687 is not liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. **
How to use maven2 to start hsqldb ?
Hi, guys I want to write a ant mojo plugin to start hsqldb in server mode, here is the ant script but got java.lang.NoClassDefFoundError: org/hsqldb/Server error. I think ${project.dependencies} is not right. Thanks for any suggestion ! yapex.yin
"provided is invalid" vs "package mypackage does not exist"
Hi, I have a strange problem... My project depends on a JAR (jstl-1.2.jar) file that contains a package (javax.servlet.jsp.jstl.sql). The Jar is beeing downloaded by Maven (as expected). See: Downloading: https://maven-repository.dev.java.net/nonav/repository/javax.servlet.jsp.jstl/jars/jstl-1.2.jar 400K downloaded But... I am getting the message (and a build failure) that the package "javax.servlet.jsp.jstl.sql" does not exist. See: D:\Apache\_current12\core\api\src\main\java\javax\faces\component\UIData.java:[42,34] package javax.servlet.jsp.jstl.sql does not exist which is wrong... the jar is present and contains that package. Also I saw that message: [WARNING] POM for 'javax.servlet:servlet-api:pom:2.5:provided' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. The problem occured not only at my box. Now I don't get completly what's going wrong, that the package does not exist for javac/maven. Is the "provided is invalid" message pointing me to a problem/solution, which I can't see? Attached also the complete stack sniplet (what's the interesting part). Thanks for any hint ;) -Matthias [INFO] Using default encoding to copy filtered resources. Downloading: https://maven-repository.dev.java.net/nonav/repository/javax.servlet.jsp.jstl/poms/jstl-1.2.pom 159b downloaded [WARNING] POM for 'javax.servlet:servlet-api:pom:2.5:provided' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. Downloading: https://maven-repository.dev.java.net/nonav/repository/javax.servlet.jsp.jstl/jars/jstl-1.2.jar 400K downloaded [INFO] [compiler:compile] Compiling 161 source files to D:\Apache\_current12\core\api\target\classes [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure D:\Apache\_current12\core\api\src\main\java\javax\faces\component\UIData.java:[42,34] package javax.servlet.jsp.jstl.sql does not exist -- Matthias Wessendorf further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NPE for Ant plugin example
I attempted to create the hello example outlined here: http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html But, I’m getting the following. See attached pom.xml. Maven 2.0.2. Known issue? [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] [INFO] Trace java.lang.NullPointerException at org.apache.maven.plugin.descriptor.PluginDescriptor.getMojo(PluginDescriptor.java:259) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1524) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor .java:381) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:135) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java: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) [INFO] [INFO] Total time: < 1 second [INFO] Finished at: Tue Jul 18 17:33:39 CDT 2006 [INFO] Final Memory: 1M/4M [INFO] -Chris ___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. 4.0.0 org.myproject.plugins hello-plugin 1.0-SNAPSHOT maven-plugin Hello Plugin org.apache.maven maven-script-ant 2.0.1 maven-plugin-plugin org.apache.maven maven-plugin-tools-ant 2.0.1 hello - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cleaning up Build History
well, you heard the man :) On 7/18/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: It isn't only a "build all" click to do, but it's a two steps workaround. 1- restart continuum (it will reinitialize project state, but not in interface) 2- click on "build all button" After these two steps, all will be ok. Emmanuel Jesse McConnell a écrit : > ya, that is a known problem that is getting fixed in continuum 1.1 > which is under development right now :) > > my understanding is that you can click the build all button and that > ought to reset those builds, at least I saw emmanuel mention that not > too long ago. > > cheers! > jesse > > On 7/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> Greetings: >> >> Continuum 1.0.3, running on FC-4. >> >> I've had a great experience running Continuum for our newer Maven 2 >> builds; however, I've been integrating our existing ant builds into >> Continuum with some difficulty. >> >> The root cause of the difficulty is somewhat outside the scope of this >> list (artifact:deploy hanging the build indefinitely) but the results >> are something I'd like to clean up --- namely, the entries in the build >> history that appear to still be running, so much so that they still >> accumulate time in their duration column. >> >> Is it possible to remove entries from the build history? >> >> Thanks, >> >> -jason >> > > -- jesse mcconnell [EMAIL PROTECTED]
RE: Surefire reporting in html
Report aggregation is hit and miss currently. Javadoc, javancss and clover for instance have home-grown aggregation support but there is no standard way to do it. For most reporting plugins, the answer is no. -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 3:58 PM To: Maven Users List Subject: RE: Surefire reporting in html Better yet - is there a way to condense all the reports into one comprehensive page (instead of each module having its own page)? -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 4:44 PM To: Maven Users List Subject: RE: Surefire reporting in html Where is the configuration page for the surefire plugin? (not the surefire reporting plugin) -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 3:52 PM To: Maven Users List Subject: RE: Surefire reporting in html Actually at the bottom of the mvn 2 output, I see this: [WARNING] Unable to locate Test Source XRef to link to - DISABLED Anything in the reporting docs say everything is optional: http://maven.apache.org/plugins/maven-surefire-report-plugin/report-mojo .html What am I doing wrong? -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 3:49 PM To: Maven Users List Subject: Surefire reporting in html So I've configured my maven-surefire-report-plugin but I can't seem to get any html output. What lifecycle goal is this plugin associated with? How do I get html? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Weblogic Deployment
You have to checkout the Weblogic Maven plugin from the mojo codehaus subversion repository and build and install the plugin manually. Checkout the website at http://mojo.codehaus.org/weblogic-maven-plugin. You can access the SVN at: svn://svn.codehaus.org/mojo/scm/trunk/mojo/mojo-sandbox/weblogic-maven-plugin weblogic-maven-plugin Hope it helps Ralf Pauquette, Bryan wrote: I have a maven 2.0.4 build creating an ear file that I would like to deploy to a weblogic 8.1.x container via a mvn command line. Where do I start? I have tried getting the maven-weblogic-plugin installed but this doesn't seem to be working for me. I have tried the following... mvn install:install-file -Dfile=maven-weblogic-plugin-2.8.0.jar -DgroupId=org.codehaus.mojo -DartifactId=maven-weblogic-plugin -Dversion=2.8.0 -Dpackaging=plugin mvn install:install-file -Dfile=maven-weblogic-plugin-2.8.0.jar -DgroupId=org.codehaus.mojo -DartifactId=maven-weblogic-plugin -Dversion=2.8.0 -Dpackaging=jar These both "succeed" in that I get the message "Build Successful" however When I attempt to use the plugin via adding the plugin into the ear pom.xml Like so org.codehaus.mojo maven-weblogic-plugin myhostname 8081 weblogic ${project.build.outputDirectory}/../${project.artifactId}.${ project.packaging} weblogic ${project.artifactId} nostage opus-frontend-server I get the following What am I doing wrong? [EMAIL PROTECTED]:ear]$ mvn -e -X deploy + Error stacktraces are turned on. Maven version: 2.0.4 [DEBUG] Building Maven user-level plugin registry from: '/opt/app/devtp/bp6048/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/opt/app/devtp/opusbuild/.gnu/maven-2.0.4/conf/plugin-registry.xml' [INFO] Scanning for projects... [DEBUG] Searching for parent-POM: net.cingular.dsc:dsc::1.0 of project: null:dsc-ear:ear:null in relative path: ../pom.xml [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project: null:dsc-ear:ear:null [INFO] [INFO] Building Device Support Center:: Enterprise Application [INFO]task-segment: [deploy] [INFO] [DEBUG] maven-ear-plugin: resolved to version 2.0 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugin-parent::2.0 for project: null:maven-ear-plugin:maven-plugin:2.0 from the repository. [DEBUG] maven-resources-plugin: resolved to version 2.1 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugin-parent::2.0 for project: null:maven-resources-plugin:maven-plugin:2.1 from the repository. [DEBUG] maven-install-plugin: resolved to version 2.0 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugin-parent::2.0 for project: null:maven-install-plugin:maven-plugin:2.0 from the repository. [DEBUG] maven-deploy-plugin: resolved to version 2.0 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugin-parent::2.0 for project: null:maven-deploy-plugin:maven-plugin:2.0 from the repository. [DEBUG] maven-weblogic-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the latest version org.codehaus.mojo:maven-weblogic-plugin:pom:LATEST [DEBUG] Using defaults for missing POM org.codehaus.mojo:maven-weblogic-plugin:pom:LATEST [DEBUG] maven-weblogic-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the release version org.codehaus.mojo:maven-weblogic-plugin:pom:RELEASE [DEBUG] Using defaults for missing POM org.codehaus.mojo:maven-weblogic-plugin:pom:RELEASE [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.codehaus.mojo:maven-weblogic-plugin' does not exist or no valid version could be found [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.codehaus.mojo:maven-weblogic-plugin' does not exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default LifecycleExecutor.java:1281) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycl e(DefaultLifecycleExecutor.java:1216) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMa ppings(DefaultLifecycleExecutor.java:982) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:453) at org.apache.
Re: Eclipse Plugin
> The eclipse plugins create the appropriate configuration files > depending on the package of the project. Just use a "ear" o "ejb" > packaging in your pom and run eclipse:eclipse as usual > I've done exaclty that but I cant deploy my EAR project to an 'eclipse managed server'. Therefore my question. Are there any specific properties required for that kind of projects? Markus Wolf -- __ Markus Wolf Wedeler Landstrasse 63 22559 Hamburg tel: (+49) 40 / 550 083 70 mob: (+49) 177 / 288 48 67 web: http://www.matrixweb.de icq: #109622365 pgp: http://wwwkeys.de.pgp.net __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cleaning up Build History
It isn't only a "build all" click to do, but it's a two steps workaround. 1- restart continuum (it will reinitialize project state, but not in interface) 2- click on "build all button" After these two steps, all will be ok. Emmanuel Jesse McConnell a écrit : ya, that is a known problem that is getting fixed in continuum 1.1 which is under development right now :) my understanding is that you can click the build all button and that ought to reset those builds, at least I saw emmanuel mention that not too long ago. cheers! jesse On 7/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Greetings: Continuum 1.0.3, running on FC-4. I've had a great experience running Continuum for our newer Maven 2 builds; however, I've been integrating our existing ant builds into Continuum with some difficulty. The root cause of the difficulty is somewhat outside the scope of this list (artifact:deploy hanging the build indefinitely) but the results are something I'd like to clean up --- namely, the entries in the build history that appear to still be running, so much so that they still accumulate time in their duration column. Is it possible to remove entries from the build history? Thanks, -jason
Re: application.xml generation.
Apparently Weblogic requires a DOCTYPE header at the top of the application.xml file: http://e-docs.bea.com/wls/docs81/programming/app_xml.html You will either need to create your own application.xml with the proper header and use it instead of the Maven-generated one, or patch the EAR/WAR code to include the DOCTYPE for Weblogic artifacts. Wayne On 7/18/06, Pauquette, Bryan <[EMAIL PROTECTED]> wrote: When I attempt to deploy my mvn 2.04 generated ear into a weblogic container the container throws a deployment exception due to a missing DOCTYPE header in the application.xml that was generated by maven. weblogic.management.DeploymentException: Error while loading descriptors: Error processing file 'META-INF/application.xml'. weblogic.xml.process.XMLProcessingException: XML document does not appear to contain a properly formed DOCTYPE header - with nested exception: [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE header] - with nested exception: [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE header] What could be causing this problem? Here is the application.xml generated by maven 2. http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"; version="1.4"> Device Support Center Device Support Center Enterprise Application dsc-web-1.0.war /web dsc-kiosk-1.0.war /kiosk dsc-ejb-1.0.jar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Surefire reporting in html
Better yet - is there a way to condense all the reports into one comprehensive page (instead of each module having its own page)? -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 4:44 PM To: Maven Users List Subject: RE: Surefire reporting in html Where is the configuration page for the surefire plugin? (not the surefire reporting plugin) -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 3:52 PM To: Maven Users List Subject: RE: Surefire reporting in html Actually at the bottom of the mvn 2 output, I see this: [WARNING] Unable to locate Test Source XRef to link to - DISABLED Anything in the reporting docs say everything is optional: http://maven.apache.org/plugins/maven-surefire-report-plugin/report-mojo .html What am I doing wrong? -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 3:49 PM To: Maven Users List Subject: Surefire reporting in html So I've configured my maven-surefire-report-plugin but I can't seem to get any html output. What lifecycle goal is this plugin associated with? How do I get html? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] version resolution
Is there a guide, document or piece of code that I can look at to determine the precedence of arbitrary version numbers? For example, given an arbitrary artifact with the following possible versions, what would be the order of precedence? "10.0.0", "2.1.10", "1.0.0", "1.1.0", "1.0-alpha-1", "1.0-RC1", "1.1-alpha-1", "1.2.0" -Nathan - CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
application.xml generation.
When I attempt to deploy my mvn 2.04 generated ear into a weblogic container the container throws a deployment exception due to a missing DOCTYPE header in the application.xml that was generated by maven. weblogic.management.DeploymentException: Error while loading descriptors: Error processing file 'META-INF/application.xml'. weblogic.xml.process.XMLProcessingException: XML document does not appear to contain a properly formed DOCTYPE header - with nested exception: [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE header] - with nested exception: [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE header] What could be causing this problem? Here is the application.xml generated by maven 2. http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"; version="1.4"> Device Support Center Device Support Center Enterprise Application dsc-web-1.0.war /web dsc-kiosk-1.0.war /kiosk dsc-ejb-1.0.jar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Surefire reporting in html
Where is the configuration page for the surefire plugin? (not the surefire reporting plugin) -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 3:52 PM To: Maven Users List Subject: RE: Surefire reporting in html Actually at the bottom of the mvn 2 output, I see this: [WARNING] Unable to locate Test Source XRef to link to - DISABLED Anything in the reporting docs say everything is optional: http://maven.apache.org/plugins/maven-surefire-report-plugin/report-mojo .html What am I doing wrong? -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 3:49 PM To: Maven Users List Subject: Surefire reporting in html So I've configured my maven-surefire-report-plugin but I can't seem to get any html output. What lifecycle goal is this plugin associated with? How do I get html? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] How to fix/customize Checkstyle report output?
The checkstyle report produced by the site plugin has some lines that are way to wide, with content I don't care about. How can I go about either wrapping the lines or removing the content entirely? The content in question is the list of options to each checkstyle rule. K.C.
RE: Cleaning up Build History
Thanks for the quick reply. Running a build all didn't get rid of the old "in progress" status builds, but that may simply be because I bounced continuum since the "in progress" build hung. I suppose it's not really a problem, just an aesthetic issue with having a messy build history. -jason -Original Message- From: Jesse McConnell [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 3:48 PM To: continuum-users@maven.apache.org Subject: Re: Cleaning up Build History ya, that is a known problem that is getting fixed in continuum 1.1 which is under development right now :) my understanding is that you can click the build all button and that ought to reset those builds, at least I saw emmanuel mention that not too long ago. cheers! jesse On 7/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Greetings: > > Continuum 1.0.3, running on FC-4. > > I've had a great experience running Continuum for our newer Maven 2 > builds; however, I've been integrating our existing ant builds into > Continuum with some difficulty. > > The root cause of the difficulty is somewhat outside the scope of this > list (artifact:deploy hanging the build indefinitely) but the results > are something I'd like to clean up --- namely, the entries in the build > history that appear to still be running, so much so that they still > accumulate time in their duration column. > > Is it possible to remove entries from the build history? > > Thanks, > > -jason > -- jesse mcconnell [EMAIL PROTECTED]
RE: Surefire reporting in html
Actually at the bottom of the mvn 2 output, I see this: [WARNING] Unable to locate Test Source XRef to link to - DISABLED Anything in the reporting docs say everything is optional: http://maven.apache.org/plugins/maven-surefire-report-plugin/report-mojo .html What am I doing wrong? -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 3:49 PM To: Maven Users List Subject: Surefire reporting in html So I've configured my maven-surefire-report-plugin but I can't seem to get any html output. What lifecycle goal is this plugin associated with? How do I get html? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cleaning up Build History
ya, that is a known problem that is getting fixed in continuum 1.1 which is under development right now :) my understanding is that you can click the build all button and that ought to reset those builds, at least I saw emmanuel mention that not too long ago. cheers! jesse On 7/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Greetings: Continuum 1.0.3, running on FC-4. I've had a great experience running Continuum for our newer Maven 2 builds; however, I've been integrating our existing ant builds into Continuum with some difficulty. The root cause of the difficulty is somewhat outside the scope of this list (artifact:deploy hanging the build indefinitely) but the results are something I'd like to clean up --- namely, the entries in the build history that appear to still be running, so much so that they still accumulate time in their duration column. Is it possible to remove entries from the build history? Thanks, -jason -- jesse mcconnell [EMAIL PROTECTED]
Surefire reporting in html
So I've configured my maven-surefire-report-plugin but I can't seem to get any html output. What lifecycle goal is this plugin associated with? How do I get html?
ant task artifact:deploy hanging ant builds.
Greetings: Maven 2.0.4, Ant 1.6.5, Windows XP (also occurs on RH FC-4) I've integrated a number of our existing Ant builds with the maven dependency resolution mechanism. They are drawing their dependencies from our proxy repository without difficulty. I'm having trouble with the deployment of artifacts. The artifact:deploy target is using scp via wagon-ssh 1.0-alpha-6. The problem is that the artifact:deploy task is intermittently hanging the entire build, leaving it in limbo indefinitely. Here is my ant target that calls the maven task. Any thoughts? -jason - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cleaning up Build History
Greetings: Continuum 1.0.3, running on FC-4. I've had a great experience running Continuum for our newer Maven 2 builds; however, I've been integrating our existing ant builds into Continuum with some difficulty. The root cause of the difficulty is somewhat outside the scope of this list (artifact:deploy hanging the build indefinitely) but the results are something I'd like to clean up --- namely, the entries in the build history that appear to still be running, so much so that they still accumulate time in their duration column. Is it possible to remove entries from the build history? Thanks, -jason
Re: Eclipse Plugin
The eclipse plugins create the appropriate configuration files depending on the package of the project. Just use a "ear" o "ejb" packaging in your pom and run eclipse:eclipse as usual fabrizio On 7/18/06, Markus Wolf <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I want to know if the eclipse plugin is not only capable of creating WTP project files but also the different J2EE projects like EJB, EAR and the well? Anyone know how to create these? Thanks Markus Wolf - -- > > emedia-solutions wolf > Wedeler Landstrasse 63 > 22559 Hamburg > (040) 550 083 70 > >> web: http://www.emedia-solutions-wolf.de >> mail: [EMAIL PROTECTED] >> pgp: http://wwwkeys.de.pgp.net > -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEvTP6eyJE91ndMG4RAk5nAJ44mpzwkaH3TTJR8PPhYjGcJhtMlQCeK5gK syDDWfvNMMahAtPmpEWx/2k= =8YU2 -END PGP SIGNATURE- - 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]
Eclipse Plugin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I want to know if the eclipse plugin is not only capable of creating WTP project files but also the different J2EE projects like EJB, EAR and the well? Anyone know how to create these? Thanks Markus Wolf - -- > > emedia-solutions wolf > Wedeler Landstrasse 63 > 22559 Hamburg > (040) 550 083 70 > >> web: http://www.emedia-solutions-wolf.de >> mail: [EMAIL PROTECTED] >> pgp: http://wwwkeys.de.pgp.net > -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEvTP6eyJE91ndMG4RAk5nAJ44mpzwkaH3TTJR8PPhYjGcJhtMlQCeK5gK syDDWfvNMMahAtPmpEWx/2k= =8YU2 -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Weblogic Deployment
delete /org/codehaus/mojo/maven-weblogic-plugin from your local repository and run your mvn command again. i don't know why, but if there's a pom in that directory but no jar file, maven doesn't go to the remote repo again. it just fails. deleting the local directory has always solved this problem for me in the past. -- View this message in context: http://www.nabble.com/Weblogic-Deployment-tf1962398.html#a5384533 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Weblogic Deployment
I have a maven 2.0.4 build creating an ear file that I would like to deploy to a weblogic 8.1.x container via a mvn command line. Where do I start? I have tried getting the maven-weblogic-plugin installed but this doesn't seem to be working for me. I have tried the following... mvn install:install-file -Dfile=maven-weblogic-plugin-2.8.0.jar -DgroupId=org.codehaus.mojo -DartifactId=maven-weblogic-plugin -Dversion=2.8.0 -Dpackaging=plugin mvn install:install-file -Dfile=maven-weblogic-plugin-2.8.0.jar -DgroupId=org.codehaus.mojo -DartifactId=maven-weblogic-plugin -Dversion=2.8.0 -Dpackaging=jar These both "succeed" in that I get the message "Build Successful" however When I attempt to use the plugin via adding the plugin into the ear pom.xml Like so org.codehaus.mojo maven-weblogic-plugin myhostname 8081 weblogic ${project.build.outputDirectory}/../${project.artifactId}.${ project.packaging} weblogic ${project.artifactId} nostage opus-frontend-server I get the following What am I doing wrong? [EMAIL PROTECTED]:ear]$ mvn -e -X deploy + Error stacktraces are turned on. Maven version: 2.0.4 [DEBUG] Building Maven user-level plugin registry from: '/opt/app/devtp/bp6048/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/opt/app/devtp/opusbuild/.gnu/maven-2.0.4/conf/plugin-registry.xml' [INFO] Scanning for projects... [DEBUG] Searching for parent-POM: net.cingular.dsc:dsc::1.0 of project: null:dsc-ear:ear:null in relative path: ../pom.xml [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project: null:dsc-ear:ear:null [INFO] [INFO] Building Device Support Center:: Enterprise Application [INFO]task-segment: [deploy] [INFO] [DEBUG] maven-ear-plugin: resolved to version 2.0 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugin-parent::2.0 for project: null:maven-ear-plugin:maven-plugin:2.0 from the repository. [DEBUG] maven-resources-plugin: resolved to version 2.1 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugin-parent::2.0 for project: null:maven-resources-plugin:maven-plugin:2.1 from the repository. [DEBUG] maven-install-plugin: resolved to version 2.0 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugin-parent::2.0 for project: null:maven-install-plugin:maven-plugin:2.0 from the repository. [DEBUG] maven-deploy-plugin: resolved to version 2.0 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugin-parent::2.0 for project: null:maven-deploy-plugin:maven-plugin:2.0 from the repository. [DEBUG] maven-weblogic-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the latest version org.codehaus.mojo:maven-weblogic-plugin:pom:LATEST [DEBUG] Using defaults for missing POM org.codehaus.mojo:maven-weblogic-plugin:pom:LATEST [DEBUG] maven-weblogic-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the release version org.codehaus.mojo:maven-weblogic-plugin:pom:RELEASE [DEBUG] Using defaults for missing POM org.codehaus.mojo:maven-weblogic-plugin:pom:RELEASE [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.codehaus.mojo:maven-weblogic-plugin' does not exist or no valid version could be found [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.codehaus.mojo:maven-weblogic-plugin' does not exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default LifecycleExecutor.java:1281) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycl e(DefaultLifecycleExecutor.java:1216) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMa ppings(DefaultLifecycleExecutor.java:982) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:453) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.jav
RE: [m2] dependencyManagement question ?
There is a related JIRA ... http://jira.codehaus.org/browse/MNG-1577 Feel free to vote for it. Ruel Loehr JBoss QA -Original Message- From: David Smiley [mailto:[EMAIL PROTECTED] Sent: Monday, July 17, 2006 10:50 AM To: users@maven.apache.org Subject: Re: [m2] dependencyManagement question ? Is there a reason why versions specified in dependencyManagement only apply to dependencies which don't have a version specified? In other words... why not have it specify the dependency regardless of whatever is specified in some child pom? The use case here is for 3rd party pom's transitively brought in like cglib for example. Hibernate depends on cglib... and so does SpringFramework's AOP stuff. I'd like to specify at the top level of my project which version I want chosen without having to introduce a hard dependency via directly since my project does not directly use cglib. -- View this message in context: http://www.nabble.com/-m2--dependencyManagement-question---tf864496.html#a5363288 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.1/389 - Release Date: 7/14/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.1/390 - Release Date: 7/17/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding java files in war
On 7/18/06, Mike Perham <[EMAIL PROTECTED]> wrote: Try using in the war config. Thanx.Had that already but I think my mistake was also having this JavaSource za/**/*.java *.properties in my pom.Thanks resources> JavaSource za/**/*.java *.properties The java source files are located in "JavaSource/za/mycompany/portal ." Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - 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] -- Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Excluding java files in war
Try using in the war config. -Original Message- From: Jeff Mutonho [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 11:45 AM To: Maven Users List Subject: Excluding java files in war My war file is being created with the source files (i.e java files) in it.I have defined the following in my pom to exclude *.java files , but doesn't seem to be working resources> JavaSource za/**/*.java *.properties The java source files are located in "JavaSource/za/mycompany/portal ." Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - 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: prepare:release failure for flat layout project structure
I guess you stuck http://jira.codehaus.org/browse/MRELEASE-138 release plugin expects child projects are under parent project -D On 7/18/06, Ciprian Duma <[EMAIL PROTECTED]> wrote: I just tried but the result is the same :(. Does the scm url play any role? They look like this: .../:pre_dev/maven-tests/module1 .../:pre_dev/maven-tests/module2 .../:pre_dev/maven-tests/parent On 7/18/06, dan tran <[EMAIL PROTECTED]> wrote: > try to have relative path on your modules > > >org.cd.test >parent >1.0-SNAPSHOT >../parent/pom.xml > > > > > On 7/18/06, Mike Perham <[EMAIL PROTECTED]> wrote: > > > > Certainly looks that way. It looks like a Maven SCM bug. What SCM > > system are you using? > > > > -Original Message- > > From: Ciprian Duma [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, July 18, 2006 5:21 AM > > To: Maven Users List > > Subject: prepare:release failure for flat layout project structure > > > > Hi, > > > > I have flat structure for my projects that looks like this: > > > > parent > > module1 > > module2 > > > > the parent lists the modules > > > > > >../module1 > >../module2 > > > > > > and each module links to the parent > > > > > >org.cd.test > >parent > >1.0-SNAPSHOT > > > > > > and when I run mvn release:prepare, it gives an error when trying to > > commit the poms: > > > > [INFO] Checking in modified POMs... > > [INFO] > > > > [ERROR] BUILD ERROR > > [INFO] > > > > [INFO] An error is occurred in the checkin process: > > D:\workspaces\make-release\module1\pom.xml was not contained in > > D:\workspaces\make-release\parent > > > > Any ideas? Could it be because of the flat layout? > > > > Thanks, > > > > Ciprian > > > > - > > 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: prepare:release failure for flat layout project structure
I just tried but the result is the same :(. Does the scm url play any role? They look like this: .../:pre_dev/maven-tests/module1 .../:pre_dev/maven-tests/module2 .../:pre_dev/maven-tests/parent On 7/18/06, dan tran <[EMAIL PROTECTED]> wrote: try to have relative path on your modules org.cd.test parent 1.0-SNAPSHOT ../parent/pom.xml On 7/18/06, Mike Perham <[EMAIL PROTECTED]> wrote: > > Certainly looks that way. It looks like a Maven SCM bug. What SCM > system are you using? > > -Original Message- > From: Ciprian Duma [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 18, 2006 5:21 AM > To: Maven Users List > Subject: prepare:release failure for flat layout project structure > > Hi, > > I have flat structure for my projects that looks like this: > > parent > module1 > module2 > > the parent lists the modules > > >../module1 >../module2 > > > and each module links to the parent > > >org.cd.test >parent >1.0-SNAPSHOT > > > and when I run mvn release:prepare, it gives an error when trying to > commit the poms: > > [INFO] Checking in modified POMs... > [INFO] > > [ERROR] BUILD ERROR > [INFO] > > [INFO] An error is occurred in the checkin process: > D:\workspaces\make-release\module1\pom.xml was not contained in > D:\workspaces\make-release\parent > > Any ideas? Could it be because of the flat layout? > > Thanks, > > Ciprian > > - > 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: prepare:release failure for flat layout project structure
try to have relative path on your modules org.cd.test parent 1.0-SNAPSHOT ../parent/pom.xml On 7/18/06, Mike Perham <[EMAIL PROTECTED]> wrote: Certainly looks that way. It looks like a Maven SCM bug. What SCM system are you using? -Original Message- From: Ciprian Duma [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 5:21 AM To: Maven Users List Subject: prepare:release failure for flat layout project structure Hi, I have flat structure for my projects that looks like this: parent module1 module2 the parent lists the modules ../module1 ../module2 and each module links to the parent org.cd.test parent 1.0-SNAPSHOT and when I run mvn release:prepare, it gives an error when trying to commit the poms: [INFO] Checking in modified POMs... [INFO] [ERROR] BUILD ERROR [INFO] [INFO] An error is occurred in the checkin process: D:\workspaces\make-release\module1\pom.xml was not contained in D:\workspaces\make-release\parent Any ideas? Could it be because of the flat layout? Thanks, Ciprian - 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: prepare:release failure for flat layout project structure
I use CVS for the test projects. I tried several times with the same result, unfortunatelly when running mvn with trace on, it doesn't give more information. On 7/18/06, Mike Perham <[EMAIL PROTECTED]> wrote: Certainly looks that way. It looks like a Maven SCM bug. What SCM system are you using? -Original Message- From: Ciprian Duma [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 5:21 AM To: Maven Users List Subject: prepare:release failure for flat layout project structure Hi, I have flat structure for my projects that looks like this: parent module1 module2 the parent lists the modules ../module1 ../module2 and each module links to the parent org.cd.test parent 1.0-SNAPSHOT and when I run mvn release:prepare, it gives an error when trying to commit the poms: [INFO] Checking in modified POMs... [INFO] [ERROR] BUILD ERROR [INFO] [INFO] An error is occurred in the checkin process: D:\workspaces\make-release\module1\pom.xml was not contained in D:\workspaces\make-release\parent Any ideas? Could it be because of the flat layout? Thanks, Ciprian - 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]
How to use war:exploded in multi module
Hi All, I have a multi module with single parent as like Parent - SubEjbModule - SubWarModule - Ear Everything works fine for me with this when in ran "mvn -e clean deply" it creates ejb.jar.war and ear no problem. But here if i want to include exploded war into my ear and also the weburi entry into application.xml created by having in ear plugin its not happening / something i'm doing wrong Can anyone help me out to find the problem please!! This is what i have i added war as dependencies in my Ear module then when i ran "mvn -e clean deply" its just adding the war file from repository was SubWarModule.war but i don't want it like this, i just want to add as in exploded format like SubWarModule directory Thanks, Raghurajan Gurunathan
Excluding java files in war
My war file is being created with the source files (i.e java files) in it.I have defined the following in my pom to exclude *.java files , but doesn't seem to be working resources> JavaSource za/**/*.java *.properties The java source files are located in "JavaSource/za/mycompany/portal ." Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: prepare:release failure for flat layout project structure
Certainly looks that way. It looks like a Maven SCM bug. What SCM system are you using? -Original Message- From: Ciprian Duma [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 5:21 AM To: Maven Users List Subject: prepare:release failure for flat layout project structure Hi, I have flat structure for my projects that looks like this: parent module1 module2 the parent lists the modules ../module1 ../module2 and each module links to the parent org.cd.test parent 1.0-SNAPSHOT and when I run mvn release:prepare, it gives an error when trying to commit the poms: [INFO] Checking in modified POMs... [INFO] [ERROR] BUILD ERROR [INFO] [INFO] An error is occurred in the checkin process: D:\workspaces\make-release\module1\pom.xml was not contained in D:\workspaces\make-release\parent Any ideas? Could it be because of the flat layout? Thanks, Ciprian - 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: archetypes
On 7/18/06, Laurent GRANIE <[EMAIL PROTECTED]> wrote: I want to generate the structure of a plexus component. There is an archetype : E. Venisse deploy it on http://snapshots.repository.codehaus.org. You can use -DremoteRepositories on the command line to tell it where to look. * http://maven.apache.org/plugins/maven-archetype-plugin/create-mojo.html -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
archetypes
Hi, I want to generate the structure of a plexus component. There is an archetype : E. Venisse deploy it on http://snapshots.repository.codehaus.org. How do I configure my maven2 settings to search on central and on this particular repository? Does archetype work with profiles settings? Why not? Laurent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M1] EJB Plugin 1.6 vs 1.7.2 - does not compile java files
Did you set the maven.ejb.client.generate variable? If yes, you should probably file a JIRA issue (preferably with reproducible test case attached). -Lukas Benoit Xhenseval wrote: Hello I'm upgrading to maven 1.1 (steady step towards m2... when I'll have time!) I noticed that the ejb goal has changed but if I use ejb:ejb and ejb:install as part of my goal, the java classes do not seem to be generated. This is different from the ejb plugin 1.6 where I was using the following goal, which would create the CLASS files: ... What should I do now? shouldn't the ejb:ejb goal detect the java files under src/java and compile them? Any suggestion welcome. Thanks Benoit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m1] how to set testmatchpattern from maven.xml
Did you try HTH, -Lukas Nicolas De Loof wrote: Hello, I'd like to run some tests in my multiproject maven.xml (thos tests will run on my continuum server) I've setup a goal in my parent maven.xml that uses reactor to execute test:match : I don't find a way to set testmatchpattern : property="testmatchpattern" .. Neither has the expected effect : I allways get "You must define the test case to run via -Dtestmatchpattern=pattern" Does anyone know a solution for this ? Nico. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
profile inheritance problem
i have a multi-module project that looks like this: -- parent |-- profiles.xml |-- pom.xml |-- childProjectJar |--profiles.xml |--pom.xml |-- childProjectEjb |-- profiles.xml |-- pom.xml one profile is defined in parent/profiles.xml, and environment specific (dev, test, uat) profiles are defined in childProjectJar/profiles.xml and childProjectEjb/profiles.xml. when i run mvn install from ./parent, childProjectEjb fails because i reference a property defined by a profile in ./parent/profiles.xml. however, when i build from childProjectEjb, it picks up that profile's value without problem and builds cleanly. am i using profile inheritance incorrectly? is there a better way to do this? -- View this message in context: http://www.nabble.com/profile-inheritance-problem-tf1961199.html#a5380353 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOLVED Re: [M2] Difference between 'mvn test' and 'mvn install'
Hi Daniel, I've just started a new thread on the Spring forums. http://forum.springframework.org/showthread.php?t=27048 Regards, Jakub Pawlowicz On Jul 18, 2006, at 4:33 PM, Daniel Serodio wrote: Jakub Pawlowicz wrote: Hi Jörg, I used the -X switch and I found that 'mvn test' uses module's "target/classes" directory where 'mvn install' uses module's jar. And then I discovered, that Spring does not handle wildcard patterns (eg applicationContext*.xml) when looking for contexts packaged in other jars. So I've changed wildcard pattern to the real names and now everything works perfectly well. Thanks for sharing the information, but shouldn't Spring handle wildcard patterns when looking for contexts packaged in other jars? Did you post about this in the Spring forums? Thanks in advance, Daniel Serodio - 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]
html2dox for maven2
I'd like to produce doxygen/javadoc pages for my site and I'd like them to be in the same style as what "mvn site" generates. Given that I'm new to maven2, is there an equivalent to html2dox? - Yahoo! Music Unlimited - Access over 1 million songs.Try it free.
Re: war including excluded transitive jars
Oh... I figured out a clue to the problem. I've been using jetty (6.0.0rc0) to test out my webapp. Jetty only loads the jars I want into its webapp classloader. I found out that the jars that were getting into the generated war at war:war were jetty's dependencies! So by having the jetty plugin, it sort of surreptitiously put jars into my dependencies. I didn't know a plugin could do that unless I invoked it. I'll raise this with them... but can a maven expert say wether this is potentially a maven bug... since I'd never expect a plugin's jars to end up in my war. -- View this message in context: http://www.nabble.com/war-including-excluded-transitive-jars-tf1960799.html#a5379305 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOLVED Re: [M2] Difference between 'mvn test' and 'mvn install'
Jakub Pawlowicz wrote: > Hi Jörg, > > I used the -X switch and I found that 'mvn test' uses module's > "target/classes" directory where 'mvn install' uses module's jar. > And then I discovered, that Spring does not handle wildcard patterns > (eg applicationContext*.xml) when looking for contexts packaged in > other jars. > So I've changed wildcard pattern to the real names and now everything > works perfectly well. Thanks for sharing the information, but shouldn't Spring handle wildcard patterns when looking for contexts packaged in other jars? Did you post about this in the Spring forums? Thanks in advance, Daniel Serodio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
war including excluded transitive jars
I'm experiencing something that obviously shouldn't be happening but I can't figure out why. I realized my war was getting loaded up with all sorts of jars that shouldn't be there. Even Ant! To debug maven, I know to use "-X" and so I do that to view the dependency tree get resolved... and my exclusions were effective since that part of the output did not show any output at all for jars I explicitly excluded. Then... when the war is being packed, I see: [DEBUG] adding entry WEB-INF/lib/commons-logging-1.1.jar and many other jars. The only occurrence of "common-logging" in the output of "mvn -X package" is right there. Am I missing something? -- View this message in context: http://www.nabble.com/war-including-excluded-transitive-jars-tf1960799.html#a5379154 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOLVED Re: [M2] Difference between 'mvn test' and 'mvn install'
Hi Jörg, I used the -X switch and I found that 'mvn test' uses module's "target/classes" directory where 'mvn install' uses module's jar. And then I discovered, that Spring does not handle wildcard patterns (eg applicationContext*.xml) when looking for contexts packaged in other jars. So I've changed wildcard pattern to the real names and now everything works perfectly well. Thanks for your help! Best regards, Jakub Pawlowicz On Jul 18, 2006, at 9:17 AM, Jörg Schaible wrote: Jakub Pawlowicz wrote on Monday, July 17, 2006 8:06 PM: Hi Jörg, Unfortunately this does not work for me, probably, because all my modules have the same version. I've installed maven-project-plugin snapshot version and my tests fail in the same place as before. Then start with -X and look if you find a difference in the classpath used to start the tests ... - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sample project using M2/EJB3/TestNG for using jboss embeddable container
Marco Mistroni wrote: hi darren, there are problems with surefire-2.0.. i have mailed testng mailiing lists.. if you run maven -x with both surefire-2.2 and surefire-2.0 you'llnoticd that with 2.2 there are plenty of jars being loaded in jboss, while with 2.0there areonly 3.. that was as far as i debugged.. i m pretty busy @ work at the moment hth marco On 6/27/06, Srepfler Srgjan <[EMAIL PROTECTED]> wrote: Darren Hartford wrote: > Tested with alpha 8, no problems. Although, still need to use the > SUREFIRE-2.2-SNAPSHOT plugin. > -D > But the set of files are completely different, what is the list we can cut/replace? Srgjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Hi marco, Is there any progress on updating the example to use latest libs and containers? Srgjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Identifying versions of jar files
Right, I didn't think of that. That would assuredly work, but I don't know if it's automated. -jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 9:42 AM To: users@maven.apache.org Subject: RE: Identifying versions of jar files I seem to recall a recent Maven User group I attended in london talking about MD5 checksums. Can't remember if this was a feature that was going to be exposed with upcoming repository manager. A -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 18 July 2006 14:40 To: users@maven.apache.org Subject: RE: Identifying versions of jar files Andy: Sadly, if the author doesn't put the API version in the jar's manifest file or it's not built into the name of the jar itself you're not going to have a good chance at discerning the version. Your mileage may vary; however, these are generally the only two ways of which I'm aware. -jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 9:33 AM To: users@maven.apache.org Subject: Identifying versions of jar files Hi, Can anyone tell me how to accurately identify the version of a particular jar file ? I have been provided with a number of jars and need to place them in to a maven 2 repo, but want to ensure I get the correct version number. TIA Andy Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Identifying versions of jar files
[EMAIL PROTECTED] wrote on Tuesday, July 18, 2006 3:40 PM: > Andy: > > > > Sadly, if the author doesn't put the API version in the jar's manifest > file or it's not built into the name of the jar itself you're > not going > to have a good chance at discerning the version. Your > mileage may vary; > however, these are generally the only two ways of which I'm aware. In this case it is good practice to use the timestamp of the manifest file inside the jar for the versioning: xyz-MMDD.HHMMSS.jar So it is like a fixed SNAPSHOT and you don't have to fear a version clash once the author provides a proper manifste (one with a specification/impl version). - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Identifying versions of jar files
I seem to recall a recent Maven User group I attended in london talking about MD5 checksums. Can't remember if this was a feature that was going to be exposed with upcoming repository manager. A -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 18 July 2006 14:40 To: users@maven.apache.org Subject: RE: Identifying versions of jar files Andy: Sadly, if the author doesn't put the API version in the jar's manifest file or it's not built into the name of the jar itself you're not going to have a good chance at discerning the version. Your mileage may vary; however, these are generally the only two ways of which I'm aware. -jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 9:33 AM To: users@maven.apache.org Subject: Identifying versions of jar files Hi, Can anyone tell me how to accurately identify the version of a particular jar file ? I have been provided with a number of jars and need to place them in to a maven 2 repo, but want to ensure I get the correct version number. TIA Andy Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Identifying versions of jar files
Andy: Sadly, if the author doesn't put the API version in the jar's manifest file or it's not built into the name of the jar itself you're not going to have a good chance at discerning the version. Your mileage may vary; however, these are generally the only two ways of which I'm aware. -jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 9:33 AM To: users@maven.apache.org Subject: Identifying versions of jar files Hi, Can anyone tell me how to accurately identify the version of a particular jar file ? I have been provided with a number of jars and need to place them in to a maven 2 repo, but want to ensure I get the correct version number. TIA Andy
Identifying versions of jar files
Title: Identifying versions of jar files Hi, Can anyone tell me how to accurately identify the version of a particular jar file ? I have been provided with a number of jars and need to place them in to a maven 2 repo, but want to ensure I get the correct version number. TIA Andy Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2 jasper-reports-plugin
Matt, Since no one has responded...I haven't used this plugin, but it is in the Mojo Sandbox, from which we do use other plugins. The following should help you out with repository access issues: http://mojo.codehaus.org/using-sandbox-plugins.html I don't see a snapshot deployed to the above repository, so you'll propbably have to grab the code from SVN and build locally: https://svn.mojo.codehaus.org/mojo/trunk/mojo/mojo-sandbox/jasperreports-maven-plugin HTH, Doug On 7/17/06, Matt Campbell <[EMAIL PROTECTED]> wrote: Could someone that is currently using this plugin give me some information on setting it up. Were having problems getting the plugin downloaded. What repository are you currently using to download the plugin from? The mojo plugin repository seems to be missing it.
Re: Maven2 documentation.
I would differentiate between building an ear for the purposes of deploying the war for integration testing, and building an ear for distribution / release. The latter I would create a separate project for, whilst the former I would bind to the pre-integration-test phase of the war project (using ear task within antrun plugin). Andy Chapman [EMAIL PROTECTED] om To: users@maven.apache.org cc: 18/07/2006 13:32 Subject: Re: Maven2 documentation. Please respond to users On 7/18/06, Bill Manuel <[EMAIL PROTECTED]> wrote: > Hello all, > > I have used maven 1.0 in the past to manage my builds. I have not used it > in a while and I am trying to get maven 2 working. I am working on web > application and only have one module with is packages as a war. I have that > part working fine, but I am having trouble creating an ear for deployment to > WebSphere. I have tried to find documentation on creating ear files. I > looked at the ear:ear plugin, and I assume that I need to create an ear > project and a pom for it. I am just looking for some general guidelines for > working with JEE projects within maven and eclipse. Anyone have some good > links or reference material I can look at? > > Thanks > Bill Manuel > > BetterBuildsWithMaven Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] PLEASE NOTE: THE ABOVE MESSAGE WAS RECEIVED FROM THE INTERNET. On entering the GSI, this email was scanned for viruses by the Government Secure Intranet (GSi) virus scanning service supplied exclusively by Cable & Wireless in partnership with MessageLabs. In case of problems, please call your organisational IT Helpdesk. The MessageLabs Anti Virus Service is the first managed service to achieve the CSIA Claims Tested Mark (CCTM Certificate Number 2006/04/0007), the UK Government quality mark initiative for information security products and services. For more information about this please visit www.cctmark.gov.uk For the latest data on the economy and society consult National Statistics at http://www.statistics.gov.uk * Please Note: Incoming and outgoing email messages are routinely monitored for compliance with our policy on the use of electronic communications * Legal Disclaimer : Any views expressed by the sender of this message are not necessarily those of the Office for National Statistics * The original of this email was scanned for viruses by Government Secure Intranet (GSi) virus scanning service supplied exclusively by Cable & Wireless in partnership with MessageLabs. On leaving the GSI this email was certified virus free. The MessageLabs Anti Virus Service is the first managed service to achieve the CSIA Claims Tested Mark (CCTM Certificate Number 2006/04/0007), the UK Government quality mark initiative for information security products and services. For more information about this please visit www.cctmark.gov.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing the build number
Pete, Unfortunately, the sourcecode belongs to my employer so I won't be able to send it to you :( However, the Mojo is really simple. What you need to do is to define a member variable of type Artifact (see my previous post) and then you can access the version, etc. by invoking some methods on that object. Mojo is a regular Java class which conforms to some conventions (there are many tutorials on how to write a Mojo - check Maven Website). You don't need to worry about the descriptor as it will be generated automatically. As far as accessing the version from a property file check my previous post - you "may" be able to do it via ${project.artifact.version}. Lukasz -- View this message in context: http://www.nabble.com/Accessing-the-build-number-tf1908562.html#a5378046 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to create variable in pom file?
You can use properties: value1 value2 . - Original Message From: Kapil Gupta(CT) <[EMAIL PROTECTED]> To: users@maven.apache.org Sent: Tuesday, July 18, 2006 2:46:31 PM Subject: How to create variable in pom file? Hi, Is it possible to create an environment variable in a pom file? I want to create a variable in parent pom which can be accessed in child pom files. Thanks & Regards, Kapil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to create variable in pom file?
Hi, Is it possible to create an environment variable in a pom file? I want to create a variable in parent pom which can be accessed in child pom files. Thanks & Regards, Kapil
Re: Maven2 documentation.
Jeff Mutonho a écrit : On 7/18/06, Bill Manuel <[EMAIL PROTECTED]> wrote: Hello all, I have used maven 1.0 in the past to manage my builds. I have not used it in a while and I am trying to get maven 2 working. I am working on web application and only have one module with is packages as a war. I have that part working fine, but I am having trouble creating an ear for deployment to WebSphere. I have tried to find documentation on creating ear files. I looked at the ear:ear plugin, and I assume that I need to create an ear project and a pom for it. I am just looking for some general guidelines for working with JEE projects within maven and eclipse. Anyone have some good links or reference material I can look at? Thanks Bill Manuel BetterBuildsWithMaven http://www.mergere.com/m2book_download.jsp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2 documentation.
On 7/18/06, Bill Manuel <[EMAIL PROTECTED]> wrote: Hello all, I have used maven 1.0 in the past to manage my builds. I have not used it in a while and I am trying to get maven 2 working. I am working on web application and only have one module with is packages as a war. I have that part working fine, but I am having trouble creating an ear for deployment to WebSphere. I have tried to find documentation on creating ear files. I looked at the ear:ear plugin, and I assume that I need to create an ear project and a pom for it. I am just looking for some general guidelines for working with JEE projects within maven and eclipse. Anyone have some good links or reference material I can look at? Thanks Bill Manuel BetterBuildsWithMaven Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven2 documentation.
Hello all, I have used maven 1.0 in the past to manage my builds. I have not used it in a while and I am trying to get maven 2 working. I am working on web application and only have one module with is packages as a war. I have that part working fine, but I am having trouble creating an ear for deployment to WebSphere. I have tried to find documentation on creating ear files. I looked at the ear:ear plugin, and I assume that I need to create an ear project and a pom for it. I am just looking for some general guidelines for working with JEE projects within maven and eclipse. Anyone have some good links or reference material I can look at? Thanks Bill Manuel
Re: [M2] Insert variables in xdoc/apt files
... I've been too fast on the ctrl-enter shortcut, sorry. So, here is what works for me: In the POM: src/site/xdocTemplates generated-site true org.apache.maven.plugins maven-site-plugin ${project.build.outputDirectory}/generated-site It processes the files, then saves them in a tmp directory. The site plugin goes in the tmp directory to take the files and put them in the /target/site directory. This way, the src/site/xdoc directory is empty, and so no conflict (file name clashes) happens. This is surely not a nice way of doing things (by bypassing the src/site/xdoc dir), but it works. Sebastien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Insert variables in xdoc/apt files
I've tried that, and it doesn't seem to work, mainly because the ressource plug-in's tag does directly to the ${project.build.outputDirectory} folder. It might work using ../src/site/xdoc but then it wouldn't work anymore if the target dir is modified. Here is what works for me: POM: Andrew Williams a écrit : why not use src/site/xdoc as the targetPath and use, say src/site/unfiltered-xdoc as the source? That way you do not need to reconfigure the site-plugin... Andy Sebastien Pennec wrote: Alexander, Until now, I've been successful at filtering the values, but no satisfying site is generated yet. I have this in my pom: src/site/xdoc generated-site true When I edit the generated files, the variables have been replaced. For example: asd is translated into: asd Here's the site-plugin config: org.apache.maven.plugins maven-site-plugin /target/classes/generated-site The problem I have now is that, if I tell the site plug-in to use the generated xdocs, it says that file names clash. I guess specifying the xdocDirectory doesn't prevent the plugin to search into the convention-based src/site/xdoc directory... Can you try that and tell me if you have better results? Sebastien Alexander Hars a écrit : Hi, If you are successful at doing that, could you post your solution? Thanks, Alexander Sebastien Pennec wrote: ok, I'll try that. Thanks! Edwin Punzalan a écrit : filtering is the same as processing variables into their values. What I'd do is create a folder where the unfiltered xdocs are placed, and then configure the resources plugin so that it will copy/filter those files to the folder that the assembly expects it to be. Sebastien Pennec wrote: Thanks for you answer, Edwin, I don't really understand what's the common point between filtering files and inserting variables in xdoc files... To make a download page, I can surely make a filter, or just do so that the assembly plug-in copies the zip/tar files directly in the folder that the site will use as a download folder. But if I want my download.xml xdoc file to make a link that automatically stays up to date by adding the right version number to the href, how do I do it? Edwin Punzalan a écrit : You can probably use a filtering plugin like the resource plugin to filter your files before running the site goal. Sebastien Pennec wrote: Hi, I've been battling with xdoc and apt files for some hours now, and looking around on the web, too: I haven't found any example of xdoc/apt file with variable insertions in them. I don't imagine this could _not_ be possible with Maven 2... actually, I don't need anything complicated, just some kind of ${project.version} variable that I could insert in a download link, for example. Even in the Maven svn repository, people use xdoc or apt files without any variables. Is it just impossible, or have I not searched enough? Thanks :) Sebastien - 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] -- Sebastien Pennec [EMAIL PROTECTED] LOGBack: the generic, reliable, fast and flexible logging library for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Insert variables in xdoc/apt files
why not use src/site/xdoc as the targetPath and use, say src/site/unfiltered-xdoc as the source? That way you do not need to reconfigure the site-plugin... Andy Sebastien Pennec wrote: Alexander, Until now, I've been successful at filtering the values, but no satisfying site is generated yet. I have this in my pom: src/site/xdoc generated-site true When I edit the generated files, the variables have been replaced. For example: asd is translated into: asd Here's the site-plugin config: org.apache.maven.plugins maven-site-plugin /target/classes/generated-site The problem I have now is that, if I tell the site plug-in to use the generated xdocs, it says that file names clash. I guess specifying the xdocDirectory doesn't prevent the plugin to search into the convention-based src/site/xdoc directory... Can you try that and tell me if you have better results? Sebastien Alexander Hars a écrit : Hi, If you are successful at doing that, could you post your solution? Thanks, Alexander Sebastien Pennec wrote: ok, I'll try that. Thanks! Edwin Punzalan a écrit : filtering is the same as processing variables into their values. What I'd do is create a folder where the unfiltered xdocs are placed, and then configure the resources plugin so that it will copy/filter those files to the folder that the assembly expects it to be. Sebastien Pennec wrote: Thanks for you answer, Edwin, I don't really understand what's the common point between filtering files and inserting variables in xdoc files... To make a download page, I can surely make a filter, or just do so that the assembly plug-in copies the zip/tar files directly in the folder that the site will use as a download folder. But if I want my download.xml xdoc file to make a link that automatically stays up to date by adding the right version number to the href, how do I do it? Edwin Punzalan a écrit : You can probably use a filtering plugin like the resource plugin to filter your files before running the site goal. Sebastien Pennec wrote: Hi, I've been battling with xdoc and apt files for some hours now, and looking around on the web, too: I haven't found any example of xdoc/apt file with variable insertions in them. I don't imagine this could _not_ be possible with Maven 2... actually, I don't need anything complicated, just some kind of ${project.version} variable that I could insert in a download link, for example. Even in the Maven svn repository, people use xdoc or apt files without any variables. Is it just impossible, or have I not searched enough? Thanks :) Sebastien - 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] Insert variables in xdoc/apt files
Alexander, Until now, I've been successful at filtering the values, but no satisfying site is generated yet. I have this in my pom: src/site/xdoc generated-site true When I edit the generated files, the variables have been replaced. For example: asd is translated into: asd Here's the site-plugin config: org.apache.maven.plugins maven-site-plugin /target/classes/generated-site The problem I have now is that, if I tell the site plug-in to use the generated xdocs, it says that file names clash. I guess specifying the xdocDirectory doesn't prevent the plugin to search into the convention-based src/site/xdoc directory... Can you try that and tell me if you have better results? Sebastien Alexander Hars a écrit : Hi, If you are successful at doing that, could you post your solution? Thanks, Alexander Sebastien Pennec wrote: ok, I'll try that. Thanks! Edwin Punzalan a écrit : filtering is the same as processing variables into their values. What I'd do is create a folder where the unfiltered xdocs are placed, and then configure the resources plugin so that it will copy/filter those files to the folder that the assembly expects it to be. Sebastien Pennec wrote: Thanks for you answer, Edwin, I don't really understand what's the common point between filtering files and inserting variables in xdoc files... To make a download page, I can surely make a filter, or just do so that the assembly plug-in copies the zip/tar files directly in the folder that the site will use as a download folder. But if I want my download.xml xdoc file to make a link that automatically stays up to date by adding the right version number to the href, how do I do it? Edwin Punzalan a écrit : You can probably use a filtering plugin like the resource plugin to filter your files before running the site goal. Sebastien Pennec wrote: Hi, I've been battling with xdoc and apt files for some hours now, and looking around on the web, too: I haven't found any example of xdoc/apt file with variable insertions in them. I don't imagine this could _not_ be possible with Maven 2... actually, I don't need anything complicated, just some kind of ${project.version} variable that I could insert in a download link, for example. Even in the Maven svn repository, people use xdoc or apt files without any variables. Is it just impossible, or have I not searched enough? Thanks :) Sebastien - 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] -- Sebastien Pennec [EMAIL PROTECTED] LOGBack: the generic, reliable, fast and flexible logging library for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing the build number
Hi Luasz, 1) Is there any chance you could send me your mojo source code and descriptor files, I am quite new to MOJOs. 2) Using you MOJO how would you then access this value. I am trying to think of a way of accessing the build timestamp in a filter.properties file e.g. filter.properties ${build.timestamp} Pete On 17/07/06, Lukasz Szelag <[EMAIL PROTECTED]> wrote: I had a similar problem (trying to access the artifact timestamp, which includes the build number). The following is from my Mojo: /** * The project artifact. * * @parameter expression="${project.artifact}" * @required * @readonly */ private Artifact artifact; and then artifact.getVersion(). Perhaps you can do it also from POM via ${project.artifact.version}. -- View this message in context: http://www.nabble.com/Accessing-the-build-number-tf1908562.html#a5361395 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Insert variables in xdoc/apt files
Hi, If you are successful at doing that, could you post your solution? Thanks, Alexander Sebastien Pennec wrote: ok, I'll try that. Thanks! Edwin Punzalan a écrit : filtering is the same as processing variables into their values. What I'd do is create a folder where the unfiltered xdocs are placed, and then configure the resources plugin so that it will copy/filter those files to the folder that the assembly expects it to be. Sebastien Pennec wrote: Thanks for you answer, Edwin, I don't really understand what's the common point between filtering files and inserting variables in xdoc files... To make a download page, I can surely make a filter, or just do so that the assembly plug-in copies the zip/tar files directly in the folder that the site will use as a download folder. But if I want my download.xml xdoc file to make a link that automatically stays up to date by adding the right version number to the href, how do I do it? Edwin Punzalan a écrit : You can probably use a filtering plugin like the resource plugin to filter your files before running the site goal. Sebastien Pennec wrote: Hi, I've been battling with xdoc and apt files for some hours now, and looking around on the web, too: I haven't found any example of xdoc/apt file with variable insertions in them. I don't imagine this could _not_ be possible with Maven 2... actually, I don't need anything complicated, just some kind of ${project.version} variable that I could insert in a download link, for example. Even in the Maven svn repository, people use xdoc or apt files without any variables. Is it just impossible, or have I not searched enough? Thanks :) Sebastien - 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: Please review maven-eclipse-plugin
Hi, I don't have any problem to download it from snapshot repo. Testing the maven-eclipse-snapshot right now. Stéphane. Edwin Punzalan a écrit : Its in SVN: http://svn.apache.org/repos/asf/maven/plugins/trunk/pom.xml Brett said he'd deploy it... not sure if its done already or not yet. But it should be in apache snapshots repo when deployed: http://snapshots.maven.codehaus.org/maven2 MacHershell wrote: Where can I get the org.apache.maven.plugins:maven-plugins:2-SNAPSHOT (on which maven-eclipse-plugin depends)? - 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]
[m1] how to set testmatchpattern from maven.xml
Hello, I'd like to run some tests in my multiproject maven.xml (thos tests will run on my continuum server) I've setup a goal in my parent maven.xml that uses reactor to execute test:match : I don't find a way to set testmatchpattern : property="testmatchpattern" .. Neither has the expected effect : I allways get "You must define the test case to run via -Dtestmatchpattern=pattern" Does anyone know a solution for this ? Nico. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
prepare:release failure for flat layout project structure
Hi, I have flat structure for my projects that looks like this: parent module1 module2 the parent lists the modules ../module1 ../module2 and each module links to the parent org.cd.test parent 1.0-SNAPSHOT and when I run mvn release:prepare, it gives an error when trying to commit the poms: [INFO] Checking in modified POMs... [INFO] [ERROR] BUILD ERROR [INFO] [INFO] An error is occurred in the checkin process: D:\workspaces\make-release\module1\pom.xml was not contained in D:\workspaces\make-release\parent Any ideas? Could it be because of the flat layout? Thanks, Ciprian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please review maven-eclipse-plugin
Its in SVN: http://svn.apache.org/repos/asf/maven/plugins/trunk/pom.xml Brett said he'd deploy it... not sure if its done already or not yet. But it should be in apache snapshots repo when deployed: http://snapshots.maven.codehaus.org/maven2 MacHershell wrote: Where can I get the org.apache.maven.plugins:maven-plugins:2-SNAPSHOT (on which maven-eclipse-plugin depends)? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please review maven-eclipse-plugin
Where can I get the org.apache.maven.plugins:maven-plugins:2-SNAPSHOT (on which maven-eclipse-plugin depends)? -- View this message in context: http://www.nabble.com/Please-review-maven-eclipse-plugin-tf1957911.html#a5374800 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse Plugins
On 7/18/06, Scott Goldstein <[EMAIL PROTECTED]> wrote: On the Maven 2 website, there's information about a Maven plugin which will build an eclipse project from a pom. My question is how this might work for an Eclipse project that is building an Eclipse RCP application. At the moment the maven eclipse plugins only creates an eclipse configuration for jar or j2ee (war, ejb, ear...) projects. Support for plugin projects is coming, and a few related features have just been committed (at this moment this is anyway limited to setting appropriate builders/natures and syncronizing the runtime classpath in the OSGI manifest). I am definitively interested in adding more support for pde and RCP applications. I will try to add new features for this to the maven eclipse plugin soon, if you have any specific requirement or proposal please submit a JIRA issue so that I can track and evaluate it. JIRA is at http://jira.codehaus.org/browse/MECLIPSE , related issues are organized under the "PDE support" component fabrizio I think this comes in two steps: 1. How do you write a pom to build and release an Eclipse RCP application, including using an Eclipse "Product Configuration" to build the final package? 2. How do you then create the Eclipse project from the pom? I searched the archives for this list and saw a few posts about someone starting to work on this effort, but nothing since. Does anyone know if this is currently possible? Does anyone know if work is currently being done in this area? Thanks. Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven book: feedback
"Sebastien Arbogast" <[EMAIL PROTECTED]> writes: >> OTOH there's already open documentation on the Maven wiki and in Maven's >> svn. It's not because it's open that people contribute more or that the >> quality is better... >IMHO, Wiki is too open, SVN is not open enough. A CMS would be a >middle-alternative allowing people to add remarks without modifying >the original content. And only "committers" could decide to synthetize >a few remarks and create a new version of the content. You might want to take a look at the "html documentation with user comments" that MySQL and PHP use very successfully. Best regards Henning -- Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH [EMAIL PROTECTED]+49 9131 50 654 0 http://www.intermeta.de/ RedHat Certified Engineer -- Jakarta Turbine Development -- hero for hire Linux, Java, perl, Solaris -- Consulting, Training, Development Social behaviour: Bavarians can be extremely egalitarian and folksy. -- http://en.wikipedia.org/wiki/Bavaria Most Franconians do not like to be called Bavarians. -- http://en.wikipedia.org/wiki/Franconia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Command line help for a particular goad/lifecycle/plugin using -help or similar?
Hi Joerg, Wow.. think of a feature and its already done. :-). Thanks for the pointer! Tarun On 7/18/06, Jörg Schaible <[EMAIL PROTECTED]> wrote: Tarun Ramakrishna wrote on Tuesday, July 18, 2006 9:31 AM: > Hi all, > > (Maven newbie, so please excuse me) > > I find myself continually referring to the online plugin documentation > for options passed to the standard maven plugins such as the achetype > plugin, etc. It really isn't possible to readily memorize all the > -Doptions passed to a plugin. > > Is there a way to get command line help for a plugin, instead of > constantly referring to the online documentation? Maven 2 plugins are self-describing. To see the capabilities of the help plugin itself, call: mvn help:describe -Dplugin=help -Dfull=true - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Command line help for a particular goad/lifecycle/plugin using -help or similar?
Tarun Ramakrishna wrote on Tuesday, July 18, 2006 9:31 AM: > Hi all, > > (Maven newbie, so please excuse me) > > I find myself continually referring to the online plugin documentation > for options passed to the standard maven plugins such as the achetype > plugin, etc. It really isn't possible to readily memorize all the > -Doptions passed to a plugin. > > Is there a way to get command line help for a plugin, instead of > constantly referring to the online documentation? Maven 2 plugins are self-describing. To see the capabilities of the help plugin itself, call: mvn help:describe -Dplugin=help -Dfull=true - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: overwrite when changing profile
Jira issu submitted: MRESOURCES-24 (please vote!!) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Insert variables in xdoc/apt files
ok, I'll try that. Thanks! Edwin Punzalan a écrit : filtering is the same as processing variables into their values. What I'd do is create a folder where the unfiltered xdocs are placed, and then configure the resources plugin so that it will copy/filter those files to the folder that the assembly expects it to be. Sebastien Pennec wrote: Thanks for you answer, Edwin, I don't really understand what's the common point between filtering files and inserting variables in xdoc files... To make a download page, I can surely make a filter, or just do so that the assembly plug-in copies the zip/tar files directly in the folder that the site will use as a download folder. But if I want my download.xml xdoc file to make a link that automatically stays up to date by adding the right version number to the href, how do I do it? Edwin Punzalan a écrit : You can probably use a filtering plugin like the resource plugin to filter your files before running the site goal. Sebastien Pennec wrote: Hi, I've been battling with xdoc and apt files for some hours now, and looking around on the web, too: I haven't found any example of xdoc/apt file with variable insertions in them. I don't imagine this could _not_ be possible with Maven 2... actually, I don't need anything complicated, just some kind of ${project.version} variable that I could insert in a download link, for example. Even in the Maven svn repository, people use xdoc or apt files without any variables. Is it just impossible, or have I not searched enough? Thanks :) Sebastien - 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] -- Sebastien Pennec [EMAIL PROTECTED] LOGBack: the generic, reliable, fast and flexible logging library for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to copy resources while building war
I believe that assembly plugin could be used. Also could run ant targets -Original Message- From: AK [mailto:[EMAIL PROTECTED] Sent: 18 July 2006 07:58 To: users@maven.apache.org Subject: Re: how to copy resources while building war Hi, I have config files stored inside modules, because these files are used to configure these modules. These configs are not used by the modules themselves (and are not packed inside jars), just by the their clients. If I have another web app or client app, I'll have to make these config available for this app too, that's why I don't want to store configs inside web app module. I need a way to copy the configs to some place of client application (now it is web app). The configs are of different kind - hivemind descriptors, properties files etc. Now I want them to be placed in web-inf/classes of web module. It seems I need somehow to copy them while compile web app phase (i don't know how, I'm not very skilled with maven :) ) I've recently found that war plugin can be configured to use external resources(which are beyond src/main/resources), which can fix my problem. But maybe there is another approach, more generic (if I have another client,not web app) ? Thanks! > > Hi, > > Why is having your property files inside the jar annoying? You can > easily access them, and if they relates only to a single module - > which seems to be the cas, since they are stored within each of your > modules - it's quite consistent to get them in this module's jar. > And if configuration doesn't relate to a single module, storing them > inside your webapp module would sound more consistent. > > So maybe if you could precise why you want these property files within > each of your modules, and then stored in your WEB-INF folder, we could > find another solution... > > Denis. > > AK-8 wrote: >> >> Hi, I have a multimodule project, all modules' config properties are >> stored within each module's directory. For example, kernel module has > its >> props in kernel/config folder. >> I have a web module, which uses all other modules, and all their >> properties must be stored within web-inf folder as this web module >> references them. If I make kernel/config a resource folder, config > will be >> put inside kernel.jar, and won't be available for web app. So I have > to >> copy the configs manually, which is annoying. >> > -- .:Regards, AK:. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Insert variables in xdoc/apt files
filtering is the same as processing variables into their values. What I'd do is create a folder where the unfiltered xdocs are placed, and then configure the resources plugin so that it will copy/filter those files to the folder that the assembly expects it to be. Sebastien Pennec wrote: Thanks for you answer, Edwin, I don't really understand what's the common point between filtering files and inserting variables in xdoc files... To make a download page, I can surely make a filter, or just do so that the assembly plug-in copies the zip/tar files directly in the folder that the site will use as a download folder. But if I want my download.xml xdoc file to make a link that automatically stays up to date by adding the right version number to the href, how do I do it? Edwin Punzalan a écrit : You can probably use a filtering plugin like the resource plugin to filter your files before running the site goal. Sebastien Pennec wrote: Hi, I've been battling with xdoc and apt files for some hours now, and looking around on the web, too: I haven't found any example of xdoc/apt file with variable insertions in them. I don't imagine this could _not_ be possible with Maven 2... actually, I don't need anything complicated, just some kind of ${project.version} variable that I could insert in a download link, for example. Even in the Maven svn repository, people use xdoc or apt files without any variables. Is it just impossible, or have I not searched enough? Thanks :) Sebastien - 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: overwrite when changing profile
On 7/15/06, Kees de Kooter <[EMAIL PROTECTED]> wrote: On 7/14/06, David Beckedorff <[EMAIL PROTECTED]> wrote: > This doesn't appear to scale if you have both dev, test, prod environments > and multiple app server environments e.g. jboss, tomcat, oc4j, weblogic. > > I'd like to be able to do: mvn -Pdev,tomcat or mvn -Pdev,oc4j without > having to set up m * n resource folders. > > ___ > True, not too happy with it myself. But for my current project with 4 profiles it is still manageable. Guess I am going to post a Jira issue for this. Unfortunately this is not working for war files. Off to Jira! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to copy resources while building war
Hi, I have config files stored inside modules, because these files are used to configure these modules. These configs are not used by the modules themselves (and are not packed inside jars), just by the their clients. If I have another web app or client app, I'll have to make these config available for this app too, that's why I don't want to store configs inside web app module. I need a way to copy the configs to some place of client application (now it is web app). The configs are of different kind - hivemind descriptors, properties files etc. Now I want them to be placed in web-inf/classes of web module. It seems I need somehow to copy them while compile web app phase (i don't know how, I'm not very skilled with maven :) ) I've recently found that war plugin can be configured to use external resources(which are beyond src/main/resources), which can fix my problem. But maybe there is another approach, more generic (if I have another client,not web app) ? Thanks! Hi, Why is having your property files inside the jar annoying? You can easily access them, and if they relates only to a single module - which seems to be the cas, since they are stored within each of your modules - it's quite consistent to get them in this module's jar. And if configuration doesn't relate to a single module, storing them inside your webapp module would sound more consistent. So maybe if you could precise why you want these property files within each of your modules, and then stored in your WEB-INF folder, we could find another solution... Denis. AK-8 wrote: Hi, I have a multimodule project, all modules' config properties are stored within each module's directory. For example, kernel module has its props in kernel/config folder. I have a web module, which uses all other modules, and all their properties must be stored within web-inf folder as this web module references them. If I make kernel/config a resource folder, config will be put inside kernel.jar, and won't be available for web app. So I have to copy the configs manually, which is annoying. -- .:Regards, AK:. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : Web site generation for multiple projects
If you're not using version 2.0-beta-5 of the site plugin then I recommend you try it. I had problems with module and parent links with a similar configuration to yourself but it all worked fine once I started using beta-5. I would also recommend the latest version of the project reports plugin which I think is 2.0. Andy [EMAIL PROTECTED] Sent by: To: users@maven.apache.org [EMAIL PROTECTED]cc: ail.com Subject: Re: RE : Web site generation for multiple projects 17/07/2006 21:21 Please respond to users That's exactly what I was getting when I tried the latest released site plugin. You would have to search for my email to describe it. I think you described it better than I did. I don't know a solution either. -- Lee On 7/13/06, Thomas Van Buskirk <[EMAIL PROTECTED]> wrote: > > Does anyone have a working parent pom and site.xml, and working child pom > and site.xml that they're willing to share? > > This is mine, it does not work correctly. The modules display, but they > are just (bold), no hyperlink. If I click on one of my reports, > the module turns to a hyperlink, but the hyperlink points the index.htmlof the current POM. > > I have my parent pom set up like this: > > 4.0.0 > com.mycompany.blah > apps > 1.0 > pom > master POM > ... > > subproject > > ... > > > > org.apache.maven.plugins > maven-project-info-reports-plugin > > > > ... > > > website > My Maven Website > file:///home/myhome/site > > > > > My Parent site.xml file is as follows: > > > > Maven > http://maven.apache.org/ > http://maven.apache.org/images/apache-maven-project.png > > > Maven Icon > http://maven.apache.org/images/maven-small.gif > > > > http://maven.apache.org/maven2/"/> > > > > > > > > > > > My Child POM is set up like this: > > > > com.mycompany.blah > apps > 1.0 > ../pom.xml > > 4.0.0 > com.mycompany.other > my-subproject > jar > subproject > ... > > > > org.apache.maven.plugins > maven-project-info-reports-plugin > > > > ... > > > My Child site.xml file is as follows: > > > > Maven > http://maven.apache.org/ > http://maven.apache.org/images/apache-maven-project.png > > > Maven Icon > http://maven.apache.org/images/maven-small.gif > > > > http://maven.apache.org/maven2/"/> > > > > > > > > > > > > > Finally, the directory stucture is: > +apps > -pom.xml > + src > + site > -site.xml > +subproject > -pom.xml > + src > + site > -site.xml > > I then go to file:///home/myhome/site/index.html and it displays the > master pom site. There is a "Modules" heading in the menu, and one item > underneath it called "subproject", but you cannot click it (it is just > bolded). If I then click on "Downloads" the "subproject" item becomes > selectable and turns blue, but it just takes you back to the master pom home > page. > > Hope this can help some people (even though the inheritance doesn't work > correctly). > > Tom > > >>> [EMAIL PROTECTED] 07/13/06 10:52 AM >>> > > In a different thread someone mentioned that the modules won't show up > unless > modules' POMs inherit from the agregator POM as opposed to inheriting from > some top-level POM. However, it is not always possible (convenient) to >
Re: [M2] Insert variables in xdoc/apt files
Thanks for you answer, Edwin, I don't really understand what's the common point between filtering files and inserting variables in xdoc files... To make a download page, I can surely make a filter, or just do so that the assembly plug-in copies the zip/tar files directly in the folder that the site will use as a download folder. But if I want my download.xml xdoc file to make a link that automatically stays up to date by adding the right version number to the href, how do I do it? Edwin Punzalan a écrit : You can probably use a filtering plugin like the resource plugin to filter your files before running the site goal. Sebastien Pennec wrote: Hi, I've been battling with xdoc and apt files for some hours now, and looking around on the web, too: I haven't found any example of xdoc/apt file with variable insertions in them. I don't imagine this could _not_ be possible with Maven 2... actually, I don't need anything complicated, just some kind of ${project.version} variable that I could insert in a download link, for example. Even in the Maven svn repository, people use xdoc or apt files without any variables. Is it just impossible, or have I not searched enough? Thanks :) Sebastien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sebastien Pennec [EMAIL PROTECTED] LOGBack: the generic, reliable, fast and flexible logging library for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Command line help for a particular goad/lifecycle/plugin using -help or similar?
Hi all, (Maven newbie, so please excuse me) I find myself continually referring to the online plugin documentation for options passed to the standard maven plugins such as the achetype plugin, etc. It really isn't possible to readily memorize all the -Doptions passed to a plugin. Is there a way to get command line help for a plugin, instead of constantly referring to the online documentation? If not, then I believe this would be a good idea to incorporate. One can anyways grab metadata from the mojo annotations to atleast give an options listing. Maybe we need a 'help lifecycle' and a basic help mojo to do the job. Has someone already made this? ;-) BTW.. Vincent, John, Carlos, Jason, 'et al...THANKS for the "Better builds with maven" book. Your book may have been criticized here, but I personally found it _invaluable_ as a reference. Thanks, Tarun - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [M2] Difference between 'mvn test' and 'mvn install'
Jakub Pawlowicz wrote on Monday, July 17, 2006 8:06 PM: > Hi Jörg, > > Unfortunately this does not work for me, probably, because all my > modules have the same version. > I've installed maven-project-plugin snapshot version and my tests > fail in the same place as before. Then start with -X and look if you find a difference in the classpath used to start the tests ... - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] assembly and use of dependencySet excludes
For those that may be trying to work out how excludes works I'm posting to the list. There is probably a JIRA issue (I haven't looked) that will address pattern matching of excludes, there are comments in the code to indicate that this would be a good feature. To summarize my problem: I have a module called -build which creates an assembly of all the other modules so that this can be given to our test team in one go. The problem I am having is that the assembly is not only copying the *-bin.zip files but also the *.jar files even though the dependency is only on the zip file. My pom has this in it: GROUP A 0.0.1-SNAPSHOT bin zip GROUP B 0.0.1-SNAPSHOT bin zip GROUP C 0.0.1-SNAPSHOT ear To work around this, I am excluding the jars using the assembly below: bin dir false false commons-lang:commons-lang log4j:log4j GROUP:A GROUP:B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]