Re: maven 3 inheritance
AFAIK using ${project.versopm} is not the preferred way. The release plugin will update all those versions for you so that you don't have to use ${project.version}. If you use ${project.version} then releases will be slower AFAIK due to some strange resolving issue! The use of properties for specifying versions in dependencies is usually when you want to lock a suite of dependencies (built externally to your reactor) to the same version, e.g. properties jetty-version6.1.20/jetty-version /properties dependencies dependency groupIdorg.mortbay.jetty/groupId artifactIdjetty/artifactId version${jetty-version}/version /dependency dependency groupIdorg.mortbay.jetty/groupId artifactIdjetty-management/artifactId version${jetty-version}/version /dependency dependency groupIdorg.mortbay.jetty/groupId artifactIdjetty-naming/artifactId version${jetty-version}/version /dependency dependency groupIdorg.mortbay.jetty/groupId artifactIdjetty-plus/artifactId version${jetty-version}/version /dependency dependency groupIdorg.mortbay.jetty/groupId artifactIdjetty-util/artifactId version${jetty-version}/version /dependency /dependencies in the above example, a property is the only way to ensure that all the dependencies are tied to the same version. In addition, if you have a pom with such a set of dependencies / dependencyManagement and the property is defined in the same pom.xml, then versions:update-properties becomes very handy -Stephen 2009/12/9 Baptiste MATHUS m...@batmat.net And by the way, using variables for specifying dependencies versions perfectly work out of the box with maven2. For example, we have a whole project hierarchy of 20+ modules that all have the same version. Each module always references the parent version since it must be there. But it doesn't have its own version tag, or even groupId. And referencing between modules is then just done by the standard variable ${project.version}. FWIW. Cheers. 2009/12/9 Paul Benedict pbened...@apache.org Dana, just to clarify, he was asking about variables in dependencies. I don't think the parent is considered a dependency in the technical sense that Maven uses. On Tue, Dec 8, 2009 at 6:40 PM, Lacoste, Dana (TSG Software San Diego) dana.laco...@hp.com wrote: No, with maven 2 you cannot have a variable in the parent version. The string will be interpreted literally without dereferencing the variable name. Similarly, you can't have an empty version number: the parent MUST have a defined version number and it MUST be absolute and not contain any variables. variables work fine in any other version number, however. ranges, on the other hand, do not ;) Dana Lacoste -Original Message- From: paulus.benedic...@gmail.com [mailto:paulus.benedic...@gmail.com] On Behalf Of Paul Benedict Sent: Tuesday, December 08, 2009 4:37 PM To: Maven Users List Subject: Re: maven 3 inheritance ...and parent versions? Good question. You'll have to find out if the project hierarchy or dependency resolution is processed first. Report back and tell us! 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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
Re: Maven Plugin to detect duplicate class files in a e.g. WAR
Hi Brian, Brian Fox wrote at Mittwoch, 9. Dezember 2009 04:44: No but when projects move group or artifactIds, they are supposed to create a pom with relocation info in it, then Maven is able to mediate the conflicts. Apart from relocation, Mirko's idea is quite interesting in case some artifacts have been used that collect other packages without knowing. Prominent example has been cglib-2.x (containing the ASM 1.5.x stuff that broke Hibernate 3.0 using ASM 2.x) or stuff like groovy-all. I know quite some more innocent-looking artifacts that may break other dependencies because of class bundling. Also relocation cannot work if an artifact is splitted (avalon-framework). - Jörg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Modifying classpath
http://www.ops4j.org/projects/pax/construct/maven-pax-plugin/ 2009/12/9 Jochen Mader pflanzenmoer...@gmail.com I am working on a little prove of concept for an OSGi build. (I know all the other plugins, Tycho is Maven 3 and therefore not usable in our environment and we want to avoid the meta information duplication other tools cause) I got a plugin, I am accessing the context classloader. I created my realm in classworld and added my jars to this new realm. How can I now make maven use this classloader in the build process (I configured the plugin to run in the compile step)? thx Jochen
Re: disable strict host checking with ssh wagon
Yep, similar to how it is done for HTTP: http://brettporter.wordpress.com/2009/06/16/configuring-maven-http-connections/ I'm not sure how well such a configuration option will survive into M3, etc., though - it's relying on the way Plexus is injecting the Wagon. - Brett On 09/12/2009, at 10:21 AM, Justin Edelson wrote: This goes in settings.xml? Thanks On Dec 8, 2009, at 6:02 PM, Brett Porter br...@apache.org wrote: Like so: server iddeploy.host/id configuration knownHostsProvider implementation=org.apache.maven.wagon.providers.ssh.knownhost.NullKnownHostProvider hostKeyCheckingno/hostKeyChecking /knownHostsProvider /configuration /server Cheers, Brett On 09/12/2009, at 2:54 AM, Justin Edelson wrote: I know this is a bad idea, but I need to disable host key checking for wagon-ssh. I don't see an obvious way to do this. The archives show an email from June on this subject that was never answered, which I hope isn't a sign that this can't be done :) Thanks, Justin -- Brett Porter br...@apache.org http://brettporter.wordpress.com/ - 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 -- Brett Porter br...@apache.org http://brettporter.wordpress.com/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Modifying classpath
Not that I have used it... just skimmed a book on OSGi and it was using this plugin to do all the OSGi heavy lifting... skimming their website, they may not be doing everything the True Maven Way... but they are probably not a million miles off -Stephen 2009/12/9 Stephen Connolly stephen.alan.conno...@gmail.com http://www.ops4j.org/projects/pax/construct/maven-pax-plugin/ 2009/12/9 Jochen Mader pflanzenmoer...@gmail.com I am working on a little prove of concept for an OSGi build. (I know all the other plugins, Tycho is Maven 3 and therefore not usable in our environment and we want to avoid the meta information duplication other tools cause) I got a plugin, I am accessing the context classloader. I created my realm in classworld and added my jars to this new realm. How can I now make maven use this classloader in the build process (I configured the plugin to run in the compile step)? thx Jochen
Re: maven 3 inheritance
I know it works for maven 2, however it seems broken for maven 3. I am going to test this a bit more, and report back. This might be a symptom of something else. I have also made expressions work for parent versions using a modified install deploy plugin. I was hoping this would not be necessary in maven 3. We have multiple products which are build independently, but some of them have dependencies on each other. We do not want to have to specify the version for every product everywhere we use that, as it simply doesn't scale. We do not use the release plugin, as our versioning setup does not match how the release plugin works, and we don't want to modify YET another plugin just to make this broken plugin work. --Erlend On Wed, Dec 9, 2009 at 8:29 AM, Baptiste MATHUS m...@batmat.net wrote: And by the way, using variables for specifying dependencies versions perfectly work out of the box with maven2. For example, we have a whole project hierarchy of 20+ modules that all have the same version. Each module always references the parent version since it must be there. But it doesn't have its own version tag, or even groupId. And referencing between modules is then just done by the standard variable ${project.version}. FWIW. Cheers. 2009/12/9 Paul Benedict pbened...@apache.org Dana, just to clarify, he was asking about variables in dependencies. I don't think the parent is considered a dependency in the technical sense that Maven uses. On Tue, Dec 8, 2009 at 6:40 PM, Lacoste, Dana (TSG Software San Diego) dana.laco...@hp.com wrote: No, with maven 2 you cannot have a variable in the parent version. The string will be interpreted literally without dereferencing the variable name. Similarly, you can't have an empty version number: the parent MUST have a defined version number and it MUST be absolute and not contain any variables. variables work fine in any other version number, however. ranges, on the other hand, do not ;) Dana Lacoste -Original Message- From: paulus.benedic...@gmail.com [mailto:paulus.benedic...@gmail.com] On Behalf Of Paul Benedict Sent: Tuesday, December 08, 2009 4:37 PM To: Maven Users List Subject: Re: maven 3 inheritance ...and parent versions? Good question. You'll have to find out if the project hierarchy or dependency resolution is processed first. Report back and tell us! 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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
Re: Maven Plugin to detect duplicate class files in a e.g. WAR
Should be possible to add a mojo to the maven-dependency-plugin to scan for duplicate classes in scope XYZ... that would be the major indicator. Of course you'd need include/excludes... and ignores... and failure mode control probably want a report as well... can you file a JIRA for it... if nobody has implemented it by xmas, I'll take a bite -Stephen 2009/12/9 Jörg Schaible joerg.schai...@gmx.de Hi Brian, Brian Fox wrote at Mittwoch, 9. Dezember 2009 04:44: No but when projects move group or artifactIds, they are supposed to create a pom with relocation info in it, then Maven is able to mediate the conflicts. Apart from relocation, Mirko's idea is quite interesting in case some artifacts have been used that collect other packages without knowing. Prominent example has been cglib-2.x (containing the ASM 1.5.x stuff that broke Hibernate 3.0 using ASM 2.x) or stuff like groovy-all. I know quite some more innocent-looking artifacts that may break other dependencies because of class bundling. Also relocation cannot work if an artifact is splitted (avalon-framework). - Jörg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven 3 inheritance
+1 with Stephen We faced the problem with release plugin and, since then, are hard coding version in the artefacts. Frederic On Wed, Dec 9, 2009 at 9:03 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: AFAIK using ${project.versopm} is not the preferred way. The release plugin will update all those versions for you so that you don't have to use ${project.version}. If you use ${project.version} then releases will be slower AFAIK due to some strange resolving issue! The use of properties for specifying versions in dependencies is usually when you want to lock a suite of dependencies (built externally to your reactor) to the same version, e.g. properties jetty-version6.1.20/jetty-version /properties dependencies dependency groupIdorg.mortbay.jetty/groupId artifactIdjetty/artifactId version${jetty-version}/version /dependency dependency groupIdorg.mortbay.jetty/groupId artifactIdjetty-management/artifactId version${jetty-version}/version /dependency dependency groupIdorg.mortbay.jetty/groupId artifactIdjetty-naming/artifactId version${jetty-version}/version /dependency dependency groupIdorg.mortbay.jetty/groupId artifactIdjetty-plus/artifactId version${jetty-version}/version /dependency dependency groupIdorg.mortbay.jetty/groupId artifactIdjetty-util/artifactId version${jetty-version}/version /dependency /dependencies in the above example, a property is the only way to ensure that all the dependencies are tied to the same version. In addition, if you have a pom with such a set of dependencies / dependencyManagement and the property is defined in the same pom.xml, then versions:update-properties becomes very handy -Stephen 2009/12/9 Baptiste MATHUS m...@batmat.net And by the way, using variables for specifying dependencies versions perfectly work out of the box with maven2. For example, we have a whole project hierarchy of 20+ modules that all have the same version. Each module always references the parent version since it must be there. But it doesn't have its own version tag, or even groupId. And referencing between modules is then just done by the standard variable ${project.version}. FWIW. Cheers. 2009/12/9 Paul Benedict pbened...@apache.org Dana, just to clarify, he was asking about variables in dependencies. I don't think the parent is considered a dependency in the technical sense that Maven uses. On Tue, Dec 8, 2009 at 6:40 PM, Lacoste, Dana (TSG Software San Diego) dana.laco...@hp.com wrote: No, with maven 2 you cannot have a variable in the parent version. The string will be interpreted literally without dereferencing the variable name. Similarly, you can't have an empty version number: the parent MUST have a defined version number and it MUST be absolute and not contain any variables. variables work fine in any other version number, however. ranges, on the other hand, do not ;) Dana Lacoste -Original Message- From: paulus.benedic...@gmail.com [mailto: paulus.benedic...@gmail.com] On Behalf Of Paul Benedict Sent: Tuesday, December 08, 2009 4:37 PM To: Maven Users List Subject: Re: maven 3 inheritance ...and parent versions? Good question. You'll have to find out if the project hierarchy or dependency resolution is processed first. Report back and tell us! 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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
Re: maven 3 inheritance
Using properties to specify dependency versions (for dependencies external to the reactor) works fine with maven 3.0-alpha-5. I cannot comment on using ${project.version} as it's bad practice (AFAIK, although the release plugin has some code to make it work, IIRC the code takes longer to run a build) so none of my projects use that Also what is your issue with the release plugin... it's quite flexible and should cover most cases (providing you tweak the release profile)... and if your versioning scheme does not work with the release plugin, then EITHER your scheme is a pile of sh1t and will lead you in to problems when used with Maven OR we need to know about your wonderful near perfect scheme and add support to the release plugin. ;-) -Stephen 2009/12/9 Erlend Hamnaberg ngar...@gmail.com I know it works for maven 2, however it seems broken for maven 3. I am going to test this a bit more, and report back. This might be a symptom of something else. I have also made expressions work for parent versions using a modified install deploy plugin. I was hoping this would not be necessary in maven 3. We have multiple products which are build independently, but some of them have dependencies on each other. We do not want to have to specify the version for every product everywhere we use that, as it simply doesn't scale. We do not use the release plugin, as our versioning setup does not match how the release plugin works, and we don't want to modify YET another plugin just to make this broken plugin work. --Erlend On Wed, Dec 9, 2009 at 8:29 AM, Baptiste MATHUS m...@batmat.net wrote: And by the way, using variables for specifying dependencies versions perfectly work out of the box with maven2. For example, we have a whole project hierarchy of 20+ modules that all have the same version. Each module always references the parent version since it must be there. But it doesn't have its own version tag, or even groupId. And referencing between modules is then just done by the standard variable ${project.version}. FWIW. Cheers. 2009/12/9 Paul Benedict pbened...@apache.org Dana, just to clarify, he was asking about variables in dependencies. I don't think the parent is considered a dependency in the technical sense that Maven uses. On Tue, Dec 8, 2009 at 6:40 PM, Lacoste, Dana (TSG Software San Diego) dana.laco...@hp.com wrote: No, with maven 2 you cannot have a variable in the parent version. The string will be interpreted literally without dereferencing the variable name. Similarly, you can't have an empty version number: the parent MUST have a defined version number and it MUST be absolute and not contain any variables. variables work fine in any other version number, however. ranges, on the other hand, do not ;) Dana Lacoste -Original Message- From: paulus.benedic...@gmail.com [mailto: paulus.benedic...@gmail.com] On Behalf Of Paul Benedict Sent: Tuesday, December 08, 2009 4:37 PM To: Maven Users List Subject: Re: maven 3 inheritance ...and parent versions? Good question. You'll have to find out if the project hierarchy or dependency resolution is processed first. Report back and tell us! 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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
Re: Modifying classpath
Thanks for the answer Stephen but that's exactly the answer I wanted to avoid. I already tried pax construct and it's a good tool. As I stated in my email we want to do a proof of concept. The concept is supposed to be to get all dependencies from an OBR and to ensure that only OSGi versions of jars are downloaded and added. So what I actually want to do is to get my build dependencies from OBR, put them ion a local OBR and make the jars in there available to maven during buildtime WITHOUT having to add additional dependency information in the pom as all of that information is already available in the OSGi manifest. thx Jochen
Mixing Scala and Java in the same project
Hi Has anyone got any guidelines for mixing Scala and Java in the same project? Thanks very much in advance -- Peter Pilgrim | E-Channel Services, Technical Lead, eBusiness Lloyds Banking Group | Wholesale Markets Treasury IT 33 Old Broad Street, London, EC2N 1HZ, UK ' +44 (0)207 158 6135 | ( +44 (0)1234 567 8901 * peter.pilg...@lloydsbanking.com * www.lloydsbankinggroup.com http://www.lloydsbankinggroup.com/ This e-mail is private and confidential and may contain privileged material. If you have received this e-mail in error, please notify the sender and delete it immediately. You must not copy, distribute, disclose or use any of the information in it or any attachments. Lloyds Banking Group plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland, number 95000. Telephone: 0131 225 4555. Lloyds TSB Bank plc. Registered Office: 25 Gresham Street, London EC2V 7HN. Registered in England and Wales, number 2065. Telephone: 020 7626 1500. Lloyds TSB Scotland plc. Registered Office: Henry Duncan House, 120 George Street, Edinburgh EH2 4LH. Registered in Scotland, number 95237. Telephone: 0131 225 4555. Cheltenham Gloucester plc. Registered Office: Barnett Way, Gloucester GL4 3RL. Registered in England and Wales, number 2299428. Telephone: 01452 372372. Cheltenham Gloucester Savings is a division of Lloyds TSB Bank plc. Lloyds TSB Bank plc, Lloyds TSB Scotland plc and Cheltenham Gloucester plc are authorised and regulated by the Financial Services Authority. Telephone calls may be monitored or recorded. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
[Maven 2, SCM 1.2] SCM CM/Synergy Provider
Not sure if this was already posted. I am not recieving any response nor this email. Hi, Incase i want to customise CM/Synergy provider plugin used with Maven SCM plugin, what are the minimum steps i should do? Can any of the developers/users tell me some useful steps OR links/urls to proceed with my coding? I want to know basically how to setup my environment to do some coding with Maven SCM and/or SCM providers project. I have installed tortoiseSVN (using Windows platform). Regards Subir Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Re: Mixing Scala and Java in the same project
http://kenai.com/projects/nb-maven-generators/ uses both scala and java code in the same project. It's a netbeans module that can add the scala configuration to your existing projects. Milos On Wed, Dec 9, 2009 at 10:23 AM, Pilgrim, Peter peter.pilg...@lloydsbanking.com wrote: Hi Has anyone got any guidelines for mixing Scala and Java in the same project? Thanks very much in advance -- Peter Pilgrim | E-Channel Services, Technical Lead, eBusiness Lloyds Banking Group | Wholesale Markets Treasury IT 33 Old Broad Street, London, EC2N 1HZ, UK ' +44 (0)207 158 6135 | ( +44 (0)1234 567 8901 * peter.pilg...@lloydsbanking.com * www.lloydsbankinggroup.com http://www.lloydsbankinggroup.com/ This e-mail is private and confidential and may contain privileged material. If you have received this e-mail in error, please notify the sender and delete it immediately. You must not copy, distribute, disclose or use any of the information in it or any attachments. Lloyds Banking Group plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland, number 95000. Telephone: 0131 225 4555. Lloyds TSB Bank plc. Registered Office: 25 Gresham Street, London EC2V 7HN. Registered in England and Wales, number 2065. Telephone: 020 7626 1500. Lloyds TSB Scotland plc. Registered Office: Henry Duncan House, 120 George Street, Edinburgh EH2 4LH. Registered in Scotland, number 95237. Telephone: 0131 225 4555. Cheltenham Gloucester plc. Registered Office: Barnett Way, Gloucester GL4 3RL. Registered in England and Wales, number 2299428. Telephone: 01452 372372. Cheltenham Gloucester Savings is a division of Lloyds TSB Bank plc. Lloyds TSB Bank plc, Lloyds TSB Scotland plc and Cheltenham Gloucester plc are authorised and regulated by the Financial Services Authority. Telephone calls may be monitored or recorded. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
Re: Dashboard plugin
Thanks for the info.It is also written in plugin's site but i was still hoping for a one pass solution. dvicente wrote: It's not possible to generate dashboard report in one pass. The problem is that you must generate all others reports to aggregate them. so you must do it in 2 passes : - mvn site - mvn dashboard:dashboard site:deploy it's the only way to do it canerK wrote: Hi, Thanks for the reply. We have a multi-module maven project and we want an aggregated report containing information about all submodules.The name of the report we want is :Global DashBoard Report and we dont need the historical graph attribute now. dvicente wrote: to do what ? you want a snapshot report or the full report with historical graph ? canerK wrote: Is it possible to generate the dashboard plugin report in just one pass?What i want to achieve is:generating the report by executing only mvn site dashboard:dashboard site:deploy command -- View this message in context: http://old.nabble.com/Dashboard-plugin-tp26692812p26708936.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
settings.xml and properties
Is settings.xml read before the POMS? So if I for instance define a property in the POM and i want to trigger a profile in the settings.xml. Can I do that from the POM? Say for instance i have this: pom.snippet properties branchtrunk/branch /properties then I have the settings.xml snippet. profile idproduct-trunk/id activation activeByDefaultfalse/activeByDefault property namebranch/name valuetrunk/value /property /activation repositories repository idcentral/id urlhttp://localhost:9000/content/groups/trunk/url releases enabledtrue/enabled /releases snapshots enabledtrue/enabled /snapshots /repository /repositories /profile mvn help:active-profiles does not say the product-trunk is active, and I am assuming that this is because of the settings.xml is read before the poms. Now, before you say that I should use mirrors instead. Yes i want to do that, however, we have three different branches with the same version, and it would be nice if I could replace central like this. If this is not possible, I will go with the mirror approach. -- Erlend
Re: settings.xml and properties
Never mind. this works. On Wed, Dec 9, 2009 at 12:59 PM, Erlend Hamnaberg ngar...@gmail.com wrote: Is settings.xml read before the POMS? So if I for instance define a property in the POM and i want to trigger a profile in the settings.xml. Can I do that from the POM? Say for instance i have this: pom.snippet properties branchtrunk/branch /properties then I have the settings.xml snippet. profile idproduct-trunk/id activation activeByDefaultfalse/activeByDefault property namebranch/name valuetrunk/value /property /activation repositories repository idcentral/id urlhttp://localhost:9000/content/groups/trunk/url releases enabledtrue/enabled /releases snapshots enabledtrue/enabled /snapshots /repository /repositories /profile mvn help:active-profiles does not say the product-trunk is active, and I am assuming that this is because of the settings.xml is read before the poms. Now, before you say that I should use mirrors instead. Yes i want to do that, however, we have three different branches with the same version, and it would be nice if I could replace central like this. If this is not possible, I will go with the mirror approach. -- Erlend
Re: Mixing Scala and Java in the same project
On 09/12/2009, at 8:23 PM, Pilgrim, Peter wrote: Hi Has anyone got any guidelines for mixing Scala and Java in the same project? This is what I found when looking at the same thing: http://www.scala-tools.org/mvnsites/maven-scala-plugin/usage_java.html Thanks very much in advance with regards, -- Lachlan Deck - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Creating a jar with manifest only using maven-bundle-plugin
Hi all, I wanted to create bundle(OSGi jar file) which just have a manifest file only, so when I try to do that I'm getting the following error. [WARNING] Warning building bundle org.wso2.carbon:servletbridge:bundle:1.0.0 : Classpath is empty. Private-Package and Export-Package can only expand from the classpath when there is one [WARNING] Warning building bundle org.wso2.carbon:servletbridge:bundle:1.0.0 : Instructions for Export-Package that are never used: javax\.servlet\.resources, javax\.servlet, javax\.servlet\.http, org\.wso2\.carbon\.bridge, org\.wso2\.carbon\.server\.transports [WARNING] Warning building bundle org.wso2.carbon:servletbridge:bundle:1.0.0 : Superfluous export-package instructions: [javax.servlet, javax.servlet.http, javax.servlet.resources, org.wso2.carbon.bridge, org.wso2.carbon.server.transports] [WARNING] Warning building bundle org.wso2.carbon:servletbridge:bundle:1.0.0 : Did not find matching referal for * [ERROR] Error building bundle org.wso2.carbon:servletbridge:bundle:1.0.0 : The JAR is empty [ERROR] Error(s) found in bundle configuration My pom.xml looks like this. project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; parent groupIdorg.wso2.carbon/groupId artifactIdcarbon-orbit-parent/artifactId version2.1.0-SNAPSHOT/version /parent modelVersion4.0.0/modelVersion groupIdorg.wso2.carbon/groupId artifactIdservletbridge/artifactId packagingbundle/packaging nameorg.wso2.carbon.servletbridge/name version1.0.0/version description Servletbridge Extension Bundle /description urlhttp://wso2.org/url build plugins plugin groupIdorg.apache.felix/groupId artifactIdmaven-bundle-plugin/artifactId version1.4.0/version extensionstrue/extensions configuration instructions Bundle-SymbolicNameservletbridge/Bundle-SymbolicName Bundle-NameServletbridge Extension Bundle/Bundle-Name Bundle-Version1.0.0/Bundle-Version Export-Package org.wso2.carbon.bridge; version=1.0.0, org.wso2.carbon.server.transports; version=1.0.0, javax.servlet; version=2.4.0, javax.servlet.http; version=2.4.0, javax.servlet.resources; version=2.4.0 /Export-Package /instructions /configuration /plugin /plugins /build /project Can anyone help me to fix this issue ? Lahiru -- Apache Qpid, Worlds dominant messaging middleware..!!!
RE: Mixing Scala and Java in the same project
The Sonatype Maven Handbook has a couple of pages on Scala inline POM and running an external script as part of build. It may help start: http://www.sonatype.com/documentation/books#mhandbook -Original Message- From: Pilgrim, Peter [mailto:peter.pilg...@lloydsbanking.com] Sent: Wednesday, December 09, 2009 3:23 AM To: Maven Users List Subject: Mixing Scala and Java in the same project Hi Has anyone got any guidelines for mixing Scala and Java in the same project? Thanks very much in advance -- Peter Pilgrim | E-Channel Services, Technical Lead, eBusiness Lloyds Banking Group | Wholesale Markets Treasury IT 33 Old Broad Street, London, EC2N 1HZ, UK ' +44 (0)207 158 6135 | ( +44 (0)1234 567 8901 * peter.pilg...@lloydsbanking.com * www.lloydsbankinggroup.com http://www.lloydsbankinggroup.com/ This e-mail is private and confidential and may contain privileged material. If you have received this e-mail in error, please notify the sender and delete it immediately. You must not copy, distribute, disclose or use any of the information in it or any attachments. Lloyds Banking Group plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland, number 95000. Telephone: 0131 225 4555. Lloyds TSB Bank plc. Registered Office: 25 Gresham Street, London EC2V 7HN. Registered in England and Wales, number 2065. Telephone: 020 7626 1500. Lloyds TSB Scotland plc. Registered Office: Henry Duncan House, 120 George Street, Edinburgh EH2 4LH. Registered in Scotland, number 95237. Telephone: 0131 225 4555. Cheltenham Gloucester plc. Registered Office: Barnett Way, Gloucester GL4 3RL. Registered in England and Wales, number 2299428. Telephone: 01452 372372. Cheltenham Gloucester Savings is a division of Lloyds TSB Bank plc. Lloyds TSB Bank plc, Lloyds TSB Scotland plc and Cheltenham Gloucester plc are authorised and regulated by the Financial Services Authority. Telephone calls may be monitored or recorded. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: assembly is deprecated. What to use?
On Wed, Dec 09, 2009 at 07:45:52AM +1100, Brett Randall wrote: Yes, this one: http://jira.codehaus.org/browse/MPH-59 Describe goal says everything is deprecated. Says fixed in 2.1.1. Seems to be broken differently in 2.2: mw...@mhw ~ $ mvn help:describe -Ddetail=true -Dplugin=assembly CompilerOracle: exclude org/eclipse/core/internal/dtree/DataTreeNode.forwardDeltaWith [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'help'. [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [help:describe] (aggregator-style) [INFO] [INFO] [help:describe {execution: default-cli}] [INFO] Plugin: 'org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-4' --- Group Id: org.apache.maven.plugins Artifact Id: maven-assembly-plugin Version: 2.2-beta-4 Goal Prefix: assembly Description: A Maven 2 plugin to create archives of your project's sources, classes, dependencies etc. from flexible assembly descriptors. [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 1 second [INFO] Finished at: Wed Dec 09 09:04:13 EST 2009 [INFO] Final Memory: 4M/8M [INFO] mw...@mhw ~ $ mvn --version CompilerOracle: exclude org/eclipse/core/internal/dtree/DataTreeNode.forwardDeltaWith Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400) Java version: 1.6.0_17 Java home: /opt/sun-jdk-1.6.0.17/jre Default locale: en_US, platform encoding: UTF-8 OS name: linux version: 2.6.30-gentoo-r5 arch: i386 Family: unix mw...@mhw ~ $ -- Mark H. Wood, Lead System Programmer mw...@iupui.edu Friends don't let friends publish revisable-form documents. pgp2gpGUVDDQs.pgp Description: PGP signature
RE: Mixing Scala and Java in the same project
Hi Lachlan Thanks very much for this link on the official Scala site. -- Peter Pilgrim | E-Channel Services, Technical Lead, eBusiness Lloyds Banking Group | Wholesale Markets Treasury IT 33 Old Broad Street, London, EC2N 1HZ, UK ' +44 (0)207 158 6135 | ( +44 (0)1234 567 8901 + peter.pilg...@lloydsbanking.com : www.lloydsbankinggroup.com -Original Message- From: Lachlan Deck [mailto:lachlan.d...@gmail.com] Sent: 09 December 2009 12:32 To: Maven Users List Subject: Re: Mixing Scala and Java in the same project On 09/12/2009, at 8:23 PM, Pilgrim, Peter wrote: Hi Has anyone got any guidelines for mixing Scala and Java in the same project? This is what I found when looking at the same thing: http://www.scala-tools.org/mvnsites/maven-scala-plugin/usage_java.html Thanks very much in advance with regards, -- Lachlan Deck - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org This e-mail is private and confidential and may contain privileged material. If you have received this e-mail in error, please notify the sender and delete it immediately. You must not copy, distribute, disclose or use any of the information in it or any attachments. Lloyds Banking Group plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland, number 95000. Telephone: 0131 225 4555. Lloyds TSB Bank plc. Registered Office: 25 Gresham Street, London EC2V 7HN. Registered in England and Wales, number 2065. Telephone: 020 7626 1500. Lloyds TSB Scotland plc. Registered Office: Henry Duncan House, 120 George Street, Edinburgh EH2 4LH. Registered in Scotland, number 95237. Telephone: 0131 225 4555. Cheltenham Gloucester plc. Registered Office: Barnett Way, Gloucester GL4 3RL. Registered in England and Wales, number 2299428. Telephone: 01452 372372. Cheltenham Gloucester Savings is a division of Lloyds TSB Bank plc. Lloyds TSB Bank plc, Lloyds TSB Scotland plc and Cheltenham Gloucester plc are authorised and regulated by the Financial Services Authority. Telephone calls may be monitored or recorded. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: assembly is deprecated. What to use?
Hi Mark, Mark H. Wood wrote at Mittwoch, 9. Dezember 2009 15:09: On Wed, Dec 09, 2009 at 07:45:52AM +1100, Brett Randall wrote: Yes, this one: http://jira.codehaus.org/browse/MPH-59 Describe goal says everything is deprecated. Says fixed in 2.1.1. Seems to be broken differently in 2.2: Don't mix the version of the assembly plugin with the one of the help plugin. Latest release of the help plugin is 2.1, 2.1.1 is not released yet. mw...@mhw ~ $ mvn help:describe -Ddetail=true -Dplugin=assembly CompilerOracle: exclude org/eclipse/core/internal/dtree/DataTreeNode.forwardDeltaWith [snip] mw...@mhw ~ $ mvn --version CompilerOracle: exclude org/eclipse/core/internal/dtree/DataTreeNode.forwardDeltaWith Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400) Java version: 1.6.0_17 Java home: /opt/sun-jdk-1.6.0.17/jre Default locale: en_US, platform encoding: UTF-8 OS name: linux version: 2.6.30-gentoo-r5 arch: i386 Family: unix There seems something else fundamentally broken with your setup, looking at this strange CompilerOracle message. And my environment is quite similar: == % $ mvn --version Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) Java version: 1.6.0_17 Java home: /opt/sun-jdk-1.6.0.17/jre Default locale: en_US, platform encoding: UTF-8 OS name: linux version: 2.6.31-gentoo-r6 arch: i386 Family: unix == % - Jörg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
how to easily release a version and change to new version?
Hello everybody, I have a problem with automatically deploying modules in Maven. I suppose that I have a Maven's hierachy as the following: - trunk + pom.xml +-- A + pom.xml +-- A1 + pom.xml +-- A11 ... +-- A12 ... +-- A2 +-- A3 +-- B +-- B1 ... Now, the versions of the modules is 0.1.8-SNAPSHOT. I want to release 0.1.8 and start the 0.1.9-SNAPSHOT version. Is there any way to only do something in the trunk/pom.xml, I can then easily release 0.1.8 and change to 0.1.9-SNAPSHOT. Thanks in advance, Kinh - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: how to easily release a version and change to new version?
On Wed, Dec 9, 2009 at 11:31 AM, NGUYEN Cong Kinh cong_kinh.ngu...@it-sudparis.eu wrote: Now, the versions of the modules is 0.1.8-SNAPSHOT. I want to release 0.1.8 and start the 0.1.9-SNAPSHOT version. Is there any way to only do something in the trunk/pom.xml, I can then easily release 0.1.8 and change to 0.1.9-SNAPSHOT. http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html, probably. Best, Laird
Re: how to easily release a version and change to new version?
this will get you started mvn -B release:prepare release:perform after that tailor it to your desired -Dan On Wed, Dec 9, 2009 at 8:48 AM, Laird Nelson ljnel...@gmail.com wrote: On Wed, Dec 9, 2009 at 11:31 AM, NGUYEN Cong Kinh cong_kinh.ngu...@it-sudparis.eu wrote: Now, the versions of the modules is 0.1.8-SNAPSHOT. I want to release 0.1.8 and start the 0.1.9-SNAPSHOT version. Is there any way to only do something in the trunk/pom.xml, I can then easily release 0.1.8 and change to 0.1.9-SNAPSHOT. http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html, probably. Best, Laird - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Why isn't Surefire more easier and more sensible to use?
I'm also looking for a way to get a surefire summary (like http://old.nabble.com/file/p26713465/1.txt this one ) to be created in a file, rather than in console only. I see it's not available today, am I right ? - -- Best regards, Evgeny http://evgeny-goldin.com/ -- View this message in context: http://old.nabble.com/Why-isn%27t-Surefire-more-easier-and-more-sensible-to-use--tp23611804p26713465.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: Creating a jar with manifest only using maven-bundle-plugin
groupIdorg.apache.felix/groupId artifactIdmaven-bundle-plugin/artifactId You should probably should talk to the Felix folks who created this plugin. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
If there any way to execute plugin conditionally?
Hi, I need to run dependency-copy plugin only when some environment variable set. Is it possible? I could not find anything even remotely related to that. Thanks! -- Dmitry Skavish
Re: If there any way to execute plugin conditionally?
Did you look at profiles for this - http://maven.apache.org/guides/introduction/introduction-to-profiles.html ? They can be activated with an env var. Thanks Adam On Wed, 2009-12-09 at 12:24 -0500, Dmitry Skavish wrote: Hi, I need to run dependency-copy plugin only when some environment variable set. Is it possible? I could not find anything even remotely related to that. Thanks! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Configuring the Site Descriptor
Hi all I have changed the site descriptor of a project to generate the english version of the site as well. In the POM.xml I include the en locale as follow: localespt_BR,en/locales Then I created the site_en.xml file setting the publishdate variable as follow: publishDate position=left format=MM/dd/ hh:mm:ss a/ It worked almost fine, apart from the header of the publish date at the english page, which is still being presented in portuguese (Ultima atualização) instead of in english (Last published). Does anyone know how to change this? Thanks! -- View this message in context: http://old.nabble.com/Configuring-the-Site-Descriptor-tp26714416p26714416.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: If there any way to execute plugin conditionally?
Thanks a lot! Works perfectly! That's exactly what I was looking for. On Wed, Dec 9, 2009 at 12:28 PM, Adam Leggett (UPCO) adam.legg...@upco.co.uk wrote: Did you look at profiles for this - http://maven.apache.org/guides/introduction/introduction-to-profiles.html? They can be activated with an env var. Thanks Adam On Wed, 2009-12-09 at 12:24 -0500, Dmitry Skavish wrote: Hi, I need to run dependency-copy plugin only when some environment variable set. Is it possible? I could not find anything even remotely related to that. Thanks! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Dmitry Skavish
Super pom / enforcer issues?
Hi all, I'm having a really strange error in Maven 2.2.1 and the enforcer plugin. Basically it appears as though the super pom is missing version definitions for the following even though they should be present according to the web documentation (and performing a help:effective-pom shows them listed in the pluginManagement section): * maven-clean-plugin * maven-deploy-plugin * maven-install-plugin * maven-site-plugin Anyone any ideas what's happening? mvn validate [INFO] Scanning for projects... [INFO] [INFO] Building example [INFO]task-segment: [validate] [INFO] [INFO] [enforcer:enforce {execution: enforce-rules}] [INFO] artifact org.apache.maven.plugins:maven-site-plugin: checking for updates from central [WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequirePluginVersions failed with message: Some plugins are missing valid versions:(LATEST RELEASE SNAPSHOT are not allowed ) org.apache.maven.plugins:maven-clean-plugin.The version currently in use is 2.3 org.apache.maven.plugins:maven-deploy-plugin. The version currently in use is 2.4 org.apache.maven.plugins:maven-install-plugin. The version currently in use is 2.3 org.apache.maven.plugins:maven-site-plugin. The version currently in use is 2.0.1 Found plugins without fixed release version defined. Build is not reproducible. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Wed Dec 09 18:09:15 GMT 2009 [INFO] Final Memory: 6M/254M [INFO] mvn --version Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100) Java version: 1.6.0_16 Java home: C:\Java\jdk1.6.0_16\jre Default locale: en_GB, platform encoding: Cp1252 OS name: windows xp version: 5.1 arch: x86 Family: windows -- begin pom.xml - ?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/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdexample/groupId artifactIdmyPom/artifactId version0.0.1-SNAPSHOT/version packagingpom/packaging nameexample/name build plugins plugin artifactIdmaven-enforcer-plugin/artifactId version1.0-beta-1/version executions execution idenforce-rules/id goals goalenforce/goal /goals phasevalidate/phase configuration rules requireMavenVersion version2.2.1/version /requireMavenVersion requirePluginVersions messageFound plugins without fixed release version defined. Build is not reproducible./message /requirePluginVersions /rules /configuration /execution /executions /plugin /plugins /build /project -- end pom.xml - ** This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmas...@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security
Can't change packageName
I'm reading the Maven: Definitive Guide book to set up a project. In this example from the book, I would like to change the packageName setting to XXX as seen below: mvn archetype:generate \ -DgroupId=org.sonatype.mavenbook \ -DartifactId=quickstart \ -Dversion=1.0-SNAPSHOT \ -DpackageName=org.XXX.mavenbook \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DarchetypeArtifactId=maven-archetype-quickstart \ -DarchetypeVersion=1.0 \ -DinteractiveMode=false But mvn produces the following output: [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [archetype:generate] (aggregator-style) [INFO] [INFO] Preparing archetype:generate [INFO] No goals needed for project - skipping [INFO] Setting property: classpath.resource.loader.class = 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on = 'false'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] Setting property: resource.manager.logwhenfound = 'false'. [INFO] [archetype:generate {execution: default-cli}] [INFO] Generating project in Batch mode [INFO] Archetype repository missing. Using the one from [org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE] found in catalog internal [INFO] [INFO] Using following parameters for creating OldArchetype: maven-archetype-quickstart:1.0 [INFO] [INFO] Parameter: groupId, Value: org.sonatype.mavenbook [INFO] Parameter: packageName, Value: org.sonatype.mavenbook [INFO] Parameter: package, Value: org.sonatype.mavenbook [INFO] Parameter: artifactId, Value: quickstart [INFO] Parameter: basedir, Value: c:\Temp [INFO] Parameter: version, Value: 1.0-SNAPSHOT [INFO] * End of debug info from resources from generated POM *** [INFO] OldArchetype created in dir: c:\Temp\quickstart [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 1 second [INFO] Finished at: Wed Dec 09 10:22:44 PST 2009 [INFO] Final Memory: 8M/14M [INFO] The packageName doesn't conform to the overridden value supplied on the command line. Do I understand the purpose of the packageName correctly? I thought it allowed users to override the default value to supply a project specific value. Thanks. -- View this message in context: http://old.nabble.com/Can%27t-change-packageName-tp26715082p26715082.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: Super pom / enforcer issues?
2009/12/9 Nord, James jn...@nds.com: I'm having a really strange error in Maven 2.2.1 and the enforcer plugin. Basically it appears as though the super pom is missing version definitions for the following even though they should be present according to the web documentation (and performing a help:effective-pom shows them listed in the pluginManagement section): * maven-clean-plugin * maven-deploy-plugin * maven-install-plugin * maven-site-plugin Anyone any ideas what's happening? If I read your mail correctly then you're thinking the Enforcer plugin should not complain about missing versions if those versions are provided by the super pom. But think about it, if you upgrade to a newer Maven version then you could get a different super pom and as such your build is not reproducible. You should explicitly list the versions of everything you use. Don't depend on the super pom to do it for you. The Enforcer plugin is just doing what you asked it to do. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
resin plugin: Required goal not found: resin:upload-war
Hi, I'm using Maven 2.2 with Resin 3.0.19. I'm trying to use the resin plugin to deploy my app, using the instructions here -- http://wiki.caucho.com/Maven2. However, I repeatedly get this error ... [INFO] Required goal not found: resin:upload-war in com.caucho:resin-maven-plugin:4.0-SNAPSHOT when I execute mvn clean install resin:upload-war I included this in my pom.xml. Any ideas what I'm missing? Thanks, - Dave pluginRepositories pluginRepository snapshots enabledtrue/enabled updatePolicyalways/updatePolicy checksumPolicyignore/checksumPolicy /snapshots idcaucho/id nameCaucho/name urlhttp://caucho.com/m2-snapshot/url /pluginRepository /pluginRepositories plugin groupIdcom.caucho/groupId artifactIdresin-maven-plugin/artifactId version4.0-SNAPSHOT/version configuration server127.0.0.1/server port8080/port /configuration /plugin -- View this message in context: http://old.nabble.com/resin-plugin%3A-Required-goal-not-found%3A-resin%3Aupload-war-tp26715671p26715671.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: Configuring the Site Descriptor
It's difficult to answer this without a sample project. Open an issue in JIRA and attach a sample project that we can test. strapa72 wrote: Hi all I have changed the site descriptor of a project to generate the english version of the site as well. In the POM.xml I include the en locale as follow: localespt_BR,en/locales Then I created the site_en.xml file setting the publishdate variable as follow: publishDate position=left format=MM/dd/ hh:mm:ss a/ It worked almost fine, apart from the header of the publish date at the english page, which is still being presented in portuguese (Ultima atualização) instead of in english (Last published). Does anyone know how to change this? Thanks! -- Dennis Lundberg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: resin plugin: Required goal not found: resin:upload-war
I'm using Maven 2.2 with Resin 3.0.19. I'm trying to use the resin plugin to deploy my app, using the instructions here -- http://wiki.caucho.com/Maven2. However, I repeatedly get this error ... [INFO] Required goal not found: resin:upload-war in com.caucho:resin-maven-plugin:4.0-SNAPSHOT I'd contact Caucho directly or the Resin Users group (if there is one). Either their documentation is bad or there is another problem they should know about. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Generate + include list of resources included in jar
I have a project that has a number of resources under src/main/resources. The associated codebase needs to know what resources are available in order to load them at runtime (new resources are added all the time, so the list cannot be static). I've got an ant target (from an older project) that scans the resources dir, and emits a list of the files under that directory as a new file. The code can then always load that directly listing at runtime, and do what it needs to. This works fine, but I'm wondering if there's a native maven solution to the problem. I see noticed a ${project.resources} property mentioned elsewhere; I figured I'd drop that into the jar's manifest, and load it back at runtime from there, but project.resources appears to be an ArrayList, so can't be added as a manifest entry's value (or, at least, not in a way obvious to me). Thoughts? Thanks, - Chas -- View this message in context: http://old.nabble.com/Generate-%2B-include-list-of-resources-included-in-jar-tp26718010p26718010.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
Pattern to setup common organization specific data in single pom?
Hello? I wonder if there is any pattern in Maven defining how to setup common organization specific data. What I mean is that I only want to define my distribution management in one place, I only want to setup specific deploy paths in one place etc., etc. One way is to define a lot of properties in a settings.xml - but then the user has to define all these properties himself. When properties are changing, then we have a mess. Even worse, there is no version tracking of properties using this solution. That is not good enough. One other way would be to use a global parent. Going that way it is possible to inherit all common data. But the disadvantage is that I cannot change the values without updating the same version of the parent in the repository (because Maven does not manage to resolve version ranges for the parent pom). So, is there any other suggestions? Can I import the data using version scopes. I like to be able to define exact versions of what I include in my builds but when it comes to build/deploy specific data, then I would like to be able to change this for all users in one place. Any advice to solve this problem is really appreciated! Cheers, Oskar -- View this message in context: http://old.nabble.com/Pattern-to-setup-common-organization-specific-data-in-single-pom--tp26723137p26723137.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