org.kuali.common.util
Class MavenUtils
java.lang.Object
org.kuali.common.util.MavenUtils
public class MavenUtils
- extends Object
Maven utilities that don't depend on Maven libraries
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POM
public static final String POM
- See Also:
- Constant Field Values
PROJECT_VERSION_KEY
public static final String PROJECT_VERSION_KEY
- See Also:
- Constant Field Values
PROJECT_ENCODING_KEY
public static final String PROJECT_ENCODING_KEY
- See Also:
- Constant Field Values
MavenUtils
public MavenUtils()
getMavenizedSpringContext
public static SpringContext getMavenizedSpringContext(Class<?> propertySourceConfig)
getMavenizedSpringContext
public static SpringContext getMavenizedSpringContext(Properties mavenProperties,
Class<?> propertySourceConfig)
- Return a SpringContext that resolves placeholders using the single
PropertySource registered with propertySourceConfig
augmentProjectProperties
public static void augmentProjectProperties(Properties mavenProperties)
- Add organization, group, and path properties and tokenize the version number adding properties for each token along with a boolean property indicating if this is a SNAPSHOT
build
getMavenProjectProperties
public static ProjectProperties getMavenProjectProperties(Properties mavenProperties)
getList
protected static List<String> getList(Properties properties,
String key)
getList
protected static List<String> getList(org.springframework.core.env.Environment env,
Properties properties,
String key)
skip
public static final boolean skip(boolean forceMojoExecution,
boolean skip,
String packaging)
- Always return false if
forceMojoExecution is true, otherwise return true only if skip is true or packaging is pom.
Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.