Commit Graph

134 Commits

Author SHA1 Message Date
Benjamin Bentmann 49698c0819 [MNG-4172] Project POM artifact returned as dependency if project has no dependencies
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@778240 13f79535-47bb-0310-9956-ffa450edef68
2009-05-24 21:24:57 +00:00
Benjamin Bentmann 8b22b2dffa o Restored original behavior of legacy resolution methods (every client and not just Surefire that calls the old methods expects the root artifact to not be resolved as in 2.x now)
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@778161 13f79535-47bb-0310-9956-ffa450edef68
2009-05-24 14:35:25 +00:00
Benjamin Bentmann 22b4d0ee5f o Fixed artifact resolver to deliver root artifact first to retain class path order (intermediate update to test, the legacy method being called shouldn't contain the root artifact at all IIRC so needs some investigation)
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@778146 13f79535-47bb-0310-9956-ffa450edef68
2009-05-24 13:35:29 +00:00
Benjamin Bentmann fa03325f35 o Fixed artifact resolver to deliver root artifact first to retain class path order
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@778141 13f79535-47bb-0310-9956-ffa450edef68
2009-05-24 13:16:45 +00:00
Benjamin Bentmann a28bb83b54 o Moved profile manager to compat module
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@777998 13f79535-47bb-0310-9956-ffa450edef68
2009-05-23 19:44:18 +00:00
Jason van Zyl 9efd21d0c9 o restoring several backward compat fixes all the way back to 2.0 ...
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@776895 13f79535-47bb-0310-9956-ffa450edef68
2009-05-20 23:28:39 +00:00
Jason van Zyl 5fe9c2748e o this completely sucks but older version of the remote resources plugin binds to a reporting error and all the ITs use an older version of the RR plugin so there's not much i can do but put this back for now until the RR plugin goes through some releases.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@776785 13f79535-47bb-0310-9956-ffa450edef68
2009-05-20 17:47:22 +00:00
Jason van Zyl 9dfca575c7 o clean lifecycle is handled by defaults populator
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@776540 13f79535-47bb-0310-9956-ffa450edef68
2009-05-20 04:25:59 +00:00
Jason van Zyl 9be598d351 o injecting the metadata sources results in having to do some trickery to break the circular dependency between the components, this
is visible now in the metadata source which shows we need to do some work there as circular deps are pretty sure sign of poor design
o the ProjectClasspathTest has little stub components so I'm not even sure if it's a decent test but it requires a bunch of custom
  implementations as i tried to get rid of the hand written descriptor and have only annotated tests implementations but somewhere
  an incorrect implementations is being injected.

I'll work on breaking the circular dependency and we need a nicer way to inject test implementations, the way the Module works in
Guice is the way to go. We'll bridge the gap until we can switch over to Guice.



git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@776529 13f79535-47bb-0310-9956-ffa450edef68
2009-05-20 03:26:51 +00:00
Jason van Zyl 03aef5b15b o we can use the test metadata source that will be injected.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@776500 13f79535-47bb-0310-9956-ffa450edef68
2009-05-19 23:39:45 +00:00
Jason van Zyl 3ec487cdbf o creating a test metadata source for the legacy system, getting rid of anonymous instances in tests.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@776498 13f79535-47bb-0310-9956-ffa450edef68
2009-05-19 23:39:21 +00:00
Jason van Zyl e0298b7c97 o first pass at setting up error handling for each possible error condition
- this resulted in cleaning up some exceptions in plexus so that they might message could be surfaced in Maven
o move the plugin prefix searching to the lifecycle executor and get it out of the plugin manager
o add capability to the RepositorySystem to get plain resources from a repository. I'm going simple with the repository group
  metadata and I will just get the file directly as the only implementation is the plugin group metadata. the system is 
  not easily or generally extensible so i'll just take what I need



git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@776412 13f79535-47bb-0310-9956-ffa450edef68
2009-05-19 18:53:07 +00:00
Jason van Zyl 3aac2d6d44 o formatting
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@775299 13f79535-47bb-0310-9956-ffa450edef68
2009-05-15 19:38:50 +00:00
Jason van Zyl 060c6d9784 o all core tests pass again, on to ITs
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@774620 13f79535-47bb-0310-9956-ffa450edef68
2009-05-14 02:47:02 +00:00
Jason van Zyl de46f2a5fa o bunch more patches from Igor to keep the heap down. junit is just not letting go.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@774515 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 20:27:13 +00:00
Jason van Zyl a2ac490107 o another pass the the plugin manager
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@774487 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 18:42:56 +00:00
Jason van Zyl 861244fe51 o formatting
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@774348 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 13:22:39 +00:00
Jason van Zyl 57ea53e5f5 o only provide one way to construct the request.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@774334 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 13:18:37 +00:00
Jason van Zyl b4251c3e16 git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@774079 13f79535-47bb-0310-9956-ffa450edef68 2009-05-12 20:50:52 +00:00
Jason van Zyl dd1725b131 o adding components to test wagons
o add method to view supported protocols
o add a note to the test to show the lifecycle plan is getting some repeated elements


git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@773926 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 15:08:53 +00:00
Jason van Zyl 55ecfa65d6 o implement the find(Artifact) method in the default local repository
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@773769 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 02:43:26 +00:00
Jason van Zyl b8c6c01864 o pushing up the dependency downloading logic into the lifecycle executor
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@773662 13f79535-47bb-0310-9956-ffa450edef68
2009-05-11 19:38:34 +00:00
Jason van Zyl 3398024a0f o delegating local repository implementation that chains the reactor and user local repository
o removal of more state from the WagonManager and pushing it into the request in an attempt to bridge the way for Mercury



git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@773456 13f79535-47bb-0310-9956-ffa450edef68
2009-05-11 04:08:29 +00:00
Benjamin Bentmann e8a45c2ce3 o Fixed scope handling during transitive dependency resolution
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@773258 13f79535-47bb-0310-9956-ffa450edef68
2009-05-09 18:33:08 +00:00
Jason van Zyl a73c5abc9c o in the middle of a ReactorArtifactRepository but ben and igor need access so checking in
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@772832 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 03:24:55 +00:00
Jason van Zyl c6a8b20cba o get rid of the reactor manager to make way for a real reactor that can be a local repository implementation which will prevent the pollution in the metadata source for dealing with projects that are in the current build
o clean up the project sorter
o push the information that was in the reactor manager into the session


git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@772039 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 03:09:22 +00:00
Benjamin Bentmann 3659cbd249 o Fixed propagation of POM-level plugin dependencies to the plugin manager
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@771481 13f79535-47bb-0310-9956-ffa450edef68
2009-05-04 22:41:22 +00:00
Jason van Zyl 36e43b2951 o cleaning up project builder, removed signatures that i've corrected in the RR plugin, moved properties injection up to the main Maven component
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@770390 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 18:49:42 +00:00
Jason van Zyl d993c66b23 o resolving dependencies of a root artifact is now the job of ... the artifact resolver!
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@769969 13f79535-47bb-0310-9956-ffa450edef68
2009-04-29 22:22:57 +00:00
Jason van Zyl 49c287754d o pushing my changes back in with shane's
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@769580 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 23:04:24 +00:00
Britton Isbell d2bbf510f9 Param check in artifact utils.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@769557 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 21:46:43 +00:00
Britton Isbell d8e77e29b8 Removed references to MavenProject.injectPlugin
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@769467 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 17:09:36 +00:00
Jason van Zyl 54d0418185 o push in changes to sync up with shane
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@769031 13f79535-47bb-0310-9956-ffa450edef68
2009-04-27 15:43:01 +00:00
Jason van Zyl a14dd02e93 o more meshing of trunk and my branch, two tests that are out of sync
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@768832 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 23:51:09 +00:00
Jason van Zyl 04760f2e69 o remove debug output
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@768725 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 16:43:35 +00:00
Jason van Zyl 3d0338e0ea o remove debug output
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@768724 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 16:41:46 +00:00
Jason van Zyl d94c0e791a o get rid of debug output
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@768722 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 16:39:27 +00:00
Jason van Zyl 755afec417 o the component discovery is not exposed outside the plexus core
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@768721 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 16:34:19 +00:00
Jason van Zyl 5d7758b358 o pull from trunky dunk dunk
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@767707 13f79535-47bb-0310-9956-ffa450edef68
2009-04-22 23:04:06 +00:00
Jason van Zyl 0f70fd4a0f o working creating a clean path of plugin resolution logic, and separting report processing from plugin processing
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@757003 13f79535-47bb-0310-9956-ffa450edef68
2009-03-21 20:18:36 +00:00
Jason van Zyl 0bf25e64d8 o adjusting the internals to deal with root-based resolution
o gross hack to work around someone hardcoding a dummy:dummy root artifact in the surefire plugin



git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@756885 13f79535-47bb-0310-9956-ffa450edef68
2009-03-21 07:28:59 +00:00
Jason van Zyl ecb1bfe2fd o found another untested path way which i'll make another test for tomorrow. executing one mojos work, but when stringing
them together the optimization I'm trying to make for incremental support fails.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@753142 13f79535-47bb-0310-9956-ffa450edef68
2009-03-13 07:12:21 +00:00
Jason van Zyl 5678f17198 o nuke another big chunk of the old code, looking for available versions is used internally and once all the methods are shed we'll supply a pure metadata resolution for clients, like IDEs, that need to nicely show versions. we'll also provide a graph too so people aren't going to have to do all the extra crap to get decent information.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@751036 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 18:57:41 +00:00
Benjamin Bentmann fc0d7461dd o Fixed log message
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750938 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 15:12:07 +00:00
Benjamin Bentmann 7f16ba74d7 o Fixed NPE in plugin manager
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750917 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 14:30:01 +00:00
Benjamin Bentmann ba677b1fb9 o Improved error reporting
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750906 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 14:03:38 +00:00
Jason van Zyl f4ec59594c o remove more methods to the repository system, starting to get close to the final set of methods and then we can move on to the classes of the binding to the repository system
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750738 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 01:25:43 +00:00
Jason van Zyl b9f9244f5f o fixed mirror code
o more plugin manager wrangling


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750568 13f79535-47bb-0310-9956-ffa450edef68
2009-03-05 19:59:06 +00:00
Benjamin Bentmann 013f3adab5 o Added more debug logging
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750471 13f79535-47bb-0310-9956-ffa450edef68
2009-03-05 15:06:27 +00:00
Benjamin Bentmann 4e402106f2 o Added more debug logging
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750470 13f79535-47bb-0310-9956-ffa450edef68
2009-03-05 14:58:32 +00:00