public abstract class ProjectHelper extends Object
Constructor and Description |
---|
ProjectHelper() |
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
getDependencyModel(org.apache.maven.project.MavenProject project)
Get the dependency model from the project
|
static org.apache.sling.provisioning.model.Model |
getEffectiveModel(org.apache.maven.project.MavenProject project,
org.apache.sling.provisioning.model.ModelUtility.ResolverOptions resolverOptions)
Get the effective model from the project
|
static org.apache.sling.provisioning.model.Model |
getRawModel(org.apache.maven.project.MavenProject project)
Get the raw model from the project
|
static void |
storeProjectInfo(ModelPreprocessor.ProjectInfo info)
Store all relevant information about the project for plugins to be
retrieved
|
public static void storeProjectInfo(ModelPreprocessor.ProjectInfo info) throws IOException
info
- The project infoIOException
- If writing failspublic static org.apache.sling.provisioning.model.Model getEffectiveModel(org.apache.maven.project.MavenProject project, org.apache.sling.provisioning.model.ModelUtility.ResolverOptions resolverOptions) throws org.apache.maven.plugin.MojoExecutionException
project
- The maven projetorg.apache.maven.plugin.MojoExecutionException
- If reading failspublic static org.apache.sling.provisioning.model.Model getRawModel(org.apache.maven.project.MavenProject project) throws org.apache.maven.plugin.MojoExecutionException
project
- The maven projetorg.apache.maven.plugin.MojoExecutionException
- If reading failspublic static Map<String,String> getDependencyModel(org.apache.maven.project.MavenProject project) throws org.apache.maven.plugin.MojoExecutionException
project
- The maven projetorg.apache.maven.plugin.MojoExecutionException
- If reading failsCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.