Closed csmu-cenr closed 3 years ago
Discovered the pom.xml can't have dependencies with the project structure.
New pom.xml extract.
<dependency>
<groupId>com.filemaker</groupId>
<artifactId>jdbc</artifactId>
<version>19.0.0</version>
<scope>system</scope>
<systemPath>/Library/Java/Extensions/fmjdbc.jar</systemPath>
</dependency>
Same error as above.
It's been a while since I used maven much, but I seem to remember you can install
a jar into the local repository, then reference it using group/artifact/version.
Not super pretty, but it would at least get you past it.
mvn install:install-file -Dfile=/Library/Java/Extensions/fmjdbc.jar -DgroupId=com.filemaker -DartifactId=jdbc -Dversion=19.0.0
Cheers and thanks @elliots
That worked!
I've got a test java file connecting to FileMaker and executing SQL queries. I've tried using an explicit system scope with an explicit path to the jar file to build with but mavin is looking for an external reference that does not exist.
How do you reference a local dependency to build with mavin?
The pom.xml file specifies to use a local jar but for some as yet unknown reason to me it's trying to get a network copy that does not exist.
This is the pom.xml extract.
This is the tvf output of the class.
This is the unexpected error.