コード例 #1
0
 private String getPom(GAV gav) {
   return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
       + "<project xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
       + "         xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd\">\n"
       + "  <modelVersion>4.0.0</modelVersion>\n"
       + "\n"
       + "  <groupId>"
       + gav.getGroupId()
       + "</groupId>\n"
       + "  <artifactId>"
       + gav.getArtifactId()
       + "</artifactId>\n"
       + "  <version>"
       + gav.getVersion()
       + "</version>\n"
       + "\n"
       + "</project>";
 }