Commit Graph

5692 Commits

Author SHA1 Message Date
Jason van Zyl e981109693 o updating the example
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512583 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 02:54:07 +00:00
Jason van Zyl 4d8b30460a o start of a little site for the embedder
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512572 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 02:34:59 +00:00
Jason van Zyl f34ebdd221 o adding snippet markers to the simple example
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512571 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 02:31:57 +00:00
Jason van Zyl eb87f15ce7 o adding a simple example that can be used as a snippet
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512570 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 02:29:42 +00:00
Jason van Zyl e8f5f0cbfd o adjust to package changes in the embedder
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512563 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 02:12:32 +00:00
Jason van Zyl c0b569638d o idea doesn't nuke directories where full migration has been done ...
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512560 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 01:59:18 +00:00
Jason van Zyl 8bb63d56d7 o Going to start writing some documentation and I would like everything of use in the embedder package. I'll keep internal goodies in sub packages.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512559 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 01:56:48 +00:00
Jason van Zyl b5cbfc8bd4 o more tests for the configuration validation
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512558 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 01:54:23 +00:00
Jason van Zyl fb6ffdc9de o test for embedder configuration validation
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512556 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 01:45:55 +00:00
Jason van Zyl afc8c1ac11 git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512555 13f79535-47bb-0310-9956-ffa450edef68 2007-02-28 01:33:00 +00:00
Jason van Zyl a96f5bdd95 o settings simplication
o removing old configuration, cleaned up and moved to another package


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512554 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 01:32:38 +00:00
Jason van Zyl 37e012f0c1 o updating to the new use of the session
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512553 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 01:31:13 +00:00
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