hi..

add this to your pom:
<dependency>
                        <groupId>org.apache.maven</groupId>
                        <artifactId>maven-project</artifactId>
                        <version>2.0</version>
                        <scope>compile</scope>
                </dependency>


and this to your plugin:
/**
     * The maven project.
     *
     * @parameter expression="${project}"
     * @required @readonly
     */
    protected MavenProject project;

then you could have some fun ;)

Kaare



On 03/12/05, Allan Ramirez <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I think this is what you are looking for
>
> getCompileClasspathElements()
>
> you can find it in the maven-project component  source.
> org\apache\maven\project\MavenProject.java
>
> Jagan Padmanabha Pillai -X (jpadmana - Insight Solutions, Inc. at Cisco)
> wrote:
>
> >
> >Hi,
> >I am trying to get the mvn dependency classpath inside the plugin
> >written using java.
> >In maven 1 there seems to be a way for ant using
> >{maven.dependency.classpath}.
> >
> >Does anyone know how to get this classpath in maven2 ????
> >
> >Also in org.apache.maven.project.Project seems to have a method
> >getdependecyClassPath(). But I am not sure which jar file is this
> >Project class is in. when I put the above class in import statement its
> >erroring out.
> >
> >Please let me know
> >
> >Thanks
> >Jagan
> >
> >
> >
> >
> >
> >------------------------------------------------------------------------
> >
> >No virus found in this incoming message.
> >Checked by AVG Free Edition.
> >Version: 7.1.362 / Virus Database: 267.13.11/191 - Release Date: 12/2/2005
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

  • ... Kaare Nilsen
    • ... Jagan Padmanabha Pillai -X \(jpadmana - Insight Solutions, Inc. at Cisco\)
      • ... Kaare Nilsen
    • ... Jagan Padmanabha Pillai -X \(jpadmana - Insight Solutions, Inc. at Cisco\)

Reply via email to