Skip to content

Commit

Permalink
another attempt to fix maven release
Browse files Browse the repository at this point in the history
  • Loading branch information
shannah committed Aug 25, 2024
1 parent 64df22d commit b28919c
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 2 deletions.
52 changes: 52 additions & 0 deletions maven/sqlite-jdbc/dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,58 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.2</version>
<executions>
<execution>
<id>copy-javadoc</id>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>${sqlite.jdbc.version}</version>
<classifier>javadoc</classifier>
<destFileName>sqlite-jdbc-javadoc.jar</destFileName>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>attach-javadoc</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>javadoc</classifier>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
</archive>
<includes>
<include>sqlite-jdbc-javadoc.jar</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<sqlite.jdbc.version>3.46.1.0</sqlite.jdbc.version>
</properties>
</project>
61 changes: 59 additions & 2 deletions maven/sqlite-jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
<artifactId>sqlite-jdbc</artifactId>
<version>8.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<sqlite.jdbc.version>3.46.1.0</sqlite.jdbc.version>
</properties>
<parent>
<groupId>com.codenameone</groupId>
<artifactId>codenameone</artifactId>
Expand All @@ -14,7 +17,6 @@

<build>
<plugins>

<!-- Maven Source Plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -49,14 +51,69 @@
</execution>
</executions>
</plugin>

<!-- Copy the original Javadoc JAR -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.2</version>
<executions>
<execution>
<id>copy-javadoc</id>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>${sqlite.jdbc.version}</version> <!-- Set the correct version -->
<classifier>javadoc</classifier>
<destFileName>sqlite-jdbc-javadoc.jar</destFileName>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>

<!-- Attach the copied Javadoc JAR -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>attach-javadoc</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>javadoc</classifier>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
</archive>
<includes>
<include>sqlite-jdbc-javadoc.jar</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>3.46.1.0</version>
<version>${sqlite.jdbc.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
Expand Down

0 comments on commit b28919c

Please sign in to comment.