Hi Im having issues with gradle settings in my Java Android app in android studio.
Im trying to compile a github repository https://github.com/MatthewLM/peercoinj
My Code:
compile 'com.github.matthewlm:peercoinj:0.13.1'
This is the output:
Could not find com.github.matthewlm:peercoinj:0.13.1.
I hope you can help me
The version might have changed. You might try changing that line to:
compile 'com.github.matthewlm:peercoinj:+'
Be aware though that this method is not preferred as it can lead to unstable builds (eg. third party could release a newer version of their code which might break something in your code). Hope it helps. Good luck OP.
It looks like the artifact is not uploaded to maven repository.
So you need to install maven locally, clone the project from github.
Than run mvn clean install. This will install the artifact in your local maven repo
Only than you can use the artifact in your own project.
Related
I'm trying to make a Stash (Bitbucket Server) hook following this tutorial.
I installed the Atlassian SDK and ran both atlas-create-stash-plugin and atlas-create-stash-plugin-module.
However, Maven is unable to find any dependencies, despite them being in my local repository. I mean, look at this screenshot:
As you can see, the dependencies have successfully been installed to my local Maven repo, but IntelliJ (and Maven when I try to compile the plugin) are unable to locate the dependencies. Why?
It can be cache issue. So please try to do following in Intellij Idea:
File -> Invalidate Caches / Restart.
Also, you can try to reimport your project:
Try point to the repository and maven of Atlassian SDK installation:
I want to study the java spring portion of the Jbehave-tutorial project at https://github.com/jbehave/jbehave-tutorial.
The README.MD states the REQUIREMENTS for building at the bottom:
Building the tutorial has been tested with Maven 3.0.5-3.2.1 and JDK 1.6-1.7. Newer versions of Maven and JDK should work but could also present issues.If you find any, please report them via JIRA
On my computer My Computer I am running Maven Version: 3.3.3 and STS Version: 3.6.4 for 64-bit Windows 7.
I really don't want to make an Atlassian account in order to resolve this issue if I can resolve it on StackOverflow.
So these are the steps I took to build JBehave-tutorial on my machine:
git clone https://github.com/jbehave/jbehave-tutorial.git
mvn clean install -Pstable # Issued in the main parent folder 'jbehave-tutorial'
Imported into Spring Tool Suite (STS) as an existing maven project.
Received the following errors in STS:
This lead me to believe that maven did not correctly download and build those dependencies so I looked into the .m2\repository\org\jbehave folder and this is what I seen.
Did anybody else get this to work?
What workarounds are there?
What correct maven dependencies to specify for JBehave tutorial project in pom.xml(s)?
I'm not immediately clear on your specific situation but here are dependencies required to use JBehave without Spring. (example pom below - you'll only need gherkin if your user scenarios are in gherkin).
https://stackoverflow.com/questions/30685909/jbehave-dependencies-not-available-in-central-maven-repo
I'm also going to hazard a guess that you're going to need the below at the appropriate version.
<dependency>
<groupId>org.jbehave</groupId>
<artifactId>jbehave-spring</artifactId>
<version>4.0.3</version>
</dependency>
Maven cannot find "SNAPSHOT" dependencies.
You need to google "Maven + dependency name without specified version" and check what is the latest version of them and make appropriate changes in pom file.
For example I have jbehave-web-runner version 3.6-beta-2 NOT 3.6-SNAPSHOT.
I want to build the LanguageTool Java project from source. This page gives basic instructions for obtaining the "Maven artifact" with all the sources:
http://languagetool.org/java-api/
I'm an expert Java developer but I've never used Maven before. Can someone please tell me how to get the LanguageTool project and all source code into Eclipse so I can modify and build it?
Thanks in advance...
At the bottom of the page you linked (Language Tool) is another link to the svn repository. That's where you'll get the source code and instructions on how to build the tool yourself.
In general, open source projects will highlight the maven artifact as it allows others to use their code in the easiest way possible. Only a few folks like to build the code themselves so the links to the source repositories are often less conspicuous.
There is no automated way to do this.
Best is to start a basic maven project (manually or through a Maven Archetype, import the sources in the Standard Directory Layout, and start adding dependencies to the pom.xml in order to get it to compile.
Libraries like commons,lucene,... are pretty easy to find in the various maven repositories).
Other libs you will probably have to install yourself in your local repository or remote repository.
There's a maven plugin for eclipse if that is your preferred IDE.
I am trying to run LibreOffice's examples in a small Maven project. Netbeans does not seem to find dependencies in Maven.
For example:
import com.sun.star.awt.Point;
It seems hard to believe that LibreOffice's dependencies are not available in Maven. Or aren't they?
They are not..
http://repo1.maven.org/maven2/com/sun/star
http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.sun.star%22
Arguably that should be fixed. I would suggest to raise an issue with LibreOffice and in the mean time install your own repository server like Sonatype Nexus and deploy the needed jars there.
I need to add a Maven plugin to my Eclipse.
When I browsed Eclipse Market Place, there were loads of Maven dependencies, and some of them didn't work.
Which would you suggest?
I recommend you download the M2Eclipse plugin, it can be found on this link:
http://eclipse.org/m2e/
There is also a demo movie of what it does and how simple it is.
In your eclipse go to Help ->Install New Software and use this update site to install Maven:
http://download.eclipse.org/technology/m2e/releases