Merging out 721278.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@721335 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Britton Isbell 2008-11-28 04:23:42 +00:00
parent 252065d9b4
commit 6982b056ac
3 changed files with 18 additions and 140 deletions

View File

@ -385,14 +385,8 @@ public static class Execution
public static String phase = public static String phase =
"http://apache.org/maven/project/build/pluginManagement/plugins#collection/plugin/executions#collection/execution/phase"; "http://apache.org/maven/project/build/pluginManagement/plugins#collection/plugin/executions#collection/execution/phase";
public static class Goals public static String goals =
{ "http://apache.org/maven/project/build/pluginManagement/plugins#collection/plugin/executions#collection/execution/goals";
public static String xURI =
"http://apache.org/maven/project/build/pluginManagement/plugins#collection/plugin/executions#collection/execution/goals#collection";
public static String goal =
"http://apache.org/maven/project/build/pluginManagement/plugins#collection/plugin/executions#collection/execution/goals#collection/goal";
}
public static String inherited = public static String inherited =
"http://apache.org/maven/project/build/pluginManagement/plugins#collection/plugin/executions#collection/execution/inherited"; "http://apache.org/maven/project/build/pluginManagement/plugins#collection/plugin/executions#collection/execution/inherited";
@ -456,15 +450,8 @@ public static class Exclusion
} }
} }
public static class Goals public static String goals =
{ "http://apache.org/maven/project/build/pluginManagement/plugins#collection/plugin/goals";
public static String xURI =
"http://apache.org/maven/project/build/pluginManagement/plugins#collection/plugin/goals#collection";
public static String goal =
"http://apache.org/maven/project/build/pluginManagement/plugins#collection/plugin/goals#collection/goal";
}
public static String inherited = public static String inherited =
"http://apache.org/maven/project/build/pluginManagement/plugins#collection/plugin/inherited"; "http://apache.org/maven/project/build/pluginManagement/plugins#collection/plugin/inherited";
@ -511,14 +498,8 @@ public static class Execution
public static String phase = public static String phase =
"http://apache.org/maven/project/build/plugins#collection/plugin/executions#collection/execution/phase"; "http://apache.org/maven/project/build/plugins#collection/plugin/executions#collection/execution/phase";
public static class Goals public static String goals =
{ "http://apache.org/maven/project/build/plugins#collection/plugin/executions#collection/execution/goals";
public static String xURI =
"http://apache.org/maven/project/build/plugins#collection/plugin/executions#collection/execution/goals#collection";
public static String goal =
"http://apache.org/maven/project/build/plugins#collection/plugin/executions#collection/execution/goals#collection/goal";
}
public static String inherited = public static String inherited =
"http://apache.org/maven/project/build/plugins#collection/plugin/executions#collection/execution/inherited"; "http://apache.org/maven/project/build/plugins#collection/plugin/executions#collection/execution/inherited";
@ -581,14 +562,8 @@ public static class Exclusion
"http://apache.org/maven/project/build/plugins#collection/plugin/dependencies#collection/dependency/optional"; "http://apache.org/maven/project/build/plugins#collection/plugin/dependencies#collection/dependency/optional";
} }
} }
public static class Goals
{
public static String xURI =
"http://apache.org/maven/project/build/plugins#collection/plugin/goals#collection";
public static String goal = public static String goals = "http://apache.org/maven/project/build/plugins#collection/plugin/goals";
"http://apache.org/maven/project/build/plugins#collection/plugin/goals#collection/goal";
}
public static String inherited = public static String inherited =
"http://apache.org/maven/project/build/plugins#collection/plugin/inherited"; "http://apache.org/maven/project/build/plugins#collection/plugin/inherited";
@ -775,14 +750,8 @@ public static class Execution
public static String phase = public static String phase =
"http://apache.org/maven/project/profiles#collection/profile/build/pluginManagement/plugins#collection/plugin/executions#collection/execution/phase"; "http://apache.org/maven/project/profiles#collection/profile/build/pluginManagement/plugins#collection/plugin/executions#collection/execution/phase";
public static class Goals public static String goals =
{ "http://apache.org/maven/project/profiles#collection/profile/build/pluginManagement/plugins#collection/plugin/executions#collection/execution/goals";
public static String xURI =
"http://apache.org/maven/project/profiles#collection/profile/build/pluginManagement/plugins#collection/plugin/executions#collection/execution/goals#collection";
public static String goal =
"http://apache.org/maven/project/profiles#collection/profile/build/pluginManagement/plugins#collection/plugin/executions#collection/execution/goals#collection/goal";
}
public static String inherited = public static String inherited =
"http://apache.org/maven/project/profiles#collection/profile/build/pluginManagement/plugins#collection/plugin/executions#collection/execution/inherited"; "http://apache.org/maven/project/profiles#collection/profile/build/pluginManagement/plugins#collection/plugin/executions#collection/execution/inherited";
@ -846,14 +815,8 @@ public static class Exclusion
} }
} }
public static class Goals public static String goals =
{ "http://apache.org/maven/project/profiles#collection/profile/build/pluginManagement/plugins#collection/plugin/goals";
public static String xURI =
"http://apache.org/maven/project/profiles#collection/profile/build/pluginManagement/plugins#collection/plugin/goals#collection";
public static String goal =
"http://apache.org/maven/project/profiles#collection/profile/build/pluginManagement/plugins#collection/plugin/goal";
}
public static String inherited = public static String inherited =
"http://apache.org/maven/project/profiles#collection/profile/build/pluginManagement/plugins#collection/plugin/inherited"; "http://apache.org/maven/project/profiles#collection/profile/build/pluginManagement/plugins#collection/plugin/inherited";
@ -902,14 +865,8 @@ public static class Execution
public static String phase = public static String phase =
"http://apache.org/maven/project/profiles#collection/profile/build/plugins#collection/plugin/executions#collection/execution/phase"; "http://apache.org/maven/project/profiles#collection/profile/build/plugins#collection/plugin/executions#collection/execution/phase";
public static class Goals public static String goals =
{ "http://apache.org/maven/project/profiles#collection/profile/build/plugins#collection/plugin/executions#collection/execution/goals";
public static String xURI =
"http://apache.org/maven/project/profiles#collection/profile/build/plugins#collection/plugin/executions#collection/execution/goals#collection";
public static String goal =
"http://apache.org/maven/project/profiles#collection/profile/build/plugins#collection/plugin/executions#collection/execution/goals#collection/goal";
}
public static String inherited = public static String inherited =
"http://apache.org/maven/project/profiles#collection/profile/build/plugins#collection/plugin/executions#collection/execution/inherited"; "http://apache.org/maven/project/profiles#collection/profile/build/plugins#collection/plugin/executions#collection/execution/inherited";
@ -973,20 +930,14 @@ public static class Exclusion
} }
} }
public static class Goals public static String goals =
{ "http://apache.org/maven/project/profiles#collection/profile/build/plugins/plugin/goals";
public static String xURI =
"http://apache.org/maven/project/profiles#collection/profile/build/plugins#collection/plugin/goals#collection";
public static String goal =
"http://apache.org/maven/project/profiles#collection/profile/build/plugins#collection/plugin/goals#collection/goal";
}
public static String inherited = public static String inherited =
"http://apache.org/maven/project/profiles#collection/profile/build/plugins#collection/plugin/inherited"; "http://apache.org/maven/project/profiles#collection/profile/build/plugins/plugin/inherited";
public static String configuration = public static String configuration =
"http://apache.org/maven/project/profiles#collection/profile/build/plugins#collection/plugin/configuration"; "http://apache.org/maven/project/profiles#collection/profile/build/plugins/plugin/configuration";
} }
} }
} }

View File

@ -12,7 +12,7 @@
public class EnforcerPomTest public class EnforcerPomTest
{ {
@org.junit.Test @org.junit.Test
public void dependencyManagementWithScopeAndClassifier() throws IOException public void dependencyManagementWithScopeAndClassifier() throws IOException
{ {
List<ModelProperty> mp = new ArrayList<ModelProperty>(); List<ModelProperty> mp = new ArrayList<ModelProperty>();

View File

@ -1,73 +0,0 @@
package org.apache.maven.project.builder;
import static org.junit.Assert.*;
import org.apache.maven.shared.model.*;
import org.apache.maven.shared.model.impl.DefaultModelDataSource;
import java.util.List;
import java.util.ArrayList;
import java.util.Arrays;
public class PluginSpecTest {
@org.junit.Test
public void goalsInherited() {
List<ModelProperty> mp = new ArrayList<ModelProperty>();
mp.add(new ModelProperty(ProjectUri.xUri, null));
mp.add(new ModelProperty(ProjectUri.Build.xUri, null));
mp.add(new ModelProperty(ProjectUri.Build.PluginManagement.xUri, null));
mp.add(new ModelProperty(ProjectUri.Build.PluginManagement.Plugins.xUri, null));
mp.add(new ModelProperty(ProjectUri.Build.PluginManagement.Plugins.Plugin.xUri, null));
mp.add(new ModelProperty(ProjectUri.Build.PluginManagement.Plugins.Plugin.groupId, "gid"));
mp.add(new ModelProperty(ProjectUri.Build.PluginManagement.Plugins.Plugin.artifactId, "aid"));
mp.add(new ModelProperty(ProjectUri.Build.PluginManagement.Plugins.Plugin.version, "v1"));
mp.add(new ModelProperty(ProjectUri.Build.PluginManagement.Plugins.Plugin.Executions.xUri, null));
mp.add(new ModelProperty(ProjectUri.Build.PluginManagement.Plugins.Plugin.Executions.Execution.xUri, null));
mp.add(new ModelProperty(ProjectUri.Build.PluginManagement.Plugins.Plugin.Executions.Execution.id, "site-docs"));
mp.add(new ModelProperty(ProjectUri.Build.PluginManagement.Plugins.Plugin.Executions.Execution.phase, "phase"));
// mp.add(new ModelProperty(ProjectUri.Build.PluginManagement.Plugins.Plugin.Executions.Execution.goals, null));
/*
<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>
List<ModelProperty> mp2 = new ArrayList<ModelProperty>();
mp2.add(new ModelProperty(ProjectUri.xUri, null));
mp2.add(new ModelProperty(ProjectUri.Dependencies.xUri, null));
mp2.add(new ModelProperty(ProjectUri.Dependencies.Dependency.xUri, null));
mp2.add(new ModelProperty(ProjectUri.Dependencies.Dependency.groupId, "gid"));
mp2.add(new ModelProperty(ProjectUri.Dependencies.Dependency.artifactId, "aid"));
mp2.add(new ModelProperty(ProjectUri.Dependencies.Dependency.xUri, null));
mp2.add(new ModelProperty(ProjectUri.Dependencies.Dependency.groupId, "gid"));
mp2.add(new ModelProperty(ProjectUri.Dependencies.Dependency.artifactId, "aid"));
mp2.add(new ModelProperty(ProjectUri.Dependencies.Dependency.classifier, "tests"));
DomainModel childModel = new DefaultDomainModel(mp2);
DomainModel parentModel = new DefaultDomainModel(mp);
ModelTransformerContext ctx = new ModelTransformerContext(Arrays.asList(new ArtifactModelContainerFactory(),
new IdModelContainerFactory()));
ModelTransformer transformer = new PomTransformer(new DefaultDomainModelFactory());
DomainModel domainModel = ctx.transform( Arrays.asList(childModel, parentModel), transformer, transformer );
DefaultModelDataSource source = new DefaultModelDataSource();
source.init(domainModel.getModelProperties(), Arrays.asList(new ArtifactModelContainerFactory(), new IdModelContainerFactory()));
List<ModelContainer> containers = source.queryFor(ProjectUri.Dependencies.Dependency.xUri);
*/
}
}