Hey All,
I have a unique issue. Let me give you an example:
Parent Pom:
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @Sean-McK ,
If they don't have a Nexus repo, you can take the following approach.
First embed into the section of the container POM
<embedded>
<groupId>groupID</groupId>
<artifactId>artifactId</artifactId>
<type>zip</type>
<target>/apps/vendorpackage/application/install</target>
</embedded>
and then add it to the dependency section of the same container POM
<dependency>
<groupId>groupID</groupId>
<artifactId>artifactId</artifactId>
<type>type</type>
<scope>system</scope>
<systemPath>/${basedir}/../packages/project-${version}.zip</systemPath>
</dependency>
This would ensure the deployment of these packages to the instances. So you won't get the validation error.
Also, include this as a dependency in parent POM and the modules where you need it so that compilation works as well.
Note: This is not a future-proof solution and might give you some errors in the future if something changes on the cloud manager, the recommended approach would be to either work through gitsubmodules or maven repo. (private maven repos are also supported on cloud manager).
Hope this helps!
Regards,
Nitesh
Hi @Sean-McK ,
If they don't have a Nexus repo, you can take the following approach.
First embed into the section of the container POM
<embedded>
<groupId>groupID</groupId>
<artifactId>artifactId</artifactId>
<type>zip</type>
<target>/apps/vendorpackage/application/install</target>
</embedded>
and then add it to the dependency section of the same container POM
<dependency>
<groupId>groupID</groupId>
<artifactId>artifactId</artifactId>
<type>type</type>
<scope>system</scope>
<systemPath>/${basedir}/../packages/project-${version}.zip</systemPath>
</dependency>
This would ensure the deployment of these packages to the instances. So you won't get the validation error.
Also, include this as a dependency in parent POM and the modules where you need it so that compilation works as well.
Note: This is not a future-proof solution and might give you some errors in the future if something changes on the cloud manager, the recommended approach would be to either work through gitsubmodules or maven repo. (private maven repos are also supported on cloud manager).
Hope this helps!
Regards,
Nitesh
Views
Likes
Replies