Skip to content

Commit 74548dd

Browse files
authored
[MNG-7664] consolidate Velocity templates used to generate code from models (#949)
1 parent c1a9001 commit 74548dd

File tree

37 files changed

+59
-6139
lines changed

37 files changed

+59
-6139
lines changed

api/maven-api-model/pom.xml

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,6 @@ under the License.
4141

4242
<build>
4343
<plugins>
44-
<plugin>
45-
<groupId>org.codehaus.mojo</groupId>
46-
<artifactId>build-helper-maven-plugin</artifactId>
47-
<version>3.2.0</version>
48-
<executions>
49-
<execution>
50-
<id>attach-mdo</id>
51-
<goals>
52-
<goal>attach-artifact</goal>
53-
</goals>
54-
<configuration>
55-
<artifacts>
56-
<artifact>
57-
<file>src/main/mdo/maven.mdo</file>
58-
<type>mdo</type>
59-
</artifact>
60-
</artifacts>
61-
</configuration>
62-
</execution>
63-
</executions>
64-
</plugin>
6544
<plugin>
6645
<groupId>org.codehaus.modello</groupId>
6746
<artifactId>modello-maven-plugin</artifactId>
@@ -73,14 +52,16 @@ under the License.
7352
</goals>
7453
<configuration>
7554
<version>4.2.0</version>
55+
<velocityBasedir>${project.basedir}/../../src/mdo</velocityBasedir>
7656
<models>
7757
<model>src/main/mdo/maven.mdo</model>
7858
</models>
7959
<templates>
80-
<template>src/main/mdo/model.vm</template>
60+
<template>model.vm</template>
8161
</templates>
8262
<params>
8363
<param>packageModelV4=org.apache.maven.api.model</param>
64+
<param>isMavenModel=true</param>
8465
</params>
8566
</configuration>
8667
</execution>

0 commit comments

Comments
 (0)