15

I currently moving to java from PHP.
Is there any tools equivalent like composer in PHP for JAVA?

Composer is a command line tools for easily download other library and put that in our local project.

3
  • 5
    Have you tried building your project with maven? Commented May 24, 2014 at 10:56
  • @Mureinik No, i really new to java :) Commented May 24, 2014 at 10:59
  • Maven is your godsend for implementing libraries. You just add the dependency to your pom.xml and boom. Commented May 25, 2014 at 0:39

1 Answer 1

16

The most popular tools for that are: Maven, Ivy, Grape, Gradle, Bundlr, SBT, Leiningen, but they're keeping dependencies for all projects in one folder. Composer keeps dependencies inside a project, in a subdirectory.

You can browse content of main Maven repository: https://mvnrepository.com/

Sign up to request clarification or add additional context in comments.

2 Comments

What if the dependency itself is a self developed library? e.g. I have a java jar 'abc' and this 'abc' is a dependency to my actual project. I want to use a specific branch of 'abc' (i.e. checking out the right branch, building it, and installing it so that it could be used in the main project). see my question here: stackoverflow.com/questions/34010168/…
In Composer there's -alias for that, in Maven-based dependency management there's -version (a number) and optional -type and -attempt (those can be words, any, except date or "SNAPSHOT") which can be used to name the feature you've added.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.