Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I have created a library to use some utilities I need in multiple projects. So lets say I'm building a new version of the library and overwrite the old one, do my other project automatically update the library to the newer version when I reload my project? (Or when I build it)
You should not be referencing external libraries by relative path unless you have a good reason for it, exactly for reasons like these. Ideally you want to use a build automation tool which will handle this, for example Maven, Gradle or Ant, so that the dependencies are included on compile and are a part of your JAR or whatever you are building your project into.
https://www.baeldung.com/ant-maven-gradle
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'm trying to get a maven plugin (specifically Jacoco) to run on every maven project, but I can't find much info on this. I don't think settings.xml would work and the lifecycle extension documentation isn't very helpful either.
Any ideas?
Usually, you declare such plugins in a company parent POM and use it as parent in all your projects.
according to maven doc
https://maven.apache.org/settings.html
I think that you can't enforce a plugin on every maven project of a given host. there's no settings directive to do that.
Anyway you can facilitate the command line plugin dedicated goal through pluginGroups settings section.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I just want to create several Spring-Boot applications. But I want to create them all in the same project in parallel. At the end, when I'm building all the stuff via maven just one jar-file should be created. One Jar file which is including all applications.
(Optional: not sure if that is even possible) Each project should have its own pom file and artifact id.
To start a particular application of this one jar file, I want to add some profiles (or something similar, special parameter) so that I can simply start a subproject by given parameter or profile.
I just started with the answer i already got. Made the subprojects, but here every subproject is created in an own jar file. That is exactly not what i want ;).
You have an idea?
Tanks a lot in advance.
ps: I'm using IntelliJ IDEA
Yes, you can do it.
For this you can build different individual spring-boot project and accumulate all project into one parent project. Then, you can use your every project individually also can use as a parent jar file.
For more details multi-module-maven spring-boot-multiple-modules
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a library that I got it from github and I wanna make changes in some of the methods and layouts.how can I do it?
also I should say my workplace is AndroidStudio and use Gradle for adding library to my project.
Is there a way to manipulate gradle libraries?!
There are 2 solutions for these:-
u can download the .zip of the library modify it and import as a module in android studio project
clone the repository ,modify it and then upload it mavencentral so that u can use as dependency in studio or download .zip after modifying it and import as android studio project
If you use any function related with that library in your project you can access the specific class using Control + Left click on the function and go any deep you need. Then you can make it there the local modificacion of the library.
It is also not so recomended to make major changes.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am programming a YouTube-Downloader, and I'd like to use the 2 libraries VGet and WGet, since no other library worked. How do I embed those into my project? I'm using IntelliJ 14.
As noted at the bottom on the pages of those two libraries, the libraries are available on Maven Central.
You could search on Maven for "com.github.axet", e.g. http://search.maven.org/#search%7Cga%7C1%7Ccom.github.axet
Then you'll see the vget and wget libraries. By clicking on the latest version, you come to a page where there is also a jar-file to be downloaded.
But please be aware: Both libraries require additional libraries (e.g. some of the Apache commons libs), which you'll need as well. It is thus highly recommended, to use a dependency management tool like Maven, Ivy or Gradle for your project. I don't know IntelliJ that good, but at least Maven should be supported out of the box. Then all you have to do is specify that you want to use wget and vget, and libraries used by wget or vget will be automatically added to your classpath as well.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
OSGi allows to add/change dependencies aka bundle, when Maven allows to add/change dependencies aka jars.
Then what the difference? It's like hitting the one goal by different ways
Maven is more of a build system you use to create OSGi bundles. The maven creators call it (I might be wrong on this) life cycle management tool. It helps you build, test, integrate and release (also deploy) your software. This includes dependency management on the library or component base.
OSGi on the other hand is more of a runtime thing where a bundle can add services or consume others. (I'm obviously no OSGi expert)
So you can use maven to create OSGi bundles but both technologies do not live in the same context. I think you cannot compare them. They serve a very different purpose.