|
102 | 102 |
|
103 | 103 |
|
104 | 104 | <build> |
| 105 | + |
105 | 106 | <plugins> |
| 107 | + |
106 | 108 | <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> |
109 | 132 | </plugin> |
| 133 | + |
110 | 134 | <plugin> |
111 | 135 | <groupId>org.apache.maven.plugins</groupId> |
112 | 136 | <artifactId>maven-compiler-plugin</artifactId> |
|
116 | 140 | <target>8</target> |
117 | 141 | </configuration> |
118 | 142 | </plugin> |
119 | | - <!-- 生成java source.jar --> |
| 143 | + <!-- Generate java source.jar --> |
120 | 144 | <plugin> |
121 | 145 | <groupId>org.apache.maven.plugins</groupId> |
122 | 146 | <artifactId>maven-source-plugin</artifactId> |
|
152 | 176 | </execution> |
153 | 177 | </executions> |
154 | 178 | </plugin> |
155 | | - |
156 | | - |
157 | | - |
158 | | - <!--<plugin> |
| 179 | + |
| 180 | + |
| 181 | + <plugin> |
159 | 182 | <groupId>org.sonatype.plugins</groupId> |
160 | 183 | <artifactId>nexus-staging-maven-plugin</artifactId> |
161 | | - <version>1.6.7</version> |
| 184 | + <version>1.6.13</version> |
162 | 185 | <extensions>true</extensions> |
163 | 186 | <configuration> |
164 | 187 | <serverId>ossrh</serverId> |
|
169 | 192 | <plugin> |
170 | 193 | <groupId>org.apache.maven.plugins</groupId> |
171 | 194 | <artifactId>maven-gpg-plugin</artifactId> |
172 | | - <version>1.5</version> |
| 195 | + <version>1.6</version> |
173 | 196 | <executions> |
174 | 197 | <execution> |
175 | 198 | <id>sign-artifacts</id> |
176 | 199 | <phase>verify</phase> |
177 | 200 | <goals> |
178 | 201 | <goal>sign</goal> |
179 | 202 | </goals> |
| 203 | + <configuration> |
| 204 | + <keyname>javaai.org</keyname> |
| 205 | + <gpgArguments> |
| 206 | + <arg>--pinentry-mode</arg> |
| 207 | + <arg>loopback</arg> |
| 208 | + </gpgArguments> |
| 209 | + </configuration> |
180 | 210 | </execution> |
181 | 211 | </executions> |
182 | | - </plugin>--> |
| 212 | + </plugin> |
183 | 213 | </plugins> |
184 | 214 | </build> |
185 | 215 |
|
|
0 commit comments