You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2021/05/20 11:47:45 UTC

[GitHub] [maven-common-artifact-filters] cstamas opened a new pull request #22: Dependency scopes cleanup

cstamas opened a new pull request #22:
URL: https://github.com/apache/maven-common-artifact-filters/pull/22


   Just like in case of plugins, this component (that
   is able to work only within Maven) should declare
   maven dependencies as provided.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-common-artifact-filters] cstamas commented on pull request #22: Dependency scopes cleanup

Posted by GitBox <gi...@apache.org>.
cstamas commented on pull request #22:
URL: https://github.com/apache/maven-common-artifact-filters/pull/22#issuecomment-845714260


   merged as 36e992b580dfdff8ee2c23d1196c77b074c6888f


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-common-artifact-filters] michael-o commented on pull request #22: Dependency scopes cleanup

Posted by GitBox <gi...@apache.org>.
michael-o commented on pull request #22:
URL: https://github.com/apache/maven-common-artifact-filters/pull/22#issuecomment-845155993


   Stupid question: Do you think this component could be reused in Resolver to decide whether an artifact will be pulled from a repo or not?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-common-artifact-filters] michael-o commented on pull request #22: Dependency scopes cleanup

Posted by GitBox <gi...@apache.org>.
michael-o commented on pull request #22:
URL: https://github.com/apache/maven-common-artifact-filters/pull/22#issuecomment-845303063


   @rfscholte, sad to say, but @cstamas is right. There is too much dependency on Maven to use it without Maven...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-common-artifact-filters] cstamas commented on pull request #22: Dependency scopes cleanup

Posted by GitBox <gi...@apache.org>.
cstamas commented on pull request #22:
URL: https://github.com/apache/maven-common-artifact-filters/pull/22#issuecomment-845299145


   @rfscholte unsure about this question... this component has hard dependency on maven-artifact, maven-model, maven-core (!), maven-plugin-api (!), resolver... so what does "outside of Maven" actually mean? Given those above, if someone wants to use it "outside", they most probably have to embed Maven into something (not a minor endeavour), and hence, I'd let them sort out their CP...  This is very common dependency in maven plugins, most often this component is usually running in maven along some plugin Mojo.
   
   But IMHO, this line of thought is wrong: is wrong to spend energy on "what if", let's make it lean for our use case, and let those brave devs from previous paragraph ping us, if they fail to use this component outside of Maven, ok? 😄 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-common-artifact-filters] rfscholte commented on pull request #22: Dependency scopes cleanup

Posted by GitBox <gi...@apache.org>.
rfscholte commented on pull request #22:
URL: https://github.com/apache/maven-common-artifact-filters/pull/22#issuecomment-845221968


   Just wondering if this library can be used outside of Maven? If so, then they should not have the provided scope.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-common-artifact-filters] cstamas closed pull request #22: Dependency scopes cleanup

Posted by GitBox <gi...@apache.org>.
cstamas closed pull request #22:
URL: https://github.com/apache/maven-common-artifact-filters/pull/22


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven-common-artifact-filters] rfscholte commented on pull request #22: Dependency scopes cleanup

Posted by GitBox <gi...@apache.org>.
rfscholte commented on pull request #22:
URL: https://github.com/apache/maven-common-artifact-filters/pull/22#issuecomment-845342579


   The question is related to the artifact-resolver, which doesn't have any dependencies on Maven (which is correct). 
   The artifactId `common-artifact-filter` suggest it could be used with artifact-resolver.
   Based on your answer it is not.
   I agree that it clearly shows that we still have no clear separation of classes. For that reason I would leave them as compile scope in the project as others look to our project as reference and it not clear why provided could be assumed.
   
   It is just something I wanted to say. I'll leave it up to you.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org