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:
Related
Im trying to run maven on a linux server that does not have internet connectivity.
I installed maven but when I run "mvn compile" on my java project, it gets stuck trying to download plugins.
How do I get past it? Is there a place to get a full install with all plugins required so it dosent have to download anything?
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-resources-plugin:jar:2.6 has not been downloaded from it before. -> [Help 1]
You can download all jars or import/move them already downloaded from another machine from userHome/.m2 to your ~/.m2 folder, and when you'll try to compile again it'll pull the libs/plugins from m2 folder without trying to download them.
No.
Running Maven does not make sense unless you are connected to a Maven repository.
If you have no internet connection then you need an internal Maven repository, i.e. a Nexus or Artifactory server in your company. Now this server does not only provide the dependencies for you, but also the plugins for Maven to run (of course, it has to get them somewhere from, so it needs some kind of connection to the internet).
I am not able to create maven project in eclipse. I tried some suggestions from google but all did not work. I am using windows os and eclipse 2018-12. See the error message in the image.
As per the error log shown in snapshot, You are getting this error because your eclipse is not able to connect to maven central repository to download the maven quick-app artifact(i.e. for standalone application).
If you are trying under proxy network than might be your organisation is blocking the maven central repository. In such case please configure your organisation remote repository details inside maven setting.xml.
If you are not working behind proxy than please delete .m2 directory from under C:\Users\<UserName> and try again.
Sometime we face issue with eclipse embedded maven, as it might get corrupted. If above solution won't work for you. Than try downloading letest version of maven. And use the same in eclipse.
To configure different maven in eclipse go to Window menu -> Preferences -> Maven -> Installations
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.
I have cloned the git repository from https://github.com/viatra/org.eclipse.viatra.examples
and imported the project incquery-demo-generic (located in /query/headless-maven) as a Maven Project in Eclipse. Unfortunately I get the following error when I open the project's pom.xml:
Furthermore everytime when I click on "Run As" -> "Maven install" or "Maven build..." I get the following error message in the console:
Failed to execute goal on project incquery-demo-generic: Could not resolve dependencies for project hu.bme.mit.incquery:incquery-demo-generic:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at org.eclipse.incquery:runtime:jar:0.8.0-SNAPSHOT: Failed to read artifact descriptor for org.eclipse.incquery:runtime:jar:0.8.0-SNAPSHOT: Failure to find org.eclipse.incquery:org.eclipse.incquery.parent:pom:0.8.0-SNAPSHOT in https://repo.eclipse.org/content/repositories/emf-incquery-snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of incquery-snapshot has elapsed or updates are forced -> [Help 1]
Blockquote
In the Maven Dependencies Folder I can find some, but not all necessary jar files.
I have tried "Project clean", "Maven update", "Maven build... (Goal: clean package)" and to delete the .m2 repository and to re-build the maven project, but nothing helps.
I also tried to download some dependencies as .jar files and add them to the build-path, but they contain nothing but pom.xml and properties-files themself, thus I keep getting "cannot be resolved to a type" errors in relevant parts of the Java src-code.
Can somebody successfully run this project in her/his eclipse?
I am not an expert on Maven Projects so please tell me what to do in "layman words".
Thanks & kind regards,
MCRaven
The projects in the VIATRA examples repository (I notice it as one of the committers of the VIATRA project) are somewhat unusual: they are Eclipse plug-in projects that have Maven build informations added via Maven Tycho.
One more thing here: the 0.8.0 version of EMF-IncQuery bundles was released in 2014, thus it makes sense that the corresponding snapshot versions are removed. This means to me that this example was not updated for a long time. This is somewhat by design - some examples are not updated for each released version, but they are not are still available for references. If you are explicitly interested in this example, please contact us on VIATRA project forums or Bugzilla and we will provide example-specific support there.
Inside Eclipse we usually not rely on Maven (and our experience is that Tycho-based projects often does not work with M2E correctly). You could try to update Maven dependencies for the org.eclipse.incquery projects to 0.8.0, but I am still unsure whether it will work or not.
On the other hand, I'd rather suggest to install the old EMF-IncQuery version into your Eclipse instance and then simply rely on the Java Development Tools and the Plugin Development Environment to compile the project, and simply ignore any errors in the Maven descriptors for now.
I'm using intelij. I have multiple maven projects.
I deployed new version of maven Project_1, in the logs intelij showed version like this 1.0.0-20170331.023320-3.jar
Then in other Project_2 in pom file at I set the version of Project_1 as LATEST and run install. And in the logs intelij shows that 1.0.0-20170330-253 version was downloaded. It has different timestamp and when I'm checking the file in the external libraries, it doesn't contain my recent changes.
Please, advise, what I'm doing wrong?
You may want to "Reimport all maven projects" in IntelliJ which will redownload the dependencies
Right click on the Project -> select Maven -> Click Reimport
First Please use mvn command line like mvn compile to find the problem.
Set the version to 1.0.0-SNAPSHOT not Latest, if you set the version to snapshot, if you using mvn compile command, I will check the dependency for the latest one in the maven repo. If you are using Intellij try to reimport the maven project.