On 12/12/2012 01:10 PM, Rafael
Benevides wrote:
Hi all,
For the maven-dependency-checker plugin (more details bellow or
at https://github.com/jboss/maven-dependency-checker
) we have 3 major features:
1. Detect unsupported dependency versions.
2. Detect api dependencies that should be relocated to
corresponding jboss-spec artifacts
3. Provide an excludes configuration to tell the plugin to
ignore things that the user is intentionally not using a
supported version of - especially for cases where there is no
supported version
For feature #1 I basically check if the GAV version has the
-redhat-N prefix but this is not working for all cases since
there are many libraries that is supported and it's not rebuilt
by Red Hat. One example is the Spring Sports Club in WFK.
I would like suggestions how can this plugin check if GAV is a
supported version. We can start thinking about having a
properties file with this information, but the management cost
of that seems too high. Maybe we can find an alternative way.
I'm opened to suggestion.
Thank you
-------- Mensagem original --------
Hi all,
Today, I pushed a new version of the maven-dependency-checker
plugin with the following changes:
1 - The relocated dependencies is checked on groupId and
artifactId of the declared dependency. So it's now possible to
detect uses of example: org.glassfish.main:javax.ejb and propose
the right relocate dependency
2 - Pete gave an excelent suggestion to check if a dependency
has a BOM for it. So it uses the JBoss Stacks project (http://www.jboss.org/jdf/stack/stacks/)
to discover all BOMs and them it looks for matches on the
managed BOM dependencies and project dependencies.
3 - The Readme instructions was updated with instructions on how
to use the plugin on command line without needing to add it on
the project pom.xml.
I believe that it's now ready to start using it.
Thank you.
Em 12-11-2012 11:44, Rafael Benevides escreveu:
The first functional version is available here:
https://github.com/rafabene/maven-dependency-checker
Please,
Feel free to provide any feedback.
Cheers
Em 08-11-2012 12:53, John Casey escreveu:
I've
started working with rbenevides on the Maven plugin we
discussed yesterday. He's jumping into coding the first
version, but I wanted to reflect the requirements we
discussed on IRC so we can get feedback.
Basically, it does three things:
1. Detect unsupported dependency versions.
2. Detect api dependencies that should be relocated to
corresponding jboss-spec artifacts
3. Provide an excludes configuration to tell the plugin to
ignore things that the user is intentionally not using a
supported version of - especially for cases where there is
no supported version
For #1, it's not clear whether we need to be verifying that
the dependencies used are from the same product release. If
so, this will be a fair bit more complicated, as we'll need
to download a product definition in terms of artifacts.
Additionally, we would probably want to provide a flag to
switch between WARN vs FAIL modes.
For relocations, we're currently thinking of loading the
list either from a maven artifact (type == properties,
perhaps), or else from some Git repository.
This is a fairly lightweight sketch, but are there any
questions/concerns so far?
_______________________________________________
jdf-dev mailing list
jdf-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jdf-dev
--
James R. Perkins
JBoss by Red Hat
_______________________________________________
jdf-dev mailing list
jdf-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jdf-dev