How to use settings.xml in the build with repository http://repository.apache.org

2018-09-21 Thread Tibor Digana
Hi All, I am trying to fix HTTP 503 which comes from Maven Central, see INFRA-16951. I created a branch using ".m2/settings.xml" and Mirror http://repository.apache.org So I used it with "mvn -s ..." in Jenkinsfile and the file exists and has expected content (cat shows the content and path is a

Re: Packaging from Aether

2018-09-21 Thread Elliotte Rusty Harold
Found it. The type was hiding in the properties. That is, String type = artifact.getProperty(ArtifactProperties.TYPE, "jar"); On Thu, Sep 20, 2018 at 4:05 PM, Elliotte Rusty Harold wrote: > With Eclipse Aether I can read a pom and gather information in the > form of import org.eclipse.aet

Re: Packaging from Aether

2018-09-21 Thread Elliotte Rusty Harold
On Fri, Sep 21, 2018 at 3:21 AM, wrote: > a dependency has a type, but not really a packaging: a packaging is a recipe > to build a project that will produce multiple artifacts, each with its own > type > > see the comparison [1] > > and default artifact handlers [2] gives you informations abou

Re: Packaging from Aether

2018-09-21 Thread Elliotte Rusty Harold
On Thu, Sep 20, 2018 at 10:34 PM, Lennart Jörelid wrote: > Hello Elliotte, > > I usually use the depends-maven-plugin, which collects information about > dependencies within a property file. > The data format within this property file (typically placed within > target/classes/META-INF/maven/depend

Re: Packaging from Aether

2018-09-21 Thread herve . boutemy
a dependency has a type, but not really a packaging: a packaging is a recipe to build a project that will produce multiple artifacts, each with its own type see the comparison [1] and default artifact handlers [2] gives you informations about default types. The only misleading field IMHO is that