/[Apache-SVN]
ViewVC logotype

Revision 163638


Jump to revision: Previous Next
Author: jdcasey
Date: Mon Mar 21 08:18:34 2005 UTC (19 years, 8 months ago)
Changed paths: 35
Log Message:
CHANGES
------------------------

o Factored the layout for a repository into a separate set of components in o.a.m.a.repository.layout

o Added new DefaultRepositoryLayout that uses the repo layout in http://docs.codehaus.org/pages/viewpage.action?pageId=22230 (it is not used by default until we get the repo1 conversion done)

o Added command-line switches to force legacy local-repo or new format (-a/-A, I know, but try to find something that makes more sense!)

o Added path formatting to the repository itself, which is now constructed with a ArtifactRepositoryLayout instance (since layout should be tied to the repository)

o Removed path formatting altogether from the DefaultArtifactHandlerManager.

o Changed the AbstractArtifactBasedComponent (or whatever it's called) to use the repository formatting in the path() and localPath() methods.

o Moved the plugin repo construction (still intact as a hard-coded singleton list) into the DefaultMavenProjectBuilder, where it will eventually build from POM info.

o Added a new method to build an artifact repository for a <distributionManagement/> section, if possible. This reduced the strain on mojos to construct an ArtifactRepository on demand.

o Refactored all *DeployMojo to use #project.distributionManagementArtifactRepository instead of the #settings, #component..ArtifactRepositoryFactory, ... that it used to require. This is a big simplifying step.

o Removed remote artifact repository construction from DefaultMaven, and changed the MavenSession to delegate to MavenProject for remoteArtifactRepositories, just as it does for pluginRepositories.

o Added remoteArtifactRepositories, pluginArtifactRepositories, distributionManagementArtifactRepository to MavenProject as a cache for the higher-level repos used throughout the system. This is project info, so it belongs here.

o Fixed all the tests in maven-core and maven-artifact which I broke. :)

o Dropped what is probably a big format-bomb, since the Eclipse formatter doesn't really handle 'throws Exception' wrapping the right way.

o Added MavenProject to the MavenSession constructor, since there should always be a MavenProject associated with a build, even if it's just the super-pom.

TODO:
--------------------------

- Write an integration/unit test to ensure that the new repo format works with $classifier (was: $extra) and $groupId[0]/../$groupId[n]. This is a simple adaptation of the old layout, but still needs testing.


Changed paths

Path Details
Directorymaven/components/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/AbstractArtifactComponent.java modified , text changed , props changed
Directorymaven/components/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/Artifact.java modified , text changed , props changed
Directorymaven/components/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java modified , text changed , props changed
Directorymaven/components/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/handler/manager/ArtifactHandlerManager.java modified , text changed , props changed
Directorymaven/components/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/handler/manager/DefaultArtifactHandlerManager.java modified , text changed , props changed
Directorymaven/components/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/installer/DefaultArtifactInstaller.java modified , text changed , props changed
Directorymaven/components/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java modified , text changed , props changed
Directorymaven/components/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/repository/ArtifactRepository.java modified , text changed , props changed
Directorymaven/components/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/repository/layout/ added
Directorymaven/components/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/repository/layout/AbstractArtifactRepositoryLayout.java added
Directorymaven/components/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/repository/layout/ArtifactPathFormatException.java added
Directorymaven/components/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/repository/layout/ArtifactRepositoryLayout.java added
Directorymaven/components/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/repository/layout/DefaultRepositoryLayout.java added
Directorymaven/components/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/repository/layout/LegacyRepositoryLayout.java added
Directorymaven/components/trunk/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java modified , text changed , props changed
Directorymaven/components/trunk/maven-artifact/src/main/resources/META-INF/plexus/components.xml modified , text changed , props changed
Directorymaven/components/trunk/maven-artifact/src/test/java/org/apache/maven/artifact/ArtifactComponentTestCase.java modified , text changed , props changed
Directorymaven/components/trunk/maven-artifact/src/test/java/org/apache/maven/artifact/resolver/ArtifactResolverTest.java modified , text changed , props changed
Directorymaven/components/trunk/maven-core/src/main/java/org/apache/maven/DefaultMaven.java modified , text changed , props changed
Directorymaven/components/trunk/maven-core/src/main/java/org/apache/maven/artifact/repository/ArtifactRepositoryFactory.java modified , text changed , props changed
Directorymaven/components/trunk/maven-core/src/main/java/org/apache/maven/artifact/repository/DefaultArtifactRepositoryFactory.java modified , text changed , props changed
Directorymaven/components/trunk/maven-core/src/main/java/org/apache/maven/cli/MavenCli.java modified , text changed , props changed
Directorymaven/components/trunk/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java modified , text changed , props changed
Directorymaven/components/trunk/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java modified , text changed , props changed
Directorymaven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java modified , text changed , props changed
Directorymaven/components/trunk/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java modified , text changed , props changed
Directorymaven/components/trunk/maven-core/src/main/java/org/apache/maven/project/MavenProject.java modified , text changed , props changed
Directorymaven/components/trunk/maven-core/src/test/java/org/apache/maven/MavenTestCase.java modified , text changed , props changed
Directorymaven/components/trunk/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java modified , text changed , props changed
Directorymaven/components/trunk/maven-core/src/test/java/org/apache/maven/project/ProjectClasspathArtifactResolver.java modified , text changed , props changed
Directorymaven/components/trunk/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/AbstractDeployMojo.java modified , text changed , props changed
Directorymaven/components/trunk/maven-plugins/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java modified , text changed , props changed
Directorymaven/components/trunk/maven-plugins/maven-ejb-plugin/src/main/java/org/apache/maven/plugin/ejb/EjbMojo.java modified , text changed , props changed
Directorymaven/components/trunk/maven-plugins/maven-jar-plugin/src/main/java/org/apache/maven/plugin/jar/JarDeployMojo.java modified , text changed , props changed
Directorymaven/components/trunk/maven-plugins/maven-pom-plugin/src/main/java/org/apache/maven/plugin/pom/PomDeployMojo.java modified , text changed , props changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26