android-soda-client not found in Maven repository - java

Hi I am following the directions in https://github.com/socrata/soda-android-sdk to include the android-soda-client as a gradle/maven dependency in my build.gradle, but the dependency is not resolved. I looked in the Maven Repository for com.socrata and didnt see the dependency in there either. Does this mean that the library has to be built from source for each Android app?

Related

Spring Boot project converting from gradle to maven

I'm new to Spring Boot and I'm having some issues combining several sample projects because their dependencies are managed by Maven and Gradle respectively. My goal now is to convert all the Gradle projects (build.gradle) tp Maven (pom.xml) but can't seem to find a suitable tool.
Is there any guide on the steps to accurately convert a build.gradle file to pom.xml or it's simply not possible?
I've searched and tried the maven-publish plugin, and thought it would give a ready-to-use pom.xml but the pom-default.xml generated contained some syntax errors and can't be used for setting up a maven project.

Gradle dependency not working on same version of build

At our company, we use Artifactory to manage artifacts and dependencies of Gradle.
We have library that was build with Gradle 6.0.1, in addition, have a micro-service that was built with Gradle 6.0.1 that is using this library as a dependency.
I verified that this library exists in the declared repo.
When we try to build the project we get an error that this library doesn't exist in the declared repositories and that we should declare the correct one.
The weird part is that if we downgrade the micro-service to Gradle version 5.6.2 the library does get download and working.
We also tested it with other older micro-services that we have based on a template project that is built with Gradle version 4.10.3 and It's also working in them.
What could be the issue?
The library I was referring to in my question didn't have the POM file published with it.
So either I will need to publish it again with the POM being generated (since the library itself was built with Gradle and not Maven - there is a way to generate POM with Gradle)
or:
I will add the following code to build.gradle file so Gradle will download the artifact even though it doesn't have POM file.
repositories {
maven {
url uri('lib')
metadataSources {
artifact()
}
}
}

Maven Dependency missing artifact : jhotdraw

I am currently working on a Java project using Maven. In my pom.xml I am getting this error.
Missing artifact org.jhotdraw:jhotdraw:jar:6.0b1
I have added this dependency
<dependency>
<groupId>org.jhotdraw</groupId>
<artifactId>jhotdraw</artifactId>
<version>7.6.0</version>
</dependency>
to my pom.xml. But still the error is same.
Can someone help me?
That version of org.jhotdraw.jhotdraw does not exist on Maven Repository, the last version available on Maven Repository is 7.4.1
Either you have made an error as to the version or group id (I see there is a 7.6.0 package under org.opentcs.thirdparty.jhotdraw, but don't know if it's the same). Alternatively, you may have to manually download and install that package, check out...
How to include custom library into maven local repository

maven is not downloading any dependency that I have add

I have install maven and JDK and tried to create maven project and add some dependencies, as you can see in the screenshot but the dependency is not downloading so I can not import. can you help.
That's because you are using dependencyManagement, where you only specify dependency meta-information, but not the actual dependencies.
More details about managing dependencies via Maven you can find here:
maven dependency mechanism
maven dependency management
Change the version of guice to 4.1.0
What it seems like there is no 4.1
https://mvnrepository.com/artifact/com.google.inject/guice

How to use (or integrate) maven pom.xml with an Eclipse Plugin project for dependency management

I'm developing a plugin for eclipse, but I'm having issue with including dependencies in my project.
Currently I am able to include hardcoded dependencies like specified here: http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Fguide%2Ftools%2Feditors%2Fmanifest_editor%2Fdependencies.htm
However, I'd like to include a dependency of a project I've worked on, this way when I make changes to that dependency, I will get the new features in my plugin project.
I really like working with maven pom.xml files, how can I include this in my eclipse plugin project? Or is this even possible? I'd appreciate anyones thoughts or recommendations on this.
You can try to find a Maven plugin on the Eclipse Marketplace, like M2E. See this SO question.

Categories