1 package org.codehaus.mojo.properties;
2
3 import java.util.Properties;
4
5 import org.apache.maven.project.MavenProject;
6
7 public class MavenUtils {
8
9
10
11
12 public static final Properties getInternalMavenProperties(MavenProject project) {
13 Properties properties = new Properties();
14 properties.setProperty("project.groupId", project.getGroupId());
15 properties.setProperty("project.artifactId", project.getArtifactId());
16 properties.setProperty("project.version", project.getVersion());
17 properties.setProperty("project.basedir", project.getBasedir().getAbsolutePath());
18 properties.setProperty("project.build.directory", project.getBuild().getDirectory());
19 return properties;
20 }
21
22 }