.code-generator-ui.3.1.1.M2.source-code.pom.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> <artifactId>code-generator</artifactId> <groupId>cn.huangxulin</groupId> <version>3.1.1.M2</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>code-generator-ui</artifactId> <build> <plugins> <plugin> <groupId>com.github.eirslett</groupId> <artifactId>frontend-maven-plugin</artifactId> <version>${frontend-maven-plugin.version}</version> <configuration> <nodeVersion>v14.16.1</nodeVersion> <yarnVersion>v1.22.10</yarnVersion> </configuration> <executions> <!-- 安装Node.js和yarn --> <execution> <id>install node and yarn</id> <goals> <goal>install-node-and-yarn</goal> </goals> <phase>generate-resources</phase> <configuration> <nodeDownloadRoot>https://npm.taobao.org/mirrors/node/</nodeDownloadRoot> <yarnDownloadRoot>https://npm.taobao.org/mirrors/yarn/</yarnDownloadRoot> </configuration> </execution> <!-- 安装项目依赖 --> <execution> <id>yarn install</id> <goals> <goal>yarn</goal> </goals> <phase>generate-resources</phase> <configuration> <arguments>install</arguments> </configuration> </execution> <!-- 编译构建 --> <execution> <id>yarn build</id> <goals> <goal>yarn</goal> </goals> <configuration> <arguments>build</arguments> </configuration> </execution> <!-- 静态文件导出到Java项目 --> <execution> <id>yarn export</id> <goals> <goal>yarn</goal> </goals> <configuration> <arguments>export</arguments> </configuration> </execution> </executions> </plugin> <!-- Source --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <configuration> <includePom>true</includePom> <excludeResources>true</excludeResources> <attach>true</attach> </configuration> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project>