Skip to content

Commit

Permalink
build: remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilou88 committed Oct 19, 2023
1 parent a1b812e commit 4489e6d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/nx-maven/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,3 @@ export function getMavenRootDirectory() {
}
return 'nx-maven';
}

export function isPomPackaging(context: ExecutorContext): boolean {
const projectRoot = getProjectRoot(context);
const pomXmlPath = path.join(context.root, projectRoot, 'pom.xml');
const pomXmlContent = readXml(pomXmlPath);
const packagingXml = pomXmlContent.childNamed('packaging');

if (packagingXml === undefined) {
return false;
}

return packagingXml.val === 'pom';
}

0 comments on commit 4489e6d

Please sign in to comment.