mthmulders / mcs

Search the Maven Central Repository from your command line!

Home Page:https://maarten.mulders.it/projects/mcs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Copy scope from default coordinates

bmarwell opened this issue · comments

Hi,

API coordinates should have the scope.

Currently:

bmarwell@wells ~/git/ $ mcs search javax.ws.rs:javax.ws.rs-api:2.1.1
Searching for javax.ws.rs:javax.ws.rs-api:2.1.1...

    <dependency>
        <groupId>javax.ws.rs</groupId>
        <artifactId>javax.ws.rs-api</artifactId>
        <version>2.1.1</version>
    </dependency>

Suggested:

bmarwell@wells ~/git/ $ mcs search javax.ws.rs:javax.ws.rs-api:2.1.1
Searching for javax.ws.rs:javax.ws.rs-api:2.1.1...

    <dependency>
        <groupId>javax.ws.rs</groupId>
        <artifactId>javax.ws.rs-api</artifactId>
        <version>2.1.1</version>
        <scope>provided</scope>
    </dependency>

I don't quite understand... how would mcs know what the desired scope is?

Well, how does http://mvnrepository.com/ know? If they have a list, then okay, I'd say drop this feature request. But it would be really handy to have e.g. all APIs or junit-artifacts have a provided-/test-scope by default.