Skip to content

Commit 4e6960f

Browse files
committed
fix maven deploy not include dynamic libs issues.
1 parent c36f89e commit 4e6960f

File tree

1 file changed

+40
-10
lines changed

1 file changed

+40
-10
lines changed

StableDiffusionApi/pom.xml

Lines changed: 40 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,35 @@
102102

103103

104104
<build>
105+
105106
<plugins>
107+
106108
<plugin>
107-
<groupId>org.springframework.boot</groupId>
108-
<artifactId>spring-boot-maven-plugin</artifactId>
109+
<artifactId>maven-resources-plugin</artifactId>
110+
<version>3.0.1</version>
111+
<executions>
112+
<execution>
113+
<id>copy-resources</id>
114+
<!-- here the phase you need -->
115+
<phase>validate</phase>
116+
<goals>
117+
<goal>copy-resources</goal>
118+
</goals>
119+
<configuration>
120+
<outputDirectory>${basedir}/target/classes/org/javaai/stablediffusion/api/lib</outputDirectory>
121+
<resources>
122+
<resource>
123+
<directory>${basedir}/src/main/java/org/javaai/stablediffusion/api/lib</directory>
124+
<filtering>false</filtering>
125+
<!-- Don't use filter, filter will crack libs. -->
126+
<!-- Using 'UTF-8' encoding to copy filtered resources. -->
127+
</resource>
128+
</resources>
129+
</configuration>
130+
</execution>
131+
</executions>
109132
</plugin>
133+
110134
<plugin>
111135
<groupId>org.apache.maven.plugins</groupId>
112136
<artifactId>maven-compiler-plugin</artifactId>
@@ -116,7 +140,7 @@
116140
<target>8</target>
117141
</configuration>
118142
</plugin>
119-
<!-- 生成java source.jar -->
143+
<!-- Generate java source.jar -->
120144
<plugin>
121145
<groupId>org.apache.maven.plugins</groupId>
122146
<artifactId>maven-source-plugin</artifactId>
@@ -152,13 +176,12 @@
152176
</execution>
153177
</executions>
154178
</plugin>
155-
156-
157-
158-
<!--<plugin>
179+
180+
181+
<plugin>
159182
<groupId>org.sonatype.plugins</groupId>
160183
<artifactId>nexus-staging-maven-plugin</artifactId>
161-
<version>1.6.7</version>
184+
<version>1.6.13</version>
162185
<extensions>true</extensions>
163186
<configuration>
164187
<serverId>ossrh</serverId>
@@ -169,17 +192,24 @@
169192
<plugin>
170193
<groupId>org.apache.maven.plugins</groupId>
171194
<artifactId>maven-gpg-plugin</artifactId>
172-
<version>1.5</version>
195+
<version>1.6</version>
173196
<executions>
174197
<execution>
175198
<id>sign-artifacts</id>
176199
<phase>verify</phase>
177200
<goals>
178201
<goal>sign</goal>
179202
</goals>
203+
<configuration>
204+
<keyname>javaai.org</keyname>
205+
<gpgArguments>
206+
<arg>--pinentry-mode</arg>
207+
<arg>loopback</arg>
208+
</gpgArguments>
209+
</configuration>
180210
</execution>
181211
</executions>
182-
</plugin>-->
212+
</plugin>
183213
</plugins>
184214
</build>
185215

0 commit comments

Comments
 (0)