Re: Maven question - how to pull code from bitbucket repository as dependency
On Wed, Jun 12, 2019 at 1:04 AM Anders Hammar wrote: > Having a dependency to some other scm repo is not a good approach. If that > changes your build could fail all of a sudden and you want consistency. > This is not true. The "big 3" VCSes each allow you to checkout a specific tag or revision if you like. If both projects (the dependent and the dependency) use the same VCS, then, at least in the cases of Git and SVN, you have a VCS-specific feature, e.g. Git subrepos or SVN externals, to work with the dependency's repo pretty seamlessly (though admittedly their use is controversial, but let's not go on a tangent about it :) ). > Your Maven project should typically be self contained. Any dependency > should be a Maven artifact (that is immutable). > It is certainly preferable to make one Maven project depend on another when possible, but keep in mind there are by necessity other kinds of dependencies too: The JDK, system-level libraries not provided by some JVMs, a SQL database, etc. You _can_ mavenize a lot of dependencies (like a SQL database project) and gain Maven's dependency management, but that is not invariably worth the cost of implementing and maintaining that mavenization. /Anders > > On Wed, Jun 12, 2019 at 7:50 AM Rajesh Deshpande < > rajesh.deshpa...@gmail.com> > wrote: > > > Hello, > > I have a maven project that builds Java jar files. I wan to run a python > > script as one of the goals in the verify phase. I am planning to use the > > ant run plugin for running the python script. The python script is stored > > in a separate repository that I would like to copy to my project root > > folder using maven. Is this possible? What's the best way to approach > this? > > > > Thanks! > > >
Re: Maven question - how to pull code from bitbucket repository as dependency
If your script is hosted on SVN or git then you can also perhaps do a simple GET on a well know resources (SHA1 or tag) on the raw file directly. That way the download is easy and you have a reproducible build because you target a fixed version of the script. Matthieu On Wed, Jun 12, 2019 at 8:11 AM Thorsten Heit wrote: > Hi, > > > I have a maven project that builds Java jar files. I wan to run a python > > script as one of the goals in the verify phase. I am planning to use the > > ant run plugin for running the python script. The python script is > stored > > in a separate repository that I would like to copy to my project root > > folder using maven. Is this possible? What's the best way to approach > this? > > Although I have to admin I never tried it ;-), but two ideas: > > 1) Use the JGit Ant task ([1]) to checkout your source code before you > execute the python script from within the Ant task. > > 2) Add a second plugin configuration for maven scm that is being executed > in the verify phase. Configure the scm plugin and add at least the > (developer) connection url, and perhaps the destination (checkout) > directory in which your script is to be stored. See [2]. > > > > > [1] https://wiki.eclipse.org/JGit/User_Guide#Ant_Tasks > [2] https://maven.apache.org/scm/maven-scm-plugin/checkout-mojo.html > > HTH > > Thorsten
Re: Maven question - how to pull code from bitbucket repository as dependency
Hi, > I have a maven project that builds Java jar files. I wan to run a python > script as one of the goals in the verify phase. I am planning to use the > ant run plugin for running the python script. The python script is stored > in a separate repository that I would like to copy to my project root > folder using maven. Is this possible? What's the best way to approach this? Although I have to admin I never tried it ;-), but two ideas: 1) Use the JGit Ant task ([1]) to checkout your source code before you execute the python script from within the Ant task. 2) Add a second plugin configuration for maven scm that is being executed in the verify phase. Configure the scm plugin and add at least the (developer) connection url, and perhaps the destination (checkout) directory in which your script is to be stored. See [2]. [1] https://wiki.eclipse.org/JGit/User_Guide#Ant_Tasks [2] https://maven.apache.org/scm/maven-scm-plugin/checkout-mojo.html HTH Thorsten
Re: Maven question - how to pull code from bitbucket repository as dependency
Having a dependency to some other scm repo is not a good approach. If that changes your build could fail all of a sudden and you want consistency. Your Maven project should typically be self contained. Any dependency should be a Maven artifact (that is immutable). /Anders On Wed, Jun 12, 2019 at 7:50 AM Rajesh Deshpande wrote: > Hello, > I have a maven project that builds Java jar files. I wan to run a python > script as one of the goals in the verify phase. I am planning to use the > ant run plugin for running the python script. The python script is stored > in a separate repository that I would like to copy to my project root > folder using maven. Is this possible? What's the best way to approach this? > > Thanks! >
Maven question - how to pull code from bitbucket repository as dependency
Hello, I have a maven project that builds Java jar files. I wan to run a python script as one of the goals in the verify phase. I am planning to use the ant run plugin for running the python script. The python script is stored in a separate repository that I would like to copy to my project root folder using maven. Is this possible? What's the best way to approach this? Thanks!
New to Maven Question
Hello all, I am a new user to Maven and was given the task at my work to come up with a utility in order to output the build order of our products based on the poms. It made sense to me that I would want to do basically the same thing that the Reactor does except output the tree rather than do an actual build so I downloaded the code for Maven and found the class files ProjectSorter.java and ProjectSorterTest.java as a beginning point. What I think I need to do here is modify the reactor code to actually output rather execute a build. Is there another way to do this very thing? If not, am I on the right track? Thanks! John Dix Programming Sr. SME, Digital Commerce Amdocs Digital Services Division o: 206-288-0334 m: 425.351.7340 AMDOCS | EMBRACE CHALLENGE EXPERIENCE SUCCESS Did you know...? Amdocs Mobile Payments enables operators to manage any number of app stores, merchants and aggregators and generate revenues from digital content and mobile commerce Follow Amdocs on Facebookhttp://www.facebook.com/amdocsinc/, Twitterhttp://twitter.com/AmdocsInc, LinkedInhttp://www.linkedin.com/company/amdocs, YouTubehttp://www.youtube.com/amdocsinc and Google+https://plus.google.com/105657940751678445194 - and read the latest on the Amdocs blog networkhttp://blogs.amdocs.com/. This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp
Re: New to Maven Question
On 7/24/2013 9:53 AM, John Dix wrote: Hello all, I am a new user to Maven and was given the task at my work to come up with a utility in order to output the build order of our products based on the poms. It made sense to me that I would want to do basically the same thing that the Reactor does except output the tree rather than do an actual build so I downloaded the code for Maven and found the class files ProjectSorter.java and ProjectSorterTest.java as a beginning point. What I think I need to do here is modify the reactor code to actually output rather execute a build. Is there another way to do this very thing? If not, am I on the right track? Thanks! John Dix Programming Sr. SME, Digital Commerce Amdocs Digital Services Division o: 206-288-0334 m: 425.351.7340 AMDOCS | EMBRACE CHALLENGE EXPERIENCE SUCCESS Did you know...? Amdocs Mobile Payments enables operators to manage any number of app stores, merchants and aggregators and generate revenues from digital content and mobile commerce Follow Amdocs on Facebookhttp://www.facebook.com/amdocsinc/, Twitterhttp://twitter.com/AmdocsInc, LinkedInhttp://www.linkedin.com/company/amdocs, YouTubehttp://www.youtube.com/amdocsinc and Google+https://plus.google.com/105657940751678445194 - and read the latest on the Amdocs blog networkhttp://blogs.amdocs.com/. This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp I'm also a new Maven user. How about: mvn dependency:tree http://maven.apache.org/plugins/maven-dependency-plugin/usage.html . . . . just my two cents. /mde/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: New to Maven Question
Hi John, output the build order of our products based on the poms Is it enough to simply run mvn validate and parse the output? That will show you the build order of your multi-module reactor. If you have multiple projects in multiple reactors, you could create a toplevel pom.xml joining them all into a single reactor, then run mvn validate to get the build order. That assumes that all the POMs have matching versions across the projects though, of course. Regards, Curtis On Wed, Jul 24, 2013 at 11:53 AM, John Dix john@amdocs.com wrote: Hello all, I am a new user to Maven and was given the task at my work to come up with a utility in order to output the build order of our products based on the poms. It made sense to me that I would want to do basically the same thing that the Reactor does except output the tree rather than do an actual build so I downloaded the code for Maven and found the class files ProjectSorter.java and ProjectSorterTest.java as a beginning point. What I think I need to do here is modify the reactor code to actually output rather execute a build. Is there another way to do this very thing? If not, am I on the right track? Thanks! John Dix Programming Sr. SME, Digital Commerce Amdocs Digital Services Division o: 206-288-0334 m: 425.351.7340 AMDOCS | EMBRACE CHALLENGE EXPERIENCE SUCCESS Did you know...? Amdocs Mobile Payments enables operators to manage any number of app stores, merchants and aggregators and generate revenues from digital content and mobile commerce Follow Amdocs on Facebookhttp://www.facebook.com/amdocsinc/, Twitter http://twitter.com/AmdocsInc, LinkedIn http://www.linkedin.com/company/amdocs, YouTube http://www.youtube.com/amdocsinc and Google+ https://plus.google.com/105657940751678445194 - and read the latest on the Amdocs blog networkhttp://blogs.amdocs.com/. This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp
RE: New to Maven Question
Thanks Curtis. I'll take a look at the validate cmd. -Original Message- From: ctrueden.w...@gmail.com [mailto:ctrueden.w...@gmail.com] On Behalf Of Curtis Rueden Sent: Wednesday, July 24, 2013 10:15 AM To: Maven Users List Subject: Re: New to Maven Question Hi John, output the build order of our products based on the poms Is it enough to simply run mvn validate and parse the output? That will show you the build order of your multi-module reactor. If you have multiple projects in multiple reactors, you could create a toplevel pom.xml joining them all into a single reactor, then run mvn validate to get the build order. That assumes that all the POMs have matching versions across the projects though, of course. Regards, Curtis On Wed, Jul 24, 2013 at 11:53 AM, John Dix john@amdocs.com wrote: Hello all, I am a new user to Maven and was given the task at my work to come up with a utility in order to output the build order of our products based on the poms. It made sense to me that I would want to do basically the same thing that the Reactor does except output the tree rather than do an actual build so I downloaded the code for Maven and found the class files ProjectSorter.java and ProjectSorterTest.java as a beginning point. What I think I need to do here is modify the reactor code to actually output rather execute a build. Is there another way to do this very thing? If not, am I on the right track? Thanks! John Dix Programming Sr. SME, Digital Commerce Amdocs Digital Services Division o: 206-288-0334 m: 425.351.7340 AMDOCS | EMBRACE CHALLENGE EXPERIENCE SUCCESS Did you know...? Amdocs Mobile Payments enables operators to manage any number of app stores, merchants and aggregators and generate revenues from digital content and mobile commerce Follow Amdocs on Facebookhttp://www.facebook.com/amdocsinc/, Twitter http://twitter.com/AmdocsInc, LinkedIn http://www.linkedin.com/company/amdocs, YouTube http://www.youtube.com/amdocsinc and Google+ https://plus.google.com/105657940751678445194 - and read the latest on the Amdocs blog networkhttp://blogs.amdocs.com/. This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: New to Maven Question
This may be too simplistic but can't you just run the build and parse the log output? Ron On 24/07/2013 1:05 PM, Mark Eggers wrote: On 7/24/2013 9:53 AM, John Dix wrote: Hello all, I am a new user to Maven and was given the task at my work to come up with a utility in order to output the build order of our products based on the poms. It made sense to me that I would want to do basically the same thing that the Reactor does except output the tree rather than do an actual build so I downloaded the code for Maven and found the class files ProjectSorter.java and ProjectSorterTest.java as a beginning point. What I think I need to do here is modify the reactor code to actually output rather execute a build. Is there another way to do this very thing? If not, am I on the right track? Thanks! John Dix Programming Sr. SME, Digital Commerce Amdocs Digital Services Division o: 206-288-0334 m: 425.351.7340 AMDOCS | EMBRACE CHALLENGE EXPERIENCE SUCCESS Did you know...? Amdocs Mobile Payments enables operators to manage any number of app stores, merchants and aggregators and generate revenues from digital content and mobile commerce Follow Amdocs on Facebookhttp://www.facebook.com/amdocsinc/, Twitterhttp://twitter.com/AmdocsInc, LinkedInhttp://www.linkedin.com/company/amdocs, YouTubehttp://www.youtube.com/amdocsinc and Google+https://plus.google.com/105657940751678445194 - and read the latest on the Amdocs blog networkhttp://blogs.amdocs.com/. This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp I'm also a new Maven user. How about: mvn dependency:tree http://maven.apache.org/plugins/maven-dependency-plugin/usage.html . . . . just my two cents. /mde/ - 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: [Maven] Question about RPM signatures
Hi, first i would suggest that you post your pom and the exact error message...may be you could run mvn -X ...and create an Issue entry for the rpm-maven-plugin and attach the pom and the logfile to it... Kind regards Karl-Heinz Marbaise -- SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893 Dipl.Ing.(FH) Karl-Heinz MarbaiseICQ#: 135949029 Hauptstrasse 177 USt.IdNr: DE191347579 52146 Würselen http://www.soebes.de - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[Maven] Question about RPM signatures
I am having issues signing RPMs using Maven. I am not really too sure what goes in the configuration section for one. Secondly, it seems my Cygwin may be inappropriately configured or something. When I execute the command I get a message that Maven was unable to sign the RPM with an RPM sign exception while executing 'cmd.exe /X /C expect -'. Any help would be greatly appreciated.
Re: Maven Question
No matter how i mess with this, it still complains about having no POM file. Hrm Roger On Nov 5, 2009, at 11:41 AM, Sony Antony wrote: If I understood correctly, you dont need any fake pom. mvn -DdescriptorId=jar-with-dependencies assembly:single This will package all teh dependencies - recirsively - and create a single jar file --sony On Thu, Nov 5, 2009 at 8:02 AM, Roger Studner rstud...@gmail.com wrote: So the only trick then, is I have to make a fake pom.xml file that lists all the dependencies my project *would need*, include these plugins and see if they can at least make me a ZIP of all the stuff. Thanks, i'll check this out. I'm doing a GWT front end on a Spring MVC j2ee webapp. And from all i've read, there are just a bunch of pain points with GWT Maven (competing plugins, work arounds for directory/path differences). Just worries me to convert wholly to maven when really what I need, is which of 75 jars to I really need to put in lib and that is it :) (technically). Roger On Nov 4, 2009, at 11:55 PM, Ed Hillmann wrote: On Thu, Nov 5, 2009 at 10:24 AM, Roger Studner rstud...@gmail.com wrote: I've dodged(?) using Maven since its inception, but quite clearly that isn't possible anymore. I was thinking of using the Jboss RESTEasy project, and then reailty struck. There are 471,932 jars (okay, that isn't true). They don't list which are for what. But of course, there are a variety of core and option maven dependencies for a pom. Now, to use RESTEasy, I'd rather not convert 10+ projects to be 100% required to use maven :). Is there an easy way, using maven, to have mvn simply resolve each of those and put the necessary jars into folders? So I then can determine which I truely need and copy them over as appropriate. Have a look at the maven-dependency-plugin http://maven.apache.org/plugins/maven-dependency-plugin/ For a project, it can show what artifacts are being used. It has a handy utility that displayed the dependencies in a tree. You can also copy out the dependencies from the repository to the filesystem (which is what I think you're looking to do). For example, here's a POM file that takes an artifact from the local repository and writes it out to a directory profile idicefaces.push-server/id build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/ artifactId configuration artifactItems artifactItem groupIdorg.icefaces/groupId artifactIdpush-server/ artifactId version${icefaces.version}/ version typewar/type destFileNamepush-server.war/destFileName overWritetrue/overWrite /artifactItem /artifactItems /configuration /plugin /plugins /build /profile Also, look at the assembly plugin http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/including-and-excluding-artifacts.html This has a handy feature of packaging up any artifacts you depend on, along with any of the artifacts they depend on. Using this, you can copy out all the required libraries, even if you only declare one artifact as a dependency. Hope this helps, Ed - 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
Maven Question
I've dodged(?) using Maven since its inception, but quite clearly that isn't possible anymore. I was thinking of using the Jboss RESTEasy project, and then reailty struck. There are 471,932 jars (okay, that isn't true). They don't list which are for what. But of course, there are a variety of core and option maven dependencies for a pom. Now, to use RESTEasy, I'd rather not convert 10+ projects to be 100% required to use maven :). Is there an easy way, using maven, to have mvn simply resolve each of those and put the necessary jars into folders? So I then can determine which I truely need and copy them over as appropriate. Thanks! Roger - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Simple maven question
The official stand is that there is no guarantee in which order plugins are run inside a phase. And it shouldn't matter. If one plugin is dependend on the outcome of another plugin it should be in a later phase. Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Mon, Apr 20, 2009 at 9:51 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: AFAIK the order is, for each phase: 1. lifecycle added goals, in the order they are defined in the lifecycle 2. project added goals in plugin order from the pom. where it gets confusing is profiles and inherited plugins, and where they go in the sequence -Stephen 2009/4/20 Tony Giaccone tgiacc...@gmail.com: I've been using maven for a while now, but have finally had to go deeper then just the basics of a pom file. As a result I now am curious about the internal workings of maven. I understand that there are phases to a build, and that each phase is composed of goals. I also understand that plug-ins can add new goals to the list of goals to be accomplished/dispatched in a phase. My questions are all about goals. How are goals ordered in a phase? What determines the order in which a set of goals are dispatched? Can that ordering be seen? Can it be changed? When a new goal is added to a phase how is it placed in the list of goals for that phase, first, last, indeterminate? Curious minds want to know. Tony PS I've done a fair amount of reading but haven't really found anything on this topic. If you can point me to something that answers my questions, that would ROCK. - 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: Simple maven question
You know, I had a feeling that's what the real answer was going to be, it's the only one that makes any sense. As stuff gets added in from a variety of sources, you have no idea what has happened in this phase before or after you get a chance to run. h Worth thinking about... Tony On Tue, Apr 21, 2009 at 11:04 AM, Nick Stolwijk nick.stolw...@gmail.comwrote: The official stand is that there is no guarantee in which order plugins are run inside a phase. And it shouldn't matter. If one plugin is dependend on the outcome of another plugin it should be in a later phase. Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Mon, Apr 20, 2009 at 9:51 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: AFAIK the order is, for each phase: 1. lifecycle added goals, in the order they are defined in the lifecycle 2. project added goals in plugin order from the pom. where it gets confusing is profiles and inherited plugins, and where they go in the sequence -Stephen 2009/4/20 Tony Giaccone tgiacc...@gmail.com: I've been using maven for a while now, but have finally had to go deeper then just the basics of a pom file. As a result I now am curious about the internal workings of maven. I understand that there are phases to a build, and that each phase is composed of goals. I also understand that plug-ins can add new goals to the list of goals to be accomplished/dispatched in a phase. My questions are all about goals. How are goals ordered in a phase? What determines the order in which a set of goals are dispatched? Can that ordering be seen? Can it be changed? When a new goal is added to a phase how is it placed in the list of goals for that phase, first, last, indeterminate? Curious minds want to know. Tony PS I've done a fair amount of reading but haven't really found anything on this topic. If you can point me to something that answers my questions, that would ROCK. - 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
Simple maven question
I've been using maven for a while now, but have finally had to go deeper then just the basics of a pom file. As a result I now am curious about the internal workings of maven. I understand that there are phases to a build, and that each phase is composed of goals. I also understand that plug-ins can add new goals to the list of goals to be accomplished/dispatched in a phase. My questions are all about goals. How are goals ordered in a phase? What determines the order in which a set of goals are dispatched? Can that ordering be seen? Can it be changed? When a new goal is added to a phase how is it placed in the list of goals for that phase, first, last, indeterminate? Curious minds want to know. Tony PS I've done a fair amount of reading but haven't really found anything on this topic. If you can point me to something that answers my questions, that would ROCK.
Re: Simple maven question
AFAIK the order is, for each phase: 1. lifecycle added goals, in the order they are defined in the lifecycle 2. project added goals in plugin order from the pom. where it gets confusing is profiles and inherited plugins, and where they go in the sequence -Stephen 2009/4/20 Tony Giaccone tgiacc...@gmail.com: I've been using maven for a while now, but have finally had to go deeper then just the basics of a pom file. As a result I now am curious about the internal workings of maven. I understand that there are phases to a build, and that each phase is composed of goals. I also understand that plug-ins can add new goals to the list of goals to be accomplished/dispatched in a phase. My questions are all about goals. How are goals ordered in a phase? What determines the order in which a set of goals are dispatched? Can that ordering be seen? Can it be changed? When a new goal is added to a phase how is it placed in the list of goals for that phase, first, last, indeterminate? Curious minds want to know. Tony PS I've done a fair amount of reading but haven't really found anything on this topic. If you can point me to something that answers my questions, that would ROCK. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Eclipse and Maven question
When I had looked at running the Maven builds in Eclipse, I saw that there was an issue where Eclipse would only read the settings.xml in the .m2\settings.xml file. Is this issue currently a known issue? This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
maven question - IBIBLIO vs REPO1
Hi all, Basic Maven questions. I recently setup maven in my company and setup the company repository on a http server. 1) What is the procedure to load it with maven related artifacts and plugins; Do I need to download them from ibilio or http://repo1.maven.org/maven2/org/apache/maven/plugins/ 2) What is the difference between ibiblio and http://repo1.maven.org/maven2/org/apache/maven/plugins/ Do I need to have references to both as remote repositories in the pom.xml? Thanks in advance. -- View this message in context: http://www.nabble.com/maven-question---IBIBLIO-vs-REPO1-tf3549498s177.html#a9909218 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven question - IBIBLIO vs REPO1
Hi, If you want to configure and setup your internal (company) repository management system to automatically download and install maven artifacts and plugins (if its not able to locate them in your local repository), have a look at ARCHIVA, the Maven Repository Manager. Here is the project link http://maven.apache.org/archiva/ You can configure Archiva to fetch and deploy Maven project artifacts from a series of proxied repositories, whether it be http://mirrors.ibiblio.org/pub/mirrors/maven2/ or http://repo1.maven.org/ or some other remote (internal) repositories. To get started with it, refer to http://docs.codehaus.org/display/MAVENUSER/Getting+Started+with+Archiva . Its working out of the box for me. BTW, ibiblio is one of the mirrors available for dowloading Maven artifacts, but by default, your POM will fetch artifacts from repo1 only, but if you wish, you can easily configure it to fetch from ibiblio. Hope this helps. Thanks -dsantani On 4/10/07, srinivas ramgopal [EMAIL PROTECTED] wrote: Hi all, Basic Maven questions. I recently setup maven in my company and setup the company repository on a http server. 1) What is the procedure to load it with maven related artifacts and plugins; Do I need to download them from ibilio or http://repo1.maven.org/maven2/org/apache/maven/plugins/ 2) What is the difference between ibiblio and http://repo1.maven.org/maven2/org/apache/maven/plugins/ Do I need to have references to both as remote repositories in the pom.xml ? Thanks in advance. -- View this message in context: http://www.nabble.com/maven-question---IBIBLIO-vs-REPO1-tf3549498s177.html#a9909218 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven question
Hello Don, a possible solution is to define a profile in your root/pom.xml where you declare the submodule you want to 'isolate' somehow. Something like: project profile idbuild-proj1-sub/id modules modulesub/module /modules /profile /profiles /project once the profile is activated (-Pbuild-proj1-sub from command line, only to mention one option), you'll change the module hierarchy so that it will take into account only the submodule you want to build. Il giorno 09/mar/07, alle ore 18:35, Don Hill ha scritto: I am working on a project that has many subprojects, from the root is there a way to compile/install just a targeted subproject. I want to be able to build/install proj1/sub root/pom.xml proj1/pom.xml proj1/sub/pom.xml -- Valerio Schiavoni http://jroller.com/page/vschiavoni
maven question
I am working on a project that has many subprojects, from the root is there a way to compile/install just a targeted subproject. I want to be able to build/install proj1/sub Thanks. root/pom.xml proj1/pom.xml proj1/sub/pom.xml
Re: maven question
Change your directory to proj1/sub and run maven On 3/9/07, Don Hill [EMAIL PROTECTED] wrote: I am working on a project that has many subprojects, from the root is there a way to compile/install just a targeted subproject. I want to be able to build/install proj1/sub Thanks. root/pom.xml proj1/pom.xml proj1/sub/pom.xml
Re: maven question
Trouble is that this will not compile the prerequisite projects. You would have to either accept the hit of a full reactor build or use your inside knowledge and cd into all prerequisite subdirs, mvn install those, then build your project. -- cg Thierry Lach wrote: Change your directory to proj1/sub and run maven On 3/9/07, Don Hill [EMAIL PROTECTED] wrote: I am working on a project that has many subprojects, from the root is there a way to compile/install just a targeted subproject. I want to be able to build/install proj1/sub Thanks. root/pom.xml proj1/pom.xml proj1/sub/pom.xml - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven Question
Hello, I did a presentation on Maven last night at the Connecticut Java Users Group (www.cooug.org/java). There were a couple questions that I couldn't answer: 1) I've already got a large multi-module Idea project. How do I convert that to a POM (or multiple POMs)? Do I have to create the POM by hand in text editor? Would this person have to refactor the project and hand edit the pom? 3) The tricky part about third party libs is that I need the source code, too, for debugging, even though I want build against the distributed jar. In the past, source code for Mavenized libs hasn't been supported too well. Has this changed, and is it it now common to get source code when you grab a Mavenized project? Any solution for this? I have seen anything for this digging around. BTW: Maven was very well received. Thanks! -Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JUnit Eclipse vs. Maven Question
I have a colleague with a problem running a JUnit test. It works in Eclipse, but not with Maven. Basically, he uses a class that needs to load a native library. The location of a directory to look for this native .so object is specified with java.library.path. Initially, this value was not being set correctly because you must specify it using systemProperties, not argLine. We fixed that, and now a debug output indicates that System.getProperty(java.library.path) does return correctly. However, the error indicating that the native library could not be found persists. Any ideas on where else to look or tips on troubleshooting? -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JUnit Eclipse vs. Maven Question
Sorry, forgot to mention that I tried with forkMode set to once with it set to pertest. Still didn't work. Could it be that systemProperties aren't passed to the JVM when it's forked? They are only set afterwards? -Stephen On 5/2/06, Kenney Westerhof [EMAIL PROTECTED] wrote: On Tue, 2 May 2006, Stephen Duncan wrote: Hi, The library path is only scanned on JVM startup; you can't modify it later and expect the JRE to load any additional libraries. You'll have to use forked tests for that to work. Try configuring the surefire plugin to have forkModeonce/forkMode, for instance. -- Kenney I have a colleague with a problem running a JUnit test. It works in Eclipse, but not with Maven. Basically, he uses a class that needs to load a native library. The location of a directory to look for this native .so object is specified with java.library.path. Initially, this value was not being set correctly because you must specify it using systemProperties, not argLine. We fixed that, and now a debug output indicates that System.getProperty(java.library.path) does return correctly. However, the error indicating that the native library could not be found persists. Any ideas on where else to look or tips on troubleshooting? -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JUnit Eclipse vs. Maven Question
On Tue, 2 May 2006, Stephen Duncan wrote: Sorry, forgot to mention that I tried with forkMode set to once with it set to pertest. Still didn't work. Could it be that systemProperties aren't passed to the JVM when it's forked? They are only set afterwards? Took me some digging, but the system properties are loaded after the jvm is started. The only way to define them in time is to define command line arguments to the jvm: argLine-Djava.library.path=/argLine AND use forkMode once or pertest. You could also configure environment vars like LD_LIBRARY_PATH but that's not really portable. Hope this helps, -- Kenney -Stephen On 5/2/06, Kenney Westerhof [EMAIL PROTECTED] wrote: On Tue, 2 May 2006, Stephen Duncan wrote: Hi, The library path is only scanned on JVM startup; you can't modify it later and expect the JRE to load any additional libraries. You'll have to use forked tests for that to work. Try configuring the surefire plugin to have forkModeonce/forkMode, for instance. -- Kenney I have a colleague with a problem running a JUnit test. It works in Eclipse, but not with Maven. Basically, he uses a class that needs to load a native library. The location of a directory to look for this native .so object is specified with java.library.path. Initially, this value was not being set correctly because you must specify it using systemProperties, not argLine. We fixed that, and now a debug output indicates that System.getProperty(java.library.path) does return correctly. However, the error indicating that the native library could not be found persists. Any ideas on where else to look or tips on troubleshooting? -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Basic Maven Question - Dependencies
I've done some preliminary searching and reading of articles, docs, etc. regarding Maven and multiple-subprojects, but haven't been able to determine an answer to the following question: Assuming a project structure of: Project | |--A | |--B | |--C Where A depends upon B and C depends on A, the typical compile steps to build the entire project would be B-A-C. I've seen articles regarding the use of a reactor to provide a one-step method of making this compile happen for all subprojects. However, our project has a large number of modules and we'd like to build a subset of them for quicker testing purposes by running Maven from, for example, subproject A (should build and deploy only B and A, not C). This would prevent me from having to compile all modules to simply test a set of 3 modules and deploy an EAR with those components. Is this possible using typical Maven constructs? What would be required to accomplish this using Maven? My first thought is that each subproject A,B, and C would have its own project-level Maven files as well as the master one that lives at the top level. Is this the right approach? Anyone doing this? Any best practices suggested with larger projects? Best Regards, James
Re: Basic Maven Question - Dependencies
On Fri, 2004-02-13 at 13:58, James Higginbotham wrote: I've done some preliminary searching and reading of articles, docs, etc. regarding Maven and multiple-subprojects, but haven't been able to determine an answer to the following question: Assuming a project structure of: Project | |--A | |--B | |--C Where A depends upon B and C depends on A, the typical compile steps to build the entire project would be B-A-C. I've seen articles regarding the use of a reactor to provide a one-step method of making this compile happen for all subprojects. Yes. The multiproject plugin does this beautifully. However, our project has a large number of modules and we'd like to build a subset of them for quicker testing purposes by running Maven from, for example, subproject A (should build and deploy only B and A, not C). This would prevent me from having to compile all modules to simply test a set of 3 modules and deploy an EAR with those components. Is this possible using typical Maven constructs? Yes. What would be required to accomplish this using Maven? See below. My first thought is that each subproject A,B, and C would have its own project-level Maven files as well as the master one that lives at the top level. Is this the right approach? No, but close. You're correct that each subproject has its own project.xml. Each declares the dependencies for that subproject. If I remember correctly, one or more of the plugins don't like having subprojects stored in subdirectories of the current directory. When I set up our codebase to use multiproject, I set up the master project at the same level in the directory tree instead of at the top: (top level dir) | +-- master | +-- A | +-- B | +-- C The project.xml for A lists B as a dependency. The project.xml for C lists A as a dependency. The project.xml in master is about as simple as it can get without Maven complaining; most importantly, no dependencies are declared in it. Then you'll need to add to project.properties in master: maven.multiproject.basedir=.. maven.multiproject.includes=A/project.xml,B/project.xml,C/project.xml If you cd to master and run maven -Dgoal=... multiproject:goal (replacing ... with an appropriate goal), Maven should apply the goal to the subprojects in the appropriate order. Now, to be able to build a subset, create a directory at the same level as master: (top level dir) | +-- master | +-- subset | +-- A | +-- B | +-- C Copy project.xml and project.properties from master to subset. Edit project.xml as necessary. Edit maven.multiproject.includes in project.properties to list only the modules you want to include in this subset. Build as above. Hope this helps. -- Craig S. Cottingham [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Basic Maven Question - Dependencies
geronimo does something like this from the top level build. You can specify the list of modules you want to compile on the command line: maven -Dmodules=A,B,C rebuild geronimo actually has a 2 level approach that you can customize. you can also easily define targets with predefined lists of modules. david jencks On Friday, February 13, 2004, at 11:58 AM, James Higginbotham wrote: I've done some preliminary searching and reading of articles, docs, etc. regarding Maven and multiple-subprojects, but haven't been able to determine an answer to the following question: Assuming a project structure of: Project | |--A | |--B | |--C Where A depends upon B and C depends on A, the typical compile steps to build the entire project would be B-A-C. I've seen articles regarding the use of a reactor to provide a one-step method of making this compile happen for all subprojects. However, our project has a large number of modules and we'd like to build a subset of them for quicker testing purposes by running Maven from, for example, subproject A (should build and deploy only B and A, not C). This would prevent me from having to compile all modules to simply test a set of 3 modules and deploy an EAR with those components. Is this possible using typical Maven constructs? What would be required to accomplish this using Maven? My first thought is that each subproject A,B, and C would have its own project-level Maven files as well as the master one that lives at the top level. Is this the right approach? Anyone doing this? Any best practices suggested with larger projects? Best Regards, James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Small Maven Question
Small Maven QuestionDo you have check possible properties define here : http://maven.apache.org/reference/plugins/jnlp/properties.html in the jeystore section? I think you don't define maven.jnlp.signjar.storepass property Emmanuel - Original Message - From: Verma, Nitin (GECP, OTHER, 529706) To: Maven Users List Sent: Thursday, December 25, 2003 12:20 AM Subject: Small Maven Question $ maven jnlp:generate-keystore jnlp:generate-keystore: [delete] Directory /opt/GEinet/neo/projects_tasadd/tasdesign cannot be removed using the file attribute. Use dir instead. [genkey] Generating Key for tasdesign [genkey] keytool error: java.lang.Exception: Key password must be at least 6 characters Gives me an error ! How to make a keystrore using maven? -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]