DevEnjoy

One Step Closer

jenkins

jenkins에서 maven build시 unmappable character for encoding ASCII 에러

2016년 7월 29일 by YongPwi Leave a Comment

jenkins 상에서 maven build 설정 중 error 발생,,,

maven 사용하여 build는 처음이라 삽질 좀 했다,,,

1. build file name
build file name에 버전 정보를 삭제하고 싶은 경우 하단 코드 참고

pom.xml에 설정해주면 된다.

1
2
3
4
5
6
7
<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">
   <artifactId>yongpwi</artifactId>
   <build>
      <finalName>${project.artifactId}</finalName>
   </build>
</project>

2. jenkins build시 unmappable character for encoding ASCII error

요건 좀 삽질 했는데,,,

역시나 찾아보니 답은 있음,,,

pom.xml plugin에 encoding 설정을 해주면 해결 가능!

1
2
3
4
5
6
7
8
9
<plugins>
   <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-compiler-plugin</artifactId>
      <configuration>
         <encoding>UTF-8</encoding>
      </configuration>
    </plugin>
</plugins>
Posted in: Java, Programing Tagged: JAVA, jenkins, maven

Calendar

3월 2023
일 월 화 수 목 금 토
« 4월    
 1234
567891011
12131415161718
19202122232425
262728293031  

Recent Posts

  • ubuntu bastion 설정
  • Spring Boot properties 암호화
  • Git Repository Bitbucket과 Issue Tracker Redmine 연동 설정
  • Spring Security 동일 session 제어
  • Spring @Mock, @Mockbean, @InjectMock

Recent Comments

  • pzotov (Ubuntu 14.04에서 Sonarqube 6.7.1 service 등록)
  • cours de theatre paris (AWS ELB와 Auto Scaling 연동, nginx)
  • bayern munich (IntelliJ EAP Font rendering)
  • camiseta del chelsea (OS X에서 APP 아이콘 변경)
  • cheap football shirts replica (jQuery Ajax에서 json Array 직렬화)

Copyright © [the-year] [site-link].

Powered by [wp-link] and [theme-link].