Impossible to import local dependency in IntelliJ Idea - java

Example :
<dependency>
<groupId>com.codindf</groupId>
<artifactId>morpion</artifactId>
<version>1.1</version>
<scope>runtime</scope>
</dependency>
This file is present on my .m2 directory and have a good structure
Have you a solution ? for this really basic problem ...
This is my parameters

I aplogize to all pepole try to answer to my post.
I made a mistake in the name of groupId
I wrote :
<groupId>com.codindf</groupId>
but the real name is :
<groupId>com.codingf</groupId>
Sorry to All !

Related

Package org.springframework.cloud.netflix.sidecar does not exist

I want to use sidecar to call flask with spring cloud, but when I import org.springframework.cloud.netflix.sidecar, hint does not exist.
I guess it's because there's no jar package for sidecar.But I don't know which jar package to use.
Who can help me?
thanks!
Need to include :
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-netflix-sidecar</artifactId>
<version>2.1.0.RELEASE</version>
</dependency>
https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-netflix-sidecar/2.1.0.RELEASE

What could possibly be wrong in creating maven project if you have error in pom.xml file

missing artifact org.glassfish.extras glassfish-embedded-web:jar3.1.1 and there's an error in the pom.xml file of my maven project using jersey.
please explain what is wrong? the error mark is in the dependency tag below
<dependency>
<groupId>org.glassfish.extras</groupId>
<artifactsId>glassfish-embedded-web</artifactsId>
<version>${glassfish.version}</version>
<dependency>
And also there an error in annotations #Path, #GET, and #Produces of myResource.java class
The error you have posted isorg.glassfish.extras glassfish-embedded-web:jar3.1.1. There seems to be issue with the declared version part as it is coming as jar3.1.1. It should be 3.1.1 only.
Make sure you have declared version correctly in the pom.xml file for this dependency.
Try this,
Right click -> Maven -> Update Project -> check "Force Update of Snapshots/Releases" and then click ok.
${glassfish.version} -> it mean you must define it. You can replace it with the version in mvn repository.
it like "2.27".
example :
<dependency>
<groupId>org.glassfish.extras</groupId>
<artifactId>glassfish-embedded-all</artifactId>
<version>3.2-b06</version>
<scope>test</scope>
</dependency>

UnsatisfiedLinkError: Native library (com/sun/jna/android-x86-64/libjnidispatch.so) not found in resource path (.)

i'm develop android app for sniffing packets from device.
I'm using pcap4j library, but when call Pcaps.getDevByAddress(), launches the exception.
Can you help me?
This is snipped code:
InetAddress destAddr = parsedPacket;
PcapNetworkInterface nif =Pcaps.getDevByAddress(destAddr);
Thanks
Not sure if this might still be an issue for you. Have you added both dependencies to you classpath?
Add the following to your pom.xml:
<dependencies>
<dependency>
<groupId>org.pcap4j</groupId>
<artifactId>pcap4j-core</artifactId>
<version>1.7.3</version>
</dependency>
<dependency>
<groupId>org.pcap4j</groupId>
<artifactId>pcap4j-packetfactory-static</artifactId>
<version>1.7.3</version>
</dependency>
...
</dependencies>
Also make sure you have installed pcaplib-dev on your machine. Depends on OS how to install it.
Did you perform these steps?
If so, have you given java root access (assuming you are on linux)? I have seen people getting issues after they used the set_cap command. Please let me know!
I guess you should add JNA as aar:
implementation 'net.java.dev.jna:jna:5.5.0#aar'
ref: https://github.com/java-native-access/jna/blob/master/www/FrequentlyAskedQuestions.md#jna-on-android

Where is the maven dependency for ConfigurableEmbeddedServletContainerFactory?

I am trying to follow this example for setting up SSL with Tomcat in Spring Boot. The example is unfortunately missing the import statements, so I tried to infer the correct import statement for ConfigurableEmbeddedServletContainerFactory.
However, I still encounter the following error:
The import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainerFactory cannot be resolved
I think this means I am missing the maven dependency for this particular class. Can anyone point me to what this is?
from code for file package is org.springframework.boot.context.embedded
maven dependency
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot</artifactId>
<version>x.x.x</version>
</dependency>

Importing Java OrientDB Packages

I am not new to Java per se... or looking up answers for myself. But for some reason I cannot import the OrientDB packages. I have looked at the following simple examples:
https://github.com/orientechnologies/orientdb/wiki/Java-Tutorial:-Introduction
Trying to work with OrientDB
example:
import com.tinkerpop.blueprints.TransactionalGraph;
import com.tinkerpop.blueprints.impls.orient.OrientGraph;
but I keep getting "package * does not exist" for any import combination I use.
I was under the impression that all I needed to get started was 'orientdb-community-1./lib/orientdb-core-1..jar'. Where is 'com', 'tinkerpoop' and 'blueprints' coming from?
Tinkerpop Blueprints is a standard for Graph Database API.
It is a separate project, you can find all the details here:
http://www.tinkerpop.com/
OrientDB supports Tinkerpop Blueprints, so it is part of the dependencies.
If you download latest OrientDB version, you will find a jar file named blueprints-core-**.jar under the /lib directory. This jar contains the com.tinkerpop.blueprints package.
To get started with OrientDB in your java application, you will need at least orientdb-commons.jar, orientdb-client.jar and orientdb-core.jar, but I suggest you to import into your classpath all the orient-*.jar files
try to import this libraries into your project
<properties>
<orientdb.version>2.1-rc4</orientdb.version>
</properties>
<dependencies>
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-core</artifactId>
<version>${orientdb.version}</version>
</dependency>
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-client</artifactId>
<version>${orientdb.version}</version>
</dependency>
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-object</artifactId>
<version>${orientdb.version}</version>
</dependency>
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-graphdb</artifactId>
<version>${orientdb.version}</version>
</dependency>
</dependencies>
Nevertheless, I'm currently working on a java based orientdb wrapper, designed to be the most user friendly and easy to use as possible. We are using this on a large scale project in my company, you can take a look at it if you want.. it might help!
https://github.com/alonsod86/orientdb-graph-wrapper
Once you download it execute mvn clean install and import it in your project, just like this
<dependency>
<groupId>es.alonso</groupId>
<artifactId>orientdb-graph-wrapper</artifactId>
<version>2.0.2-SNAPSHOT</version>
</dependency>
Hope it helps!

Categories

Resources