/**
     * Location of the local repository.
     * @parameter expression="${localRepository}"
     * @readonly
     * @required
     */
    private org.apache.maven.artifact.repository.ArtifactRepository
local;

    /**
     * List of Remote Repositories used by the resolver
     * @parameter expression="${project.remoteArtifactRepositories}"
     * @readonly
     * @required
     */
    private java.util.List remoteRepos; 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Thursday, January 05, 2006 9:46 PM
To: [email protected]
Subject: [m2] Mojo and localRepository

I'm not able to get the pointer to my local repository in my Mojo. I
looked at maven-projectreports-plugin, and it uses the expression:
${localRepository}. 

e.g. 

    /**
     * Local repository.
     *
     * @parameter expression=${settings.localRepository}
     * @required
     * @readonly
     */
    private ArtifactRepository localRepository;


I tried this in my Mojo and guess what, the field is null. 

I set the pointer to my local repository using the environment variable
MAVEN_REPOSITORY to point to R:\. I tried to set it in
MAVEN_HOME/conf/settings.xml, but no success either. 

How can I guess access to it?

Thanks,
Chris




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to