-
카테고리
-
세부 분야
프로그래밍 언어
-
해결 여부
미해결
jar생성시 문제
20.02.14 22:41 작성 조회수 558
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로드할 수 없다고 뜨네요.
답변을 작성해보세요.
1
백기선
지식공유자2020.02.15
저는 코드에서 com.thoughtworks.xstream.core.util.Fields 이런걸 쓴적이 없는데.. 코딩 하시다가 import를 잘못하신거 아닐까요.
0
답변 2