domino-jna icon indicating copy to clipboard operation
domino-jna copied to clipboard

Missing domino-jna-base dependency / How-To use the maven artefacts?

Open beranPro opened this issue 2 years ago • 4 comments

Hi guys or @klehmann ;-), i'm trying to test this nice looking project but i have the problem when i add the dependency to my existing maven java project i get following error

[ERROR] Failed to execute goal on project jna-test: Could not resolve dependencies for project com.example.notes:jna-test:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at com.mindoo.domino:domino-jna:jar:0.9.45: Failed to read artifact descriptor for com.mindoo.domino:domino-jna:jar:0.9.45: com.mindoo.domino:domino-jna-base:pom:0.9.45 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

And yes, the message is right, there is no domino-jna-base in maven central. What did i wrong?

Thanks for you help.

beranPro avatar Jun 15 '22 11:06 beranPro

Sorry about that, had some issues uploading to Maven Central and missed that one. Please retry. domino-jna-base is now available: https://repo1.maven.org/maven2/com/mindoo/domino/domino-jna-base/

klehmann avatar Jun 17 '22 16:06 klehmann

Here is an example for a standalone application using Domino JNA: https://github.com/klehmann/domino-jna/tree/develop/workspace-demo

klehmann avatar Jun 17 '22 16:06 klehmann

HI @klehmann , it's better now but now there is a other Problem:

[WARNING] The POM for com.mindoo.domino:domino-jna:jar:0.9.48 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details

He also can't find the class com.sun.jna.Memory

java.lang.ClassNotFoundException: com.sun.jna.Memory

beranPro avatar Jun 27 '22 09:06 beranPro

I used this pom.xml in my test. Not sure why the dependencies need to be added here. They are already part of the domino-jna pom.xml in Maven Central.

<project 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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>com.mindoo</groupId>
	<artifactId>jnatest</artifactId>
	<version>0.0.1-SNAPSHOT</version>

	<properties>
		<maven.compiler.source>1.8</maven.compiler.source>
		<maven.compiler.target>1.8</maven.compiler.target>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
		
		<maven.test.skip>true</maven.test.skip>
		
		<jna.version>4.5.1</jna.version>
		<metadataextractor.version>2.15.0</metadataextractor.version>
		<cglib.version>3.2.6</cglib.version>
		<concurrentlinkedhashmap.version>1.4.2</concurrentlinkedhashmap.version>
	</properties>

	<dependencies>
		<dependency>
			<groupId>com.mindoo.domino</groupId>
			<artifactId>domino-jna</artifactId>
			<version>0.9.48</version>
		</dependency>

		<dependency>
			<groupId>com.hcl.domino</groupId>
			<artifactId>domino-api</artifactId>
			<version>12.0</version>
			<scope>system</scope>
			<systemPath>C:\Program Files (x86)\HCL\Notes\jvm\lib\ext\Notes.jar</systemPath>
		</dependency>
		
		<dependency>
			<groupId>org.elasticsearch</groupId>
			<artifactId>jna</artifactId>
			<version>${jna.version}</version>
		</dependency>

		<dependency>
			<groupId>com.drewnoakes</groupId>
			<artifactId>metadata-extractor</artifactId>
			<version>${metadataextractor.version}</version>
		</dependency>

		<dependency>
			<groupId>cglib</groupId>
			<artifactId>cglib</artifactId>
			<version>${cglib.version}</version>
		</dependency>

		<dependency>
			<groupId>com.googlecode.concurrentlinkedhashmap</groupId>
			<artifactId>concurrentlinkedhashmap-lru</artifactId>
			<version>${concurrentlinkedhashmap.version}</version>
		</dependency>
		
	</dependencies>
</project>

klehmann avatar Jun 27 '22 13:06 klehmann