Skip to content

Commit 146f5c4

Browse files
author
Chris Birchall
committed
Improve groupId, artifactId, name in generated pom.xml
1. Replace hardcoded groupId (`com.wordnik`) with `package` variable. 2. artifactId and name were using non-existent variable `artifactId`. This results in an empty artifactId, which makes Maven puke. Replaced them with a sensible hardcoded value, "api-client".
1 parent cf95d4e commit 146f5c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/resources/Java/pom.mustache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
4-
<groupId>com.wordnik</groupId>
5-
<artifactId>{{artifactId}}</artifactId>
4+
<groupId>{{package}}</groupId>
5+
<artifactId>api-client</artifactId>
66
<packaging>jar</packaging>
7-
<name>{{artifactId}}</name>
7+
<name>api-client</name>
88
<version>1.0.0</version>
99
<scm>
1010
<connection>scm:git:[email protected]:wordnik/swagger-mustache.git</connection>

0 commit comments

Comments
 (0)