Commit Graph

5530 Commits

Author SHA1 Message Date
Jason van Zyl 7d69da0eea o unrequired cast
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512552 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 01:30:44 +00:00
Jason van Zyl 31366ad057 o simplifying settings handling and pushing responsibility to the client code
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512551 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 01:29:52 +00:00
Jason van Zyl 17a0c66920 o got rid of all the settings related code and use the settings builder directly and push the responsibility of
dealing with settings semantics to the client code


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512550 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 01:29:02 +00:00
Jason van Zyl 737d36b126 o add wagon-manager to the filter list
o create the session using a request and eliminate pulling out the individual elements for the constructor of the session


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512549 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 01:27:53 +00:00
Jason van Zyl 6dedba51d9 o prefer methods that only use the session
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512548 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 01:26:56 +00:00
Jason van Zyl fbb0ad4780 o remove deprecated methods and move toward using methods that use only the session
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512547 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 01:26:33 +00:00
Jason van Zyl 2b3aa59647 o remove most of the plugin registry logic as we've turned it off from the command line, it's too complicated and we
have pretty much decided that it is a best practice to lock down the versions of plugins being used.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512546 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 01:25:54 +00:00
Jason van Zyl f17c4fefe4 o don't need settings in here anymore, as we'll move toward session and request level configuration and eventually have a single source passing through
the core.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512545 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 01:24:26 +00:00
Jason van Zyl 7bdf0a8d5d o have very much simplified the use of settings use so the settings advice is not required as it is the job
of the client using the embedder to decide the semantics of use. some uses may have only one settings file, some may have five and
  some may have none. trying to move away from hardwired usage patterns for the embedder. the cli is now responsible for dealing with what
  is now standard insofar as user and global settings.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512544 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 01:23:32 +00:00
Jason van Zyl 9783df0a61 o use a MavenExecutionRequest to hold all the information we need so that we can move toward referencing a single source of configuration information
for session and request level.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512543 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 01:21:11 +00:00
Jason van Zyl 8491a179f6 o adding a way to set the local repository using a -D option
o make the cli handle things that are CLI specific like:
  - the $m2_home/conf/settings.xml file and the standard ~/.m2/settings.xml file, i am still falling back
    to this as people using the embedder have become used to this. but this has the effect of greatly 
    simplifying settings handling because it is up to the client code to define where settings are
    and how they should be processed
o use an embedder configuration for things like settings and the local repository which generally remain constant, another
  push toward a single source for session and request configuration information


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512542 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 01:18:01 +00:00
Jason van Zyl 6edbabf67f o we'll use the embedder now for some default values because we still have an asymmetry for many of the methods that
don't use an execution request, or configuration, but require direct use of things like settings and the local repository. an
  example being the profile manager.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512541 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 01:13:33 +00:00
Jason van Zyl 513e42d79d o adding a way to set the local repository in the configuration
o adding a configuration validator so that clients can tell what state the settings are in before firing up the embedder


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512540 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 01:11:43 +00:00
John Dennis Casey f4b3eedc8a Fixing some lingering dependency ordering problems from artifact resolution, and adding settings-builder advice to the CLI.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512339 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 17:47:30 +00:00
Jason van Zyl de30bce7f6 git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@511386 13f79535-47bb-0310-9956-ffa450edef68 2007-02-25 01:03:51 +00:00
Jason van Zyl d4c28b894d MNG-2847 close up the reader properly when reading model.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@511342 13f79535-47bb-0310-9956-ffa450edef68
2007-02-24 20:39:48 +00:00
Jason van Zyl e93a9199d3 MNG-2846 Make the output of Model.getId() nicer
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@511339 13f79535-47bb-0310-9956-ffa450edef68
2007-02-24 20:32:36 +00:00
John Dennis Casey ac4e1f1cfa adding SettingsBuilderAdvice configuration the MavenExecutionRequest.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@511175 13f79535-47bb-0310-9956-ffa450edef68
2007-02-24 00:57:00 +00:00
John Dennis Casey 2d5711c8f0 Adding SettingsBuilderAdvice, to enable skipping default locations for settings files. Also, removing the settings cache, to enable call-by-call synchronization of settings between Maven embedder instances that share the same settings files. Next step is to refresh settings per-call to the embedder.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@511172 13f79535-47bb-0310-9956-ffa450edef68
2007-02-24 00:44:29 +00:00
John Dennis Casey b8289153a1 Adding read/writeSettings() api to the maven-tools and the embedder along with unit tests in each place, and adding a cache object for the settings that is based on the build-context.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@510335 13f79535-47bb-0310-9956-ffa450edef68
2007-02-22 01:01:54 +00:00
John Dennis Casey 086c589776 Adding default profile-id's.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@509744 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 20:51:15 +00:00
John Dennis Casey d508d7181c Prevent scanning of modules that are not in the current reactor, and simplify the API usage for scanning in a reactor scenario.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@509715 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 19:22:05 +00:00
John Dennis Casey 2b95701a5c Rearranging project-builder caching so it's done externally and available for use in the model-lineage builder and during artifact resolution as well.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@509692 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 18:09:53 +00:00
John Dennis Casey 6b36d026da Fixing problem with unresolved sub-expressions being converted to 'null'.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@508151 13f79535-47bb-0310-9956-ffa450edef68
2007-02-15 21:15:36 +00:00
Joakim Erdfelt 36eced2a73 Adding back the extension manager support for injected containers into the WagonManager.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@507294 13f79535-47bb-0310-9956-ffa450edef68
2007-02-13 23:14:14 +00:00
Milos Kleint fa2051759e have basic validation on settings files, to prevent failures downstream, see MEVENIDE-488 for details
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@507077 13f79535-47bb-0310-9956-ffa450edef68
2007-02-13 16:26:24 +00:00
John Dennis Casey b994579133 Bumping plexus-utils dep to 1.4.1-snapshot, and commenting out some of the debug statements from the default model lineage builder, to limit the debug output on a build back to some sane[r] level.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@506742 13f79535-47bb-0310-9956-ffa450edef68
2007-02-12 23:33:43 +00:00
Jason van Zyl 971b2dee8a moved to its own tree
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@506345 13f79535-47bb-0310-9956-ffa450edef68
2007-02-12 07:29:48 +00:00
Jason van Zyl 2cc41c5e6c o long since used ...
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@506253 13f79535-47bb-0310-9956-ffa450edef68
2007-02-12 03:41:48 +00:00
Jason van Zyl fae3cb98c8 MNG-2820 Leave the POM intact which means no interpolating and no license header whacking
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@506108 13f79535-47bb-0310-9956-ffa450edef68
2007-02-11 19:52:44 +00:00
Jason van Zyl 1ff7c5a235 o renaming the embedder request to embedder configuration which is more appropropriate
o move toward using one constructor which takes a configuration for session wide configuration, the execution still 
  takes an execution request as per usual



git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@505664 13f79535-47bb-0310-9956-ffa450edef68
2007-02-10 09:20:11 +00:00
Jason van Zyl 17817ccc00 MNG-2819 Prevent extension scanner from looping infinitely when projects are in a flattened structure
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@505663 13f79535-47bb-0310-9956-ffa450edef68
2007-02-10 09:18:46 +00:00
Jason van Zyl 5288374ef1 o fixes to the embedder for finding settings and cleaning up embedder initialization
Submitted by: Eugene Kuleshov


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@505612 13f79535-47bb-0310-9956-ffa450edef68
2007-02-10 02:01:42 +00:00
Jason van Zyl f151b661dd o fixing finding of settings file
Submitted by: Eugene Kuleshove


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@505611 13f79535-47bb-0310-9956-ffa450edef68
2007-02-10 02:01:00 +00:00
Joakim Erdfelt 755f9683e1 * Updating bootstrap for new wagon deps.
* Removing unused wagon-provider-api dep in top level pom.



git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@505537 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 22:46:35 +00:00
Jason van Zyl b323b45158 adding wagonVersion
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@505525 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 22:01:38 +00:00
Joakim Erdfelt 33f23db7de * Migrating to wagon-manager 1.0-beta-3-SNAPSHOT
* Created org.apache.maven.artifact.manager.ArtifactManager
* Deprecated org.apache.maven.artifact.manager.WagonManager in favor of new ArtifactManager
* Updated the rest of maven to utilize this new ArtifactManager.
* The default wagon providers list is now managed from within wagon-manager's dependency list.



git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@505520 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 21:53:27 +00:00
John Dennis Casey 9e03384f41 Adding ability to reorient the build context manager to a new container context.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@504418 13f79535-47bb-0310-9956-ffa450edef68
2007-02-07 02:40:48 +00:00
John Dennis Casey ad35b458bf Fixing project-loading to process inheritance in the correct direction, and finishing support for custom profile activators...also moving /project/build/extensions handling out to a separate extension scanner component, for later reuse elsewhere.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@501186 13f79535-47bb-0310-9956-ffa450edef68
2007-01-29 21:26:30 +00:00
John Dennis Casey 3b44ad3ac3 Adding constructor to the default build context manager, to allow simpler unit testing with it.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@500078 13f79535-47bb-0310-9956-ffa450edef68
2007-01-26 01:09:36 +00:00
John Dennis Casey 08825262be Adding custom profile activator support, using the <custom/> tag in the <activation/> section of a profile.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@499911 13f79535-47bb-0310-9956-ffa450edef68
2007-01-25 19:02:16 +00:00
Brett Leslie Porter e5644518bd merge r499763 from branch - add methods to repository metadata class
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@499790 13f79535-47bb-0310-9956-ffa450edef68
2007-01-25 13:37:44 +00:00
John Dennis Casey 8831e55e78 Fixing project inheritance and profile-injection now that we've moved to the model lineage builder. Iteration was backward.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@499603 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 22:53:00 +00:00
Brett Leslie Porter d9e845eb9c [MNG-2790] lastUpdated timestamp in local repository metadata not updated on install if it already exists
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@499368 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 11:42:36 +00:00
Andrew Williams 0b8770c75a Use released plexus classworlds and container
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@499054 13f79535-47bb-0310-9956-ffa450edef68
2007-01-23 15:33:20 +00:00
Andrew Williams 62706826a1 Move some debug from info() to debug()
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@499053 13f79535-47bb-0310-9956-ffa450edef68
2007-01-23 15:32:48 +00:00
Milos Kleint 345e8c3732 MEVENIDE-484 - embedder's project loading didn't take the artifact handlers in plugin extensions into account when loading project dependencies.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@498975 13f79535-47bb-0310-9956-ffa450edef68
2007-01-23 10:20:10 +00:00
Jason van Zyl 43112103d6 o updating locations of the mdo files for the bootstrap
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@498757 13f79535-47bb-0310-9956-ffa450edef68
2007-01-22 19:24:50 +00:00
Kenney Westerhof dec70bc79b Update to latest HEAD of plexus-containers - getLookupRealm is now a PlexusContainer instance API method
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@498749 13f79535-47bb-0310-9956-ffa450edef68
2007-01-22 19:05:47 +00:00
Vincent Siveton 14a8e1f5a4 MNG-967: maven.mdo, settings.mdo, and generated-sources
Merged from: r498608 (maven-2.0.x)

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@498611 13f79535-47bb-0310-9956-ffa450edef68
2007-01-22 13:30:58 +00:00