mirror of https://github.com/apache/maven.git
Updated URIs for transformer. fixed NPE on preprocess.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@719485 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dae9c8fdb7
commit
5400908c56
|
@ -41,17 +41,17 @@ public final class PomTransformer
|
||||||
/**
|
/**
|
||||||
* The URIs this transformer supports
|
* The URIs this transformer supports
|
||||||
*/
|
*/
|
||||||
public static final Set<String> URIS = Collections.unmodifiableSet(new HashSet<String>( Arrays.asList( ProjectUri.Build.Extensions.xUri,
|
public static final Set<String> URIS = Collections.unmodifiableSet(new HashSet<String>( Arrays.asList( ProjectUri.Build.Extensions.xUri,
|
||||||
ProjectUri.Build.PluginManagement.Plugins.xUri,
|
ProjectUri.Build.PluginManagement.Plugins.xUri,
|
||||||
ProjectUri.Build.PluginManagement.Plugins.Plugin.configuration,
|
ProjectUri.Build.PluginManagement.Plugins.Plugin.configuration,
|
||||||
ProjectUri.Build.PluginManagement.Plugins.Plugin.Dependencies.xUri,
|
ProjectUri.Build.PluginManagement.Plugins.Plugin.Dependencies.xUri,
|
||||||
ProjectUri.Build.PluginManagement.Plugins.Plugin.Dependencies.Dependency.Exclusions.xUri,
|
ProjectUri.Build.PluginManagement.Plugins.Plugin.Dependencies.Dependency.Exclusions.xUri,
|
||||||
ProjectUri.Build.PluginManagement.Plugins.Plugin.Executions.xUri,
|
|
||||||
|
|
||||||
ProjectUri.Build.Plugins.xUri,
|
ProjectUri.Build.Plugins.xUri,
|
||||||
ProjectUri.Build.Plugins.Plugin.configuration,
|
ProjectUri.Build.Plugins.Plugin.configuration,
|
||||||
|
ProjectUri.Reporting.Plugins.xUri,
|
||||||
|
ProjectUri.Reporting.Plugins.Plugin.configuration,
|
||||||
ProjectUri.Build.Plugins.Plugin.Dependencies.xUri,
|
ProjectUri.Build.Plugins.Plugin.Dependencies.xUri,
|
||||||
ProjectUri.Build.Plugins.Plugin.Executions.xUri,
|
|
||||||
ProjectUri.Build.Resources.xUri,
|
ProjectUri.Build.Resources.xUri,
|
||||||
ProjectUri.Build.Resources.Resource.includes,
|
ProjectUri.Build.Resources.Resource.includes,
|
||||||
ProjectUri.Build.Resources.Resource.excludes,
|
ProjectUri.Build.Resources.Resource.excludes,
|
||||||
|
@ -77,33 +77,32 @@ public final class PomTransformer
|
||||||
ProjectUri.Profiles.xUri,
|
ProjectUri.Profiles.xUri,
|
||||||
ProjectUri.Profiles.Profile.Build.Plugins.xUri,
|
ProjectUri.Profiles.Profile.Build.Plugins.xUri,
|
||||||
ProjectUri.Profiles.Profile.Build.Plugins.Plugin.Dependencies.xUri,
|
ProjectUri.Profiles.Profile.Build.Plugins.Plugin.Dependencies.xUri,
|
||||||
|
ProjectUri.Profiles.Profile.Build.Plugins.Plugin.Executions.xUri,
|
||||||
ProjectUri.Profiles.Profile.Build.Resources.xUri,
|
ProjectUri.Profiles.Profile.Build.Resources.xUri,
|
||||||
ProjectUri.Profiles.Profile.Build.TestResources.xUri,
|
ProjectUri.Profiles.Profile.Build.TestResources.xUri,
|
||||||
ProjectUri.Profiles.Profile.Dependencies.xUri,
|
ProjectUri.Profiles.Profile.Dependencies.xUri,
|
||||||
ProjectUri.Profiles.Profile.Dependencies.Dependency.Exclusions.xUri,
|
ProjectUri.Profiles.Profile.Dependencies.Dependency.Exclusions.xUri,
|
||||||
ProjectUri.Profiles.Profile.DependencyManagement.Dependencies.xUri,
|
ProjectUri.Profiles.Profile.DependencyManagement.Dependencies.xUri,
|
||||||
|
ProjectUri.Profiles.Profile.DependencyManagement.Dependencies.Dependency.Exclusions.xUri,
|
||||||
ProjectUri.Profiles.Profile.PluginRepositories.xUri,
|
ProjectUri.Profiles.Profile.PluginRepositories.xUri,
|
||||||
ProjectUri.Profiles.Profile.Reporting.Plugins.xUri,
|
ProjectUri.Profiles.Profile.Reporting.Plugins.xUri,
|
||||||
|
ProjectUri.Profiles.Profile.Reporting.Plugins.Plugin.ReportSets.xUri,
|
||||||
ProjectUri.Profiles.Profile.Repositories.xUri,
|
ProjectUri.Profiles.Profile.Repositories.xUri,
|
||||||
|
|
||||||
|
ProjectUri.Profiles.Profile.Build.PluginManagement.Plugins.xUri,
|
||||||
|
ProjectUri.Profiles.Profile.Build.PluginManagement.Plugins.Plugin.Executions.xUri,
|
||||||
|
ProjectUri.Profiles.Profile.Build.PluginManagement.Plugins.Plugin.Dependencies.xUri,
|
||||||
|
ProjectUri.Profiles.Profile.Build.PluginManagement.Plugins.Plugin.Dependencies.Dependency.Exclusions.xUri,
|
||||||
|
|
||||||
ProjectUri.Reporting.Plugins.xUri,
|
ProjectUri.Reporting.Plugins.xUri,
|
||||||
ProjectUri.Reporting.Plugins.Plugin.ReportSets.xUri,
|
ProjectUri.Reporting.Plugins.Plugin.ReportSets.xUri,
|
||||||
|
|
||||||
ProjectUri.Repositories.xUri,
|
ProjectUri.Repositories.xUri) ));
|
||||||
|
|
||||||
"http://apache.org/maven/project/profiles/profile/build/pluginManagement/plugins/plugin/dependencies#collection",
|
|
||||||
"http://apache.org/maven/project/profiles/profile/build/pluginManagement/plugins/plugin/dependencies/dependency/exclusions#collection",
|
|
||||||
"http://apache.org/maven/project/profiles/profile/build/pluginManagement/plugins/plugin/executions#collection",
|
|
||||||
"http://apache.org/maven/project/profiles/profile/build/pluginManagement/plugins#collection",
|
|
||||||
"http://apache.org/maven/project/profiles/profile/build/plugins/plugin/dependencies/dependency/exclusions#collection",
|
|
||||||
"http://apache.org/maven/project/profiles/profile/dependencyManagement/dependencies/dependency/exclusions#collection",
|
|
||||||
"http://apache.org/maven/project/profiles/profile/reporting/plugins/plugin/reportSets#collection",
|
|
||||||
"http://apache.org/maven/project/profiles/profile/build/plugins/plugin/executions#collection" ) ));
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see ModelTransformer#transformToDomainModel(java.util.List)
|
* @see ModelTransformer#transformToDomainModel(java.util.List, java.util.List)
|
||||||
*/
|
*/
|
||||||
public DomainModel transformToDomainModel( List<ModelProperty> properties, List<ModelEventListener> eventListeners )
|
public DomainModel transformToDomainModel( List<ModelProperty> properties, List<ModelEventListener> eventListeners )
|
||||||
throws IOException
|
throws IOException
|
||||||
{
|
{
|
||||||
if ( properties == null )
|
if ( properties == null )
|
||||||
|
@ -209,7 +208,7 @@ public final class PomTransformer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
props.removeAll( removeProperties );
|
props.removeAll( removeProperties );
|
||||||
return factory.createDomainModel( props );
|
return factory.createDomainModel( props );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -531,8 +530,9 @@ public final class PomTransformer
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<ModelProperty> preprocessModelProperties(List<ModelProperty> modelProperties) {
|
public List<ModelProperty> preprocessModelProperties(List<ModelProperty> modelProperties)
|
||||||
return null;
|
{
|
||||||
|
return new ArrayList<ModelProperty>(modelProperties);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue