Currently, a typical localRepository configuration is declared like
this in the mojo.
/**
* Used to look up Artifacts in the remote repository.
*
* @parameter
expression="${component.org.apache.maven.artifact.factory.ArtifactFactory}"
* @required
* @readonly
*/
protected org.apache.maven.artifact.factory.ArtifactFactory factory;
This means, I can create my own local repository plexus component
implementation, declare it as a dependency in my pom in the plugin's
dependency list, and pass it in as a execution configuration like
<execution>
<configuration>
<local>myExecutionLocalRepository</local>
</configuration?
</execution>
</executions>
<dependencies>
my implementation goes here
</dependencies>
Where myExecutionLocalRepository is the plexus component name, known as "hint"
Is the right approach?
The motivation behind this is that I have a need to use dependency
plugin to copy and unpack some very large artifacts and I dont want
it to pollute my global local repository especially when using
snapshot artifacts. myExecutionLocalRepository is located under
target directory so that It can be cleanup via maven clean.
Advice is greatly appreciated.
Thanks
-D
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]