[ 
https://issues.apache.org/jira/browse/MNG-6689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16985427#comment-16985427
 ] 

Karl Heinz Marbaise edited comment on MNG-6689 at 11/30/19 8:17 PM:
--------------------------------------------------------------------

The usage of a property is only supported with a very limited number of 
properties *revision*, *changelist* and *sha1* nothing else. Details 
documentation can be found here: 
https://maven.apache.org/maven-ci-friendly.html


was (Author: khmarbaise):
The usage of a property is only supporter with a very limited number of 
properties *revision*, *changelist* and *sha1* nothing else. Details 
documentation can be found here: 
https://maven.apache.org/maven-ci-friendly.html

> Cannot find the defined variable in sub-component 
> --------------------------------------------------
>
>                 Key: MNG-6689
>                 URL: https://issues.apache.org/jira/browse/MNG-6689
>             Project: Maven
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 3.3.3
>         Environment: Mac OS
>            Reporter: Yixing Jia
>            Priority: Major
>         Attachments: test.tar
>
>
> I have a very simple project , the project hierarchy is as follow:
> Top  level :  test
> <groupId>com.pallas</groupId>
>   <artifactId>pallas</artifactId>
>   <packaging>pom</packaging>
>   <version>${pallas.version}</version>
>   <name>Pallas</name>
>   <url>http://maven.apache.org</url>
>   <modules>
>       <module>datamodel</module>
>       <module>moduleb</module>
>   </modules>
>  
> <properties>
>     <topLevelArtifactId>pallas</topLevelArtifactId>
>     <pallas.version>1.0.0</pallas.version>
>     <java.source.version>1.8</java.source.version>
>     <java.target.version>1.8</java.target.version>
>     <source.encoding>UTF-8</source.encoding>
>     <jackson.version>2.9.9</jackson.version>
>     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>   </properties>
>  
> As you can see it has two sub-modules.  module "moduleb" will dependent on 
> module "datamodel"
>  
> How to re-produce the issue.
>  
> 1> down load the attached project file *test.tar*
> 2> untar it and change to the test directory.
> 3> run "*mvn -U clean install*"  everything will be fine and you will get 
> success
> 4> change to *test/datamodel* directory run "*mvn -U clean install*"  
> everything will be fine and you will get success
> 5> change to *test/moduleb* directory  run "*mvn -U clean install*"  it will 
> failed. with the follow error
> "{color:#d04437}Could not resolve dependencies for project 
> com.pallas:moduleb:jar:1.0.0: Failed to collect dependencies at 
> com.pallas:datamodel:jar:1.0.0: Failed to read artifact descriptor for 
> com.pallas:datamodel:jar:1.0.0: Could not find artifact 
> com.pallas:pallas:pom:${pallas.version}{color}"
>  
> Temporary workaround:
> make the follow changes in test/datamodel/pom.xml
> from:
> <parent>
>         <groupId>com.pallas</groupId>
>         <artifactId>pallas</artifactId>
>         <version>{color:#14892c}*${pallas.version}*{color}</version>
>         <relativePath>../pom.xml</relativePath>
>   </parent>
>  
> to
>  
> <parent>
>         <groupId>com.pallas</groupId>
>         <artifactId>pallas</artifactId>
>         <version>{color:#FF0000}*1.0.0*{color}</version>
>         <relativePath>../pom.xml</relativePath>
>   </parent>
>  
> So it seems we cannot use property in parent section ?
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to