Commit Graph

5793 Commits

Author SHA1 Message Date
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
Vincent Siveton cc64ba7ac1 o ignore target dir
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@498609 13f79535-47bb-0310-9956-ffa450edef68
2007-01-22 13:28:07 +00:00
Jason van Zyl 290c6bc18a git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@498057 13f79535-47bb-0310-9956-ffa450edef68 2007-01-20 03:31:28 +00:00
John Dennis Casey db225079d5 Fixing plugin-discovery when one plugin depends on another, and the pluginCollector sees a plugin before that plugin is meant to be added with its componentRealm.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@498048 13f79535-47bb-0310-9956-ffa450edef68
2007-01-20 02:45:20 +00:00
John Dennis Casey e7412f71cf Adding methods for backward compat, and deprecating them...and adding a few debug log statements.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@498044 13f79535-47bb-0310-9956-ffa450edef68
2007-01-20 02:03:27 +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
John Dennis Casey dee7f572c1 Adding support for pre-scanning POMs for build extensions. NOTE: Plugins-as-extensions is not yet supported in this way.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497993 13f79535-47bb-0310-9956-ffa450edef68
2007-01-19 22:55:19 +00:00
John Dennis Casey dfc4a10c68 Adding the notion of a build-context, and several build-context classes that can be used: ProjectBuildContext, which contains lineage and current-project info, ExecutionBuildContext, which contains the information in the original MavenExecutionRequest, and SystemBuildContext, which contains things like System properties...these use the BuildContextManager to store and retrieve their info from the core container's Context object.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497911 13f79535-47bb-0310-9956-ffa450edef68
2007-01-19 19:15:18 +00:00
Kenney Westerhof 6c2268f0bd Only filter core artifacts from plugins, not extension artifacts, as they may break the plugin by bringing in incompatible API artifacts
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497888 13f79535-47bb-0310-9956-ffa450edef68
2007-01-19 17:56:16 +00:00
Kenney Westerhof c98ee0a930 Cleanup and doco
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497881 13f79535-47bb-0310-9956-ffa450edef68
2007-01-19 17:21:02 +00:00
Kenney Westerhof 11a88e90f5 remove the 'unused' var for plugin artifact resolution. When they're resolved, all core artifacts are already removed from the resolutiongroups' result. Why add them back again later?
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497838 13f79535-47bb-0310-9956-ffa450edef68
2007-01-19 15:08:08 +00:00
Kenney Westerhof 753ccae2af Remove unused import
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497836 13f79535-47bb-0310-9956-ffa450edef68
2007-01-19 15:02:21 +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
John Dennis Casey 5bd4c1927c partially fixing problem with plugin-dependency loading...now, we're including maven-plugin-api in the plugin realm somehow, which means the standard artifact filter isn't working.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497696 13f79535-47bb-0310-9956-ffa450edef68
2007-01-19 03:12:44 +00:00
John Dennis Casey 5a2439e750 Moving extensions back to the core classrealm, and adding a dynamic artifact filter to keep MNG-2228 from reappearing.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497671 13f79535-47bb-0310-9956-ffa450edef68
2007-01-19 01:09:28 +00:00
John Dennis Casey 87226eab2e Stop re-applying profiles to models that have already had profiles applied.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497556 13f79535-47bb-0310-9956-ffa450edef68
2007-01-18 20:07:23 +00:00
John Dennis Casey 3e3b0fd239 Fixing caching of Model files, in case it's brought in via reactor and the current relativePath of a parent is wrong...it can still be found, as required by IT0103.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497554 13f79535-47bb-0310-9956-ffa450edef68
2007-01-18 19:58:42 +00:00
Kenney Westerhof 2faffb229f Fix resolving <plugin><dependencies>: it0081
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497533 13f79535-47bb-0310-9956-ffa450edef68
2007-01-18 18:49:58 +00:00
Kenney Westerhof 18b83fe00a Use plugin realm to lookup plugin components - fixes custom lifecycle mappings
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497491 13f79535-47bb-0310-9956-ffa450edef68
2007-01-18 16:33:34 +00:00
Kenney Westerhof c783818ab2 Set the proper default lookup realm for mojo execution - they may lookup components when executing too
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497307 13f79535-47bb-0310-9956-ffa450edef68
2007-01-18 05:28:02 +00:00
Kenney Westerhof 8e7dc9ef14 Realm fixes
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497305 13f79535-47bb-0310-9956-ffa450edef68
2007-01-18 05:22:08 +00:00
Kenney Westerhof 45b87aa936 Remove unused and unavailable imports
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497304 13f79535-47bb-0310-9956-ffa450edef68
2007-01-18 05:21:49 +00:00
Jason van Zyl 4a69a9501c git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497257 13f79535-47bb-0310-9956-ffa450edef68 2007-01-17 23:56:41 +00:00
Jason van Zyl 1b2414353f o turn the test on for a final run but we don't need the assembly again
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497198 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 22:04:01 +00:00
Brett Leslie Porter 7985a25ef6 [MNG-2097] add prepare-package phase
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497197 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 22:00:46 +00:00
Jason van Zyl 3989426df8 o run the tests and make the default run-full-maven
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497196 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 21:56:45 +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
Jason van Zyl 14272fda01 git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@497175 13f79535-47bb-0310-9956-ffa450edef68 2007-01-17 21:18:17 +00:00
Brett Leslie Porter 72f6f6d29e [MNG-2780] snapshots are not updated based on metadata deployed with uniqueVersion = false
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@496972 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 09:17:30 +00:00
John Dennis Casey c7738df560 Splitting model-lineage loading and profile-application out into separate components...profile-application, so the model-lineage builder can run properly, and the model-lineage builder, so we can pre-scan for models with extensions that may contain things like profile activators, which would be used during project-loading.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@496910 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 01:36:07 +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
Carlos Sanchez Gonzalez 6b39882779 m2.bat no longer exists
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@496588 13f79535-47bb-0310-9956-ffa450edef68
2007-01-16 05:04:25 +00:00
Jason van Zyl 09f3b3fbba git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@496493 13f79535-47bb-0310-9956-ffa450edef68 2007-01-15 21:10:57 +00:00
John Dennis Casey 4e51a3d185 Fixing NPE's related to a reactor manager that doesn't exist (in the case of a build error, f.e.).
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@496406 13f79535-47bb-0310-9956-ffa450edef68
2007-01-15 17:03:48 +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
Dennis Lundberg f2201fc1be o Fix typos in descriptions.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@496152 13f79535-47bb-0310-9956-ffa450edef68
2007-01-14 21:10:03 +00:00