Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- NPM
- Express
- MSSQL
- Python
- Sqoop
- hadoop
- window
- IntelliJ
- vaadin
- table
- Android
- xPlatform
- SPC
- Eclipse
- GIT
- mapreduce
- R
- es6
- Kotlin
- 보조정렬
- Spring
- tomcat
- JavaScript
- Java
- 공정능력
- plugin
- react
- SQL
- SSL
- mybatis
Archives
- Today
- Total
DBILITY
maven build scp copy 본문
반응형
maven build시 Goals -> package install
<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>com.dbility.hadoop</groupId>
<artifactId>example05</artifactId>
<version>0.0.1</version>
<properties>
<java.version>1.7</java.version>
<scp.user>사용자아이디</scp.user>
<scp.password>사용자비밀번호</scp.password>
<scp.host>ssh주소</scp.host>
<scp.copy2dir>복사경로</scp.copy2dir>
</properties>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-jsch</artifactId>
<version>1.9.7</version>
</dependency>
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jsch</artifactId>
<version>0.1.54</version>
</dependency>
</dependencies>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<scp file="${project.basedir}/target/${project.artifactId}.jar" todir="${scp.user}:${scp.password}@${scp.host}:/${scp.copy2dir}" trust="true">
</scp>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
반응형
'java > basic' 카테고리의 다른 글
java swing file open (0) | 2016.10.28 |
---|---|
maven jar build시 meta-inf 제거 (0) | 2016.10.21 |
maven jar packaging specific class excluding ( java 클래스 제외 ) (0) | 2016.10.03 |
java spring atomikos Connection Pool Exhausted Exception (0) | 2016.09.23 |
javamail gmail smtp error (0) | 2016.09.20 |
Comments