download a large size project from maven repository - maven

my professor have assigned me to download a large size project from Maven repository and then run it through findbugs to report errors, if any.
I have installed Maven and started creating a simple project but I need to download an existence project in maven so is there any help on how I can download a large project from maven?

Related

Is it possible to change dependencies in a maven plugin programmatically?

I am building a maven plugin which I would like to attach to a project which uses the artifact of another project which I'm building.
For instance:
Project A --> Project B
I could run Project A with two different branches of Project B so I would like to checkout and generate the artifact on demand.
Is it possible to access the maven dependencies of the project and remove or add one or trigger another project build?

Best practice to add a maven dependency to an Eclipse RCP Plugin

I want to add some GitHub projects as dependencies to my Eclipse RCP Plugin. The GitHub projects are oshi and leshan.
Both GitHub projects provide maven builds over maven central which i could use.
But as i understand so far i cant use these builds directly in an Eclipse RCP Plugin because it requires OSGI-Bundles - in contrast to an "classic" Eclipse Java project.
So far i found three ways of dealing with this problem:
let Eclipse convert the JARs to an OSGI-Bundle and add them to a Plugin which i can make a dependency on (described here https://stackoverflow.com/a/3594698/12029492)
look if the GitHub projects are available on Eclipse Orbit and add the p2 Repository to my Target Platform. (described here https://stackoverflow.com/a/56854979/12029492) Sadly on the Orbit site is only the oshi project in an older version than it is on GitHub.
create my own p2 repository with p2-maven-plugin and add it to my Target Platform.
I also looked into Tycho but as far as i understand you can only add a p2 repository as a dependency in Tycho, which leads again to the problem of creating one.
Is there another/better way of dealing with Non-OSGI-Bundle Maven builds in an Eclipse RCP Plugin?
EDIT: i found for me the best way to use gradle (a gradle plugin bnd-platform), to automatically resolve the dependencies using maven central and create a local p2 repository, described in Option 1 here https://stackoverflow.com/a/29509794/12029492
Recently the Eclipse Maven (M2E) implemented tight integration of Java libraries from Maven central into the target platform. With this, you can easily add Java libraries to your target platform and they can be converted (if necessary) on the fly to OSGi bundles including their dependencies.
See https://www.vogella.com/tutorials/EclipseJarToPlugin/article.html for how to using Java libraries (from Maven Central) for OSGi, Eclipse Plug-in and Eclipse RCP development.
This extension is also supported with the latest Maven Tycho version for command line builds, see https://www.vogella.com/tutorials/EclipseTycho/article.html

copying packages from different projects to another project using maven

i have different maven projects, i planning to create one more maven project in that i want to copy some packages from above projects. Can I do copy the packages from other projects to another project using maven ?

Is there a way to generate a license report for a whole maven repository?

I want to check the licenses of my maven repository. I know how to generate a license report for a maven project (see Maven Project Info Report) but not for a whole repository.

Create a Mule deployable archive from a domain project using Maven

When I export my domain project from Anypoint Studio using the "Anypoint Studio Project to Mule Deployable Archive" option, there is a checkbox saying Export project associated with this domain
This will generate a zip file contain the domain project as well an apps folder containing deployable versions of the associated apps. I can then take this file and deploy it to the /domain folder on the server to deploy my entire Mule solution. Is there any way to generate the same thing from Maven?
When I run mvn clean package against the domain project it generates a zip file in the /target folder but this is missing the apps inside.
How can I generate the full archive using Maven?
(I am new to Maven so may just be missing a different goal I should be specifying or maybe there is a plugin I should use?)
here you will find documentation about how to create a Mule domain using Maven. You can also check this GitHub project which aggregates several Maven plugins and archetypes for Mule, in particular, pay attention to the Mule Domain archetype.
Regards.

Resources