SoMuchForSubtlety opened a new issue, #2466:
URL: https://github.com/apache/maven/issues/2466

   ### Affected version
   
   3.9.10
   
   ### Bug description
   
   Maven build fail with the following error message since upgrading from 3.9.9 
to 3.9.10
   
   ```
   [INFO] Scanning for projects...
   [ERROR] [ERROR] Some problems were encountered while processing the POMs:
   [ERROR] 'version' must be a constant version but is 
'${revision}${changelist}'. @ line 9, column 14
    @
   [ERROR] The build could not read 1 project -> [Help 1]
   [ERROR]
   [ERROR]   The project example.namespace:project:${revision}${changelist} 
(/my/project/folder/pom.xml) has 1 error
   [ERROR]     'version' must be a constant version but is 
'${revision}${changelist}'. @ line 9, column 14
   [ERROR]
   [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
   [ERROR]
   [ERROR] For more information about the errors and possible solutions, please 
read the following articles:
   [ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
   ```
   
   This is a simplified pom causing the error.
   
   ```xml
   <project xmlns="http://maven.apache.org/POM/4.0.0";
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
            xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
       <modelVersion>4.0.0</modelVersion>
   
       <groupId>example.namespace</groupId>
       <artifactId>project</artifactId>
       <name>project</name>
       <version>${revision}${changelist}</version>
       <packaging>pom</packaging>
       <description>my project</description>
   
       <modules>
           <module>my-module</module>
       </modules>
   
   </project>
   ```


-- 
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: issues-unsubscr...@maven.apache.org.apache.org

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

Reply via email to