강의

멘토링

커뮤니티

Inflearn Community Q&A

accidentlywoo0494's profile image
accidentlywoo0494

asked

More Java, different ways to manipulate code

javaagent practice

jar생성시 문제

Written on

·

784

0

윈도우환경에서 pom.xml에 똑같은 의존성 추가하고 패키지 경로도 맞춰서 작성했습니다. 

maven-jar-plugin

artifactId에 위내용을 넣었는데도, 콘솔창에서는

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/C:/Users/사용자명/.m2/repository/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar) to field java.util.Properties.defaults

WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.core.util.Fields

WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations

WARNING: All illegal access operations will be denied in a future release

빨간 Warning 메시지와 함께, 

maven-war-plugin:2.2:war (default-war) @ MasulsaAgent가 실행되고

snapshot이 .war확장자로 생성되네요 ㅠㅠ

이걸로 ,VM옵션주면 class로드할 수 없다고 뜨네요.

javaspringJPA

Answer 2

1

whiteship님의 프로필 이미지
whiteship
Instructor

저는 코드에서 com.thoughtworks.xstream.core.util.Fields 이런걸 쓴적이 없는데.. 코딩 하시다가 import를 잘못하신거 아닐까요.

0

Accidently Woo님의 프로필 이미지
Accidently Woo
Questioner

Pom.xml에서 <packaging>war 설정이 들어있었네요! 감사합니다!

accidentlywoo0494's profile image
accidentlywoo0494

asked

Ask a question