Skip to content

Commit 8266cd9

Browse files
committed
Fix outdated native library being used
Previously the project used the outdated library in src/main/resources/ instead of the library it had built from source.
1 parent 897c1f5 commit 8266cd9

File tree

2 files changed

+2
-26
lines changed

2 files changed

+2
-26
lines changed

pom.xml

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@
139139
<version>2.4</version>
140140
</extension>
141141
</extensions>
142-
<plugins>
143142

143+
<plugins>
144144
<!-- native build -->
145145
<plugin>
146146
<groupId>org.codehaus.mojo</groupId>
@@ -162,36 +162,12 @@
162162
<argument>libjcocoa</argument>
163163
<argument>-configuration</argument>
164164
<argument>${xcodeScheme}</argument>
165-
<argument>CONFIGURATION_BUILD_DIR=${basedir}/target/native/</argument>
165+
<argument>CONFIGURATION_BUILD_DIR=${project.build.outputDirectory}</argument>
166166
<argument>build</argument>
167167
</arguments>
168168
</configuration>
169169
</plugin>
170170

171-
<!-- copy native libs -->
172-
<plugin>
173-
<artifactId>maven-resources-plugin</artifactId>
174-
<version>3.1.0</version>
175-
<executions>
176-
<execution>
177-
<id>copy-native-libs</id>
178-
<phase>process-resources</phase>
179-
<goals>
180-
<goal>copy-resources</goal>
181-
</goals>
182-
<configuration>
183-
<resources>
184-
<resource>
185-
<directory>${basedir}/target/native/</directory>
186-
<filtering>false</filtering>
187-
</resource>
188-
</resources>
189-
<outputDirectory>${basedir}/target/classes/ca/weblite/objc</outputDirectory>
190-
</configuration>
191-
</execution>
192-
</executions>
193-
</plugin>
194-
195171
<!-- add java 11 module name to manifest -->
196172
<plugin>
197173
<groupId>org.apache.maven.plugins</groupId>

src/main/resources/libjcocoa.dylib

-21.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)