티스토리 뷰
메이븐을 이용한 자바 프로젝트에서 Front End 코드 및 Node 와 Npm 구성을 위환 메이븐 pom.xml 파일이다.
<?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">
<modelVersion>4.0.0</modelVersion>
<groupId>info.m2sj</groupId>
<artifactId>jinte</artifactId>
<packaging>jar</packaging>
<version>1.0</version>
<name>Front-end</name>
<build>
<defaultGoal>compile</defaultGoal>
<directory>${basedir}/target</directory>
<finalName>${artifactId}-${version}</finalName>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.10.0</version>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<configuration>
<nodeVersion>v14.0.0</nodeVersion>
<npmVersion>6.14.4</npmVersion>
</configuration>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<arguments>install</arguments>
</configuration>
</execution>
<!-- 여기서 부터는 FE package.json 정의가 필요함 S -->
<execution>
<id>npm build</id>
<goals>
<goal>npm</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<arguments>run build</arguments>
</configuration>
</execution>
<!-- 여기서 부터는 FE package.json 정의가 필요함 E -->
</executions>
</plugin>
</plugins>
</build>
</project>
'Code Fragment' 카테고리의 다른 글
SSH Terminal Session Time Out 연장 (0) | 2020.05.12 |
---|---|
Vi Editor Word Replace&Paste (0) | 2020.05.07 |
SVN Checkout (https) (0) | 2020.04.06 |
xcrun: error: active developer path (“/Applications/Xcode.app/Contents/Developer”) does not exist (0) | 2020.04.06 |
git private repository chekcout (0) | 2019.11.11 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크