Re: list of available properties
There is a Maven help plugin that gives this information: http://maven.apache.org/plugins/maven-help-plugin/expressions-mojo.html http://maven.apache.org/plugins/maven-help-plugin/system-mojo.html http://maven.apache.org/plugins/maven-help-plugin/describe-mojo.html Best regards / Met vriendelijke groet, Kees van Dieren Squins IT Solutions BV Oranjestraat 30 2983 HS Ridderkerk The Netherlands Mobile: +31 (0)6 30413841 www.squins.com Chamber of commerce Rotterdam: 24435103 2013/9/12 Richard Sand rs...@idfconnect.com Can someone point me to the page that has the complete list of all of the default properties available for use in a pom/plugin? My google powers are failing me. Is there a dynamic property created for each resolved artifact? I’m trying to get a property containing the full file name of a given artifact. Best regards, Richard
Re: Fitnesse support?
Tried this one? https://github.com/lvonk/fitnesse-maven-classpath 2013/1/7 javahelp stew...@javahelp.co.uk During 2012 I wrote a plugin, as none of the others were doing quite what I wanted. https://code.google.com/p/fitnesse-launcher-maven-plugin/ -- View this message in context: http://maven.40175.n5.nabble.com/Fitnesse-support-tp3393137p5742540.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 -- Best regards / Met vriendelijke groet, Kees van Dieren Squins IT Solutions BV Oranjestraat 30 2983 HS Ridderkerk The Netherlands Mobile: +31 (0)6 30413841 www.squins.com Chamber of commerce Rotterdam: 24435103
Re: Copy dependencies
Curtis, There is also a format 'dir' listed here: http://maven.apache.org/plugins/maven-assembly-plugin/ Best regards / Met vriendelijke groet, Kees van Dieren Squins | IT, Honestly Oranjestraat 23 2983 HL Ridderkerk The Netherlands Mobile: +31 (0)6 30413841 www.squins.com http://twitter.com/keesvandieren Chamber of commerce Rotterdam: 24435130 Boeken voor school en werk bestel je op studieboekencenter.nl 2012/8/10 Curtis Rueden ctrue...@wisc.edu Hi Erwin, I need to look in the assembly plugin how to do that. Here is a start for you: assembly xmlns= http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.1; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.1 http://maven.apache.org/xsd/assembly-1.1.1.xsd; idbundle/id formats !-- Is there a none format? -- formatzip/format /formats baseDirectoryxxx/baseDirectory dependencySets dependencySet outputDirectory/libs/outputDirectory unpackfalse/unpack scopecompile/scope /dependencySet dependencySet outputDirectory/plugins/outputDirectory unpackfalse/unpack scoperuntime/scope /dependencySet /dependencySets /assembly Unfortunately, because of how transitive scopes work, the compile scope artifacts will appear in both libs and plugins with that configuration. I'm not sure of the best way around that. Another problem is that the assembly plugin normally produces an archive (e.g., zip or bz2). I do not know a way to tell it to just leave all the files it copies in a subfolder of target. (Anyone know if this is possible? It would be very useful for my project as well.) Regards, Curtis On Fri, Aug 10, 2012 at 3:51 PM, Erwin Mueller erwin.muel...@deventm.org wrote: I need to look in the assembly plugin how to do that. Thank you for your help. On Thursday, August 09, 2012 10:40:16 AM Wayne Fay wrote: with the maven-dependency-plugin I can copy the dependencies in some output directory. But how can I copy some dependencies to directory libs/ and different dependencies in the directory plugins/ ? Realistically you should be using the assembly plugin for the construction of non-standard artifact directory structures such as what you require, and not the dependency plugin. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Erwin Mueller http://www.mueller-public.de - My site; http://www.anr-institute.com - Advanced Natural Research Institute GmbH;
Re: [ANN] Webminifier Maven Plugin 1.0.0 Released
Hi Cristopher, What is the difference between this plugin and http://alchim.sourceforge.net/yuicompressor-maven-plugin/index.html Best regards / Met vriendelijke groet, Kees van Dieren Squins | IT, Honestly Oranjestraat 23 2983 HL Ridderkerk The Netherlands Phone: +31 (0)180 415559 Mobile: +31 (0)6 30413841 www.squins.com http://twitter.com/keesvandieren Chamber of commerce Rotterdam: 24435130 Boeken voor school en werk bestel je op studieboekencenter.nl 2012/1/9 Christopher Hunt hu...@internode.on.net Hi, The Mojo team is pleased to announce the release of the Webminifier Maven Plugin version 1.0.0. This plugin provides JavaScript minification for Maven projects. It produces a minified version of JavaScript resources which can be used to construct a minified final artefact. It is designed to be flexible in the way it operates to allow for easy minified resource re-use across a project. Under the hood, Webminifier currently uses the YUI Compressor and Closure Compiler but has a layer of abstraction around these tools which allows for other tools to be used. http://mojo.codehaus.org/webminifier-maven-plugin/ We recommend the use of this plugin in the context of the forthcoming Javascript Maven Tools project (1). Alternatively to get this update, simply specify the version in your project's plugin configuration: plugin groupIdorg.codehaus.mojo/groupId artifactIdwebminifier-maven-plugin/artifactId version1.0.0/version /plugin The plugin is being heavily used by at least two large corporations. Enjoy, The Mojo team. Christopher Hunt (1) http://mojo.codehaus.org/javascript-maven-tools/
Re: How to print (echo) values from pom.xml
You can use maven help plugin, goal evaluate, for example: mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version See also: http://maven.apache.org/plugins/maven-help-plugin/evaluate-mojo.html Best regards / Met vriendelijke groet, Kees van Dieren Squins | IT, Honestly Oranjestraat 23 2983 HL Ridderkerk The Netherlands Phone: +31 (0)180 415559 Mobile: +31 (0)6 30413841 www.squins.com http://twitter.com/keesvandieren Chamber of commerce Rotterdam: 24435130 Boeken voor school en werk bestel je op studieboekencenter.nl 2011/6/9 manukm07 manuk...@gmail.com Hi, Is there a way to print/echo some values in the console, from pom.xml without using maven-antrun-plugin. ? Thanks in advance Manu. -- View this message in context: http://maven.40175.n5.nabble.com/How-to-print-echo-values-from-pom-xml-tp4472327p4472327.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: maven3 profile activation by absense of property
Joachim, Profiles can be activated by a property not having a certain value. This includes the absence of a property. For you the profile would become: profiles profile iddocumentation/id activation property nameskipDocs/name value!true/value /property /activation ... /profile /profiles Profile activation can easily be checked with: mvn help:active-profiles -DskipDocs mvn help:active-profiles -DskipDocs=true mvn help:active-profiles -DskipDocs=false (not specifying a value makes it true). Regards, Kees -- Squins | IT, Honestly Oranjestraat 23 2983 HL Ridderkerk The Netherlands Phone: +31 (0)180 415559 Mobile: +31 (0)6 30413841 www.squins.com http://twitter.com/keesvandieren Chamber of commerce Rotterdam: 22048547 Boeken voor school en werk bestel je op studieboekencenter.nl 2010/10/20 Joachim Van der Auwera joac...@progs.be On 10/20/2010 12:35 PM, Wendy Smoak wrote: On Wed, Oct 20, 2010 at 5:32 AM, Joachim Van der Auwera joac...@triathlon98.com wrote: However, since the switch to maven3 this does not worka anymore and mvn -DskipDocs install will still include the documentation module. Do I have to do something different to make this work in maven3? What happens if you do -DskipDocs=abc ? That will test the difference between 'present but empty' and 'present (with a value)'. That doesn't seem to make a difference. I haven't seen this mentioned in the compatibility notes, so I guess it is a bug (though it admittedly is a little documented feature). Thanks for the help, Joachim - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Always active profiles
Just curious: where do you need this for? If you want plugins / dependencies always to be active, you could add them in the pom directly, then they don't need to be in a profile. Couldn't you simply define them directly in the pom instead of adding it withing a profile? 2010/1/14 Mark Hobson markhob...@gmail.com Hi there, Is there a better way of always activating a profile, unless explicitly deactivated, than using a dummy property activator? For example: activation property name!dummy/name /property /activation I can't use activeByDefault since I want the profile to be activated even when other profiles in the pom are active. It could be worth introducing an always active activator, something like: activation active/ /activation I'll raise an issue if no-one objects. Cheers, Mark - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Squins | IT, Honestly Oranjestraat 23 2983 HL Ridderkerk The Netherlands Phone: +31 (0)180 414520 Mobile: +31 (0)6 30413841 www.squins.com http://twitter.com/keesvandieren Chamber of commerce Rotterdam: 22048547
Re: speedier builds possible?
Probably you will like this: http://maven.apache.org/plugins/maven-reactor-plugin/ Make for maven. 2009/8/12 Roger Pack rogerdpa...@gmail.com Hi. I was wondering if there are any industry standard ways of speeding up a maven build, like in a project with a single parent and multiple children modules only building dependencies that have changed since the last svn commit or building things in parallel where possible Or anything else. Anybody know of much on that topic? Thanks! -r - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Squins | IT, Honestly Oranjestraat 23 2983 HL Ridderkerk The Netherlands Phone: +31 (0)180 414520 Mobile: +31 (0)6 30413841 www.squins.com Chamber of commerce Rotterdam: 22048547
DependencyManagement and range constraints
Hi all, We have a problem with DependencyManagement and range constraints; the version in DependencyManagement seems to override all ranges defined elsewhere (as if they have never been there). What we need, is that range constraints still apply to guarantee compatibility between the dependencies. We have the following situation: ProjectA ProjectB version 0.4.0 has dependency on projectA, with range [0.5.0,) ProjectC has a dependencyManagement section, in which projectA is defined on version 0.4.0 and projectB is defined on version 0.4.0 Maven should warn us that this will not work: projectB requires version 0.5.0 or higher, however this doesn't work. We have tried the following versions in dependencyManagement: version[0.4.0]/version version0.4.0/version From ranges perspective, I would expect that [0.4.0] should be the correct one. However, than the dependencyManagent version gets ignored! Version 0.4.0 makes the dependencyManagement apply, but the build does not fail because of the defined range dependencies. According to MNG-3396 it should have been solved in 2.0.9, quote from issue: If you try to force a version out of the range in the dependencyManagement it is ignored. However, we are using that and we still have this problem. Any suggestions? Thanks for your help! Best regards, Kees van Dieren -- Squins IT Solutions Kees van Dieren Oranjestraat 23 2983 HL Ridderkerk Phone: +31 180 41 45 20 Mobile: +31 6 30 41 38 41 www: http://squins.com
Re: inherit execution only for packaging war
Thanks for your suggestion! I think this solution helps for us. Best regards, Kees On Wed, Mar 19, 2008 at 4:26 PM, Wayne Fay [EMAIL PROTECTED] wrote: I have no idea if its a bug or not, but a way to fix things would be to simply add another level of parent in the project under which all your war projects are located. Thus: top-parent + war-parent ++ war-project1 ++ war-project2 ++ war-project3 Then tell your war-projects to use war-parent as its parent, and set the configuration inside it. Wayne On 3/19/08, Wendy Smoak [EMAIL PROTECTED] wrote: On Wed, Mar 19, 2008 at 6:51 AM, Kees van Dieren [EMAIL PROTECTED] wrote: In our root pom.xml we have the maven war plugin defined: ... On mvn package, it will run mvn war:inplace, but not only for war artifacts, but also for jar artifacts. How can we make this execution only applicable for projects with packaging war? Is it a bug in the war plugin perhaps? Should it somehow know not to run in the jar modules? If you don't get more info here, I'd construct a simple example to demonstrate when it does the wrong thing, and attach it to an issue in JIRA. http://jira.codehaus.org/browse/MWAR -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Squins IT Solutions Kees van Dieren Oranjestraat 23 2983 HL Ridderkerk Phone: +31 180 41 45 20 Mobile: +31 6 30 41 38 41 www: http://squins.com
inherit execution only for packaging war
Hi folks, Shortly what we wish to have: * we have a pom.xml (packaging: pom): with multiple modules of type war and jar * for all war projects, we wish to run war:inplace after the war:war task. How can we do this? In our root pom.xml we have the maven war plugin defined: plugin artifactIdmaven-war-plugin/artifactId executions execution phaseinstall/phase goals goalinplace/goal /goals configuration /configuration /execution /executions configuration /plugin On mvn package, it will run mvn war:inplace, but not only for war artifacts, but also for jar artifacts. How can we make this execution only applicable for projects with packaging war? Thanks in advance for your time! Best regards, Kees -- Squins IT Solutions Kees van Dieren Oranjestraat 23 2983 HL Ridderkerk Phone: +31 180 41 45 20 Mobile: +31 6 30 41 38 41 www: http://squins.com
Add jdom 1.1 to repo1.maven.org
Hi Folks, Can you please add the latest version of jdom (version 1.1) to the maven repository? GroupId / Artifact: http://repo1.maven.org/maven2//jdom/jdom/ Jdom sources / binaries: http://www.jdom.org/dist/binary/ http://www.jdom.org/dist/source/ Thanks! Best regards, Kees van Dieren -- Squins IT Solutions Kees van Dieren Oranjestraat 23 2983 HL Ridderkerk Phone: +31 180 41 45 20 Mobile: +31 6 30 41 38 41 www: http://squins.com
Re: How to rebuild modules that depend on a changed module?
This would be helpful for us as well. We have a pom.xml with multiple modules, e.g. modulemodA/module modulemodB/module modulemodC/module modulemodD/module modB needs modA, modC needs modB. When modA is modified, modA, modB and ModC should be rebuilded; modD should be skipped. Is there a way to achieve this, eventually via 3rdparty plugin? Thanks very much! Best regards, Kees van Dieren On Nov 27, 2007 4:43 AM, Jean-Sebastien Delfino [EMAIL PROTECTED] wrote: Hi, I'm working on a multimodule project and after making a change in a module X, I would like to do the following: - mvn clean install on all modules in the project that have compile dependencies on X; - mvn test on all modules in the project that have runtime and test dependencies on X. Any idea of how I can automate that process? Is there any plugin or product integrated with Maven that will help me do that? Thanks -- Jean-Sebastien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kees van Dieren Oranjestraat 23 2983 HL Ridderkerk Phone: +31 180 41 45 20 Mobile: +31 6 30 41 38 41 www: keesvandieren.nl LinkedIn:www.linkedin.com/in/keesvandieren Hyves:keesvandieren.hyves.net