Skip to content

Commit

Permalink
Maven build issue with Maven 3.8.2 fix
Browse files Browse the repository at this point in the history
Signed-off-by: Radek Felcman <[email protected]>
  • Loading branch information
rfelcman committed Sep 1, 2021
1 parent 6978d3a commit 22d62b8
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1205,6 +1205,7 @@
</compilerArgs>
</configuration>
</plugin>
<!--Resolve EclipseLink Parent project root directory-->
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>groovy-maven-plugin</artifactId>
Expand All @@ -1218,27 +1219,18 @@
<configuration>
<source>
<![CDATA[
def rootPom = project;
log.info("Current project parent [rootPom.parent]: " + rootPom.parent);
log.info("Current project parent basedir [rootPom.parent.basedir]: " + rootPom.parent.basedir);
while (rootPom.parent.basedir != null) {
log.info("Current project [rootPom]: " + rootPom);
log.info("Current project basedir [rootPom.basedir]: " + rootPom.basedir);
log.info("parent project [rootPom.parent]: " + rootPom.parent);
log.info("parent project basedir [rootPom.parent.basedir]: " + rootPom.parent.basedir);
rootPom = rootPom.parent;
}
project.properties.setProperty("project.root.location", rootPom.basedir.toString());
log.info("EclipseLink Parent project directory [project.root.location]: " + project.properties['project.root.location']);
log.info("Topmost parent directory [rootPom.basedir]: " + rootPom.basedir);
def rootPom = project;
while (rootPom.parent.groupId != "org.eclipse.ee4j") {
rootPom = rootPom.parent;
}
project.properties.setProperty("project.root.location", rootPom.basedir.toString());
log.info("EclipseLink Parent project directory [project.root.location]: " + project.properties['project.root.location']);
]]>
</source>
</configuration>
</execution>
</executions>
</plugin>


<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
Expand Down

0 comments on commit 22d62b8

Please sign in to comment.