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
- tibero
- gson
- sapfiorielements
- nginx
- database
- mybatis
- gradle
- Kubernetes
- maven
- Spring
- JPA
- docker
- JavaScript
- springboot
- Java
- dbeaver
- LOG4J
- IntelliJ
- SAP
- Linux
- MySQL
- log4j2
- react
- useEffect
- Git
- BPMN
- Windows
- NCP
- VSCode
- nodejs
Archives
- Today
- Total
두 손끝의 창조자
maven package 할 때 소스도 패키지 하기 본문
의존성 넣기
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.0</version>
<type>maven-plugin</type>
</dependency>
플러그인 넣기
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
실행
mvn package
maven.apache.org/plugin-developers/cookbook/attach-source-javadoc-artifacts.html
Maven – Cookbook - How to attach source and javadoc artifacts
maven.apache.org
반응형
Comments