Commit Graph

140 Commits

Author SHA1 Message Date
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 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
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
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
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 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
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
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
John Dennis Casey cf308da3de Adding ability to undo the log-level change, to some extent...it's not too elegant, but it should work in most cases.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@498043 13f79535-47bb-0310-9956-ffa450edef68
2007-01-20 02:02:47 +00:00
John Dennis Casey 4ca4301f1d Adding line to enable log-level control from the MavenExecutionRequest.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@498030 13f79535-47bb-0310-9956-ffa450edef68
2007-01-20 01:00:32 +00:00
Kenney Westerhof b7ae6feb1c Enable all tests again
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497810 13f79535-47bb-0310-9956-ffa450edef68
2007-01-19 13:43:11 +00:00
Jason van Zyl e2e634d16c git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497176 13f79535-47bb-0310-9956-ffa450edef68 2007-01-17 21:19:32 +00:00
Kenney Westerhof b61fba1d5f Implemented embedder extensions. You can register a set of URLs that
are scanned for components, after the container is started, that
will override any core components defined.

o Updated (Default)MavenEmbedRequest with a getter/setter for the extension list;

o Updated the MavenEmbedder to scan the extensions.

o Added testcase: dummy component implementation and components.xml to specify
  the override. 
  
o Also added pom.properties since running unit tests in an IDE
  will fail because the pom.properties is generated only inside the archive,
  and with project references inside the IDE that resource is not available.



git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@496904 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 00:46:49 +00:00
John Dennis Casey 01b08e86d1 Adding showErrors to the tests, so we can see problems that come up.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@496399 13f79535-47bb-0310-9956-ffa450edef68
2007-01-15 16:44:56 +00:00
Jason van Zyl 812e887a07 o little example of using the source plugin to create aggregate source jars and having the source jars be installed with normal install/deploy
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@496200 13f79535-47bb-0310-9956-ffa450edef68
2007-01-15 01:30:57 +00:00
Jason van Zyl 990f9a55c9 o update bundle
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@495102 13f79535-47bb-0310-9956-ffa450edef68
2007-01-11 03:39:55 +00:00
Jason van Zyl 26e8fb2081 o add method so that the artifact handler can be looked up, useful in IDEs where we want to look up whether a particular artifact should be added to the classpath.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@495101 13f79535-47bb-0310-9956-ffa450edef68
2007-01-11 03:39:22 +00:00
Jason van Zyl 241652c45f o clean up distribution management
o going to just use my manifest with filtering, the assembly plugin doesn't work and neither does the 
  the felix plugin. they just crap out or don't work. this works and does the job just fine



git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@493929 13f79535-47bb-0310-9956-ffa450edef68
2007-01-08 03:41:56 +00:00
Jason van Zyl ed381aec0d o Code from netbeans integration that will write out changes to a model and preserve the existing structure for the most part.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@493817 13f79535-47bb-0310-9956-ffa450edef68
2007-01-07 19:23:21 +00:00
Jason van Zyl d47e7c221c o a little utility using jdom to write out models
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@493812 13f79535-47bb-0310-9956-ffa450edef68
2007-01-07 19:16:37 +00:00
Jason van Zyl 72e7a4df53 o lining up all the uses of modello and using 1.0-alpha-13 of the modello plugin everywhere
o add the generation of a JDOMWriter for use in the embedder so that working with models doesn't                                    
  completely whack the existing XML, and allow for outputting the namespace declarations                                            
o add a security manager to the embedder which is off by default but will barf if someone                                           
  tries to set system properties. you have to specifically turn this on because it will more then                                   
  likely break tons of code like xerces setting a system property named "version", nice.       



git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@493811 13f79535-47bb-0310-9956-ffa450edef68
2007-01-07 19:13:33 +00:00
Kenney Westerhof 4be6542867 Update dependency on plexus-container-default to 1.0-alpha-16-SNAPSHOT to fix child
container issues when maven builds use extensions;

Update dependency on plexus-classworlds to 1.0-alpha-7-SNAPSHOT to fix child container
plexus-bootstrap.xml loading problems.

Define p-c-d as a direct dep for maven-embedder; if not, an older version can be used
than is specified in the parent pom (dependencyManagement is not applied to transitive deps,
which is a bug (right?)).

Alter AbstractArtifactTask.java and MavenEmbedder.java to call the proper constructor
in DefaultPlexusContainer.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@493294 13f79535-47bb-0310-9956-ffa450edef68
2007-01-06 04:03:24 +00:00
Jason van Zyl 318ec6ac0f o looking other IDE integration and cleaning up stub methods that are useless to anyone until they are implemented fully and properly
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@491536 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 05:29:29 +00:00
Jason van Zyl ae10e790ac o remove old readProjectWithDependencies
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@491535 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 05:21:47 +00:00
Jason van Zyl 439ba113d7 o move more configuration to one location
o removing uneeded components from DefaultMaven


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@491532 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 04:53:39 +00:00
Jason van Zyl 8120d856c7 o collect all WagonManager configuration in one place
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@491531 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 04:45:35 +00:00
Jason van Zyl 774972e7ec MNG-1385 You can now activate a profile using the embedder.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@491529 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 04:08:06 +00:00
Jason van Zyl e07b4f0970 o making the baseDirectory properties the same
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@491525 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 02:54:23 +00:00
Jason van Zyl 23e2504d23 MNG-2733 When request.setPomFile( file ) is used, takes its basedir for the execution request so that request.getBasedir() doesn't NPE
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@491524 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 02:52:56 +00:00
Jason van Zyl 8f4a420c8d MNG-2728 return a MavenExecutionResult from Maven.execute( request )
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@491512 13f79535-47bb-0310-9956-ffa450edef68
2007-01-01 00:18:12 +00:00
Jason van Zyl cd1c9e7b29 MNG-2721: Determine a standard way to pass proxy information into the embedder
http://jira.codehaus.org/browse/MNG-2721

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@491499 13f79535-47bb-0310-9956-ffa450edef68
2006-12-31 21:56:33 +00:00
Jason van Zyl 54ee18c115 MNG-2724: Create a component in the embedder who's responsibility is to configure an execution request
http://jira.codehaus.org/browse/MNG-2724

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@491490 13f79535-47bb-0310-9956-ffa450edef68
2006-12-31 21:07:01 +00:00
Jason van Zyl 622f014e0d MNG-2724: Create a component in the embedder who's responsibility is to configure an execution request
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@491487 13f79535-47bb-0310-9956-ffa450edef68
2006-12-31 21:04:13 +00:00
Jason van Zyl 9780fa6c86 o updating the tests for the embedder
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@491469 13f79535-47bb-0310-9956-ffa450edef68
2006-12-31 19:22:57 +00:00
Jason van Zyl 87b3775025 MNG-2722 Create a strategy for providing sane default values in the MavenExecutionRequest
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@491468 13f79535-47bb-0310-9956-ffa450edef68
2006-12-31 19:20:44 +00:00
Milos Kleint 9d792d6d1c remove System.out
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@491399 13f79535-47bb-0310-9956-ffa450edef68
2006-12-31 09:26:27 +00:00
Jason van Zyl 43ec595fed o Removing the LifecycleExecutor component, not used.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@491395 13f79535-47bb-0310-9956-ffa450edef68
2006-12-31 06:03:37 +00:00
Jason van Zyl e259065562 git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@491373 13f79535-47bb-0310-9956-ffa450edef68 2006-12-31 03:24:59 +00:00
Jason van Zyl 8e51bbe8ec o Remove the MavenEmbedderConfiguration as this is not used in any of the IDE integration. The MavenEmbedRequest is what is being used as the session level configuration.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@491363 13f79535-47bb-0310-9956-ffa450edef68
2006-12-31 02:13:58 +00:00
Jason van Zyl df12fcab5d o restoring assembly descriptor so that I can actually build from within this module
o all the use of an embedder request with no settings file information and have the defaults just kick in



git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@491334 13f79535-47bb-0310-9956-ffa450edef68
2006-12-30 22:21:18 +00:00
Jason van Zyl 4f269094d0 o manifest for using the embedder as an osgi bundle
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@483659 13f79535-47bb-0310-9956-ffa450edef68
2006-12-07 20:55:45 +00:00
Jason van Zyl 7136b01f88 o merging in my changes from the refactored embedder branch
milos, this has some stuff that we worked on so i've tried to unify everythign in trunk
  now


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@483655 13f79535-47bb-0310-9956-ffa450edef68
2006-12-07 20:53:33 +00:00
Andrew Williams 2d9fc16efb revert the revert of r480835 - there must be an inconsistency in my home repository
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@483399 13f79535-47bb-0310-9956-ffa450edef68
2006-12-07 09:52:49 +00:00
Andrew Williams 7897be76b4 Goodness me this file was missed too, apologies again. Everything builds again now.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@483313 13f79535-47bb-0310-9956-ffa450edef68
2006-12-07 00:39:30 +00:00
Andrew Williams 44ae99fc2d Merge maven.new for latest plexus classworlds and container APIs
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@483302 13f79535-47bb-0310-9956-ffa450edef68
2006-12-07 00:17:53 +00:00
Jason van Zyl a6977b53c7 o not sure what happened but i couldn't make an assembly the way i used to, so i reverted
o added an OSGi manifest to make it easier to Eugene to integrate into Eclipse


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@480835 13f79535-47bb-0310-9956-ffa450edef68
2006-11-30 04:45:40 +00:00