Skip to content

Commit ee68d4f

Browse files
Merge pull request #1617 from AmaliMatharaarachchi/m5-r2
Fix version replacement using maven-antrun-plugin
2 parents 3384b43 + 9c7cb40 commit ee68d4f

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed

pom.xml

+22-19
Original file line numberDiff line numberDiff line change
@@ -104,27 +104,30 @@
104104
</execution>
105105
</executions>
106106
</plugin>
107-
<plugin>
108-
<artifactId>maven-antrun-plugin</artifactId>
109-
<executions>
110-
<execution>
111-
<phase>process-resources</phase>
112-
<goals>
113-
<goal>run</goal>
114-
</goals>
115-
<configuration>
116-
<target>
117-
<replaceregexp file="resources/docker-compose.yaml" match="wso2\/mg\-router\:*" replace="wso2/mg-router:${project.version}" byline="true" />
118-
<replaceregexp file="resources/docker-compose.yaml" match="wso2\/mg\-adapter\:*" replace="wso2/mg-adapter:${project.version}" byline="true" />
119-
<replaceregexp file="resources/docker-compose.yaml" match="wso2\/mg\-enforcer\:*" replace="wso2/mg-enforcer:${project.version}" byline="true" />
120-
<replaceregexp file="remove-containers.sh" match="micro_gw_version=*" replace="micro_gw_version=${project.version}" byline="true" />
121-
</target>
122-
</configuration>
123-
</execution>
124-
</executions>
125-
</plugin>
126107
</plugins>
127108
</pluginManagement>
109+
<plugins>
110+
<plugin>
111+
<artifactId>maven-antrun-plugin</artifactId>
112+
<inherited>false</inherited>
113+
<executions>
114+
<execution>
115+
<phase>process-resources</phase>
116+
<goals>
117+
<goal>run</goal>
118+
</goals>
119+
<configuration>
120+
<target>
121+
<replaceregexp file="resources/docker-compose.yaml" match="wso2\/mg\-router\:.*" replace="wso2/mg-router:${project.version}" byline="true" />
122+
<replaceregexp file="resources/docker-compose.yaml" match="wso2\/mg\-adapter\:.*" replace="wso2/mg-adapter:${project.version}" byline="true" />
123+
<replaceregexp file="resources/docker-compose.yaml" match="wso2\/mg\-enforcer\:.*" replace="wso2/mg-enforcer:${project.version}" byline="true" />
124+
<replaceregexp file="remove-containers.sh" match="micro_gw_version=.*" replace="micro_gw_version=${project.version}" byline="true" />
125+
</target>
126+
</configuration>
127+
</execution>
128+
</executions>
129+
</plugin>
130+
</plugins>
128131
</build>
129132
<dependencyManagement>
130133
<dependencies>

0 commit comments

Comments
 (0)