Originally created by: kuznetsov.alexey
hello
maven has very useful plugin which allow you to automatically download and expand natives to the build folder.
having it in a project by default allows you forget about natives at all and use only java.
https://code.google.com/p/mavennatives/
this plugin works only if you have classifier starts with natives- prefix
another thing is to add profiles to the main pom. if you do so. natives will automaticaly been attached to the main sql4java natives.
<profiles>
<profile>
<id>win-32</id>
<activation>
<os>
<family>Windows</family>
<arch>x86</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>com.almworks.sqlite4java</groupId>
<artifactId>sqlite4java-win32-x86</artifactId>
<version>0.282</version>
<type>dll</type>
</dependency>
</dependencies>
</profile>
<profile>
<id>linux-64</id>
<activation>
<os>
<family>Linux</family>
<arch>amd64</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>com.almworks.sqlite4java</groupId>
<artifactId>libsqlite4java-linux-amd64</artifactId>
<version>0.282</version>
<type>so</type>
</dependency>
</dependencies>
</profile>
<profile>
<id>linux-32</id>
<activation>
<os>
<family>Linux</family>
<arch>i386</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>com.almworks.sqlite4java</groupId>
<artifactId>libsqlite4java-linux-i386</artifactId>
<version>0.282</version>
<type>so</type>
</dependency>
</dependencies>
</profile>
<profile>
<id>mac-64</id>
<activation>
<os>
<name>mac os x</name>
<arch>x86_64</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>com.almworks.sqlite4java</groupId>
<artifactId>libsqlite4java-osx</artifactId>
<version>0.282</version>
<type>jnilib</type>
</dependency>
</dependencies>
</profile>
</profiles>
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: kuznetsov.alexey
i've made a project which release the idea
https://github.com/axet/sqlite4java
i woud appreciate if you merge my changes to the mainline
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: ser...@gmail.com
Alexey, thanks for the pointers and contribution. I will review it when I work on the next version of sqlite4java.
Labels: -Type-Defect Type-Enhancement
Status: Accepted