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
<[email protected]> wrote:
> With Eclipse Aether I can read a pom and gather information in the
> form of import org.eclipse.aether.graph.Dependency and
> org.eclipse.aether.artifact.Artifact objects.
>
> Is there some way from these or related objects I can gather the
> information about the packaging of the dependency? That is, the type
> child element of the dependency element in the original pom.xml file?
>
> I seem to be able to get the extension of the file, but that's not
> quite the same thing.
>
> --
> Elliotte Rusty Harold
> [email protected]
--
Elliotte Rusty Harold
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]