How do you configure m2e/Maven to generate JNI/C++ classes? -
short overview:
- my situation
- what want
- what have done far
1. situation:
in company use document archiving software called proxess. software offers several apis / interfaces interact with. backdraw c(++) / .net oriented. there no official support java.
since of our self developed applications written in java , company not want switch document archiving software, superior decided develop wrapper using jni our applications can use archive. , 1 received task.
we using eclipse (currently "kepler" release m2e maven plugin) on windows 7 workstation. our applications maven multi-module projects. target platform redhat enterprise linux (6.3+).
2. want:
i want separate maven module capsules jni/c++ bridge part. if possible want <build>-section in pom.xml of module. when start mvn clean install, maven shall compile jni java class files, generate corresponding c++ header / class files , compiled dll can use in appliocations. not familiar c++ or .net.
- is possible?
- how can achieve this?
- how maven compile c++ classes?
3. have done far:
i have googled on eclipse, m2e, maven, jni, javah , dll. have found far examples on how configure javah external tools in eclipse, maven-native-plugin pseudo configurations , lot of threads never got solved.
best regards, cb
Comments
Post a Comment