我有以下 Maven 设置:
parent-project
|- libraries
|- utilities
|- core
|- component1
|- component2
在父级中,我定义了所有依赖项和插件管理以及有关开发团队的信息。包含网站皮肤和 checkstyle-config 等功能工件的实用程序,库是用于简化依赖关系的捆绑工件。该站点建立在核心模块及其子模块之上。核心 pom 的父部分。
<parent>
<artifactId>parent</artifactId>
<groupId>my.group</groupId>
<version>3.0.0</version>
</parent>
<artifactId>core</artifactId>
<version>3.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
登台或部署站点时,页面位于“核心”子目录中(例如/target/staging/core/index.html)。有没有办法在根中定位核心站点?
Atm 我使用“肮脏的黑客”。在网络服务器上,我创建了一个系统链接,ln -s ./ core
所以他不知道它是同一个目录。