Skip to content

cstamas/resolver-extras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resolver Extras

Artifacts:

conditional-a

An example artifact that optionally depends on conditional-b.

conditional-b

An example artifact that has activationCondition in form of artifactPresent(org.slf4j:slf4j-api).

consumer-a

An example artifact that declares capability consumption on label slf4j-backend.

provider-a

An example artifact that declares capability provider on label slf4j-backend.

Examples

capability

  • Case1: mvn package build FAILS - consumption not satisfied.
  • Case2: mvn package -P satisfy, here profile pulls in provider-a and consumption is satisfied, build SUCCEEDS.
  • Case3: mvn package -P discover, here profile provides instructions how to discover provider, build SUCCEEDS.

PoC:

TBD

conditional

  • Case1: mvn toolbox:tree dependency slf4j-simple is absent from tree (condition is not satisfied).
  • Case2: mvn toolbox:tree -P satisfy, dependency slf4j-simple is present in tree (condition is satisfied).

PoC:

See https://gist.github.com/cstamas/e4236de328b5da3df1e7c743eaa5abfa or https://gist.github.com/cstamas/571c11d40c9634122109dd3cc8825cb2 The implementation happens within Resolver collection and has nothing to do which tool we use to "draw the tree".

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors