Hot questions for Using Ubuntu in sbt
I had created a maven project using java . Now i want to create a maven dependency so that any other can use this dependency in his own sbt project and will be able to access functions of my maven project .
e.g. As we do , if we want to use akka in our sbt project , then we simply write the mvn dependency plugin( "com.typesafe.akka" %% "akka-slf4j" % "2.4.8") for akka in my sbt project . and we can access all those class and functions provided by akka .
Simillarly i want to create some plugins for my maven project .
Please guide me how should i start ?
Thanks in advance.
Once you have compiled and tested your libraries you need to install
mvn install it to repository, it can be your company hosted shared repository and any public repository. You should be able configure this repository settings in your pom.xml or settings.xml file.
Once you installed your artifact in a particular repository, your co-worker or any other can access them in java or scala, as long as they have the access to this repository. Typically they will have to specify your repository in there pom xml.
On asking java -version -
java -version bash: /home/user/jdk-8u221-linux-x64/jdk1.8.0_221/bin/java: Permission denied
it says permission denied , but on using sudo it gives. Due to which intelliJ is also not able to build project . How to get access or how do I provide priveleg to the user
also showing problem in intellij -
You could try this command
sudo chmod a+x /usr/bin/java