Commit Graph

167 Commits

Author SHA1 Message Date
Benjamin Bentmann abca2a5252 o Moved model builder classes into dedicated package such that o.a.m.model is reserved for the generated Modello classes
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@790350 13f79535-47bb-0310-9956-ffa450edef68
2009-07-01 20:04:48 +00:00
Benjamin Bentmann 2b44c968f0 o Extended model validator to support more than two validation levels
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@790338 13f79535-47bb-0310-9956-ffa450edef68
2009-07-01 19:33:40 +00:00
Benjamin Bentmann f5f6d6fc47 o Removed duplicate impl that caused non-deterministic component lookups
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@790286 13f79535-47bb-0310-9956-ffa450edef68
2009-07-01 17:34:37 +00:00
Benjamin Bentmann c117fb1421 o Dump class path order
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@790270 13f79535-47bb-0310-9956-ffa450edef68
2009-07-01 17:14:11 +00:00
Benjamin Bentmann 53a2e019ed o Dumped test name to check execution order
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@790249 13f79535-47bb-0310-9956-ffa450edef68
2009-07-01 16:21:59 +00:00
Benjamin Bentmann aa549e89b0 o Printed the error for better test failure analysis
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@790239 13f79535-47bb-0310-9956-ffa450edef68
2009-07-01 15:58:08 +00:00
Benjamin Bentmann 22516c9fa7 o Extended model validation to support distinction between warnings and errors
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@790131 13f79535-47bb-0310-9956-ffa450edef68
2009-07-01 11:56:44 +00:00
Jason van Zyl fb1c53d6da MNG-4221: putting the repository and compat modules together while completely hide the legacy implementation
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@789541 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 03:04:34 +00:00
Jason van Zyl ee5dd78bd1 MNG-4221: hide the artifact transformation classes
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@789088 13f79535-47bb-0310-9956-ffa450edef68
2009-06-28 11:16:34 +00:00
Jason van Zyl ba289ad502 MNG-4221: First phase of changing the direction of the dependencies so that maven-compat only points toward the core. The core cannot depend on anything in maven-compat.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@789077 13f79535-47bb-0310-9956-ffa450edef68
2009-06-28 09:39:49 +00:00
Benjamin Bentmann 2138a248af [MNG-4215] Review and fix hashCode/equals methods of ArtifactRepository implementations
Submitted by: Igor Fedorenko

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@788798 13f79535-47bb-0310-9956-ffa450edef68
2009-06-26 18:02:19 +00:00
Benjamin Bentmann e3463be3d1 [MNG-2363] <profile><activation><file><exists/> does not work in a multi-project build
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@788334 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 12:03:55 +00:00
Benjamin Bentmann 1819ca8723 [MNG-4217] trunk create a directory with %20 in name (trunk rev 787409)
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@787800 13f79535-47bb-0310-9956-ffa450edef68
2009-06-23 19:32:05 +00:00
Jason van Zyl c646df62b4 o moving blacklisting up and out of the repository itself
o remove magic policy creation in the artifact implementation, it's already done in the request populator


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@787010 13f79535-47bb-0310-9956-ffa450edef68
2009-06-21 13:24:04 +00:00
Jason van Zyl ea5445af38 MNG-4216: Remove all direct usage of DefaultArtifactRepository
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@786995 13f79535-47bb-0310-9956-ffa450edef68
2009-06-21 11:39:10 +00:00
Benjamin Bentmann 863135a347 o Include the enabled policy in the log output (just saying "can't resolve X from Y when Y actually contains X is rather confusing...)
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@786909 13f79535-47bb-0310-9956-ffa450edef68
2009-06-20 21:20:46 +00:00
Benjamin Bentmann 12fbba751a [MNG-4041] embedder returns stale maven project state
Submitted by: Igor Fedorenko

o Committed additional patch with bugfixes including minor modifications:
  - used LinkedHashSet instead of HashSet/TreeSet
  - added missing license headers

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@786882 13f79535-47bb-0310-9956-ffa450edef68
2009-06-20 18:56:26 +00:00
Benjamin Bentmann 30ab54bd7b o Restored method for compat with maven-dependency-plugin
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@786213 13f79535-47bb-0310-9956-ffa450edef68
2009-06-18 19:20:50 +00:00
Benjamin Bentmann 05a782b347 [MNG-4199] [regression] Dependency resolution for compile and runtime scope misses provided&system dependencies
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@784480 13f79535-47bb-0310-9956-ffa450edef68
2009-06-13 21:53:18 +00:00
Benjamin Bentmann e743f23a6a o Fixed handling of version ranges
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@784438 13f79535-47bb-0310-9956-ffa450edef68
2009-06-13 17:32:12 +00:00
Olivier Lamy a1d5dfe7af remove unused import
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@784307 13f79535-47bb-0310-9956-ffa450edef68
2009-06-12 23:01:53 +00:00
Benjamin Bentmann cdf805d662 o Added toString() to ease debugging
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@784207 13f79535-47bb-0310-9956-ffa450edef68
2009-06-12 17:28:22 +00:00
Benjamin Bentmann c8a3981a68 o Marked classes as deprecated
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@782078 13f79535-47bb-0310-9956-ffa450edef68
2009-06-05 17:48:30 +00:00
Jason van Zyl f4379a47e8 o missing bits of Igor's patch
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@782059 13f79535-47bb-0310-9956-ffa450edef68
2009-06-05 16:41:07 +00:00
Jason van Zyl 5787b70567 o adding RuntimeInformation component to the compat package.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@781203 13f79535-47bb-0310-9956-ffa450edef68
2009-06-02 22:54:18 +00:00
Benjamin Bentmann 057f1e8324 o Gave each model diddling component access to the building request to easy future extensions
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@781147 13f79535-47bb-0310-9956-ffa450edef68
2009-06-02 20:17:54 +00:00
Benjamin Bentmann c8a5c2d89a o Renamed packages for consistency
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@780763 13f79535-47bb-0310-9956-ffa450edef68
2009-06-01 18:06:17 +00:00
Benjamin Bentmann 9501ad8835 o Resurrected the path translator component (on this occasion, splitting it to separate the single path translation from the model translation)
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@780698 13f79535-47bb-0310-9956-ffa450edef68
2009-06-01 15:55:41 +00:00
Benjamin Bentmann 26a35db0c7 o Introduced ModelBuilder component that now hosts most of the logic from the project builder to construct the effective model. With maven-model-builder we now should have a rather slim module that tools can re-use for building models. The project builder is simply layered on top of the model builder.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@780627 13f79535-47bb-0310-9956-ffa450edef68
2009-06-01 12:17:53 +00:00
Jason van Zyl 101dd8530e o adding in some changes before moving to the trunk
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@779655 13f79535-47bb-0310-9956-ffa450edef68
2009-05-28 16:43:20 +00:00
Benjamin Bentmann 41e54938d5 o Moved model validator into o.a.m.model and moved old impl into compat module
o Added method to validate raw POM

git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@779289 13f79535-47bb-0310-9956-ffa450edef68
2009-05-27 19:59:17 +00:00
Jason van Zyl 90db120ca1 o restoring resolveAlways for Archetype
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@779287 13f79535-47bb-0310-9956-ffa450edef68
2009-05-27 19:56:53 +00:00
Jason van Zyl ab43fff631 o make a separate project dependencies downloader where the scope and exclusions can be taken into account
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@779283 13f79535-47bb-0310-9956-ffa450edef68
2009-05-27 19:45:32 +00:00
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