Skip to content

Commit f27de40

Browse files
committed
fixing versions for models, splitting into separate executions to accommodate different versions.
1 parent 7cbc0d0 commit f27de40

File tree

1 file changed

+47
-5
lines changed

1 file changed

+47
-5
lines changed

pom.xml

Lines changed: 47 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,60 @@
7676
<artifactId>modello-maven-plugin</artifactId>
7777
<version>1.4.1</version>
7878
<configuration>
79-
<version>4.0.0</version>
80-
<models>
81-
<model>target/dependency/apache-maven-${mavenVersion}/maven-model/src/main/mdo/maven.mdo</model>
82-
</models>
79+
<useJava5>true</useJava5>
8380
</configuration>
8481
<executions>
8582
<execution>
86-
<id>standard</id>
83+
<id>toolchains</id>
8784
<phase>process-sources</phase>
8885
<goals>
8986
<goal>jdom-writer</goal>
9087
</goals>
88+
<configuration>
89+
<version>1.0.0</version>
90+
<models>
91+
<model>target/dependency/apache-maven-${mavenVersion}/maven-core/src/main/mdo/toolchains.mdo</model>
92+
</models>
93+
</configuration>
94+
</execution>
95+
<execution>
96+
<id>pom</id>
97+
<phase>process-sources</phase>
98+
<goals>
99+
<goal>jdom-writer</goal>
100+
</goals>
101+
<configuration>
102+
<version>4.0.0</version>
103+
<models>
104+
<model>target/dependency/apache-maven-${mavenVersion}/maven-model/src/main/mdo/maven.mdo</model>
105+
</models>
106+
</configuration>
107+
</execution>
108+
<execution>
109+
<id>repository-metadata</id>
110+
<phase>process-sources</phase>
111+
<goals>
112+
<goal>jdom-writer</goal>
113+
</goals>
114+
<configuration>
115+
<version>1.1.0</version>
116+
<models>
117+
<model>target/dependency/apache-maven-${mavenVersion}/maven-repository-metadata/src/main/mdo/metadata.mdo</model>
118+
</models>
119+
</configuration>
120+
</execution>
121+
<execution>
122+
<id>settings</id>
123+
<phase>process-sources</phase>
124+
<goals>
125+
<goal>jdom-writer</goal>
126+
</goals>
127+
<configuration>
128+
<version>1.1.0</version>
129+
<models>
130+
<model>target/dependency/apache-maven-${mavenVersion}/maven-settings/src/main/mdo/settings.mdo</model>
131+
</models>
132+
</configuration>
91133
</execution>
92134
</executions>
93135
</plugin>

0 commit comments

Comments
 (0)