Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
beranPro opened this issue Jun 15, 2022 · 4 comments
Open

Comments

@beranPro
Copy link

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.

@klehmann
Copy link
Owner

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
Copy link
Owner

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

@beranPro
Copy link
Author

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

@klehmann
Copy link
Owner

klehmann commented Jun 27, 2022

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 klehmann reopened this Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants