Skip to content

Commit ec94525

Browse files
committed
jooby:run should handle "pom" dependencies correctly fix jooby-project#87
1 parent 07eb86d commit ec94525

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

jooby-maven-plugin/src/main/java/org/jooby/JoobyMojo.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,12 @@ private void doFlatMainModule(final MavenProject project, final Path jmodules,
180180
}
181181
// maven dependencies
182182
for (Artifact artifact : artifacts) {
183-
rsb.append(" <artifact name=\"").append(artifact.getGroupId()).append(":")
184-
.append(artifact.getArtifactId()).append(":").append(artifact.getVersion())
185-
.append("\" />\n");
183+
// not pom
184+
if (!"pom".equals(artifact.getType())) {
185+
rsb.append(" <artifact name=\"").append(artifact.getGroupId()).append(":")
186+
.append(artifact.getArtifactId()).append(":").append(artifact.getVersion())
187+
.append("\" />\n");
188+
}
186189
}
187190
String content = jbossModule(project.getGroupId(), project.getArtifactId(), rsb, null);
188191
moddir.toFile().mkdirs();

0 commit comments

Comments
 (0)