From: thomas at tada.se (Thomas Hallgren) Date: Wed, 06 Feb 2013 08:53:11 +0100 Subject: [Pljava-dev] Building pljava.so with maven-nar-plugin? In-Reply-To: <20130206023102.1b94cc01@james.intern> References: <20130111204013.00e19939@james.intern> <20130112234738.03b606b1@james.intern> <50F29266.5070408@tada.se> <50F29372.7080808@tada.se> <20130206023102.1b94cc01@james.intern> Message-ID: <51120BE7.6020109@tada.se> On 2013-02-06 02:31, Christian Hammers wrote: > Hello > > I played around with the maven-nar-plugin that was recommended on this > list. The below pom.xml does produce .h files from the java classes and > also compiles the C files. What's missing though is a way to get a > .h from "java.sql.Types" as this class is in the JRE's rt.jar and not > in the specified . Any ideas? Not sure why that matters. Executing: javah java.sql.Types without giving it a classpath does produce the java_sql_Types.h file without problems. Is the current javah configuration deliberately stripping off the java runtime? - thomas > bye, > > -christian- > > P.S.: Beware the hardcoded paths and Postgres version numbers. Don't > know yet how to integrate pg_config in maven. > > P.P.S.: Directoy layout for the C files is: > > ./src/main > ./src/main/c > ./src/main/c/type > ./src/main/include > ./src/main/include/pljava > ./src/main/include/pljava/type > > > xmlns="http://maven.apache.org/POM/4.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/maven-4.0.0.xsd"> > 4.0.0 > org.postgresql > pljava.app > 0.0.1-SNAPSHOT > > pljava-so > pl/java server side library > Generates the pljava.so library which gets loaded by > the PostgreSQL server. nar > > > > > > org.apache.maven.plugins > maven-nar-plugin > 2.1-SNAPSHOT > > > > > > > org.apache.maven.plugins > maven-nar-plugin > true > > > > > > /srv/home/james/workspace/pljava/lathspell-master/pljava-jdbc/target/classes/ > /srv/home/james/workspace/pljava/lathspell-master/pljava-api/target/classes/ > > /srv/home/james/workspace/pljava/lathspell-master/pljava-jdbc/target/classes/ > > org/postgresql/**/*.class > java/sql/Types.class > > > > > > shared > > > > > > PKGLIBDIR="target/lib/" > PGSQL_MAJOR_VER=9 > PGSQL_MINOR_VER=2 > PGSQL_PATCH_VER=0 > > > > /usr/include/postgresql > /usr/include/postgresql/9.2/server/ > src/main/include/ > target/nar/javah-include/ > > > > > > > > > > _______________________________________________ > Pljava-dev mailing list > Pljava-dev at pgfoundry.org > http://lists.pgfoundry.org/mailman/listinfo/pljava-dev