You never specify the scope of an artifact when you publish it. When someone declares a dependency to your artifact, they can specify the scope for that dependency (e.g. "test").
/Anders On Mon, Dec 16, 2019 at 7:01 PM Mohamed Ennahdi El Idrissi < mohamed.enna...@gmail.com> wrote: > Dear all, > > What should I mention in pom.xml to make my dependency published with > <scope>test</scope>? > > https://stackoverflow.com/questions/59360773/publish-artifact-with-scopetest-scope > > -- > Merci, > Mohamed ENNAHDI EL IDRISSI > > Oracle Certified Professional, Java SE 6 Programmer > < > https://www.youracclaim.com/badges/dd563cd0-d35f-458c-bc0a-dac60362416e/public_url > > >