I do not want to create any new projects. I am using continues integration (TeamCity) and it runs maven with my pom.xml. It also may add some parameters to command line, but I cannot create new project with dependencies and run dependeny plugin on it in one command line like "mvn <something>", is not it?
To create new project I must write script like ant script that will create new project and than run "mvn dependency", and I want to do it in one command line. Now I understand: it is impossible with out of writing my own MOJO or some external script to create new "fake" project. Thanks for your help. Ilya Kazakevich, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" -----Original Message----- From: Wayne Fay [mailto:[email protected]] Sent: Thursday, May 06, 2010 10:31 PM To: Maven Users List Subject: Re: Maven for project you do not have sources for > When I run "mvn plugin-i-want:some-goal" it should download > "com.example:myProject:1.0-SNAPSHOT" from my repository, unpack it and > save it in build directory like "compiler" plugin does with compiled code. > So, almost like compile but instead of compiling -- just download > artifact from repository :) This is all simple and achievable with the dependency plugin. project_i_want_to_test +depends on dep1 +depends on dep2 project_i_created_just_to_run_my_tests_against_the_other_project +depends on project_i_want_to_test In this pom, use dependency:unpack and it will unpack project_i_want_to_test in the proper place, right? Its that simple. I honestly don't understand the confusion, unless you are trying to do this without creating another project/pom which IMO is the wrong approach. Wayne --------------------------------------------------------------------- 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]
