Re: Tomcat plugin: Logging
Hello, This Apache Maven plugin is now hosted @asf in the Apache Tomcat land. See: http://tomcat.apache.org/maven-plugin.html . Can you record a jira entry ? 2011/9/29 Mike Janson m...@taptera.com: Hi folks, Sorry if this has been asked before but I've searched far/wide and have been unable to find any information to help me solve my problem. Basically, no matter what I try I am unable to affect default tomcat logging when executing my webapp via the tomcat:run target. I have tried adding logging.properties according to these instructions: http://tomcat.apache.org/tomcat-6.0-doc/logging.html With a JDK logging.properties in either the webapp classloader or target/tomcat/conf/ No logfiles are being generated anywhere, and I cannot get anything finer than INFO to log to the console. Is there some additional step necessary when executing tomcat this way via the plugin? I'm hoping to get visibility to my fine/debug messages which I need to help me inspect execution of my app! Thanks in advance, -Mike - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Olivier Lamy Talend : http://talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Build hangs on maven site generation
Hi, I've replied several times to an old thread, but never got my mail accepted by the list. It concerns this thread: http://jenkins.361315.n4.nabble.com/Build-hangs-on-maven-site-generation-td366706.html My post: Hi, I have these same problems, but not on all projects/builds. As with the original issue: mvn clean package works like a charm, but mvn clean site-deploy does not from Jenkins. I tried to call Maven from commandline and that works fine. Also: most site-deploy tasks in Jenkins work after I run it once from commandline, then re-trigger the task manually. I compared the poms of different projects (one that works compared to one that doesn't), but can't see any differences. Can I check anything else to find out what's causing this? Working on: - Windows - Jenkins 1.405 (deployed as WAR on Apache Tomcat 6.0) - Jenkins Subversion Plug-in 1.26 Some more testing: If I run from command-line first, I can run the Jenkins task successful only once. If I run the Jenkins task again, it hangs: [INFO] SCM Command Line[0]: svn [INFO] SCM Command Line[1]: log [INFO] SCM Command Line[2]: -v [INFO] SCM Command Line[3]: -r{2011-05-18}:{2011-04-17} Thanks
Re: customisation of path in pom
Thank you for the reply. How can i differentiate this with different os.. I mean I run the tests on my local machine with windows os and my test system is with linux... thank you -- View this message in context: http://maven.40175.n5.nabble.com/customisation-of-path-in-pom-tp4853264p4856081.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: customisation of path in pom
thank you for the reply could you please let me know bit clearly..because i am very new to maven -- View this message in context: http://maven.40175.n5.nabble.com/customisation-of-path-in-pom-tp4853264p4856085.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Using Maven with custom libraries which are not in repository.
I suggest using http://search.maven.org instead as that's the official search engine for Maven central, which is the default repo for Maven. /Anders On Thu, Sep 29, 2011 at 08:47, Yuvaraj Vanarase yuvaraj.vanar...@synechron.com wrote: Prashant, If those libraries are standard and well known then should be available at some maven repository. You can try http://mvnrepository.com to find it out. Generally, you should setup your own repository may be using artifactory and put all dependencies there. Requirement is maven should able to access those jars while build, once artifact is ready it will contain required jars, thus complete deployable. Hope this helps! Regards, Yuvaraj Yuvaraj Vanarase, Lead Technology - Software Phone: +91.20.40262000 Ext 2305|Mobile: +91.9850818870 | http://www.synechron.com SYNECHRON - - Top 10 Best IT Employers for 4 consecutive years (link). - Celebrating 10 Years! -Original Message- From: Prashant Neginahal [mailto:prashu.n...@gmail.com] Sent: Thursday, September 29, 2011 12:14 PM To: Maven Users List Subject: Using Maven with custom libraries which are not in repository. Hi All, We are starting new web project. But, it has to be built on some proprietary web framework which is NOT mavenised and comes with its own bunch of libraries. I am thinking of using maven for this application development. But, just wondering how to ensure maven uses this proprietary framework and its libraries which are not there in repository. Can we just dump framework libraries in WEB_INF/lib folder and maven includes the same in its CLASSPATH. Thanks, Prashant - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven site gives plugin X does not exist or no valid version could be found
Hi, I am using Jenkins on a buildserver that runs all builds every night at about 0:00. I also have builds on those projects that run the site-plugin. But each night, a lot of those builds fail on some random plugin, logging the following error: [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.codehaus.mojo:taglist-maven-plugin' does not exist or no valid version could be found The listed plugin can be any one plugin, which can be different every time. If I manually delete the plugin that caused the error, then run all site-builds again, everything is fine, but the next nightly-build fails again on another plugin. Help! Can someone help me have nightly site-builds run smoothly, without these errors? Thanks, Bram
Re: Parent Dependencies
Hi I think our project is misconfigured. From reading the docs again, the common dependencies go to within the dependencyManagent tag (we where using the dependencies before). I've fixed this but still see that the dependencies declared in the super pom aren't being picked up by the children. For instance the springframeork annotation package isn't being picked up even though its in the super pom. [ERROR] /home/kiren/Documents/workspace-subsnp/pams-main/core/advantage/src/main/java/za/co/vodacom/pams/core/in/dao/INSubscriberProfileDaoImpl.java:[4,51] package org.springframework.beans.factory.annotation does not exist Child: ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; modelVersion4.0.0/modelVersion parent groupIdza.co.vodacom.pams/groupId artifactIdpams-core/artifactId version1.2.1-DEV-SNAPSHOT/version /parent groupIdza.co.vodacom.pams/groupId artifactIdpams-advantage/artifactId version1.2.1-DEV-SNAPSHOT/version namePAMS Core - IN DAO/name packagingjar/packaging dependencies !-- IN Advantage CORBA Interface -- dependency groupIdza.co.vodacom.advantage/groupId artifactIdadvantage-corba-interface/artifactId /dependency dependency groupIdza.co.vodacom.fap/groupId artifactIdfap-core/artifactId version${fcaps.version}/version typejar/type scopecompile/scope /dependency /dependencies build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source${java.source.version}/source target${java.target.version}/target showDeprecationtrue/showDeprecation /configuration /plugin plugin artifactIdmaven-surefire-plugin/artifactId configuration forkModenever/forkMode /configuration /plugin /plugins /build /project Parent: ?xml version=1.0 encoding=UTF-8? projectxmlns=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/xsd/maven-4.0.0.xsd; modelVersion4.0.0/modelVersion parent groupIdza.co.vodacom.pams/groupId artifactIdpams-main/artifactId version1.2.1-DEV-SNAPSHOT/version /parent groupIdza.co.vodacom.pams/groupId artifactIdpams-core/artifactId namePAMS Core/name packagingpom/packaging version1.2.1-DEV-SNAPSHOT/version modules !-- common used project need to be before other, chicken and egg-- modulecommon/module modulepams-schema/module moduleadvantage/module moduleppfe-connectors/module moduleppfe_dao/module modulepams-rms-dao/module modulepams-pams-dao/module !-- moduleaudit/module -- modulepams-cur-dao/module /modules /project Super (Grandparent) ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; modelVersion4.0.0/modelVersion groupIdza.co.vodacom.pams/groupId artifactIdpams-main/artifactId version1.2.1-DEV-SNAPSHOT/version packagingpom/packaging namePAMS - Main/name modules modulecore/module modulebusiness_services/module /modules properties pams.version1.2.1-DEV-SNAPSHOT/pams.version fcaps.version1.1.0/fcaps.version spring.version3.0.5.RELEASE/spring.version slf4j.version1.6.1/slf4j.version log4j.version1.2.16/log4j.version junit.version4.8.1/junit.version java.source.version1.6/java.source.version java.target.version1.6/java.target.version cxf.version2.4.2/cxf.version httpclient.version3.1/httpclient.version jsr311.version1.1.1/jsr311.version xmlBeans.version2.5.0/xmlBeans.version tandem.jdbc.version8.9.26/tandem.jdbc.version hibernate.version3.3.2.GA/hibernate.version slf4j.version1.6.1/slf4j.version slf4j.log4j.versionslf4j-log4j12/slf4j.log4j.version jtds.jdbc.version1.2.2/jtds.jdbc.version asn1.version5.64/asn1.version /properties build !-- Maven test JAR plugin, DONT remove -- plugins plugin artifactIdmaven-jar-plugin/artifactId version2.3.1/version executions execution
maven 3.0.3 - performance with version ranges
maven 3.0.3 has terrible performance and memory usage when using version ranges. This has a knock on effect using m2e It takes maven ages to update the maven dependencies. I have a main project with a some version ranged dependencies which in turn have versioned ranged dependencies. Outside of eclipse it takes many minutes and considerable memory to get a successful build. Most time is spent resolving the dependencies. I have also run maven offline when I know I have all dependencies in my local repo and it is still very, very slow. In m2e (and workspace resolution on), you can check out a dependency that is very simple and this triggers a re-build of the main project. The same happens when you delete the dependent project or make pom version changes to it. So in eclipse this becomes really tedious especially if you have 4 or 5 related projects checked out. You end up sitting and waiting for your workspace to be re-built all the time. I understand what maven is doing but I do believe it could be done a lot better when resolving version ranges. I also know maven 3.0.3 uses aether 1.11 to so its dependency management. I'm really keen to try and find a solution. aether 1.12 has been released. Is there anyway I can hook this into maven 3.0.3 Does aether 1.12 solve Is there a pre-release of maven 3.0.4 out there yet that I can try and does it use aether 1.12 ? Thanks Paul - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven 3.0.3 - performance with version ranges
Take a peek at this thread (especially 1st mail): http://maven.40175.n5.nabble.com/Apache-Maven-distribution-with-fixes-td4639045.html Thanks, ~t~ On Fri, Sep 30, 2011 at 12:22 PM, Paul French paul.fre...@kirona.com wrote: maven 3.0.3 has terrible performance and memory usage when using version ranges. This has a knock on effect using m2e It takes maven ages to update the maven dependencies. I have a main project with a some version ranged dependencies which in turn have versioned ranged dependencies. Outside of eclipse it takes many minutes and considerable memory to get a successful build. Most time is spent resolving the dependencies. I have also run maven offline when I know I have all dependencies in my local repo and it is still very, very slow. In m2e (and workspace resolution on), you can check out a dependency that is very simple and this triggers a re-build of the main project. The same happens when you delete the dependent project or make pom version changes to it. So in eclipse this becomes really tedious especially if you have 4 or 5 related projects checked out. You end up sitting and waiting for your workspace to be re-built all the time. I understand what maven is doing but I do believe it could be done a lot better when resolving version ranges. I also know maven 3.0.3 uses aether 1.11 to so its dependency management. I'm really keen to try and find a solution. aether 1.12 has been released. Is there anyway I can hook this into maven 3.0.3 Does aether 1.12 solve Is there a pre-release of maven 3.0.4 out there yet that I can try and does it use aether 1.12 ? Thanks Paul - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: maven 3.0.3 - performance with version ranges
FYI, You can tell maven 3.0.3 to work with aether 1.13 (I think this is the latest release) just by dropping aether jars in $MAVEN_HOME/lib/ext. They should take precedence over the aether 1.11 bundled with maven in $MAVEN_HOME/lib. I did that with aether 1.12 and there was no issue, at least for my projects. Christophe -Original Message- From: Paul French [mailto:paul.fre...@kirona.com] Sent: Freitag, 30. September 2011 12:22 To: Maven Users List; Maven Integration for Eclipse users mailing list Subject: maven 3.0.3 - performance with version ranges maven 3.0.3 has terrible performance and memory usage when using version ranges. This has a knock on effect using m2e It takes maven ages to update the maven dependencies. I have a main project with a some version ranged dependencies which in turn have versioned ranged dependencies. Outside of eclipse it takes many minutes and considerable memory to get a successful build. Most time is spent resolving the dependencies. I have also run maven offline when I know I have all dependencies in my local repo and it is still very, very slow. In m2e (and workspace resolution on), you can check out a dependency that is very simple and this triggers a re-build of the main project. The same happens when you delete the dependent project or make pom version changes to it. So in eclipse this becomes really tedious especially if you have 4 or 5 related projects checked out. You end up sitting and waiting for your workspace to be re-built all the time. I understand what maven is doing but I do believe it could be done a lot better when resolving version ranges. I also know maven 3.0.3 uses aether 1.11 to so its dependency management. I'm really keen to try and find a solution. aether 1.12 has been released. Is there anyway I can hook this into maven 3.0.3 Does aether 1.12 solve Is there a pre-release of maven 3.0.4 out there yet that I can try and does it use aether 1.12 ? Thanks Paul - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Parent Dependencies
Hi, So I have briefly read your pom.xml and it seems that you have put the dependency for spring in the dependencyMgmt element and not in the dependencies element. So let me straight things out here: * dependencyMgmt are used to declare version number, configuration, scope, etc... but it does not mean that you depend on them, you just inform Maven of the default values to use, if they are not defined in the dependencies element. * dependencies are used to declare on which artifacts your project(s) depend. If you do not define version, scope, etc..., Maven will try to pick them up from the dependencyMgmt. A best practice is to define in your super pom, the version of all your dependencies of all your project in the dependencyMgmt and then simply instantiate those dependency in each child project. This allows you to centralize all the versions of all jars used in all projects. So in your super pom you define: dependencyMgmt dependency groupIdx.y.z/groupId artifactIdazerty/artifactId version1.2.3/version /dependency ... /dependencyMgmt Then in your child pom you can simply put: dependencies dependency groupIdx.y.z/groupId artifactIdazerty/artifactId /dependency ... /dependencies without the version number, and Maven will automatically find that you want version 1.2.3. Yet, you can still override this default value by setting the version number in the child pom. In the dependency Le 30/09/2011 11:02, Kiren Pillay a écrit : Hi I think our project is misconfigured. From reading the docs again, the common dependencies go to within the dependencyManagent tag (we where using the dependencies before). I've fixed this but still see that the dependencies declared in the super pom aren't being picked up by the children. For instance the springframeork annotation package isn't being picked up even though its in the super pom. [ERROR] /home/kiren/Documents/workspace-subsnp/pams-main/core/advantage/src/main/java/za/co/vodacom/pams/core/in/dao/INSubscriberProfileDaoImpl.java:[4,51] package org.springframework.beans.factory.annotation does not exist Child: ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; modelVersion4.0.0/modelVersion parent groupIdza.co.vodacom.pams/groupId artifactIdpams-core/artifactId version1.2.1-DEV-SNAPSHOT/version /parent groupIdza.co.vodacom.pams/groupId artifactIdpams-advantage/artifactId version1.2.1-DEV-SNAPSHOT/version namePAMS Core - IN DAO/name packagingjar/packaging dependencies !-- IN Advantage CORBA Interface -- dependency groupIdza.co.vodacom.advantage/groupId artifactIdadvantage-corba-interface/artifactId /dependency dependency groupIdza.co.vodacom.fap/groupId artifactIdfap-core/artifactId version${fcaps.version}/version typejar/type scopecompile/scope /dependency /dependencies build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source${java.source.version}/source target${java.target.version}/target showDeprecationtrue/showDeprecation /configuration /plugin plugin artifactIdmaven-surefire-plugin/artifactId configuration forkModenever/forkMode /configuration /plugin /plugins /build /project Parent: ?xml version=1.0 encoding=UTF-8? projectxmlns=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/xsd/maven-4.0.0.xsd; modelVersion4.0.0/modelVersion parent groupIdza.co.vodacom.pams/groupId artifactIdpams-main/artifactId version1.2.1-DEV-SNAPSHOT/version /parent groupIdza.co.vodacom.pams/groupId artifactIdpams-core/artifactId namePAMS Core/name packagingpom/packaging version1.2.1-DEV-SNAPSHOT/version modules !-- common used project need to be before other, chicken and egg-- modulecommon/module modulepams-schema/module moduleadvantage/module moduleppfe-connectors/module moduleppfe_dao/module modulepams-rms-dao/module modulepams-pams-dao/module !--moduleaudit/module -- modulepams-cur-dao/module /modules /project Super (Grandparent) ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0;
Re: [m2e-users] maven 3.0.3 - performance with version ranges
wow! Dropped in aether 1.13 into apache maven lib/ext (so patched applied external to eclipse) and also updated the m2e embedded runtime plugin org.eclipse.m2e.maven.runtime_1.0.1.201106291304 (as a quick test) and now as an example a build that took 1 minute 43 secs now only takes 5 seconds. Will build our own embedded runtime as instructed below now. Thanks for everyone's help. Any ideas when an official maven 3.0.4 release will happen as well as an official maven 3.0.4 embedded runtime m2e connector ? Paul French Kirona Solutions Ltd Tel: 07803 122 058 E-Mail: paul.fre...@kirona.com Web: www.kirona.com http://www.kirona.com This email and any attachments are confidential and should only be read by those to whom they are addressed. If you are not the intended recipient, please contact us on 01625 585511, delete the email (including any attachment) from your computer and destroy any copies. Any distribution or copying without our prior permission is prohibited. Internet communications are not always secure and may be subject to delays, non-delivery and unauthorised alterations. Therefore, information expressed in this message is not given or endorsed by Kirona Solutions Limited (Kirona) unless otherwise notified by our duly authorised representative independent of this message. No warranty is given that this email (including any attachment) is virus free. Any views or opinions presented are solely those of the author and do not necessarily represent those of Kirona. Registered addresses: Kirona Solutions Limited, Barrington House, Heyes Lane, Alderley Edge, Cheshire. SK9 7LA Registered in England and Wales No: 04678711 On 30/09/2011 12:28, Igor Fedorenko wrote: I do not know if the underlying problem has been solved with aether and/or maven. You need to talk to aether and/or maven developers to find out. As far updating m2e embedded maven runtime, it is relatively easy now -- setup development environment as explain in [1], then change m2e-maven-runtime/org.eclipse.m2e.maven.runtime/pom.xml to use whatever version of dependencies you want to try. [1] http://wiki.eclipse.org/M2E_Development_Environment -- Regards, Igor On 11-09-30 6:22 AM, Paul French wrote: maven 3.0.3 has terrible performance and memory usage when using version ranges. This has a knock on effect using m2e It takes maven ages to update the maven dependencies. I have a main project with a some version ranged dependencies which in turn have versioned ranged dependencies. Outside of eclipse it takes many minutes and considerable memory to get a successful build. Most time is spent resolving the dependencies. I have also run maven offline when I know I have all dependencies in my local repo and it is still very, very slow. In m2e (and workspace resolution on), you can check out a dependency that is very simple and this triggers a re-build of the main project. The same happens when you delete the dependent project or make pom version changes to it. So in eclipse this becomes really tedious especially if you have 4 or 5 related projects checked out. You end up sitting and waiting for your workspace to be re-built all the time. I understand what maven is doing but I do believe it could be done a lot better when resolving version ranges. I also know maven 3.0.3 uses aether 1.11 to so its dependency management. I'm really keen to try and find a solution. aether 1.12 has been released. Is there anyway I can hook this into maven 3.0.3 Does aether 1.12 solve Is there a pre-release of maven 3.0.4 out there yet that I can try and does it use aether 1.12 ? Thanks Paul ___ m2e-users mailing list m2e-us...@eclipse.org https://dev.eclipse.org/mailman/listinfo/m2e-users ___ m2e-users mailing list m2e-us...@eclipse.org https://dev.eclipse.org/mailman/listinfo/m2e-users
Re: Parent Dependencies
I see I've misinterpreted the concept from the maven guide. Thanks for clearing up my misunderstanding! :) Best regards Kiren On Fri, Sep 30, 2011 at 1:53 PM, Guillaume Polet guillaume.po...@gmail.com wrote: Hi, So I have briefly read your pom.xml and it seems that you have put the dependency for spring in the dependencyMgmt element and not in the dependencies element. So let me straight things out here: * dependencyMgmt are used to declare version number, configuration, scope, etc... but it does not mean that you depend on them, you just inform Maven of the default values to use, if they are not defined in the dependencies element. * dependencies are used to declare on which artifacts your project(s) depend. If you do not define version, scope, etc..., Maven will try to pick them up from the dependencyMgmt. A best practice is to define in your super pom, the version of all your dependencies of all your project in the dependencyMgmt and then simply instantiate those dependency in each child project. This allows you to centralize all the versions of all jars used in all projects. So in your super pom you define: dependencyMgmt dependency groupIdx.y.z/groupId artifactIdazerty/artifactId version1.2.3/version /dependency ... /dependencyMgmt Then in your child pom you can simply put: dependencies dependency groupIdx.y.z/groupId artifactIdazerty/artifactId /dependency ... /dependencies without the version number, and Maven will automatically find that you want version 1.2.3. Yet, you can still override this default value by setting the version number in the child pom. In the dependency Le 30/09/2011 11:02, Kiren Pillay a écrit : Hi I think our project is misconfigured. From reading the docs again, the common dependencies go to within the dependencyManagent tag (we where using the dependencies before). I've fixed this but still see that the dependencies declared in the super pom aren't being picked up by the children. For instance the springframeork annotation package isn't being picked up even though its in the super pom. [ERROR] /home/kiren/Documents/workspace-subsnp/pams-main/core/advantage/src/main/java/za/co/vodacom/pams/core/in/dao/INSubscriberProfileDaoImpl.java:[4,51] package org.springframework.beans.factory.annotation does not exist Child: ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; modelVersion4.0.0/modelVersion parent groupIdza.co.vodacom.pams/groupId artifactIdpams-core/artifactId version1.2.1-DEV-SNAPSHOT/version /parent groupIdza.co.vodacom.pams/groupId artifactIdpams-advantage/artifactId version1.2.1-DEV-SNAPSHOT/version namePAMS Core - IN DAO/name packagingjar/packaging dependencies !-- IN Advantage CORBA Interface -- dependency groupIdza.co.vodacom.advantage/groupId artifactIdadvantage-corba-interface/artifactId /dependency dependency groupIdza.co.vodacom.fap/groupId artifactIdfap-core/artifactId version${fcaps.version}/version typejar/type scopecompile/scope /dependency /dependencies build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source${java.source.version}/source target${java.target.version}/target showDeprecationtrue/showDeprecation /configuration /plugin plugin artifactIdmaven-surefire-plugin/artifactId configuration forkModenever/forkMode /configuration /plugin /plugins /build /project Parent: ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; modelVersion4.0.0/modelVersion parent groupIdza.co.vodacom.pams/groupId artifactIdpams-main/artifactId version1.2.1-DEV-SNAPSHOT/version /parent groupIdza.co.vodacom.pams/groupId artifactIdpams-core/artifactId namePAMS Core/name packagingpom/packaging version1.2.1-DEV-SNAPSHOT/version modules !-- common used project need to be before other, chicken and egg-- modulecommon/module modulepams-schema/module moduleadvantage/module moduleppfe-connectors/module moduleppfe_dao/module modulepams-rms-dao/module
Resources not included in build jar
I have created some sub folders in src/main/resources that I would like to include in the final artifact.jar file. build resources resource directorysrc/main/resources//directory /resource resource directorysrc/main/resources/logs/directory /resource resource directorysrc/main/resources/data/directory /resource /resources ... Next I copy these resources to the target folder: plugin artifactIdmaven-resources-plugin/artifactId configuration outputDirectory${target.basedir}/outputDirectory includeEmptyDirstrue/includeEmptyDirs resources resource directorysrc/main/resources/directory /resource /resources /configuration executions execution idcopy-resources/id phasepackaging/phase goals goalcopy-resources/goal /goals /execution /executions /plugin Further I use the maven-dependency-plugin during compile time to fetch some dependencies from nexus and copy those the /target folder. plugin artifactIdmaven-dependency-plugin/artifactId executions execution idcopy-and-unpack/id phasegenerate-sources/phase goals goalunpack/goal /goals configuration artifactItems artifactItem groupIdcom.test/groupId artifactIdassembly/artifactId version1.0.1/version typezip/type overWritetrue/overWrite outputDirectory${target.basedir}/outputDirectory /artifactItem /artifactItems /configuration /execution /executions /plugin These dependencies should also be included in the final artifact.jar file. But after I have run mvn clean install the artifact.jar file only contains the manifest file. How do I include resources from the project and target folder i the final artifact.jar file? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Build hangs on maven site generation
is svn on the PATH ? I presume you are running change log report ? 2011/9/30 Bram Patelski bram.patel...@gmail.com: Hi, I've replied several times to an old thread, but never got my mail accepted by the list. It concerns this thread: http://jenkins.361315.n4.nabble.com/Build-hangs-on-maven-site-generation-td366706.html My post: Hi, I have these same problems, but not on all projects/builds. As with the original issue: mvn clean package works like a charm, but mvn clean site-deploy does not from Jenkins. I tried to call Maven from commandline and that works fine. Also: most site-deploy tasks in Jenkins work after I run it once from commandline, then re-trigger the task manually. I compared the poms of different projects (one that works compared to one that doesn't), but can't see any differences. Can I check anything else to find out what's causing this? Working on: - Windows - Jenkins 1.405 (deployed as WAR on Apache Tomcat 6.0) - Jenkins Subversion Plug-in 1.26 Some more testing: If I run from command-line first, I can run the Jenkins task successful only once. If I run the Jenkins task again, it hangs: [INFO] SCM Command Line[0]: svn [INFO] SCM Command Line[1]: log [INFO] SCM Command Line[2]: -v [INFO] SCM Command Line[3]: -r{2011-05-18}:{2011-04-17} Thanks -- Olivier Lamy Talend : http://talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Build hangs on maven site generation
Yes, when I run them by hand (in the jenkins checked-out workspace) it runs fine and most other projects run fine from Jenkins. Most failing projects worked fine in the first place, but I always had to run the very first build by hand. After that initial build, they would run fine, but some of them just seem to hang. Btw: most project profiles in Jenkins, including the ones that hang were created using copy existing project. Thanks On Fri, Sep 30, 2011 at 16:54, Olivier Lamy ol...@apache.org wrote: is svn on the PATH ? I presume you are running change log report ? 2011/9/30 Bram Patelski bram.patel...@gmail.com: Hi, I've replied several times to an old thread, but never got my mail accepted by the list. It concerns this thread: http://jenkins.361315.n4.nabble.com/Build-hangs-on-maven-site-generation-td366706.html My post: Hi, I have these same problems, but not on all projects/builds. As with the original issue: mvn clean package works like a charm, but mvn clean site-deploy does not from Jenkins. I tried to call Maven from commandline and that works fine. Also: most site-deploy tasks in Jenkins work after I run it once from commandline, then re-trigger the task manually. I compared the poms of different projects (one that works compared to one that doesn't), but can't see any differences. Can I check anything else to find out what's causing this? Working on: - Windows - Jenkins 1.405 (deployed as WAR on Apache Tomcat 6.0) - Jenkins Subversion Plug-in 1.26 Some more testing: If I run from command-line first, I can run the Jenkins task successful only once. If I run the Jenkins task again, it hangs: [INFO] SCM Command Line[0]: svn [INFO] SCM Command Line[1]: log [INFO] SCM Command Line[2]: -v [INFO] SCM Command Line[3]: -r{2011-05-18}:{2011-04-17} Thanks -- Olivier Lamy Talend : http://talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven not pulling down latest snapshot jar issue
1. I'm using maven-3.0.3 and does anyone else have the issue where the latest snapshot jar is NOT downloaded while the meta data IS updated? It sounds a lot like what's being described in this bug report, although the title is misleading http://jira.codehaus.org/browse/MNG-4142, ad it happens when uniqueVersionfalse/uniqueVersion for that repository. 2. I tried applying the patch attached to MNG-4142 to the current trunk, but code seems to have been moved around on the trunk. Maybe someone can point to the current relevant code, so I can maybe submit a patch for it. This issue is pretty nasty as it makes for non reproducible builds. Thx, --Kurt - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Resources not included in build jar
Hi, Are these empty folders? If not: They should be included in the jar automatically. You could also have a look at this page: http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html Regards, Bram On Fri, Sep 30, 2011 at 16:21, motes motes mort.mo...@gmail.com wrote: I have created some sub folders in src/main/resources that I would like to include in the final artifact.jar file. build resources resource directorysrc/main/resources//directory /resource resource directorysrc/main/resources/logs/directory /resource resource directorysrc/main/resources/data/directory /resource /resources ... Next I copy these resources to the target folder: plugin artifactIdmaven-resources-plugin/artifactId configuration outputDirectory${target.basedir}/outputDirectory includeEmptyDirstrue/includeEmptyDirs resources resource directorysrc/main/resources/directory /resource /resources /configuration executions execution idcopy-resources/id phasepackaging/phase goals goalcopy-resources/goal /goals /execution /executions /plugin Further I use the maven-dependency-plugin during compile time to fetch some dependencies from nexus and copy those the /target folder. plugin artifactIdmaven-dependency-plugin/artifactId executions execution idcopy-and-unpack/id phasegenerate-sources/phase goals goalunpack/goal /goals configuration artifactItems artifactItem groupIdcom.test/groupId artifactIdassembly/artifactId version1.0.1/version typezip/type overWritetrue/overWrite outputDirectory${target.basedir}/outputDirectory /artifactItem /artifactItems /configuration /execution /executions /plugin These dependencies should also be included in the final artifact.jar file. But after I have run mvn clean install the artifact.jar file only contains the manifest file. How do I include resources from the project and target folder i the final artifact.jar file? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Maven not pulling down latest snapshot jar issue
Sounds like http://jira.codehaus.org/browse/MNG-5087 -Robert Date: Fri, 30 Sep 2011 11:46:19 -0400 From: kurt.s...@gmail.com To: users@maven.apache.org Subject: Maven not pulling down latest snapshot jar issue 1. I'm using maven-3.0.3 and does anyone else have the issue where the latest snapshot jar is NOT downloaded while the meta data IS updated? It sounds a lot like what's being described in this bug report, although the title is misleading http://jira.codehaus.org/browse/MNG-4142, ad it happens when uniqueVersionfalse/uniqueVersion for that repository. 2. I tried applying the patch attached to MNG-4142 to the current trunk, but code seems to have been moved around on the trunk. Maybe someone can point to the current relevant code, so I can maybe submit a patch for it. This issue is pretty nasty as it makes for non reproducible builds. Thx, --Kurt - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Help!
Thanks in advance It works!! I'll adopt your advices for next posts 2011/9/29 Barrie Treloar [via Maven] ml-node+s40175n4854981...@n5.nabble.com: On Fri, Sep 30, 2011 at 12:42 AM, GustavoR [hidden email] wrote: Hi to everyone. That's is my first post.. I have a big multi-module project Suppose that project structure: MainModule |_ Module1 | |_ SubModule1 |_ Module 2 |_SubModule2 And SubModule2 has a dependency with SubModule1. Is there any way to run mvn test in Submodule2 forcing the generation of SubModule1 and its dependents if it have. I dont have SubModule1 installed in my local repository.. so mvn test in Submodule2 fails. As this is your first post, I'll remind you that having a subject line like Help! will often generate no response. Please read http://catb.org/~esr/faqs/smart-questions.html You are lucky that Wayne has replied. Now, to answer the question. Have you tried? mvn -h At the root level, you can run mvn --also-make -pl Module2/SubModule2 test This will also build any projects that SubModule2 depends upon. An alternative is to setup your IDE correctly. If you have your IDE setup correctly (e.g. Eclipse) then for most of the time you can make your changes there, and run the unit tests inside Eclipse. As each project will be configured to depend upon the other projects it needs inside Eclipse you do not need to break out to a shell to run Maven all the time. You should run mvn clean install just before you commit any changes to your repository to validate you haven't broken any other things that Maven will do for you, that Eclipse doesn't - To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] If you reply to this email, your message will be added to the discussion below: http://maven.40175.n5.nabble.com/Help-tp4853497p4854981.html To unsubscribe from Help!, click here. -- View this message in context: http://maven.40175.n5.nabble.com/Help-tp4853497p4857945.html Sent from the Maven - Users mailing list archive at Nabble.com.
SCM ClearCase URL Question
Hi, Anyone have experience with crafting a URL for scm node in maven 3 pom.xml I've read the brief docs on ClearCase URLs but my 'mvn scm:validate' is not successful. I have a configSpec at: c:\views\myView\configSpec.txt Supposedly I'm supposed to be doing something like this: connectionscm:clearcase:myView:c|\views\myView\configSpec.txt/connect ion But it says it has an issue with c| even though the docs says to use | in place of : for Windows paths. If I change it to : then it says everything from c: onwards is not used, or not integral to the URL. I just want it to point to the config spec, once I do apparently the rest should be Golden. Justin Bleach CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information or otherwise protected by law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Re: Maven not pulling down latest snapshot jar issue
Thanks Robert, I tried replacing the aether jar from 1.11 to 1.12 but that did not fix my issue. In my case the meta data is nicely updated by the actual jar and pom etc are still old. I guess I will spend some time with the debugger over the weekend to see what's going on. If anyone has some hints in where to look first then plz let me know! --Kurt On 9/30/11 12:40 PM, Robert Scholte wrote: Sounds like http://jira.codehaus.org/browse/MNG-5087 -Robert Date: Fri, 30 Sep 2011 11:46:19 -0400 From: kurt.s...@gmail.com To: users@maven.apache.org Subject: Maven not pulling down latest snapshot jar issue 1. I'm using maven-3.0.3 and does anyone else have the issue where the latest snapshot jar is NOT downloaded while the meta data IS updated? It sounds a lot like what's being described in this bug report, although the title is misleading http://jira.codehaus.org/browse/MNG-4142, ad it happens when uniqueVersionfalse/uniqueVersion for that repository. 2. I tried applying the patch attached to MNG-4142 to the current trunk, but code seems to have been moved around on the trunk. Maybe someone can point to the current relevant code, so I can maybe submit a patch for it. This issue is pretty nasty as it makes for non reproducible builds. Thx, --Kurt - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven 3.0.3 - performance with version ranges
+1 for using aether 1.12, this reduced 2:00 compile time to ~45 seconds. 2011/9/30 Tamás Cservenák ta...@cservenak.net Take a peek at this thread (especially 1st mail): http://maven.40175.n5.nabble.com/Apache-Maven-distribution-with-fixes-td4639045.html Thanks, ~t~ On Fri, Sep 30, 2011 at 12:22 PM, Paul French paul.fre...@kirona.com wrote: maven 3.0.3 has terrible performance and memory usage when using version ranges. This has a knock on effect using m2e It takes maven ages to update the maven dependencies. I have a main project with a some version ranged dependencies which in turn have versioned ranged dependencies. Outside of eclipse it takes many minutes and considerable memory to get a successful build. Most time is spent resolving the dependencies. I have also run maven offline when I know I have all dependencies in my local repo and it is still very, very slow. In m2e (and workspace resolution on), you can check out a dependency that is very simple and this triggers a re-build of the main project. The same happens when you delete the dependent project or make pom version changes to it. So in eclipse this becomes really tedious especially if you have 4 or 5 related projects checked out. You end up sitting and waiting for your workspace to be re-built all the time. I understand what maven is doing but I do believe it could be done a lot better when resolving version ranges. I also know maven 3.0.3 uses aether 1.11 to so its dependency management. I'm really keen to try and find a solution. aether 1.12 has been released. Is there anyway I can hook this into maven 3.0.3 Does aether 1.12 solve Is there a pre-release of maven 3.0.4 out there yet that I can try and does it use aether 1.12 ? Thanks Paul - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- @tommychheng http://tommy.chheng.com
Re: Maven not pulling down latest snapshot jar issue
Is'nt rather related to this Jira that's been there for a while ? http://jira.codehaus.org/browse/MNG-5037?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel Patrick Sansoucy In theory, there is no difference between theory and practice, but in practice, there is ... On Fri, Sep 30, 2011 at 2:44 PM, Kurt T Stam kurt.s...@gmail.com wrote: Thanks Robert, I tried replacing the aether jar from 1.11 to 1.12 but that did not fix my issue. In my case the meta data is nicely updated by the actual jar and pom etc are still old. I guess I will spend some time with the debugger over the weekend to see what's going on. If anyone has some hints in where to look first then plz let me know! --Kurt On 9/30/11 12:40 PM, Robert Scholte wrote: Sounds like http://jira.codehaus.org/browse/MNG-5087 -Robert Date: Fri, 30 Sep 2011 11:46:19 -0400 From: kurt.s...@gmail.com To: users@maven.apache.org Subject: Maven not pulling down latest snapshot jar issue 1. I'm using maven-3.0.3 and does anyone else have the issue where the latest snapshot jar is NOT downloaded while the meta data IS updated? It sounds a lot like what's being described in this bug report, although the title is misleading http://jira.codehaus.org/browse/MNG-4142, ad it happens when uniqueVersionfalse/uniqueVersion for that repository. 2. I tried applying the patch attached to MNG-4142 to the current trunk, but code seems to have been moved around on the trunk. Maybe someone can point to the current relevant code, so I can maybe submit a patch for it. This issue is pretty nasty as it makes for non reproducible builds. Thx, --Kurt - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Insert a timestamp into an archetype?
Hi I'm creating an archetype, with a bunch of files. In the .java files I want to insert a timestamp. When I use the archetype to generate a new project, the .java files should show when they were generated. Is this possible? I have tried inserting ${maven.build.timestamp} as the default value in my archetype-metadata.xml file, but it doesn't seem to work. -- Dennis Lundberg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Insert a timestamp into an archetype?
You could use filtering? On Fri, Sep 30, 2011 at 22:01, Dennis Lundberg denn...@apache.org wrote: Hi I'm creating an archetype, with a bunch of files. In the .java files I want to insert a timestamp. When I use the archetype to generate a new project, the .java files should show when they were generated. Is this possible? I have tried inserting ${maven.build.timestamp} as the default value in my archetype-metadata.xml file, but it doesn't seem to work. -- Dennis Lundberg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Maven Surefire 2.10 Released
The Maven team is pleased to announce the release of the Maven Surefire, version 2.10 This release includes the maven-surefire-plugin, which executes the unit tests of an application, the maven-surefire-report-plugin, which parses surefire/failsafe test results and renders them to DOXIA creating the web interface version of the test results, as well as the maven-failsafe-plugin, which executes the integration tests of an application. http://maven.apache.org/plugins/maven-surefire-plugin/ You should specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.10/version /plugin Release Notes - Maven Surefire - Version 2.10 ** Bug * [SUREFIRE-754] - unbounded memory use when capturing logs * [SUREFIRE-761] - java.lang.NoSuchMethodException when trying to run Junit 3 suite class * [SUREFIRE-763] - environmentVariables fails with useSystemClassLoader=false or forkMode=always * [SUREFIRE-766] - Regression in excludes feature between surefire 2.6 and 2.7. ** Improvement * [SUREFIRE-738] - Fail on not existing run order. * [SUREFIRE-750] - Add custom name suffix for surefire-reports (xml and txt) * [SUREFIRE-752] - Fix duplication in surefire/failsafe sites ** New Feature * [SUREFIRE-755] - Add new reports which default to the failsafe- results Enjoy, -The Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Insert a timestamp into an archetype?
Hi Bram Thanks for your suggestion. My current approach is to use filtering to insert the timestamp into the .java file. The problem I am having is actually getting hold of the appropriate value of a timestamp. It should reflect the point in time when my archetype is used to generate a new project. On 2011-09-30 22:03, Bram Patelski wrote: You could use filtering? On Fri, Sep 30, 2011 at 22:01, Dennis Lundberg denn...@apache.org wrote: Hi I'm creating an archetype, with a bunch of files. In the .java files I want to insert a timestamp. When I use the archetype to generate a new project, the .java files should show when they were generated. Is this possible? I have tried inserting ${maven.build.timestamp} as the default value in my archetype-metadata.xml file, but it doesn't seem to work. -- Dennis Lundberg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Dennis Lundberg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven not pulling down latest snapshot jar issue
Thanks Patrick, Yep that one is just what I am seeing. Looks like there is more to it then I thought.. Thanks for pointing me in the right direction.. Why aren't more people complaining about this? Is everyone using products like Artifactory to keep the number of snapshot of each artifact down? --Kurt On 9/30/11 3:42 PM, Patrick Sansoucy wrote: Is'nt rather related to this Jira that's been there for a while ? http://jira.codehaus.org/browse/MNG-5037?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel Patrick Sansoucy In theory, there is no difference between theory and practice, but in practice, there is ... On Fri, Sep 30, 2011 at 2:44 PM, Kurt T Stamkurt.s...@gmail.com wrote: Thanks Robert, I tried replacing the aether jar from 1.11 to 1.12 but that did not fix my issue. In my case the meta data is nicely updated by the actual jar and pom etc are still old. I guess I will spend some time with the debugger over the weekend to see what's going on. If anyone has some hints in where to look first then plz let me know! --Kurt On 9/30/11 12:40 PM, Robert Scholte wrote: Sounds like http://jira.codehaus.org/browse/MNG-5087 -Robert Date: Fri, 30 Sep 2011 11:46:19 -0400 From: kurt.s...@gmail.com To: users@maven.apache.org Subject: Maven not pulling down latest snapshot jar issue 1. I'm using maven-3.0.3 and does anyone else have the issue where the latest snapshot jar is NOT downloaded while the meta data IS updated? It sounds a lot like what's being described in this bug report, although the title is misleading http://jira.codehaus.org/browse/MNG-4142, ad it happens when uniqueVersionfalse/uniqueVersion for that repository. 2. I tried applying the patch attached to MNG-4142 to the current trunk, but code seems to have been moved around on the trunk. Maybe someone can point to the current relevant code, so I can maybe submit a patch for it. This issue is pretty nasty as it makes for non reproducible builds. Thx, --Kurt - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven not pulling down latest snapshot jar issue
My pleasure, Since M2 does the job, most people I've spoken to (including at my own workplace) hold back on M3 ... On top of that, there is the timestamped artifact workaround. I wish this could be higher up in the priority list, just for the fact it will push M3 adoption :( Patrick Sansoucy In theory, there is no difference between theory and practice, but in practice, there is ... On Fri, Sep 30, 2011 at 5:24 PM, Kurt T Stam kurt.s...@gmail.com wrote: Thanks Patrick, Yep that one is just what I am seeing. Looks like there is more to it then I thought.. Thanks for pointing me in the right direction.. Why aren't more people complaining about this? Is everyone using products like Artifactory to keep the number of snapshot of each artifact down? --Kurt On 9/30/11 3:42 PM, Patrick Sansoucy wrote: Is'nt rather related to this Jira that's been there for a while ? http://jira.codehaus.org/browse/MNG-5037?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel Patrick Sansoucy In theory, there is no difference between theory and practice, but in practice, there is ... On Fri, Sep 30, 2011 at 2:44 PM, Kurt T Stamkurt.s...@gmail.com wrote: Thanks Robert, I tried replacing the aether jar from 1.11 to 1.12 but that did not fix my issue. In my case the meta data is nicely updated by the actual jar and pom etc are still old. I guess I will spend some time with the debugger over the weekend to see what's going on. If anyone has some hints in where to look first then plz let me know! --Kurt On 9/30/11 12:40 PM, Robert Scholte wrote: Sounds like http://jira.codehaus.org/browse/MNG-5087 -Robert Date: Fri, 30 Sep 2011 11:46:19 -0400 From: kurt.s...@gmail.com To: users@maven.apache.org Subject: Maven not pulling down latest snapshot jar issue 1. I'm using maven-3.0.3 and does anyone else have the issue where the latest snapshot jar is NOT downloaded while the meta data IS updated? It sounds a lot like what's being described in this bug report, although the title is misleading http://jira.codehaus.org/browse/MNG-4142, ad it happens when uniqueVersionfalse/uniqueVersion for that repository. 2. I tried applying the patch attached to MNG-4142 to the current trunk, but code seems to have been moved around on the trunk. Maybe someone can point to the current relevant code, so I can maybe submit a patch for it. This issue is pretty nasty as it makes for non reproducible builds. Thx, --Kurt - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Insert a timestamp into an archetype?
Okay, I see. Well, I'm not sure if there is a filter-option for current time. I did once write a custom mojo for renaming packages (so directories) based on the archetype artifactId. That way if I used the archetype to generate a new project called: - groupId: org.apache.whatever - artifactId: myNewProject I could auto-rename my class-package to: org.apache.whatever.myNewProject I also had the idea (didn't make it... yet?) of writing a mojo for filtering Word-templates of the documentation. Maybe you could use an approach like this. Obviously you have new Date() at your disposal if you write your own mojo. But it would be cleaner to have the filter-option like you tried. Good luck On Fri, Sep 30, 2011 at 23:21, Dennis Lundberg denn...@apache.org wrote: Hi Bram Thanks for your suggestion. My current approach is to use filtering to insert the timestamp into the .java file. The problem I am having is actually getting hold of the appropriate value of a timestamp. It should reflect the point in time when my archetype is used to generate a new project. On 2011-09-30 22:03, Bram Patelski wrote: You could use filtering? On Fri, Sep 30, 2011 at 22:01, Dennis Lundberg denn...@apache.org wrote: Hi I'm creating an archetype, with a bunch of files. In the .java files I want to insert a timestamp. When I use the archetype to generate a new project, the .java files should show when they were generated. Is this possible? I have tried inserting ${maven.build.timestamp} as the default value in my archetype-metadata.xml file, but it doesn't seem to work. -- Dennis Lundberg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Dennis Lundberg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Dependency version properties defined in settings.xml are not being resolved, Maven 2.2.1
Using Maven 2.2.1 I have defined a profile in my settings.xml file, and specified some properties. This profile is also listed as an active profile. For example: profile idthird-party-lib-versions/id properties log4j.version1.2.16/log4j.version /properties /profile activeProfiles activeProfilethird-party-lib-versions/activeProfile /activeProfiles Then I have a dependency in my pom, which references the property: dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version${log4j.version}/version /dependency In most cases Maven 2.2.1 will inject the property just fine. But it seems to also end up creating a $M2_REPO/log4j/log4j/${log4j.version}, and when I run mvn test, it complains [INFO] Unable to find resource 'log4j:log4j:pom:${log4j.version}' in repository central (xxx) Is there something else that I need to do to ensure that properties defined in settings.xml are always processed ? Thanks Aspi Engineer Putnam Investments This message is intended for the recipient only and is not meant to be forwarded or distributed in any other format. This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument, or security, or as an official confirmation of any transaction. Putnam does not accept purchase or redemptions of securities, instructions, or authorizations that are sent via e-mail. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of Putnam Investments, LLC (DBA Putnam Investments) and its subsidiaries and affiliates. If you are not the intended recipient of this e-mail, please delete the e-mail. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Dependency version properties defined in settings.xml are not being resolved, Maven 2.2.1
You should always ensure that you have a default value for properties set by profiles. Most likely you're running into some scenario where the profile just isn't active. So, in your pom you should define the property as well. May I also add that what you're trying to do is not good. IMHO you should never alter dependencies through profiles as this will cause problem for people consuming your artifact. As well as for people trying to build your project as they would get a different result (different dependency). /Anders On Sat, Oct 1, 2011 at 02:55, aspi_engin...@putnam.com wrote: Using Maven 2.2.1 I have defined a profile in my settings.xml file, and specified some properties. This profile is also listed as an active profile. For example: profile idthird-party-lib-versions/id properties log4j.version1.2.16/log4j.version /properties /profile activeProfiles activeProfilethird-party-lib-versions/activeProfile /activeProfiles Then I have a dependency in my pom, which references the property: dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version${log4j.version}/version /dependency In most cases Maven 2.2.1 will inject the property just fine. But it seems to also end up creating a $M2_REPO/log4j/log4j/${log4j.version}, and when I run mvn test, it complains [INFO] Unable to find resource 'log4j:log4j:pom:${log4j.version}' in repository central (xxx) Is there something else that I need to do to ensure that properties defined in settings.xml are always processed ? Thanks Aspi Engineer Putnam Investments This message is intended for the recipient only and is not meant to be forwarded or distributed in any other format. This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument, or security, or as an official confirmation of any transaction. Putnam does not accept purchase or redemptions of securities, instructions, or authorizations that are sent via e-mail. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of Putnam Investments, LLC (DBA Putnam Investments) and its subsidiaries and affiliates. If you are not the intended recipient of this e-mail, please delete the e-mail. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org