Skip to content
Advertisement

Tag: build-process

How to build jars from IntelliJ properly?

I have a project that contains a single module, and some dependencies. I’d like to create a jar, in a separate directory, that contains the compiled module. In addition, I’d like to have the dependencies present beside my module. No matter how I twist IntelliJ’s “build jar” process, the output of my module appears empty (besides a META-INF file). Answer

Can I add maven repositories in the command line?

I’m aware I can add maven repositories for fetching dependencies in ~/.m2/settings.xml. But is it possible to add a repository using command line, something like: The reason I want to do this is because I’m using a continuous integration tool where I have full control over the command line options it uses to call maven, but managing the settings.xml for

Advertisement