You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/02/21 03:10:56 UTC

[GitHub] [shardingsphere] bjo2008cnx edited a comment on issue #15531: Could you please replace static version with {revision} variable?

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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org