Skip to content

Commit

Permalink
Merge pull request #1023 from mohanvive/master
Browse files Browse the repository at this point in the history
Remove WSO2 parent pom reference with required fixes
  • Loading branch information
pcnfernando committed Feb 13, 2019
2 parents c4307c0 + 3f8844e commit 579fb97
Show file tree
Hide file tree
Showing 4 changed files with 413 additions and 65 deletions.
Expand Up @@ -74,7 +74,8 @@ public class ExtensionsIndexGenerationMojo extends AbstractMojo {
public void execute() throws MojoExecutionException, MojoFailureException {
// Finding the root maven project
MavenProject rootMavenProject = mavenProject;
while (rootMavenProject.getParent().getBasedir() != null) {
while (rootMavenProject.getParent() != null &&
rootMavenProject.getParent().getBasedir() != null) {
rootMavenProject = rootMavenProject.getParent();
}

Expand Down
Expand Up @@ -95,7 +95,8 @@ public class MarkdownDocumentationGenerationMojo extends AbstractMojo {
public void execute() throws MojoExecutionException, MojoFailureException {
// Finding the root maven project
MavenProject rootMavenProject = mavenProject;
while (rootMavenProject.getParent().getBasedir() != null) {
while (rootMavenProject.getParent() != null &&
rootMavenProject.getParent().getBasedir() != null) {
rootMavenProject = rootMavenProject.getParent();
}

Expand Down
Expand Up @@ -97,7 +97,8 @@ public class MkdocsGitHubPagesDeployMojo extends AbstractMojo {
public void execute() throws MojoExecutionException, MojoFailureException {
// Finding the root maven project
MavenProject rootMavenProject = mavenProject;
while (rootMavenProject.getParent().getBasedir() != null) {
while (rootMavenProject.getParent() != null &&
rootMavenProject.getParent().getBasedir() != null) {
rootMavenProject = rootMavenProject.getParent();
}

Expand Down

0 comments on commit 579fb97

Please sign in to comment.