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 |
Tags
- IntelliJ
- gradle
- SAP
- MySQL
- VSCode
- mybatis
- maven
- NCP
- tibero
- Java
- gson
- log4j2
- LOG4J
- dbeaver
- nginx
- springboot
- BPMN
- database
- react
- Git
- Windows
- useEffect
- JavaScript
- sapfiorielements
- Kubernetes
- Spring
- Linux
- docker
- nodejs
- JPA
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