dependencies not being downloaded from Jfrog artifactory using gradle - java

I have my project jar published in Jfrog artifactory after being build. Now when some other project wants to download this and its dependencies, they have added it as a dependency in their build.gradle file. However, when we are trying to execute "gradle dependencies", only the project jar is being downloaded and not its dependencies.
Can someone help why the dependencies are not being downloaded.
Note: The pom.xml for the project jar is not uploaded to artifactory. Is this absolutely mandatory for downloading dependencies for project jar ?

Related

Maven dependencies in external jar files not loading

I'm having a spring based project which does not have any build management tools like maven/gradle. For dependencies I'm adding the jar files to the build path. Some dependencies like aws-java-sdk and others having only pom.xml files in their jar files. These additional dependencies for the jar files are not getting downloaded from maven central repo. Is there any additional configuration need to be done for this?
For dependency resolution, you need a build tool.
The standard tools nowadays are Maven or Gradle.

How can I upload the jar file in my gradle local caches to my own nexus 3.0?

I am using gradle to build my project , and I build a maven repository by nexus 3.6.x in our company intranet,and it can not access extranet for example maven cantral repositories. So I want to upload my gradle local caches to the maven repository I built so others can download the jar files the project needed. But their are many jar files and their dependencies, how can I batch upload them to my maven repository?

Gradle build jar of jars

I have project A and B, both built in jenkins and pushed to artifactory.
Project C has dependencies on A and B and I can download each project's dependencies, but Gradle complains that the libraries stored in those JARs were not imported at compile time. Does anyone have an idea how to instruct Gradle to compile the libraries within the JARs?

Maven dependencies .jar files are not found after deleting .m2 repositry folder

i was getting below error while creating Maven Project in Eclipse mars in javaEE perspective.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-war-plugin:jar:2.2
So by some search i found that by deleting .m2 repository folder i will get rid of that error.After that i created a maven project in eclipse and gave run as choose maven build->clean install.after this inside libraries in maven dependencies i find only junit-3.8.1.jar file,other .jar files are not found.What should i do to add those .jar files and inside repositry some folders like asm,xmlpull,net,javax,io,commons-lang,commons-io files are missing
any suggestions and answer are appreciated.

Build the pom file to download the dependencies with eclipse

I download a j2ee project with a pom file which mention the dependency jar files needed. I want to know to run this pom file and download the jars need for my project? I right click and ran the pom file as maven build. Then it prompt me the Edit and Configuration UI which has the goals and profiles.
What are the values that i need to specify here?
Also is there any special configuration i need to add to eclipse (helios)?
How does the necessary jar files downloaded? Is it from the xsi:schemaLocation location specify in the pom file?
You can use these maven goals for that.
eclipse:eclipse - Download the dependency jars and set them to the classpath(you need to configure your settings.xml in the maven with the maven archiva repo path for maven to download jars from there)
install - build the project and install it in the local repo.
Have a look at this answer for the whole list of goals.
IF you install the Maven to Eclipse integration plugin (m2e), Eclipse will automagically add the project dependencies to the project's build path, and download them in the process.

Categories