Commit Graph

1428 Commits

Author SHA1 Message Date
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 24139e8256 o cleaning up the lifecycle executor and error reporter
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@753053 13f79535-47bb-0310-9956-ffa450edef68
2009-03-12 23:27:54 +00:00
Jason van Zyl 39af2b8f7e o bootstrap working on my branch with all the changes. i need to pull from trunk and spend a few more hours on adding tests that need to be written that never were. the
guts of the plugin manager and lifecycle executor internals are not really covered much.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@751989 13f79535-47bb-0310-9956-ffa450edef68
2009-03-10 06:07:02 +00:00
Jason van Zyl 191aded423 o my test for executing a mojo in isolation is now complete and passes and gives some real indication of the problem that exists in trying to expose the plugin manager to any external client. the test is pretty nasty but now i can
work against this while i refactor. i can now merge to trunk.



git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@751980 13f79535-47bb-0310-9956-ffa450edef68
2009-03-10 04:31:10 +00:00
Jason van Zyl da776815ac o a test which demonstrates the difficulting in testing the execution of a single mojo, indicates some work to isolate the system and make it easier
for people to reuse this code. igor had to jump through these same hoops to get isolated mojo execution working in m2e. needs some love.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@751582 13f79535-47bb-0310-9956-ffa450edef68
2009-03-09 04:51:13 +00:00
Jason van Zyl 51e30e4640 o can put the collector in the standard components.xml and makes unit testing work properly
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@751552 13f79535-47bb-0310-9956-ffa450edef68
2009-03-08 23:31:51 +00:00
Jason van Zyl 2d01e12568 o reduce the signature of executeMojo in the pluginManager and propagate
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@751512 13f79535-47bb-0310-9956-ffa450edef68
2009-03-08 20:07:40 +00:00
Jason van Zyl 9a2c66dde1 o remove duplicate signature from the plugin manager
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@751492 13f79535-47bb-0310-9956-ffa450edef68
2009-03-08 18:22:23 +00:00
Jason van Zyl 600dab7b1d o kill imports
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@751461 13f79535-47bb-0310-9956-ffa450edef68
2009-03-08 16:27:59 +00:00
Jason van Zyl 3ef5e97f42 o reduce the foot print of the plugin manager, the interaction between the lifecycle executor and plugin manager is far too intimate
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@751459 13f79535-47bb-0310-9956-ffa450edef68
2009-03-08 16:25:35 +00:00
Jason van Zyl 29a95ef261 o inject a logger, remove AbstractLogEnabled
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@751458 13f79535-47bb-0310-9956-ffa450edef68
2009-03-08 16:21:32 +00:00
Jason van Zyl 41df8abcf8 o branch for my simplification of the lifecycle executor
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@751454 13f79535-47bb-0310-9956-ffa450edef68
2009-03-08 16:14:26 +00:00
Jason van Zyl b68c9f9231 o shortening the interface name for the repository system
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@751196 13f79535-47bb-0310-9956-ffa450edef68
2009-03-07 05:08:43 +00:00
Jason van Zyl 30e6002f40 o push out the artifact repository creation when it's requested in the project
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@751159 13f79535-47bb-0310-9956-ffa450edef68
2009-03-07 01:05:17 +00:00
Jason van Zyl 410e6cab4b o reducing the signature size of the repository system some more
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@751104 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 22:14:08 +00:00
Jason van Zyl c04ee12962 o notes for oleg about what's left to remove from the repository interface
o more cleanup 


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@751091 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 21:54:23 +00:00
Jason van Zyl c67176f502 o remove another set of methods from the repository system interface and now ResolutionGroup is gone from Maven internals.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@751083 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 21:37:07 +00:00
Benjamin Bentmann a3a2e77da3 o Fixed NPE due to uninitialized field
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@751046 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 19:30:22 +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
Jason van Zyl c586c81065 o remove the build planner from visibility
o fix a method in the project builder to protect against an error coming from the remote resources plugin, it's asking to resolve a POM from a JAR artifact and the old project building code was doing that for whatever not-right reason


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@751021 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 18:20:52 +00:00
Jason van Zyl 1720377f1d o don't need the component descriptor for the PluginRepository as it doesn't exist anymore
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750775 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 05:48:49 +00:00
Jason van Zyl 1ffdc9286a o start the grand plugin refactoring, just putting it all together in addition to putting all the repository/artifact calls
behind the repository system you can see project and plugins being processed an incredible number of times and the recursion
  in the collector is broken causing POMs for plugins to be processed hundreds of times. The bootstrap under profiling reveals
  the xpp3 parser being used almost 30k times which is pure insanity.



git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750774 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 05:38:48 +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 650ca3978a o Added debug logging
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750493 13f79535-47bb-0310-9956-ffa450edef68
2009-03-05 16:19:21 +00:00
Jason van Zyl 4f5efdb3de o get rid of extraneous logging bits
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750395 13f79535-47bb-0310-9956-ffa450edef68
2009-03-05 09:15:48 +00:00
Jason van Zyl 7d14e6b520 git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750361 13f79535-47bb-0310-9956-ffa450edef68 2009-03-05 07:54:36 +00:00
Jason van Zyl 04998877df git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750354 13f79535-47bb-0310-9956-ffa450edef68 2009-03-05 07:35:00 +00:00
Jason van Zyl 3a2b747af0 git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750351 13f79535-47bb-0310-9956-ffa450edef68 2009-03-05 07:19:44 +00:00
Jason van Zyl 3efeef0d89 git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750346 13f79535-47bb-0310-9956-ffa450edef68 2009-03-05 07:11:59 +00:00
Jason van Zyl 8e7e771f81 o more plugin manager refactoring
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750343 13f79535-47bb-0310-9956-ffa450edef68
2009-03-05 06:56:41 +00:00
Jason van Zyl 74b14a5953 o use the custom settings for now
o pushing everything related to the plugin manager into one package in preparation for replacement with the plexus plugin manager


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750308 13f79535-47bb-0310-9956-ffa450edef68
2009-03-05 04:02:23 +00:00
Jason van Zyl 1a05bdac38 o use the repositories passed into the request
o make sure that mirrors are processed correctly in that the mirror that is defined must use the layout and policies of the repository it is mirroring


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750251 13f79535-47bb-0310-9956-ffa450edef68
2009-03-05 00:15:56 +00:00
Jason van Zyl 83720e04ca o use the remote repos processed by the request
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750152 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 20:53:37 +00:00
Britton Isbell b746b13a69 Removed report method.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750149 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 20:45:05 +00:00
Britton Isbell 4af4093d4c Remove dup code for profile creation.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750144 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 20:33:54 +00:00
Benjamin Bentmann 96c06c4f1b o Added back some code to actually throw exceptions and abort the normal control flow in case artifact resolution fails
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@750029 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 14:51:24 +00:00
Benjamin Bentmann 374ef3a15b o Fixed resolution of project dependencies for plugin execution
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@749974 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 12:12:45 +00:00
Jason van Zyl beedf0cf7b o restore profile manager location so that the site plugin works ...
o teach the resolution to understand when the root is local with a file present versus retrieving the root as well          


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@749924 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 06:58:09 +00:00
Jason van Zyl 3d883f3a9f o inject the logger
o formatting

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@749825 13f79535-47bb-0310-9956-ffa450edef68
2009-03-03 23:07:51 +00:00
Jason van Zyl 914d340b45 o use released model-builder
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@749815 13f79535-47bb-0310-9956-ffa450edef68
2009-03-03 22:52:39 +00:00
Jason van Zyl 141083a2ae o place execute method first
o inject the logger


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@749807 13f79535-47bb-0310-9956-ffa450edef68
2009-03-03 22:36:48 +00:00
Jason van Zyl a5fc1cfb14 o fix the mirroring code
o restore ArtifactResolver.resolve( artifact, remotes, local ) for the rr plugin


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@749784 13f79535-47bb-0310-9956-ffa450edef68
2009-03-03 21:56:42 +00:00
Jason van Zyl 3b31023865 o if there was no metadata resolved then don't try to resolve artifacts
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@749535 13f79535-47bb-0310-9956-ffa450edef68
2009-03-03 05:35:38 +00:00
Benjamin Bentmann ed6f76548b o Added generics
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@749482 13f79535-47bb-0310-9956-ffa450edef68
2009-03-03 00:00:40 +00:00
Jason van Zyl 613253dda7 o trying to use the request/result pattern everywhere
o remove another use of ResolutionGroup in the core
o remove all the deprecated methods in the resolver, we'll see what breaks and we'll restore in maven-compat


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@749407 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02 18:42:31 +00:00
Herve Boutemy c5571a0c78 used http://maven.apache.org/xsd/* for schema location
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@748982 13f79535-47bb-0310-9956-ffa450edef68
2009-03-01 08:55:40 +00:00
Britton Isbell b487a2fd45 Moved profile classes into main project package.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@748889 13f79535-47bb-0310-9956-ffa450edef68
2009-02-28 17:26:56 +00:00
Benjamin Bentmann af31b86868 [MNG-4057] Propose checking of plugin artifact when plugin descriptor cannot be found
o Merged from r748815

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@748820 13f79535-47bb-0310-9956-ffa450edef68
2009-02-28 11:18:41 +00:00