Is there a way to get a maven project install directory from property in the pom.xml ? Something like lets say ${project.install.directory}
, I know there is ${project.build.directory}
which points to target folder, but I need this C:\\Users\\user\\.m2\\repository\\com\\demo\\1.0-SNAPSHOT .
I don't think that there is one property, that would do exactly, what you want. However you can try to glue together these properties to make yourself a "project.install.directory" property:
${settings.localRepository} will point to your local repository - "C:\\Users\\user.m2\\repository"
${project.groupId}
${project.artifactId}
${project.version}
${project.build.finalName}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.