On Tuesday, 27 August 2013, Barrie Treloar wrote: > On 21 August 2013 00:42, Richard Sand <rs...@idfconnect.com <javascript:;>> > wrote: > > Is there any merit to the idea of having a configuration option in > maven-war-plugin to include attached artifacts in the webapp in the same > way it includes dependent artifacts? > > The MavenProjectHelper.attachArtifact requires a type or classifier in > order to be used. > > The default artifact and the attached artifact are different > dependencies, and so you need to specify them twice for them to be > included in the webapp. > One for the default artifact and one for the attached artifact (which > has the type or classifier specified so that you can tell the > difference). > > I dont use the war plugin, but I specifying the dependency on the > attached artifact should mean that it appears in your war.
And better still, since the obfuscated artifact *should* have the same transitive dependencies, it would be the one case where two artifacts from the same module would be ok. OTOH if obfuscation adds shade-like dependency reduction *then* it needs to get a separate GAV > > Have you tried this? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org <javascript:;> > For additional commands, e-mail: users-h...@maven.apache.org<javascript:;> > > -- Sent from my phone