I'm missing the context on this - I'm not sure what primaryArtifact is
set to, but it sounds like you've got the right idea there (though it
should be artifact.getType(), ie war, not aar)
On 17/8/06 5:38 PM, Jochen Wiedmann wrote:
Hi,
the maven-war-plugin contains the following code snipped:
Artifact artifact = getProject().getArtifact();
if ( primaryArtifact )
{
artifact.setFile( aarFile );
}
else if ( artifact.getFile() == null ||
artifact.getFile().isDirectory() )
{
artifact.setFile( aarFile );
}
After reading this snippet, I wonder whether there isn't something
missing, like
else
{
projectHelper.attachArtifact( getProject(), "aar",
aarFile );
}
Thanks,
Jochen
--
Apache Maven - http://maven.apache.org/
Better Builds with Maven - http://library.mergere.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]