Okay I found the answer my self.
The Installer reads the extension is from
getProject().getArtifact().getArtifactHandler().getExtension()
And DefaultArtifactHandler implementes the code
public String getExtension()
{
if ( extension == null )
{
extension = type;
}
return extension;
}
So hereby the extension is normal == type and sametime package
defaults to type.
This means that
normal extension== type == package
/Anders
On 20/03/2009, at 12.36, Anders Kristian Andersen wrote:
Hi There
packaging
jar makes a .jar file,
war a .war file,
ear a .ear file,
etc.
So it would be simple to day that the file extension == packaging
But that is not the case for maven-plugin it still produces a .jar
file !!!!
I want to make a packaging=citem that produces a .tar.gz
Until now I have not been able to make it produce anything else
than .citem
I am using a call like: getProject().getArtifact().setFile(citemFile);
And I get a tar.gz file produced, because I make it my self, but
installer:installer will install a file with extension ".citem"
I have looked into the maven-plugin-plugin and cannot se where it
tells installer:install not to use extension maven-plugin ??
So can anyone give me a hint.
/Anders
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]