Commit Graph

6037 Commits

Author SHA1 Message Date
Vincent Siveton 643119482b o merged r594510 (fixed line size)
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@594511 13f79535-47bb-0310-9956-ffa450edef68
2007-11-13 12:39:55 +00:00
John Dennis Casey 775ee6c5bb Remove UnsupportedOperationExceptions, ignore invalid mutator methods so we will continue to derive information from the parent artifact where necessary and still work in the changing maven-artifact framework.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@594363 13f79535-47bb-0310-9956-ffa450edef68
2007-11-13 00:30:39 +00:00
John Dennis Casey b4f9ac3067 Add code to clean the build context after each embedder function that uses it.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@594313 13f79535-47bb-0310-9956-ffa450edef68
2007-11-12 22:02:44 +00:00
John Dennis Casey 60baf80fab Adding a check to use sysprops if nothing else is set in the embedder configuration or request.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@594301 13f79535-47bb-0310-9956-ffa450edef68
2007-11-12 21:17:29 +00:00
John Dennis Casey fc28a41097 Moving a comment to a place where it will be more useful.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@594300 13f79535-47bb-0310-9956-ffa450edef68
2007-11-12 21:17:00 +00:00
Jason van Zyl 1a286e2325 o adding PomMetadataSource for the changes to maven-artifact
o adding in all the artifact handlers here as they are Maven specific and don't belong in maven-artifact


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@593857 13f79535-47bb-0310-9956-ffa450edef68
2007-11-11 08:10:35 +00:00
John Dennis Casey 7946e31f40 reinstate the project cache, until we can find a better method of caching.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@593698 13f79535-47bb-0310-9956-ffa450edef68
2007-11-10 00:17:44 +00:00
John Dennis Casey cc47645398 Fixing a unit test.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@593694 13f79535-47bb-0310-9956-ffa450edef68
2007-11-09 23:35:24 +00:00
John Dennis Casey 7fcf47aa8c formats.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@593625 13f79535-47bb-0310-9956-ffa450edef68
2007-11-09 19:16:06 +00:00
John Dennis Casey d803b49ebb Adding line to pull aspectjrt from the repo if it's not in the local repository.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@593621 13f79535-47bb-0310-9956-ffa450edef68
2007-11-09 18:43:23 +00:00
John Dennis Casey 696b217c20 Switch to plexus alpha-38 to help memory consumption.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@593587 13f79535-47bb-0310-9956-ffa450edef68
2007-11-09 16:42:47 +00:00
John Dennis Casey 9c9bcde5f4 [MNG-3193] Adding pointcut and advice to provide backward compat on invalid lifecycle phase names (these bindings will be ignored).
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@593310 13f79535-47bb-0310-9956-ffa450edef68
2007-11-08 21:06:31 +00:00
John Dennis Casey 08947e7efb Working on cleaning up exceptions and reporting (these changes are from before the break I took to work on memory profiling in maven and plexus).
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@593294 13f79535-47bb-0310-9956-ffa450edef68
2007-11-08 20:33:27 +00:00
John Dennis Casey f1973980a5 Clean up the caching to use weak hashmaps, to conserve some memory in large builds.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@593287 13f79535-47bb-0310-9956-ffa450edef68
2007-11-08 20:15:20 +00:00
John Dennis Casey 4c2d75b726 Moving offline notice to avoid embedded cases.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@593040 13f79535-47bb-0310-9956-ffa450edef68
2007-11-08 06:44:26 +00:00
John Dennis Casey ed568e725f Make reporting plugin configuration always used (even if mojo in question is not a report), as in 2.0.x
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@592949 13f79535-47bb-0310-9956-ffa450edef68
2007-11-07 23:28:45 +00:00
John Dennis Casey febce07c90 Adding more context information to existing exceptions, cleaning up construction in exceptions, and adjusting the inheritance hierarchy for exceptions to make them make a little more sense for error reporting. Also, adding improved (but not complete, yet) reporting for BuildFailureExceptions and ProjectBuildingExceptions, with some tests to make sure pertinent information is in the output.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@592859 13f79535-47bb-0310-9956-ffa450edef68
2007-11-07 19:24:30 +00:00
John Dennis Casey f3d6f3d38b Fixing log level on two debug statements.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@592835 13f79535-47bb-0310-9956-ffa450edef68
2007-11-07 18:04:12 +00:00
Jason van Zyl c141200c39 MNG-3274: Adding a flag to the metadata source so that at some point soon we can start turning on a strict mode that is just not going to allow a system without POMs.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@592260 13f79535-47bb-0310-9956-ffa450edef68
2007-11-06 03:59:37 +00:00
John Dennis Casey a1f995029a cleaning up NPE in the realm manager, and adding clear() method calls to the embedder to cleanup the realm manager after it's used, to try to keep the number of open realms to a minimum...
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@592222 13f79535-47bb-0310-9956-ffa450edef68
2007-11-06 01:34:38 +00:00
John Dennis Casey d206986023 [MNG-3272] Fixing URI construction for reading the super-POM in cases where maven is in a directory structure where there are spaces in the path.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@592157 13f79535-47bb-0310-9956-ffa450edef68
2007-11-05 21:40:11 +00:00
Brian E Fox 083a7dd4f0 fixed NPE in exception msg
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@591938 13f79535-47bb-0310-9956-ffa450edef68
2007-11-05 09:49:13 +00:00
Brian E Fox dbd357ffdf fixed windows test error
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@591922 13f79535-47bb-0310-9956-ffa450edef68
2007-11-05 09:08:40 +00:00
John Dennis Casey fe8c4071a6 Switching back to selectively import extensions into a project-specific ClassRealm, except this time extension realms will be shared (the origin of the aforementioned imports) to conserve memory tied up by classloading. Similarly, plugin realms are managed using a key produced from g🅰️v of the plugin, plus the hashcode of all g🅰️v of the plugin-level dependencies aggregated into one string, to distinguish the deploy plugin 2.0 with no deps from the deploy plugin 2.0 with a plugin-level dep on wagon-webdav. Plugin realms have their parent realms managed by the pluginManager now prior to lookup or execution of the mojo instance, and PluginDescriptor.(classRealm|artifacts) attributes are set for each execution. Likewise, the MavenPluginCollector now tracks plugin descriptors with their version information included, instead of just using g:a.
Had to bump the plexus-container-default version up to alpha-36 to fix a problem in ClassicSingletonComponentManager. All realms for extensions, plugins, and projects (which contain only imports from extensions) are now managed by the MavenRealmManager.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@591391 13f79535-47bb-0310-9956-ffa450edef68
2007-11-02 16:44:00 +00:00
John Dennis Casey f87308819f Bake compat-aspect weaving into the build for all profiles, to alleviate problems with the non-standard embedder creation.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@590803 13f79535-47bb-0310-9956-ffa450edef68
2007-10-31 19:52:38 +00:00
John Dennis Casey 27698689a8 Adding compat trailer to the maven version when it's printed via the cli.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@590758 13f79535-47bb-0310-9956-ffa450edef68
2007-10-31 17:26:37 +00:00
John Dennis Casey a1510ba220 Adding compat aspect to maven-core to give one-stop-shopping for backward compatibility measures and reduce pollution in main codebase.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@589908 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 23:31:27 +00:00
John Dennis Casey 00a1edc008 disable project-specific loading of extensions and plugins until we can figure out how to do it without causing OOME's.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@589904 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 23:15:23 +00:00
John Dennis Casey b97533f845 Fix Maven/DefaultMaven method signatures, push projectSessions map into request.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@589822 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 19:42:33 +00:00
John Dennis Casey a1c2b00069 bumping to new plexus container release.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@588931 13f79535-47bb-0310-9956-ffa450edef68
2007-10-27 01:33:03 +00:00
John Dennis Casey 4f44eaddf3 Restoring ability to use webdav wagon by fixing WagonManager's use of new active collections in the container, and fixing the active collections to scan descendant realms for qualifying components.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@588777 13f79535-47bb-0310-9956-ffa450edef68
2007-10-26 20:57:39 +00:00
John Dennis Casey bcb1ebe0e0 use managed versions when resolving project dependencies from the plugin manager before executing a mojo, and include system path in system-scoped artifacts within the managed version map.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@588326 13f79535-47bb-0310-9956-ffa450edef68
2007-10-25 19:58:14 +00:00
John Dennis Casey b0cc7be1ac Improving the use of project sessions in the embedder, and exporting control over the project session map to the embedder instead of Maven.execute().
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@588144 13f79535-47bb-0310-9956-ffa450edef68
2007-10-25 05:13:22 +00:00
John Dennis Casey b11111f75a Adding a couple unit tests for the project-level session, and fixing potential NPE when an extension is declared that already exists in the core distribution.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@588136 13f79535-47bb-0310-9956-ffa450edef68
2007-10-25 04:04:04 +00:00
John Dennis Casey f4a9342c7f Exclusion for plexus-component-api on plexus-interactivity-api.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@588110 13f79535-47bb-0310-9956-ffa450edef68
2007-10-25 01:51:17 +00:00
John Dennis Casey 808f9c3111 adding codehaus snapshots with todo to disable once plexus is released again.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@588066 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 22:47:02 +00:00
Carlos Sanchez Gonzalez 2271551d4a Store the pom File object in the execution request instead of its path
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@588060 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 22:25:48 +00:00
Carlos Sanchez Gonzalez 9637ac8c5a Store the pom File object in the execution request instead of its path
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@588059 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 22:25:28 +00:00
Carlos Sanchez Gonzalez 7ac246fd96 Store the pom File object in the execution request instead of its path, fix possible null values
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@588058 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 22:24:45 +00:00
Carlos Sanchez Gonzalez 3571f9e2ac Do not return null collections, makes life easier for clients
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@588053 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 22:08:01 +00:00
John Dennis Casey 9d94f8d310 Fixing NPE in execution request. Apparently, bootstrap was not run after these were changed.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@588034 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 21:23:48 +00:00
John Dennis Casey 16c064c4bc Cleaning up extension and plugin realms for a project once the build completes.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@588029 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 21:14:27 +00:00
Carlos Sanchez Gonzalez 0d161a73a4 Store the pom File object in the execution request instead of its path
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@587999 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 20:07:15 +00:00
Carlos Sanchez Gonzalez 64e0d64a56 Store the pom File object in the execution request instead of its path
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@587998 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 20:07:08 +00:00
Carlos Sanchez Gonzalez 324c1fcd1c Add an artifact field to ArtifactMetadataRetrievalException to store the artifact causing the problem
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@587996 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 20:06:08 +00:00
Jason van Zyl b762ce620c o put the tycho profile back
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@587800 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 06:58:27 +00:00
Carlos Sanchez Gonzalez 990e9e880e Remove maven-monitor merged into maven-core
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@587785 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 04:58:37 +00:00
Carlos Sanchez Gonzalez fa482c9b61 Remove maven-plugin-descriptor merged into maven-plugin-api
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@587783 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 04:52:24 +00:00
Carlos Sanchez Gonzalez f4207feee2 Port to JDK 1.4
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@587777 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 04:26:36 +00:00
Carlos Sanchez Gonzalez 880785ac04 Kept John's constructors but still use File/URL instead of String
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@587693 13f79535-47bb-0310-9956-ffa450edef68
2007-10-23 23:26:30 +00:00