bjo2008cnx edited a comment on issue #15531:
URL: 
https://github.com/apache/shardingsphere/issues/15531#issuecomment-1046427552


   FYI: https://github.com/apache/dubbo/blob/3.0/pom.xml
   steps: 
   1. add plugin into `<build><plugins>...<plugins></build>`
   ```
   <plugin>
                   <groupId>org.codehaus.mojo</groupId>
                   <artifactId>flatten-maven-plugin</artifactId>
                   <version>1.1.0</version>
                   <configuration>
                       <updatePomFile>true</updatePomFile>
                       <flattenMode>resolveCiFriendliesOnly</flattenMode>
                   </configuration>
                   <executions>
                       <execution>
                           <id>flatten</id>
                           <phase>process-resources</phase>
                           <goals>
                               <goal>flatten</goal>
                           </goals>
                       </execution>
                       <execution>
                           <id>flatten.clean</id>
                           <phase>clean</phase>
                           <goals>
                               <goal>clean</goal>
                           </goals>
                       </execution>
                   </executions>
               </plugin>
   ```
   
   2. define revision property in parent pom.xml: 
      for example:
   ```
       <properties>
           <revision>5.0.1</revision>       
       </properties>
   ```
   
   3. replace version in each pom.xml with ${revision}
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to