mirror of https://github.com/apache/maven.git
o separated the sorter out of the reactor manager in preparation for making the reactor just an implementation of a local repository. shouldn't be tangled with sorting, that should be done before anything starts
o adding test poms for plugin manager and lifecycle executor o separate out base alignment test o notes on the lifecycle executor and plugin manager git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@759542 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
723d9463ef
commit
ace08b348d
|
@ -0,0 +1,65 @@
|
|||
/**
|
||||
* These represent the mojos to run in a lifecycle phase for a particular packaging type. The
|
||||
* example below is the set of mojos we are going to run in the default lifecycle for the "jar"
|
||||
* packaging.
|
||||
*
|
||||
|
||||
<component>
|
||||
<role>org.apache.maven.lifecycle.LifecycleMapping</role>
|
||||
<role-hint>jar</role-hint>
|
||||
<implementation>org.apache.maven.lifecycle.DefaultLifecycleMapping
|
||||
</implementation>
|
||||
<configuration>
|
||||
<lifecycles>
|
||||
<lifecycle>
|
||||
<id>default</id>
|
||||
<phases>
|
||||
<process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
|
||||
<compile>org.apache.maven.plugins:maven-compiler-plugin:compile</compile>
|
||||
<process-test-resources>org.apache.maven.plugins:maven-resources-plugin:testResources</process-test-resources>
|
||||
<test-compile>org.apache.maven.plugins:maven-compiler-plugin:testCompile</test-compile>
|
||||
<test>org.apache.maven.plugins:maven-surefire-plugin:test</test>
|
||||
<package>org.apache.maven.plugins:maven-jar-plugin:jar</package>
|
||||
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
|
||||
<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
|
||||
</phases>
|
||||
</lifecycle>
|
||||
</lifecycles>
|
||||
</configuration>
|
||||
</component>
|
||||
|
||||
|
||||
In the LifecycleExecutor we have configured what the lifecycles look like. Below we have the
|
||||
"default" lifecycle. The mojos you see listed above for the "jar" packaging which are
|
||||
specified to run in the "default" lifecycle will be mapped onto the phases you see below.
|
||||
|
||||
<lifecycle>
|
||||
<id>default</id>
|
||||
<phases>
|
||||
<phase>validate</phase>
|
||||
<phase>initialize</phase>
|
||||
<phase>generate-sources</phase>
|
||||
<phase>process-sources</phase>
|
||||
<phase>generate-resources</phase>
|
||||
<phase>process-resources</phase>
|
||||
<phase>compile</phase>
|
||||
<phase>process-classes</phase>
|
||||
<phase>generate-test-sources</phase>
|
||||
<phase>process-test-sources</phase>
|
||||
<phase>generate-test-resources</phase>
|
||||
<phase>process-test-resources</phase>
|
||||
<phase>test-compile</phase>
|
||||
<phase>process-test-classes</phase>
|
||||
<phase>test</phase>
|
||||
<phase>package</phase>
|
||||
<phase>pre-integration-test</phase>
|
||||
<phase>integration-test</phase>
|
||||
<phase>post-integration-test</phase>
|
||||
<phase>verify</phase>
|
||||
<phase>install</phase>
|
||||
<phase>deploy</phase>
|
||||
</phases>
|
||||
</lifecycle>
|
||||
|
||||
*
|
||||
*/
|
|
@ -0,0 +1,185 @@
|
|||
h3. Plugins
|
||||
|
||||
* Execution model
|
||||
* Metadata model
|
||||
* Metadata tooling
|
||||
** Metadata extractor
|
||||
** Metadata reader
|
||||
** Metadata writer
|
||||
** Metadata adapter (if required for the target system)
|
||||
* Maven packaging and lifecycle
|
||||
* Maven test harness for plugin execution model
|
||||
* Eclipse IDE tooling for plugin execution model and metadata model
|
||||
|
||||
- we also seem to have information like the plugin lifecycle model that's burried inside the maven execution model
|
||||
- we also seem to have artifact information tangled inside the plugin model
|
||||
- we have to deal with scripting implementations (groovy, beanshell, ruby)
|
||||
- we need to deal with a shared context for plugins, like the guarded mojos
|
||||
- we need to deal with plugins as core application logic which can also interact with plugins
|
||||
|
||||
* Along with this comes the testing strategies that make this work
|
||||
* The repository model where plugins can be stored and cataloged
|
||||
* Bridging this into an OSGi system: if this could be done then we can basically take over p2
|
||||
|
||||
TODO
|
||||
|
||||
- dealing with processing of input and adapting GAVs before searching i.e. plugin groups in Maven and default searching
|
||||
- how to deal with resolution from different places like local/remote/workspace
|
||||
- how to incorporate the metadata processor to start with
|
||||
- create a hook to programmatically configure the test
|
||||
- create a plugin processor
|
||||
- directory
|
||||
- jar
|
||||
- hooks for loading
|
||||
|
||||
- i could make an annotation that marked another class as its plugin discoverer, i could just add it to the
|
||||
the component descriptor and when it's loaded we can add the discoverer, that would be simpler. i could
|
||||
also do this with the lister as well
|
||||
i'l
|
||||
// 1 the metadata -> model plugin/mojo descriptor
|
||||
// 2 tools for doing the mapping
|
||||
// 3 the component model -> interfaces for the plugin
|
||||
|
||||
// The plugin manager should load up a directory structure of plugins.
|
||||
// - a plugin per directory where the plugin is present with its deps
|
||||
// - a plugin that has its dependencies packaged up with it
|
||||
// - implement filters and create a test where a plugin fails if the right classes are not filtered
|
||||
// - plugins with a dependency the same as the core but different versions, make it fail then fix it
|
||||
|
||||
/*
|
||||
*
|
||||
* h2. Concerns for the plugin manager
|
||||
*
|
||||
* h3. resolving the dependencies of a plugin - these could be resolved remotely at runtime or, -
|
||||
* they could be resolved from a local repository - i think we need a simple dependency model here
|
||||
* that is more mercury related and not Maven related i.e no POMs - workspace resolver - we need
|
||||
* tools to pre-populate this repository
|
||||
*
|
||||
* h3. create an isolated classloader
|
||||
*
|
||||
* h3. lookup the plugin with a configuration
|
||||
*
|
||||
* h3. execute the plugin
|
||||
*
|
||||
* h3. plugins may have to deal with particular actions when a plugin is - installed - loaded -
|
||||
* unloaded - update - uninstalled
|
||||
*
|
||||
* h3. plugins should be able to have specific metadata for a plugin model and that be translated -
|
||||
* dependencies - resources - configuration - extension points of plugins
|
||||
*
|
||||
* For a particular application plugin there will be a declarative descriptor for that plugin type.
|
||||
*
|
||||
* - nexus - the plugin class - UI to contribute - what JS to hook into the UI - what resources to
|
||||
* load into the UI - having packed or unpacked plugins, and positioning resources if necessary -
|
||||
* maven can work out of the classloader, nexus plugins probably couldn't given the js and image
|
||||
* resources
|
||||
*
|
||||
* We need to look at Maven, and Nexus as use cases and figure out what each of them needs to be
|
||||
* able to do
|
||||
*
|
||||
* - now what is really the difference between this and loading a component in plexus - custom
|
||||
* classloading capability - remote resolution of dependencies - do we want a model for sharing
|
||||
* information among plugins, is this more like an extension point - do we need a sort of bus for
|
||||
* application data - do we need a dictionary for our applications like Apple does. We could easily
|
||||
* hook into this and this is the model we need to follow - how many of our REST services do not map
|
||||
* directory to a method in the application interface?
|
||||
*
|
||||
* - research extension points versus plugins
|
||||
*
|
||||
* from igor: two plugins A and B, both depend on the same library but use different versions, say
|
||||
* lib 1.0 and lib 2.0 when debugger hits a breakpoint inside a class from the library, IDE needs to
|
||||
* know which version of library the class comes from
|
||||
*/
|
||||
|
||||
This document outlines the concerns of a general plugin manager that would be used in conjunction with any Plexus-based application. The following outlined concerns are an attempt to describe what a plugin manager would need to do for Maven and for Nexus.
|
||||
|
||||
h2. Concerns for the plugin manager
|
||||
|
||||
h3. Resolving the dependencies of a plugin
|
||||
|
||||
A plugin manager would need to know how to find the dependencies of a plugin whether that be from a workspace of an IDE, a local Maven repository, or a remote Maven repository. During development in an IDE we would need layered resolution approach that would allow resolution from the workspace, then the local Maven repository and then from any number of remote Maven repositories. During development from the command line we would need a layered resolution approach that would allow resolution from the local Maven repository and then from any number of remote Maven repositories. In production the resolution for the dependencies could also be layered but would depend on the preferred model for the given application. In the case of Maven no plugin dependencies are shipped with a Maven plugin, but in the case of Nexus we would probably want to include the dependencies for self-containment.
|
||||
|
||||
h4. Working with POMs during development
|
||||
|
||||
During the development of a plugin we would want to make it easy for a developer to create a plugin which means we would allow the direct use of a POM to state the dependencies of a given plugin and any tooling we created would be responsible for turning the dependency information in the POM into plugin metadata which described the dependencies of the plugin.
|
||||
|
||||
We are looking at using Mercury for the resolution and retrieval of the plugin dependencies so during development we would translate the POMs into dependency information that Mercury can understand, and in production we would have the pre-digested format that Mercury could utilize to resolve and retrieve dependencies. We need to be careful that we are using Mercury during development and production so that we don’t get in the situation where Maven 2.x is resolving different then Mercury is. We can still leverage POMs during development but we need to make sure Mercury is doing the work.
|
||||
|
||||
With respect to development inside an IDE the workspace from which we would like to resolve and retrieve dependencies is a read-only local repository to Mercury which is put at the front-end of the search order of any repository that Mercury will consult for artifacts.
|
||||
|
||||
h4. Generation of plugin metadata and packaging
|
||||
|
||||
To create the packaging for a plugin a special Maven packaging would be created with an accompanying life-cycle in order to create the plugin metadata required and create an archive of the plugin that can be consumed at runtime.
|
||||
|
||||
h3. Creation of an isolated classloader
|
||||
|
||||
The plugin artifact and its dependency artifacts will be loaded in an isolated ClassRealm which is simply an extension of the standard URLClassLoader. Mercury would be responsible for resolving and retrieving the dependencies which would then be used to populate a ClassRealm where there would be a connection to the host applications ClassRealm as the parent but the search order would be child first, and the parent ClassRealm can optionally choose to limit the searching to particular classes. The application ClassRealm, or parent ClassRealm, should only expose the API in the form of and application interface and model classes that may be required by plugins.
|
||||
|
||||
For debugging purposes we also need to keep track of what versions of artifacts are being used so that when we are debugging in the IDE we can find the specific sources for a given version of a library so that the developer can debug the correct version of a library being used for a plugin.
|
||||
|
||||
h3. Discovery all Plexus components
|
||||
|
||||
Once the ClassRealm is populated with the plugin artifact and its dependency artifacts a discovery operation must be performed on the plugin ClassRealm in order to discover any Plexus components that may be present in any of the artifacts required for the plugins execution.
|
||||
|
||||
h3. Looking up the plugin with a configuration
|
||||
|
||||
Once the ClassRealm has been populated and all Plexus components have been discovered a lookup can be performed to retrieve the primary plugin component. Currently the component would need to be looked up and then the BasicComponentConfigurator would need to configure the component with a given Plexus configuration. We will discuss later how we would retrieve the Plexus configuration required for a given plugin.
|
||||
|
||||
When a plugin has a complete and valid configuration, the plugin would be looked up in the Plexus container and be ready to perform any operations requested of it.
|
||||
|
||||
h3. Execution of the plugin
|
||||
|
||||
I still need to do some work here to figure out how a dispatching to a particular plugin would occur because everything needs to be mediated through the host application. For a given action that is possible for a user to perform in the UI we need to know the URI that is to be used with its given parameters. That URI in turn must map internally to a method in a given component which belongs to a plugin. This mapping should actually be more generalized and it shouldn’t matter internally whether this maps to the core application or extension of the application in the form of plugins.
|
||||
|
||||
In the short term we are working with the model where the URI maps to a resource, and the resource itself is a Plexus component which can itself have a reference to the host application in order to perform its work. This may not occur in the first versions of the plugin API but a resource needs to simply become the mapping mechanism by which parameters are taken from the REST side of the application and mapped into a method call within a given Plexus component. Whether that be the core Nexus application or a component provided by a plugin.
|
||||
|
||||
At the very least in the short term the resource needs to know how to lookup the component that is required to perform the work. This needs to be made simple, for the time being we can write and test plugins working in the same realm until we get complete isolation working.
|
||||
|
||||
h3. Plugins need a specific metadata model
|
||||
|
||||
Each application will have its own model for plugins. Much of this model will be common across applications but there will always be issues specific to a particular applications’s plugins. Some of the issues that need to be taken into consideration:
|
||||
|
||||
* Plugin dependencies
|
||||
* Plugin resources like Javascript files or images
|
||||
* Configuration metadata and default configuration values
|
||||
* Extension points that plugins might expose
|
||||
|
||||
h3. The plugin manager may have to deal with particular actions when a plugin is
|
||||
|
||||
* installation
|
||||
* activation
|
||||
* update
|
||||
* deactivation
|
||||
* un-installation
|
||||
|
||||
When a plugin is installed we may want to check the license and make users agree. We may also want to unpack the given plugin in a particular location.
|
||||
|
||||
We might want to separate between installation and activation, it might be nice to allow a user to activate/deactivate a plugin instead of having to uninstall and reinstall a plugin in particular cases. This would prevent having to reconfigure the plugin again. For example it might be nice to turn off LDAP authentication without having to uninstall the plugin.
|
||||
|
||||
These particular phases in a plugin’s lifecycle can probably be generalized to all plugins so could be something implemented in all plugins. Here we could have the descriptor either point to methods for each of these phases to execute or we could create a lifecycle in Plexus for these phases.
|
||||
|
||||
For a particular application plugin there will be a declarative descriptor for that plugin type.
|
||||
|
||||
h3. Some general notes on Nexus
|
||||
|
||||
The plugin metadata:
|
||||
* the plugin class
|
||||
* UI to contribute
|
||||
* what JS to hook into the UI
|
||||
* what resources to load into the UI
|
||||
* having packed or unpacked plugins, and positioning resources if necessary
|
||||
* maven can work out of the classloader, nexus plugins probably couldn't given the js and image resources
|
||||
|
||||
h3. Other issues
|
||||
|
||||
We need to look at Maven, and Nexus as use cases and figure out what each of them needs to be able to do
|
||||
|
||||
* now what is really the difference between this and loading a component in plexus
|
||||
* do we want a model for sharing information among plugins, is this more like an extension point
|
||||
* do we need a sort of bus for application data
|
||||
* do we need a dictionary for our applications like Apple does. We could easily hook into this and this is the model we need to follow. Following the model of apple applications the dictionary is what the REST URI should attach to. Not creating custom logic in the resource code.
|
||||
* how many of our REST services do not map directory to a method in the application interface?
|
||||
|
||||
- an example of adding js
|
||||
- an example of adding a URI
|
||||
|
|
@ -0,0 +1,227 @@
|
|||
/**
|
||||
*
|
||||
*/
|
||||
package org.apache.maven.execution;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.maven.artifact.ArtifactUtils;
|
||||
import org.apache.maven.model.Dependency;
|
||||
import org.apache.maven.model.Extension;
|
||||
import org.apache.maven.model.Plugin;
|
||||
import org.apache.maven.model.ReportPlugin;
|
||||
import org.apache.maven.project.MavenProject;
|
||||
import org.codehaus.plexus.util.dag.CycleDetectedException;
|
||||
import org.codehaus.plexus.util.dag.DAG;
|
||||
import org.codehaus.plexus.util.dag.TopologicalSorter;
|
||||
|
||||
public class ProjectSorter
|
||||
{
|
||||
private DAG dag;
|
||||
|
||||
private List<MavenProject> sortedProjects;
|
||||
|
||||
private MavenProject topLevelProject;
|
||||
|
||||
/**
|
||||
* Sort a list of projects.
|
||||
* <ul>
|
||||
* <li>collect all the vertices for the projects that we want to build.</li>
|
||||
* <li>iterate through the deps of each project and if that dep is within
|
||||
* the set of projects we want to build then add an edge, otherwise throw
|
||||
* the edge away because that dependency is not within the set of projects
|
||||
* we are trying to build. we assume a closed set.</li>
|
||||
* <li>do a topo sort on the graph that remains.</li>
|
||||
* </ul>
|
||||
* @throws DuplicateProjectException if any projects are duplicated by id
|
||||
*/
|
||||
// MAVENAPI FIXME: the DAG used is NOT only used to represent the dependency relation,
|
||||
// but also for <parent>, <build><plugin>, <reports>. We need multiple DAG's
|
||||
// since a DAG can only handle 1 type of relationship properly.
|
||||
// Usecase: This is detected as a cycle:
|
||||
// org.apache.maven:maven-plugin-api -(PARENT)->
|
||||
// org.apache.maven:maven -(inherited REPORTING)->
|
||||
// org.apache.maven.plugins:maven-checkstyle-plugin -(DEPENDENCY)->
|
||||
// org.apache.maven:maven-plugin-api
|
||||
// In this case, both the verify and the report goals are called
|
||||
// in a different lifecycle. Though the compiler-plugin has a valid usecase, although
|
||||
// that seems to work fine. We need to take versions and lifecycle into account.
|
||||
public ProjectSorter( List<MavenProject> projects )
|
||||
throws CycleDetectedException, DuplicateProjectException
|
||||
{
|
||||
dag = new DAG();
|
||||
|
||||
Map projectMap = new HashMap();
|
||||
|
||||
for ( Iterator i = projects.iterator(); i.hasNext(); )
|
||||
{
|
||||
MavenProject project = (MavenProject) i.next();
|
||||
|
||||
String id = ArtifactUtils.versionlessKey( project.getGroupId(), project.getArtifactId() );
|
||||
|
||||
if ( dag.getVertex( id ) != null )
|
||||
{
|
||||
MavenProject conflictingProject = (MavenProject) projectMap.get( id );
|
||||
|
||||
throw new DuplicateProjectException( id,
|
||||
conflictingProject.getFile(),
|
||||
project.getFile(),
|
||||
"Project '"
|
||||
+ id
|
||||
+ "' is duplicated in the reactor" );
|
||||
}
|
||||
|
||||
dag.addVertex( id );
|
||||
|
||||
projectMap.put( id, project );
|
||||
}
|
||||
|
||||
for ( Iterator i = projects.iterator(); i.hasNext(); )
|
||||
{
|
||||
MavenProject project = (MavenProject) i.next();
|
||||
|
||||
String id = ArtifactUtils.versionlessKey( project.getGroupId(), project.getArtifactId() );
|
||||
|
||||
for ( Iterator j = project.getDependencies().iterator(); j.hasNext(); )
|
||||
{
|
||||
Dependency dependency = (Dependency) j.next();
|
||||
|
||||
String dependencyId = ArtifactUtils
|
||||
.versionlessKey( dependency.getGroupId(), dependency.getArtifactId() );
|
||||
|
||||
if ( dag.getVertex( dependencyId ) != null )
|
||||
{
|
||||
project.addProjectReference( (MavenProject) projectMap.get( dependencyId ) );
|
||||
|
||||
dag.addEdge( id, dependencyId );
|
||||
}
|
||||
}
|
||||
|
||||
MavenProject parent = project.getParent();
|
||||
if ( parent != null )
|
||||
{
|
||||
String parentId = ArtifactUtils.versionlessKey( parent.getGroupId(), parent.getArtifactId() );
|
||||
if ( dag.getVertex( parentId ) != null )
|
||||
{
|
||||
// Parent is added as an edge, but must not cause a cycle - so we remove any other edges it has in conflict
|
||||
if ( dag.hasEdge( parentId, id ) )
|
||||
{
|
||||
dag.removeEdge( parentId, id );
|
||||
}
|
||||
dag.addEdge( id, parentId );
|
||||
}
|
||||
}
|
||||
|
||||
List buildPlugins = project.getBuildPlugins();
|
||||
if ( buildPlugins != null )
|
||||
{
|
||||
for ( Iterator j = buildPlugins.iterator(); j.hasNext(); )
|
||||
{
|
||||
Plugin plugin = (Plugin) j.next();
|
||||
String pluginId = ArtifactUtils.versionlessKey( plugin.getGroupId(), plugin.getArtifactId() );
|
||||
if ( ( dag.getVertex( pluginId ) != null ) && !pluginId.equals( id ) )
|
||||
{
|
||||
addEdgeWithParentCheck( projectMap, pluginId, project, id );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
List reportPlugins = project.getReportPlugins();
|
||||
if ( reportPlugins != null )
|
||||
{
|
||||
for ( Iterator j = reportPlugins.iterator(); j.hasNext(); )
|
||||
{
|
||||
ReportPlugin plugin = (ReportPlugin) j.next();
|
||||
String pluginId = ArtifactUtils.versionlessKey( plugin.getGroupId(), plugin.getArtifactId() );
|
||||
if ( ( dag.getVertex( pluginId ) != null ) && !pluginId.equals( id ) )
|
||||
{
|
||||
addEdgeWithParentCheck( projectMap, pluginId, project, id );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for ( Iterator j = project.getBuildExtensions().iterator(); j.hasNext(); )
|
||||
{
|
||||
Extension extension = (Extension) j.next();
|
||||
String extensionId = ArtifactUtils.versionlessKey( extension.getGroupId(), extension.getArtifactId() );
|
||||
if ( dag.getVertex( extensionId ) != null )
|
||||
{
|
||||
addEdgeWithParentCheck( projectMap, extensionId, project, id );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
List sortedProjects = new ArrayList();
|
||||
|
||||
for ( Iterator i = TopologicalSorter.sort( dag ).iterator(); i.hasNext(); )
|
||||
{
|
||||
String id = (String) i.next();
|
||||
|
||||
sortedProjects.add( projectMap.get( id ) );
|
||||
}
|
||||
|
||||
this.sortedProjects = Collections.unmodifiableList( sortedProjects );
|
||||
}
|
||||
|
||||
private void addEdgeWithParentCheck( Map projectMap, String projectRefId, MavenProject project, String id )
|
||||
throws CycleDetectedException
|
||||
{
|
||||
MavenProject extProject = (MavenProject) projectMap.get( projectRefId );
|
||||
|
||||
if ( extProject == null )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
project.addProjectReference( extProject );
|
||||
|
||||
MavenProject extParent = extProject.getParent();
|
||||
if ( extParent != null )
|
||||
{
|
||||
String parentId = ArtifactUtils.versionlessKey( extParent.getGroupId(), extParent.getArtifactId() );
|
||||
// Don't add edge from parent to extension if a reverse edge already exists
|
||||
if ( !dag.hasEdge( projectRefId, id ) || !parentId.equals( id ) )
|
||||
{
|
||||
dag.addEdge( id, projectRefId );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: !![jc; 28-jul-2005] check this; if we're using '-r' and there are aggregator tasks, this will result in weirdness.
|
||||
public MavenProject getTopLevelProject()
|
||||
{
|
||||
if ( topLevelProject == null )
|
||||
{
|
||||
for ( Iterator i = sortedProjects.iterator(); i.hasNext() && ( topLevelProject == null ); )
|
||||
{
|
||||
MavenProject project = (MavenProject) i.next();
|
||||
if ( project.isExecutionRoot() )
|
||||
{
|
||||
topLevelProject = project;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return topLevelProject;
|
||||
}
|
||||
|
||||
public List<MavenProject> getSortedProjects()
|
||||
{
|
||||
return sortedProjects;
|
||||
}
|
||||
|
||||
public boolean hasMultipleProjects()
|
||||
{
|
||||
return sortedProjects.size() > 1;
|
||||
}
|
||||
|
||||
List getDependents( String id )
|
||||
{
|
||||
return dag.getParentLabels( id );
|
||||
}
|
||||
}
|
|
@ -0,0 +1,628 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-parent</artifactId>
|
||||
<version>11</version>
|
||||
<relativePath>../pom/maven/pom.xml</relativePath>
|
||||
</parent>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven</artifactId>
|
||||
<version>3.0-SNAPSHOT</version>
|
||||
<packaging>pom</packaging>
|
||||
<name>Apache Maven</name>
|
||||
<description>Maven is a project development management and
|
||||
comprehension tool. Based on the concept of a project object model:
|
||||
builds, dependency management, documentation creation, site
|
||||
publication, and distribution publication are all controlled from
|
||||
the declarative file. Maven can be extended by plugins to utilise a
|
||||
number of other development tools for reporting or the build
|
||||
process.
|
||||
</description>
|
||||
<url>http://maven.apache.org/</url>
|
||||
<inceptionYear>2001</inceptionYear>
|
||||
<properties>
|
||||
<classWorldsVersion>1.3</classWorldsVersion>
|
||||
<commonsCliVersion>1.0</commonsCliVersion>
|
||||
<!--
|
||||
|
||||
Do not update this, Doxia will be decoupled completely from 3.x and someone can
|
||||
create a rendering engine for it if they like when the release stabilizes. JVZ
|
||||
|
||||
-->
|
||||
<doxiaVersion>1.0-alpha-9</doxiaVersion>
|
||||
<easyMockVersion>1.2_Java1.3</easyMockVersion>
|
||||
<junitVersion>3.8.1</junitVersion>
|
||||
<plexusVersion>1.0-beta-3.0.6</plexusVersion>
|
||||
<plexusInteractivityVersion>1.0-alpha-6</plexusInteractivityVersion>
|
||||
<plexusInterpolationVersion>1.1</plexusInterpolationVersion>
|
||||
<plexusPluginManagerVersion>1.0-alpha-1</plexusPluginManagerVersion>
|
||||
<plexusUtilsVersion>1.5.8</plexusUtilsVersion>
|
||||
<plexusJetty6Version>1.6</plexusJetty6Version>
|
||||
<plexusWebdavVersion>1.0</plexusWebdavVersion>
|
||||
<wagonVersion>1.0-beta-4</wagonVersion>
|
||||
<modelBuilderVersion>1.7-SNAPSHOT</modelBuilderVersion>
|
||||
<mercuryVersion>1.0-alpha-6-SNAPSHOT</mercuryVersion>
|
||||
<mercuryMp3Version>1.0-alpha-1</mercuryMp3Version>
|
||||
<securityDispatcherVersion>1.2</securityDispatcherVersion>
|
||||
<woodstoxVersion>3.2.6</woodstoxVersion>
|
||||
<modelloVersion>1.0.1-SNAPSHOT</modelloVersion>
|
||||
<jxpathVersion>1.3</jxpathVersion>
|
||||
</properties>
|
||||
<issueManagement>
|
||||
<system>jira</system>
|
||||
<url>http://jira.codehaus.org/browse/MNG</url>
|
||||
</issueManagement>
|
||||
<mailingLists>
|
||||
<mailingList>
|
||||
<name>Maven Developer List</name>
|
||||
<subscribe>dev-subscribe@maven.apache.org</subscribe>
|
||||
<unsubscribe>dev-unsubscribe@maven.apache.org</unsubscribe>
|
||||
<post>dev@maven.apache.org</post>
|
||||
<archive>http://mail-archives.apache.org/mod_mbox/maven-dev</archive>
|
||||
<otherArchives>
|
||||
<otherArchive>http://www.mail-archive.com/dev@maven.apache.org/</otherArchive>
|
||||
<otherArchive>http://www.nabble.com/Maven-Developers-f179.html</otherArchive>
|
||||
<otherArchive>http://maven.dev.markmail.org/</otherArchive>
|
||||
</otherArchives>
|
||||
</mailingList>
|
||||
<mailingList>
|
||||
<name>Maven User List</name>
|
||||
<subscribe>users-subscribe@maven.apache.org</subscribe>
|
||||
<unsubscribe>users-unsubscribe@maven.apache.org</unsubscribe>
|
||||
<post>users@maven.apache.org</post>
|
||||
<archive>http://mail-archives.apache.org/mod_mbox/maven-users</archive>
|
||||
<otherArchives>
|
||||
<otherArchive>http://www.mail-archive.com/users@maven.apache.org/</otherArchive>
|
||||
<otherArchive>http://www.nabble.com/Maven---Users-f178.html</otherArchive>
|
||||
<otherArchive>http://maven.users.markmail.org/</otherArchive>
|
||||
</otherArchives>
|
||||
</mailingList>
|
||||
<mailingList>
|
||||
<name>Maven Issues List</name>
|
||||
<subscribe>issues-subscribe@maven.apache.org</subscribe>
|
||||
<unsubscribe>issues-unsubscribe@maven.apache.org</unsubscribe>
|
||||
<archive>http://mail-archives.apache.org/mod_mbox/maven-issues/</archive>
|
||||
<otherArchives>
|
||||
<otherArchive>http://www.mail-archive.com/issues@maven.apache.org</otherArchive>
|
||||
<otherArchive>http://www.nabble.com/Maven---Issues-f15573.html</otherArchive>
|
||||
<otherArchive>http://maven.issues.markmail.org/</otherArchive>
|
||||
</otherArchives>
|
||||
</mailingList>
|
||||
<mailingList>
|
||||
<name>Maven Commits List</name>
|
||||
<subscribe>commits-subscribe@maven.apache.org</subscribe>
|
||||
<unsubscribe>commits-unsubscribe@maven.apache.org</unsubscribe>
|
||||
<archive>http://mail-archives.apache.org/mod_mbox/maven-commits</archive>
|
||||
<otherArchives>
|
||||
<otherArchive>http://www.mail-archive.com/commits@maven.apache.org</otherArchive>
|
||||
<otherArchive>http://www.nabble.com/Maven---Commits-f15575.html</otherArchive>
|
||||
<otherArchive>http://maven.commits.markmail.org/</otherArchive>
|
||||
</otherArchives>
|
||||
</mailingList>
|
||||
<!--
|
||||
duplication from parent pom - temporary until they inherit
|
||||
properly
|
||||
-->
|
||||
<mailingList>
|
||||
<name>Maven Announcements List</name>
|
||||
<post>announce@maven.apache.org</post>
|
||||
<subscribe>announce-subscribe@maven.apache.org</subscribe>
|
||||
<unsubscribe>announce-unsubscribe@maven.apache.org</unsubscribe>
|
||||
<archive>http://mail-archives.apache.org/mod_mbox/maven-announce/</archive>
|
||||
<otherArchives>
|
||||
<otherArchive>http://www.mail-archive.com/announce@maven.apache.org</otherArchive>
|
||||
<otherArchive>http://www.nabble.com/Maven-Announcements-f15617.html</otherArchive>
|
||||
<otherArchive>http://maven.announce.markmail.org/</otherArchive>
|
||||
</otherArchives>
|
||||
</mailingList>
|
||||
<mailingList>
|
||||
<name>Maven Notifications List</name>
|
||||
<subscribe>notifications-subscribe@maven.apache.org</subscribe>
|
||||
<unsubscribe>notifications-unsubscribe@maven.apache.org</unsubscribe>
|
||||
<archive>http://mail-archives.apache.org/mod_mbox/maven-notifications/</archive>
|
||||
<otherArchives>
|
||||
<otherArchive>http://www.mail-archive.com/notifications@maven.apache.org</otherArchive>
|
||||
<otherArchive>http://www.nabble.com/Maven---Notifications-f15574.html</otherArchive>
|
||||
<otherArchive>http://maven.notifications.markmail.org/</otherArchive>
|
||||
</otherArchives>
|
||||
</mailingList>
|
||||
</mailingLists>
|
||||
<scm>
|
||||
<connection>scm:svn:http://svn.apache.org/repos/asf/maven/components/trunk</connection>
|
||||
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/components/trunk</developerConnection>
|
||||
<url>http://svn.apache.org/viewcvs.cgi/maven/components/trunk</url>
|
||||
</scm>
|
||||
<build>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-component-metadata</artifactId>
|
||||
<version>${plexusVersion}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>generate-metadata</goal>
|
||||
<goal>generate-test-metadata</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.0.2</version>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-release-plugin</artifactId>
|
||||
<configuration>
|
||||
<tagBase>https://svn.apache.org/repos/asf/maven/components/tags</tagBase>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.modello</groupId>
|
||||
<artifactId>modello-maven-plugin</artifactId>
|
||||
<version>${modelloVersion}</version>
|
||||
<configuration>
|
||||
<useJava5>true</useJava5>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>site-docs</id>
|
||||
<phase>pre-site</phase>
|
||||
<goals>
|
||||
<goal>xdoc</goal>
|
||||
<goal>xsd</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>standard</id>
|
||||
<goals>
|
||||
<goal>java</goal>
|
||||
<goal>xpp3-reader</goal>
|
||||
<goal>xpp3-writer</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.felix</groupId>
|
||||
<artifactId>maven-bundle-plugin</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>2.4.2</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<version>2.2-beta-2</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>2.4-SNAPSHOT</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
<modules>
|
||||
<module>maven-core</module>
|
||||
<module>apache-maven</module>
|
||||
<module>maven-model</module>
|
||||
<module>maven-plugin-api</module>
|
||||
<module>maven-project</module>
|
||||
<module>maven-reporting-api</module>
|
||||
<module>maven-project-builder</module>
|
||||
<module>maven-mercury</module>
|
||||
<module>maven-embedder</module>
|
||||
<module>maven-toolchain</module>
|
||||
<module>maven-compat</module>
|
||||
<module>maven-repository</module>
|
||||
<module>maven-repository-mercury</module>
|
||||
</modules>
|
||||
<!--start-->
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>${junitVersion}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<dependencyManagement>
|
||||
<!--end-->
|
||||
<dependencies>
|
||||
<!-- Maven Modules -->
|
||||
<!--start-->
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-mercury</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-lifecycle</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-reporting-api</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-profile</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-model</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-project</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-plugin-api</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-toolchain</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-embedder</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-project-builder</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-repository</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-compat</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<!--end-->
|
||||
<!-- Plexus -->
|
||||
<dependency>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-utils</artifactId>
|
||||
<version>${plexusUtilsVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-container-default</artifactId>
|
||||
<version>${plexusVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-component-annotations</artifactId>
|
||||
<version>${plexusVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-classworlds</artifactId>
|
||||
<version>${classWorldsVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-interpolation</artifactId>
|
||||
<version>${plexusInterpolationVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-interactivity-api</artifactId>
|
||||
<version>${plexusInteractivityVersion}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-component-api</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
<!-- Plexus test dependencies -->
|
||||
<dependency>
|
||||
<groupId>org.sonatype.plexus</groupId>
|
||||
<artifactId>plexus-jetty6</artifactId>
|
||||
<version>${plexusJetty6Version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.sonatype.spice</groupId>
|
||||
<artifactId>plexus-webdav</artifactId>
|
||||
<version>${plexusWebdavVersion}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- Wagon -->
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.wagon</groupId>
|
||||
<artifactId>wagon-provider-api</artifactId>
|
||||
<version>${wagonVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.wagon</groupId>
|
||||
<artifactId>wagon-file</artifactId>
|
||||
<version>${wagonVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.wagon</groupId>
|
||||
<artifactId>wagon-http-lightweight</artifactId>
|
||||
<version>${wagonVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.wagon</groupId>
|
||||
<artifactId>wagon-ssh</artifactId>
|
||||
<version>${wagonVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.wagon</groupId>
|
||||
<artifactId>wagon-ssh-external</artifactId>
|
||||
<version>${wagonVersion}</version>
|
||||
</dependency>
|
||||
<!-- Doxia -->
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.doxia</groupId>
|
||||
<artifactId>doxia-sink-api</artifactId>
|
||||
<version>${doxiaVersion}</version>
|
||||
</dependency>
|
||||
<!-- Maven Shared -->
|
||||
<dependency>
|
||||
<groupId>org.sonatype.spice</groupId>
|
||||
<artifactId>model-builder</artifactId>
|
||||
<version>${modelBuilderVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.woodstox</groupId>
|
||||
<artifactId>wstx-asl</artifactId>
|
||||
<version>${woodstoxVersion}</version>
|
||||
</dependency>
|
||||
<!-- Commons -->
|
||||
<dependency>
|
||||
<groupId>commons-cli</groupId>
|
||||
<artifactId>commons-cli</artifactId>
|
||||
<version>${commonsCliVersion}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>commons-lang</artifactId>
|
||||
<groupId>commons-lang</groupId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
<groupId>commons-logging</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-jxpath</groupId>
|
||||
<artifactId>commons-jxpath</artifactId>
|
||||
<version>${jxpathVersion}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Mercury -->
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.mercury</groupId>
|
||||
<artifactId>mercury-artifact</artifactId>
|
||||
<version>${mercuryVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.mercury</groupId>
|
||||
<artifactId>mercury-external</artifactId>
|
||||
<version>${mercuryVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.mercury</groupId>
|
||||
<artifactId>mercury-plexus</artifactId>
|
||||
<version>${mercuryVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.mercury</groupId>
|
||||
<artifactId>mercury-repo-virtual</artifactId>
|
||||
<version>${mercuryVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.sonatype.mercury</groupId>
|
||||
<artifactId>mercury-mp3-cli</artifactId>
|
||||
<version>${mercuryMp3Version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.sonatype.plexus</groupId>
|
||||
<artifactId>plexus-sec-dispatcher</artifactId>
|
||||
<version>${securityDispatcherVersion}</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- Mercury test dependencies -->
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.mercury</groupId>
|
||||
<artifactId>mercury-repo-local-m2</artifactId>
|
||||
<version>${mercuryVersion}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.mercury</groupId>
|
||||
<artifactId>mercury-repo-remote-m2</artifactId>
|
||||
<version>${mercuryVersion}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.mercury</groupId>
|
||||
<artifactId>mercury-md-sat</artifactId>
|
||||
<version>${mercuryVersion}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.mercury</groupId>
|
||||
<artifactId>mercury-util</artifactId>
|
||||
<version>${mercuryVersion}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.mercury</groupId>
|
||||
<artifactId>mercury-transport-http</artifactId>
|
||||
<version>${mercuryVersion}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.mercury</groupId>
|
||||
<artifactId>mercury-transport-http</artifactId>
|
||||
<version>${mercuryVersion}</version>
|
||||
<type>test-jar</type>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.sonatype.plexus</groupId>
|
||||
<artifactId>plexus-plugin-manager</artifactId>
|
||||
<version>${plexusPluginManagerVersion}</version>
|
||||
</dependency>
|
||||
<!--start-->
|
||||
<dependency>
|
||||
<groupId>easymock</groupId>
|
||||
<artifactId>easymock</artifactId>
|
||||
<version>${easyMockVersion}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<!--end-->
|
||||
</dependencies>
|
||||
<!--start-->
|
||||
</dependencyManagement>
|
||||
<!--end-->
|
||||
<distributionManagement>
|
||||
<site>
|
||||
<id>apache.website</id>
|
||||
<url>scp://people.apache.org/www/maven.apache.org/ref/${project.version}/</url>
|
||||
</site>
|
||||
</distributionManagement>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>osgi</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.felix</groupId>
|
||||
<artifactId>maven-bundle-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>manifest</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<!-- Needed for including the manifest, see MJAR-71 -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.1</version>
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>release</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<inherited>false</inherited>
|
||||
<configuration>
|
||||
<descriptors>
|
||||
<descriptor>src/main/assembly/src.xml</descriptor>
|
||||
</descriptors>
|
||||
<tarLongFileMode>gnu</tarLongFileMode>
|
||||
<finalName>maven-${project.version}-src</finalName>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>make-assembly</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>strict</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<version>1.0-alpha-3</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>enforce-jdk-15</id>
|
||||
<goals>
|
||||
<goal>enforce</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<rules>
|
||||
<requireJavaVersion>
|
||||
<version>1.5</version>
|
||||
</requireJavaVersion>
|
||||
</rules>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
|
@ -0,0 +1,628 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-parent</artifactId>
|
||||
<version>11</version>
|
||||
<relativePath>../pom/maven/pom.xml</relativePath>
|
||||
</parent>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven</artifactId>
|
||||
<version>3.0-SNAPSHOT</version>
|
||||
<packaging>pom</packaging>
|
||||
<name>Apache Maven</name>
|
||||
<description>Maven is a project development management and
|
||||
comprehension tool. Based on the concept of a project object model:
|
||||
builds, dependency management, documentation creation, site
|
||||
publication, and distribution publication are all controlled from
|
||||
the declarative file. Maven can be extended by plugins to utilise a
|
||||
number of other development tools for reporting or the build
|
||||
process.
|
||||
</description>
|
||||
<url>http://maven.apache.org/</url>
|
||||
<inceptionYear>2001</inceptionYear>
|
||||
<properties>
|
||||
<classWorldsVersion>1.3</classWorldsVersion>
|
||||
<commonsCliVersion>1.0</commonsCliVersion>
|
||||
<!--
|
||||
|
||||
Do not update this, Doxia will be decoupled completely from 3.x and someone can
|
||||
create a rendering engine for it if they like when the release stabilizes. JVZ
|
||||
|
||||
-->
|
||||
<doxiaVersion>1.0-alpha-9</doxiaVersion>
|
||||
<easyMockVersion>1.2_Java1.3</easyMockVersion>
|
||||
<junitVersion>3.8.1</junitVersion>
|
||||
<plexusVersion>1.0-beta-3.0.6</plexusVersion>
|
||||
<plexusInteractivityVersion>1.0-alpha-6</plexusInteractivityVersion>
|
||||
<plexusInterpolationVersion>1.1</plexusInterpolationVersion>
|
||||
<plexusPluginManagerVersion>1.0-alpha-1</plexusPluginManagerVersion>
|
||||
<plexusUtilsVersion>1.5.8</plexusUtilsVersion>
|
||||
<plexusJetty6Version>1.6</plexusJetty6Version>
|
||||
<plexusWebdavVersion>1.0</plexusWebdavVersion>
|
||||
<wagonVersion>1.0-beta-4</wagonVersion>
|
||||
<modelBuilderVersion>1.7-SNAPSHOT</modelBuilderVersion>
|
||||
<mercuryVersion>1.0-alpha-6-SNAPSHOT</mercuryVersion>
|
||||
<mercuryMp3Version>1.0-alpha-1</mercuryMp3Version>
|
||||
<securityDispatcherVersion>1.2</securityDispatcherVersion>
|
||||
<woodstoxVersion>3.2.6</woodstoxVersion>
|
||||
<modelloVersion>1.0.1-SNAPSHOT</modelloVersion>
|
||||
<jxpathVersion>1.3</jxpathVersion>
|
||||
</properties>
|
||||
<issueManagement>
|
||||
<system>jira</system>
|
||||
<url>http://jira.codehaus.org/browse/MNG</url>
|
||||
</issueManagement>
|
||||
<mailingLists>
|
||||
<mailingList>
|
||||
<name>Maven Developer List</name>
|
||||
<subscribe>dev-subscribe@maven.apache.org</subscribe>
|
||||
<unsubscribe>dev-unsubscribe@maven.apache.org</unsubscribe>
|
||||
<post>dev@maven.apache.org</post>
|
||||
<archive>http://mail-archives.apache.org/mod_mbox/maven-dev</archive>
|
||||
<otherArchives>
|
||||
<otherArchive>http://www.mail-archive.com/dev@maven.apache.org/</otherArchive>
|
||||
<otherArchive>http://www.nabble.com/Maven-Developers-f179.html</otherArchive>
|
||||
<otherArchive>http://maven.dev.markmail.org/</otherArchive>
|
||||
</otherArchives>
|
||||
</mailingList>
|
||||
<mailingList>
|
||||
<name>Maven User List</name>
|
||||
<subscribe>users-subscribe@maven.apache.org</subscribe>
|
||||
<unsubscribe>users-unsubscribe@maven.apache.org</unsubscribe>
|
||||
<post>users@maven.apache.org</post>
|
||||
<archive>http://mail-archives.apache.org/mod_mbox/maven-users</archive>
|
||||
<otherArchives>
|
||||
<otherArchive>http://www.mail-archive.com/users@maven.apache.org/</otherArchive>
|
||||
<otherArchive>http://www.nabble.com/Maven---Users-f178.html</otherArchive>
|
||||
<otherArchive>http://maven.users.markmail.org/</otherArchive>
|
||||
</otherArchives>
|
||||
</mailingList>
|
||||
<mailingList>
|
||||
<name>Maven Issues List</name>
|
||||
<subscribe>issues-subscribe@maven.apache.org</subscribe>
|
||||
<unsubscribe>issues-unsubscribe@maven.apache.org</unsubscribe>
|
||||
<archive>http://mail-archives.apache.org/mod_mbox/maven-issues/</archive>
|
||||
<otherArchives>
|
||||
<otherArchive>http://www.mail-archive.com/issues@maven.apache.org</otherArchive>
|
||||
<otherArchive>http://www.nabble.com/Maven---Issues-f15573.html</otherArchive>
|
||||
<otherArchive>http://maven.issues.markmail.org/</otherArchive>
|
||||
</otherArchives>
|
||||
</mailingList>
|
||||
<mailingList>
|
||||
<name>Maven Commits List</name>
|
||||
<subscribe>commits-subscribe@maven.apache.org</subscribe>
|
||||
<unsubscribe>commits-unsubscribe@maven.apache.org</unsubscribe>
|
||||
<archive>http://mail-archives.apache.org/mod_mbox/maven-commits</archive>
|
||||
<otherArchives>
|
||||
<otherArchive>http://www.mail-archive.com/commits@maven.apache.org</otherArchive>
|
||||
<otherArchive>http://www.nabble.com/Maven---Commits-f15575.html</otherArchive>
|
||||
<otherArchive>http://maven.commits.markmail.org/</otherArchive>
|
||||
</otherArchives>
|
||||
</mailingList>
|
||||
<!--
|
||||
duplication from parent pom - temporary until they inherit
|
||||
properly
|
||||
-->
|
||||
<mailingList>
|
||||
<name>Maven Announcements List</name>
|
||||
<post>announce@maven.apache.org</post>
|
||||
<subscribe>announce-subscribe@maven.apache.org</subscribe>
|
||||
<unsubscribe>announce-unsubscribe@maven.apache.org</unsubscribe>
|
||||
<archive>http://mail-archives.apache.org/mod_mbox/maven-announce/</archive>
|
||||
<otherArchives>
|
||||
<otherArchive>http://www.mail-archive.com/announce@maven.apache.org</otherArchive>
|
||||
<otherArchive>http://www.nabble.com/Maven-Announcements-f15617.html</otherArchive>
|
||||
<otherArchive>http://maven.announce.markmail.org/</otherArchive>
|
||||
</otherArchives>
|
||||
</mailingList>
|
||||
<mailingList>
|
||||
<name>Maven Notifications List</name>
|
||||
<subscribe>notifications-subscribe@maven.apache.org</subscribe>
|
||||
<unsubscribe>notifications-unsubscribe@maven.apache.org</unsubscribe>
|
||||
<archive>http://mail-archives.apache.org/mod_mbox/maven-notifications/</archive>
|
||||
<otherArchives>
|
||||
<otherArchive>http://www.mail-archive.com/notifications@maven.apache.org</otherArchive>
|
||||
<otherArchive>http://www.nabble.com/Maven---Notifications-f15574.html</otherArchive>
|
||||
<otherArchive>http://maven.notifications.markmail.org/</otherArchive>
|
||||
</otherArchives>
|
||||
</mailingList>
|
||||
</mailingLists>
|
||||
<scm>
|
||||
<connection>scm:svn:http://svn.apache.org/repos/asf/maven/components/trunk</connection>
|
||||
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/components/trunk</developerConnection>
|
||||
<url>http://svn.apache.org/viewcvs.cgi/maven/components/trunk</url>
|
||||
</scm>
|
||||
<build>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-component-metadata</artifactId>
|
||||
<version>${plexusVersion}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>generate-metadata</goal>
|
||||
<goal>generate-test-metadata</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.0.2</version>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-release-plugin</artifactId>
|
||||
<configuration>
|
||||
<tagBase>https://svn.apache.org/repos/asf/maven/components/tags</tagBase>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.modello</groupId>
|
||||
<artifactId>modello-maven-plugin</artifactId>
|
||||
<version>${modelloVersion}</version>
|
||||
<configuration>
|
||||
<useJava5>true</useJava5>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>site-docs</id>
|
||||
<phase>pre-site</phase>
|
||||
<goals>
|
||||
<goal>xdoc</goal>
|
||||
<goal>xsd</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>standard</id>
|
||||
<goals>
|
||||
<goal>java</goal>
|
||||
<goal>xpp3-reader</goal>
|
||||
<goal>xpp3-writer</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.felix</groupId>
|
||||
<artifactId>maven-bundle-plugin</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>2.4.2</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<version>2.2-beta-2</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>2.4-SNAPSHOT</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
<modules>
|
||||
<module>maven-core</module>
|
||||
<module>apache-maven</module>
|
||||
<module>maven-model</module>
|
||||
<module>maven-plugin-api</module>
|
||||
<module>maven-project</module>
|
||||
<module>maven-reporting-api</module>
|
||||
<module>maven-project-builder</module>
|
||||
<module>maven-mercury</module>
|
||||
<module>maven-embedder</module>
|
||||
<module>maven-toolchain</module>
|
||||
<module>maven-compat</module>
|
||||
<module>maven-repository</module>
|
||||
<module>maven-repository-mercury</module>
|
||||
</modules>
|
||||
<!--start-->
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>${junitVersion}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<dependencyManagement>
|
||||
<!--end-->
|
||||
<dependencies>
|
||||
<!-- Maven Modules -->
|
||||
<!--start-->
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-mercury</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-lifecycle</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-reporting-api</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-profile</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-model</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-project</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-plugin-api</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-toolchain</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-embedder</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-project-builder</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-repository</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-compat</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<!--end-->
|
||||
<!-- Plexus -->
|
||||
<dependency>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-utils</artifactId>
|
||||
<version>${plexusUtilsVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-container-default</artifactId>
|
||||
<version>${plexusVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-component-annotations</artifactId>
|
||||
<version>${plexusVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-classworlds</artifactId>
|
||||
<version>${classWorldsVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-interpolation</artifactId>
|
||||
<version>${plexusInterpolationVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-interactivity-api</artifactId>
|
||||
<version>${plexusInteractivityVersion}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-component-api</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
<!-- Plexus test dependencies -->
|
||||
<dependency>
|
||||
<groupId>org.sonatype.plexus</groupId>
|
||||
<artifactId>plexus-jetty6</artifactId>
|
||||
<version>${plexusJetty6Version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.sonatype.spice</groupId>
|
||||
<artifactId>plexus-webdav</artifactId>
|
||||
<version>${plexusWebdavVersion}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- Wagon -->
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.wagon</groupId>
|
||||
<artifactId>wagon-provider-api</artifactId>
|
||||
<version>${wagonVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.wagon</groupId>
|
||||
<artifactId>wagon-file</artifactId>
|
||||
<version>${wagonVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.wagon</groupId>
|
||||
<artifactId>wagon-http-lightweight</artifactId>
|
||||
<version>${wagonVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.wagon</groupId>
|
||||
<artifactId>wagon-ssh</artifactId>
|
||||
<version>${wagonVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.wagon</groupId>
|
||||
<artifactId>wagon-ssh-external</artifactId>
|
||||
<version>${wagonVersion}</version>
|
||||
</dependency>
|
||||
<!-- Doxia -->
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.doxia</groupId>
|
||||
<artifactId>doxia-sink-api</artifactId>
|
||||
<version>${doxiaVersion}</version>
|
||||
</dependency>
|
||||
<!-- Maven Shared -->
|
||||
<dependency>
|
||||
<groupId>org.sonatype.spice</groupId>
|
||||
<artifactId>model-builder</artifactId>
|
||||
<version>${modelBuilderVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.woodstox</groupId>
|
||||
<artifactId>wstx-asl</artifactId>
|
||||
<version>${woodstoxVersion}</version>
|
||||
</dependency>
|
||||
<!-- Commons -->
|
||||
<dependency>
|
||||
<groupId>commons-cli</groupId>
|
||||
<artifactId>commons-cli</artifactId>
|
||||
<version>${commonsCliVersion}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>commons-lang</artifactId>
|
||||
<groupId>commons-lang</groupId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
<groupId>commons-logging</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-jxpath</groupId>
|
||||
<artifactId>commons-jxpath</artifactId>
|
||||
<version>${jxpathVersion}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Mercury -->
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.mercury</groupId>
|
||||
<artifactId>mercury-artifact</artifactId>
|
||||
<version>${mercuryVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.mercury</groupId>
|
||||
<artifactId>mercury-external</artifactId>
|
||||
<version>${mercuryVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.mercury</groupId>
|
||||
<artifactId>mercury-plexus</artifactId>
|
||||
<version>${mercuryVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.mercury</groupId>
|
||||
<artifactId>mercury-repo-virtual</artifactId>
|
||||
<version>${mercuryVersion}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.sonatype.mercury</groupId>
|
||||
<artifactId>mercury-mp3-cli</artifactId>
|
||||
<version>${mercuryMp3Version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.sonatype.plexus</groupId>
|
||||
<artifactId>plexus-sec-dispatcher</artifactId>
|
||||
<version>${securityDispatcherVersion}</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- Mercury test dependencies -->
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.mercury</groupId>
|
||||
<artifactId>mercury-repo-local-m2</artifactId>
|
||||
<version>${mercuryVersion}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.mercury</groupId>
|
||||
<artifactId>mercury-repo-remote-m2</artifactId>
|
||||
<version>${mercuryVersion}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.mercury</groupId>
|
||||
<artifactId>mercury-md-sat</artifactId>
|
||||
<version>${mercuryVersion}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.mercury</groupId>
|
||||
<artifactId>mercury-util</artifactId>
|
||||
<version>${mercuryVersion}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.mercury</groupId>
|
||||
<artifactId>mercury-transport-http</artifactId>
|
||||
<version>${mercuryVersion}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.mercury</groupId>
|
||||
<artifactId>mercury-transport-http</artifactId>
|
||||
<version>${mercuryVersion}</version>
|
||||
<type>test-jar</type>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.sonatype.plexus</groupId>
|
||||
<artifactId>plexus-plugin-manager</artifactId>
|
||||
<version>${plexusPluginManagerVersion}</version>
|
||||
</dependency>
|
||||
<!--start-->
|
||||
<dependency>
|
||||
<groupId>easymock</groupId>
|
||||
<artifactId>easymock</artifactId>
|
||||
<version>${easyMockVersion}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<!--end-->
|
||||
</dependencies>
|
||||
<!--start-->
|
||||
</dependencyManagement>
|
||||
<!--end-->
|
||||
<distributionManagement>
|
||||
<site>
|
||||
<id>apache.website</id>
|
||||
<url>scp://people.apache.org/www/maven.apache.org/ref/${project.version}/</url>
|
||||
</site>
|
||||
</distributionManagement>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>osgi</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.felix</groupId>
|
||||
<artifactId>maven-bundle-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>manifest</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<!-- Needed for including the manifest, see MJAR-71 -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.1</version>
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>release</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<inherited>false</inherited>
|
||||
<configuration>
|
||||
<descriptors>
|
||||
<descriptor>src/main/assembly/src.xml</descriptor>
|
||||
</descriptors>
|
||||
<tarLongFileMode>gnu</tarLongFileMode>
|
||||
<finalName>maven-${project.version}-src</finalName>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>make-assembly</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>strict</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<version>1.0-alpha-3</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>enforce-jdk-15</id>
|
||||
<goals>
|
||||
<goal>enforce</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<rules>
|
||||
<requireJavaVersion>
|
||||
<version>1.5</version>
|
||||
</requireJavaVersion>
|
||||
</rules>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
|
@ -0,0 +1,121 @@
|
|||
package org.apache.maven.embedder;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Arrays;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import org.apache.maven.execution.DefaultMavenExecutionRequest;
|
||||
import org.apache.maven.execution.MavenExecutionRequest;
|
||||
import org.apache.maven.execution.MavenExecutionResult;
|
||||
import org.apache.maven.project.MavenProject;
|
||||
import org.codehaus.plexus.util.FileUtils;
|
||||
|
||||
public class MavenEmbedderAligningBasedirTest
|
||||
extends TestCase
|
||||
{
|
||||
protected String basedir;
|
||||
|
||||
protected MavenEmbedder mavenEmbedder;
|
||||
|
||||
|
||||
protected void setUp()
|
||||
throws Exception
|
||||
{
|
||||
super.setUp();
|
||||
|
||||
basedir = System.getProperty( "basedir" );
|
||||
|
||||
if ( basedir == null )
|
||||
{
|
||||
basedir = new File( "." ).getCanonicalPath();
|
||||
}
|
||||
|
||||
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
|
||||
|
||||
Configuration configuration = new DefaultConfiguration()
|
||||
.setClassLoader( classLoader )
|
||||
.setMavenEmbedderLogger( new MavenEmbedderConsoleLogger() );
|
||||
configuration.setUserSettingsFile( MavenEmbedder.DEFAULT_USER_SETTINGS_FILE );
|
||||
|
||||
mavenEmbedder = new MavenEmbedder( configuration );
|
||||
}
|
||||
|
||||
protected void tearDown()
|
||||
throws Exception
|
||||
{
|
||||
mavenEmbedder.stop();
|
||||
}
|
||||
|
||||
protected void assertNoExceptions( MavenExecutionResult result )
|
||||
{
|
||||
List exceptions = result.getExceptions();
|
||||
if ( ( exceptions == null ) || exceptions.isEmpty() )
|
||||
{
|
||||
// everything is a-ok.
|
||||
return;
|
||||
}
|
||||
|
||||
System.err.println( "Encountered " + exceptions.size() + " exception(s)." );
|
||||
Iterator it = exceptions.iterator();
|
||||
while ( it.hasNext() )
|
||||
{
|
||||
Exception exception = (Exception) it.next();
|
||||
exception.printStackTrace( System.err );
|
||||
}
|
||||
|
||||
fail( "Encountered Exceptions in MavenExecutionResult during " + getName() );
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// Goal/Phase execution tests
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
public void testExecutionUsingABaseDirectory()
|
||||
throws Exception
|
||||
{
|
||||
File testDirectory = new File( basedir, "src/test/embedder-test-project" );
|
||||
|
||||
File targetDirectory = new File( basedir, "target/embedder-test-project0" );
|
||||
|
||||
FileUtils.copyDirectoryStructure( testDirectory, targetDirectory );
|
||||
|
||||
MavenExecutionRequest request = new DefaultMavenExecutionRequest()
|
||||
.setBaseDirectory( targetDirectory )
|
||||
.setShowErrors( true )
|
||||
.setGoals( Arrays.asList( new String[]{"package"} ) );
|
||||
|
||||
MavenExecutionResult result = mavenEmbedder.execute( request );
|
||||
|
||||
assertNoExceptions( result );
|
||||
|
||||
MavenProject project = result.getProject();
|
||||
|
||||
assertEquals( "embedder-test-project", project.getArtifactId() );
|
||||
|
||||
File jar = new File( targetDirectory, "target/embedder-test-project-1.0-SNAPSHOT.jar" );
|
||||
|
||||
assertTrue( jar.exists() );
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue