We usually extract version numbers of maven dependencies in property values. See the following example for the JUnit dependency (shortened):
<properties>
<junit.version>1.8.1</junit.version>
</properties>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-suite-engine</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
For using the portal-components I want to do it just the same:
Instead of that code (which is working fine!):
<dependencies>
<dependency>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal-components</artifactId>
<version>11.3.1</version>
<type>iar</type>
</dependency>
</dependencies>
I want to write:
<properties>
<ivy.portal.version>11.3.1</ivy.portal.version>
</properties>
<dependencies>
<dependency>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal-components</artifactId>
<version>${ivy.portal.version}</version>
<type>iar</type>
</dependency>
</dependencies>
But when I save this pom file, the following error message appears in the Axon Designer:
Cannot resolve required project 'com.axonivy.portal:portal-components' between version ${ivy.portal.version} and ${ivy.portal.version}
Why does this work with the JUnit dependency but not with the portal-components?