Skip to content

Commit

Permalink
[deploy] Generate doc and source when deploy SNAPSHOT jar (apache#2615)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangjun0x01 authored Jan 11, 2024
1 parent 05135e5 commit f4c5eac
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
41 changes: 41 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,47 @@ under the License.
</plugins>
</build>
</profile>

<profile>
<id>docs-and-source</id>
<activation>
<property>
<name>docs-and-source</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<quiet>true</quiet>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
Expand Down
2 changes: 1 addition & 1 deletion tools/releasing/deploy_staging_jars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ fi
cd ${PROJECT_ROOT}

echo "Deploying to repository.apache.org"
${MVN} clean deploy -Papache-release -DskipTests -DretryFailedDeploymentCount=10 $CUSTOM_OPTIONS
${MVN} clean deploy -Papache-release,docs-and-source -DskipTests -DretryFailedDeploymentCount=10 $CUSTOM_OPTIONS

cd ${CURR_DIR}

0 comments on commit f4c5eac

Please sign in to comment.