Re: Sort dependencies topologically
Hi Laird, Thanks for your answer! It's funny because I already tried your piece of code, but couldn't get it running. That's the reason why I went on another direction :-) Can you please provide a complete example? Because I have problems when it comes to retrieve MavenProject objects with the buildFromRepository method. It throws some exceptions. I suspect that my artifacts are not always resolved when I call this method. Thank you so much! Jérémy On Mon, Nov 7, 2011 at 6:44 PM, Laird Nelson ljnel...@gmail.com wrote: On Mon, Nov 7, 2011 at 12:29 PM, Jérémy mer...@gmail.com wrote: I'm trying to sort the dependencies expressed in the pom.xml (including the transitive ones) in a topological way. Hello; I faced the same problem and found a solution. Given that most of the classes involved were undocumented, it remains hard to know if this is the proper way to do it, but it works for me. http://maven.40175.n5.nabble.com/Topologically-sorting-dependencies-td3384898.html Best, Laird -- http://about.me/lairdnelson
How to set src-folder correctly
Hi. I was adviced to send this to the users mailing list and not the dev mailing lists. However I got an answer. --- original question --- We are using maven for own project types. However the source folders (src/main/java and src/test/java) are not the same since we are not using java. To let some plugins work correctly we need to ovrwrite them with the correct folders. For know we created a small goal that will be executed early. It will overwrite the source folders directly. It works but I don't feel it is the correct way. Do you recommend another way, for example some hint in components.xml I did not see yet? How do we tell maven that the source folders for our own packaging are not the java ones? If having an early goal setting the source folders programtically, what goal should we choose? The validate goal is the first one and so the best one to set the new source folders but it is focused of validation of the project and not focused on hack project pom to fit the best needs. --- answer from wayne fay --- What you are requesting is trivially accomplished via various entries in your pom.xml files. This is documented on the Maven website. Ideally you would have a single top parent pom that all your projects inherit from, and set the proper values there (in the top parent). --- my remarks --- I hoped that we do not need all of the plugin users to rely on a parent-pom we are serving. In other word: I hoped to find a way other than using the pom.xml in every project. Is there no way saying packaging xxx uses different source folders, f.e. in components.xml? All I am seeing is that maven hard-coded the java related super pom as a mixin. But the super pom should be customized or another mixin should be automatically added in our use case. The uses of our plugin already have to add it to the build plugin lists to activate the packaging. But thats really fair and ok. Of course redeclaring in pom will work. Greetings Martin - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Ruby archetype compiler plugin
Hi all guys, I just began developing a small application in Ruby, I would like to manage the project with my preferred build tool and found a lot of plugins - even not officials. Do you have some recommendation for a Ruby newbie? Many thanks in advance, all the best! Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Ruby archetype compiler plugin
I don't know how familiar you're with Ruby, but, 1. Get rvm. 2. Use the gemset. 3. Use bundler to manage your dependencies. 4. Use rake for builds. 5. Find the right Ruby community: http://www.ruby-lang.org/en/community/mailing-lists/ Yuen-Chi Lian | www.yclian.com I do not seek; I find. - Pablo Picasso 2011/11/8 Simone Tripodi simonetrip...@apache.org Hi all guys, I just began developing a small application in Ruby, I would like to manage the project with my preferred build tool and found a lot of plugins - even not officials. Do you have some recommendation for a Ruby newbie? Many thanks in advance, all the best! Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Ruby archetype compiler plugin
hi, a set of maven plugins for for ruby projects: https://github.com/torquebox/jruby-maven-plugins my blog: blog.mkristian.tk a command line frontend for the jruby-maven-plugins: https://github.com/mkristian/ruby-maven if you have problems please use either the blog or https://github.com/torquebox/jruby-maven-plugins/issues and we will try to help you. it does integrate nicely with bundler and the whole thing is used heavily with http://torquebox.org and https://github.com/mkristian/rails-resty-gwt regards, Kristian On Tue, Nov 8, 2011 at 6:17 PM, Yuen-Chi Lian m...@yclian.com wrote: I don't know how familiar you're with Ruby, but, 1. Get rvm. 2. Use the gemset. 3. Use bundler to manage your dependencies. 4. Use rake for builds. 5. Find the right Ruby community: http://www.ruby-lang.org/en/community/mailing-lists/ Yuen-Chi Lian | www.yclian.com I do not seek; I find. - Pablo Picasso 2011/11/8 Simone Tripodi simonetrip...@apache.org Hi all guys, I just began developing a small application in Ruby, I would like to manage the project with my preferred build tool and found a lot of plugins - even not officials. Do you have some recommendation for a Ruby newbie? Many thanks in advance, all the best! Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.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: Sort dependencies topologically
Ah, yes, in my case I needed to do it in a plugin, so I marked my plugin as requiring dependency resolution in the test scope and could therefore rest assured that all dependencies were resolved. I'm afraid you're on your own in undocumented Maven-land! :-) Best, Laird On Tue, Nov 8, 2011 at 4:42 AM, Jérémy mer...@gmail.com wrote: Hi Laird, Thanks for your answer! It's funny because I already tried your piece of code, but couldn't get it running. That's the reason why I went on another direction :-) Can you please provide a complete example? Because I have problems when it comes to retrieve MavenProject objects with the buildFromRepository method. It throws some exceptions. I suspect that my artifacts are not always resolved when I call this method. Thank you so much! Jérémy On Mon, Nov 7, 2011 at 6:44 PM, Laird Nelson ljnel...@gmail.com wrote: On Mon, Nov 7, 2011 at 12:29 PM, Jérémy mer...@gmail.com wrote: I'm trying to sort the dependencies expressed in the pom.xml (including the transitive ones) in a topological way. Hello; I faced the same problem and found a solution. Given that most of the classes involved were undocumented, it remains hard to know if this is the proper way to do it, but it works for me. http://maven.40175.n5.nabble.com/Topologically-sorting-dependencies-td3384898.html Best, Laird -- http://about.me/lairdnelson -- http://about.me/lairdnelson
Re: Ruby archetype compiler plugin
Xiexie Yuen-Chi Lian, I'm not so familiar indeed with Ruby, I am a newbie :) Thanks a lot for your help Kristian, I'll read your blog posts, I really appreciate it!!! All the best, have a nice day! Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ On Tue, Nov 8, 2011 at 2:07 PM, kristian m.krist...@web.de wrote: hi, a set of maven plugins for for ruby projects: https://github.com/torquebox/jruby-maven-plugins my blog: blog.mkristian.tk a command line frontend for the jruby-maven-plugins: https://github.com/mkristian/ruby-maven if you have problems please use either the blog or https://github.com/torquebox/jruby-maven-plugins/issues and we will try to help you. it does integrate nicely with bundler and the whole thing is used heavily with http://torquebox.org and https://github.com/mkristian/rails-resty-gwt regards, Kristian On Tue, Nov 8, 2011 at 6:17 PM, Yuen-Chi Lian m...@yclian.com wrote: I don't know how familiar you're with Ruby, but, 1. Get rvm. 2. Use the gemset. 3. Use bundler to manage your dependencies. 4. Use rake for builds. 5. Find the right Ruby community: http://www.ruby-lang.org/en/community/mailing-lists/ Yuen-Chi Lian | www.yclian.com I do not seek; I find. - Pablo Picasso 2011/11/8 Simone Tripodi simonetrip...@apache.org Hi all guys, I just began developing a small application in Ruby, I would like to manage the project with my preferred build tool and found a lot of plugins - even not officials. Do you have some recommendation for a Ruby newbie? Many thanks in advance, all the best! Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.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: How to set src-folder correctly
not using java is not too much help. What language are you using? What are you trying to build. Perhaps you will find that your problem is already solved for your language of choice. It is always better to state you problem in the context of what you are trying to do. We waste lots of time in this forum and delay the resolution of problems because the original problem is stated very narrowly and the solution is very simple but at a higher level. If you explain what you are trying to build, you might get a better answer - plug-in for that language, assembly plug-in to build an archive file from pre-compiled code and configuration files. If you are doing it, chances are many others are already using Maven to build it. Ron On 08/11/2011 5:20 AM, Martin Eisengardt wrote: Hi. I was adviced to send this to the users mailing list and not the dev mailing lists. However I got an answer. --- original question --- We are using maven for own project types. However the source folders (src/main/java and src/test/java) are not the same since we are not using java. To let some plugins work correctly we need to ovrwrite them with the correct folders. For know we created a small goal that will be executed early. It will overwrite the source folders directly. It works but I don't feel it is the correct way. Do you recommend another way, for example some hint in components.xml I did not see yet? How do we tell maven that the source folders for our own packaging are not the java ones? If having an early goal setting the source folders programtically, what goal should we choose? The validate goal is the first one and so the best one to set the new source folders but it is focused of validation of the project and not focused on hack project pom to fit the best needs. --- answer from wayne fay --- What you are requesting is trivially accomplished via various entries in your pom.xml files. This is documented on the Maven website. Ideally you would have a single top parent pom that all your projects inherit from, and set the proper values there (in the top parent). --- my remarks --- I hoped that we do not need all of the plugin users to rely on a parent-pom we are serving. In other word: I hoped to find a way other than using the pom.xml in every project. Is there no way saying packaging xxx uses different source folders, f.e. in components.xml? All I am seeing is that maven hard-coded the java related super pom as a mixin. But the super pom should be customized or another mixin should be automatically added in our use case. The uses of our plugin already have to add it to the build plugin lists to activate the packaging. But thats really fair and ok. Of course redeclaring in pom will work. Greetings Martin - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Ron Wheeler President Artifact Software Inc email: rwhee...@artifact-software.com skype: ronaldmwheeler phone: 866-970-2435, ext 102 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to set src-folder correctly
I am using php and I am one of the developers of php-maven.org. As this is the only php to maven project I found I don't think someone solved it (for php). The source folders should be src/main/php and src/test/php. Packaging is php introduced by our maven extension. The only php extension I found is using packaging pom and introduces some ant scripts. That's not what I want since I could use ant directly So I decided to support the php-maven community as developer. The other languages I tried to search for either use the corresponding entries in the pom.xml or they need to declare the source folder in a parent pom. I do understand if this is the recommended way. And we will recommend it if this is the only way you can manipulate the source folders. But maybe there is another way we could use so that the users of php-maven do not need to specifiy the source folders in their poms. IMHO the packaging pom should be enough for maven to load some defaults on the project. Maybe you know another language that introduces their source folders without need of inherit a parent pom or without the need to manually specify it in the projects pom? I did not find any. Currently we are introducing a small goal: https://github.com/php-maven/maven-php-plugin/blob/maven3/src/main/java/org/phpmaven/plugin/build/SetSources.java It is executed very early and hopefully it will be executed for every common phase: https://github.com/php-maven/maven-php-plugin/blob/maven3/src/main/resources/META-INF/plexus/components.xml[https://github.com/php-maven/maven-php-plugin/blob/maven3/src/main/resources/META-INF/plexus/components.xml] However it works but feels some kind of bad hacking. -Ursprüngliche Nachricht- Von: Ron Wheeler rwhee...@artifact-software.com Gesendet: 08.11.2011 15:42:40 An: users@maven.apache.org Betreff: Re: How to set src-folder correctly not using java is not too much help. What language are you using? What are you trying to build. Perhaps you will find that your problem is already solved for your language of choice. It is always better to state you problem in the context of what you are trying to do. We waste lots of time in this forum and delay the resolution of problems because the original problem is stated very narrowly and the solution is very simple but at a higher level. If you explain what you are trying to build, you might get a better answer - plug-in for that language, assembly plug-in to build an archive file from pre-compiled code and configuration files. If you are doing it, chances are many others are already using Maven to build it. Ron On 08/11/2011 5:20 AM, Martin Eisengardt wrote: Hi. I was adviced to send this to the users mailing list and not the dev mailing lists. However I got an answer. --- original question --- We are using maven for own project types. However the source folders (src/main/java and src/test/java) are not the same since we are not using java. To let some plugins work correctly we need to ovrwrite them with the correct folders. For know we created a small goal that will be executed early. It will overwrite the source folders directly. It works but I don't feel it is the correct way. Do you recommend another way, for example some hint in components.xml I did not see yet? How do we tell maven that the source folders for our own packaging are not the java ones? If having an early goal setting the source folders programtically, what goal should we choose? The validate goal is the first one and so the best one to set the new source folders but it is focused of validation of the project and not focused on hack project pom to fit the best needs. --- answer from wayne fay --- What you are requesting is trivially accomplished via various entries in your pom.xml files. This is documented on the Maven website. Ideally you would have a single top parent pom that all your projects inherit from, and set the proper values there (in the top parent). --- my remarks --- I hoped that we do not need all of the plugin users to rely on a parent-pom we are serving. In other word: I hoped to find a way other than using the pom.xml in every project. Is there no way saying packaging xxx uses different source folders, f.e. in components.xml? All I am seeing is that maven hard-coded the java related super pom as a mixin. But the super pom should be customized or another mixin should be automatically added in our use case. The uses of our plugin already have to add it to the build plugin lists to activate the packaging. But thats really fair and ok. Of course redeclaring in pom will work. Greetings Martin - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Ron Wheeler President Artifact Software Inc email: rwhee...@artifact-software.com skype: ronaldmwheeler
maven releases during testing
Hi, I am using maven for web application development. As it is in development phase it is versioned as app-1.0-SNAPSHOT. But, application starts in couple of weeks, I was wondering what should be the best practise for release during tests. I believe only when it is tested and can go to production, then it is versioned to app-1.0. But, during testing how do we manage its versions? Thanks, Prashant
Re: maven releases during testing
release during tests. I believe only when it is tested and can go to production, then it is versioned to app-1.0. But, during testing how do we manage its versions? Just push a version out and call it 1.0-alpha-1 or -beta-1 or whatever. And test that version until you're happy with it. Keep changing (releasing versions) until you have things pretty well stabilized and you're happy with it then cut a release or just promote -beta-8 to be your production system and start on 1.1-SNAPSHOT. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Sort dependencies topologically
Am 07.11.2011 18:29, schrieb Jérémy: Hi, I'm trying to sort the dependencies expressed in the pom.xml (including the transitive ones) in a topological way. Sonatype / Eclipse Aether can help with this. I use it myself for exactly the purpose you describe here to build a post-order depth first visit sequence of the (transitive) dependency tree. This is then used to load the dependencies in this order to match requirements of the underlying technology (JBoss Drools). If you use Aether, you get this kind of sorting for free (pre-order, post-order depth-first are supported out of the box). Look out for PostorderNodeListGenerator, PreorderNodeListGenerator in package org.sonatype.aether.util.graph. Aether is also used by Maven internally to do dependency resolution and stuff. It's currently in incubation at eclipse.org and licensed under EPL. Source code is available on github [1] Example code can be found * in maven-drools-plugin [2] * blog post about using aether in plugins [3] Best regards Ansgar [1] https://github.com/sonatype/sonatype-aether [2] https://github.com/maven-drools/plugin.maven-drools-plugin/tree/master/mojos [3] http://www.sonatype.com/people/2011/01/how-to-use-aether-in-maven-plugins/ I'm using the maven-* API 3.0-alpha-2 and it is in the context of a plugin. I tried to use Maven's embedded API to do so, but I get a NPE when I call getTopologicallySortedProjects(). Here's a snippet of my Mojo: MavenExecutionResult dm = new DefaultMavenExecutionResult(); dm = dm.setProject(getMavenProject()); //Maven project provided by plexus ListMavenProject list = dm.getTopologicallySortedProjects(); Anyone has any experience with that? Cheers, Jérémy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Sort dependencies topologically
Am 08.11.2011 21:36, schrieb Ansgar Konermann: Example code can be found [...] Some more example code here: https://docs.sonatype.org/display/AETHER/Home Ansgar - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Apache Maven has its Google+ Page
Hi all, I created a Google+ page for maven. Sadly we cannot yet share the ability to manage it and to post content. As soon as it will be possible I'll give the access to PMCs and probably dev members. For now ping me if you want that we publish something. On my side I'll try to forward announcements and things like that. https://plus.google.com/u/0/b/114843822427522708527/ Cheers, Arnaud