Nvm - I realized only after I sent this that the <property> needs to be
settings.localRepository, not localRepository.

Ok, I'm moving along now... 

-----Original Message-----
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 27, 2006 12:55 PM
To: Maven Users List
Subject: RE: passing along maven built classpath to ant plugin

I keep getting this:

E:\work\up-svcs\lty\proj\LTY-P000039\${settings.localRepository} not
found.

How come this isn't getting expanded?  I'm trying to write a findbugs
ant plugin and attempting to load some stuff out of there.  I have the
following in my mojo:

        <parameter>
          <name>localRepository</name> 
          <property>localRepository</property> 
          <required>true</required> 
          <expression>${settings.localRepository}</expression>
          <type>java.lang.String</type>
          <description>This is the location of your local
repository</description>
        </parameter>

And the following in my findbugs.build.xml:

...
     <fileset dir="${settings.localRepository}" casesensitive="yes">
...

And finally the following in my pom.xml where I have this plugin
configured:

        <configuration>
        <findbugs.home>${findbugs.home}</findbugs.home>
        <localRepository>${settings.localRepository}</localRepository>
        </configuration> 

Thanks for the quick response!

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 27, 2006 12:45 PM
To: Maven Users List
Cc: Maven Users List
Subject: RE: passing along maven built classpath to ant plugin

you can use ${settings.localRepository}


Thanks,
Raghurajan Gurunathan





"EJ Ciramella" <[EMAIL PROTECTED]>
09/27/2006 11:36 AM
Please respond to "Maven Users List"
 
        To:     "Maven Users List" <users@maven.apache.org>
        cc: 
        Subject:        RE: passing along maven built classpath to ant 
plugin


Can I get access to the localRepository variable in the same fashion?
Is there something like project.localRepository or
maven.localRepository?

We're using a different location for the repository as configured in our
settings.xml file. }

-----Original Message-----
From: Zarar Siddiqi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 4:36 PM
To: Maven Users List
Subject: Re: passing along maven built classpath to ant plugin

Yup, you can use these classpaths:

    * maven.dependency.classpath
    * maven.compile.classpath
    * maven.runtime.classpath
    * maven.test.classpath
    * maven.plugin.classpath

http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html

Zarar

On 9/26/06, EJ Ciramella <[EMAIL PROTECTED]> wrote:
> Is there some easy way to do something like ${project.classpath} and
> have that passed along to my plugin?
>
>

---------------------------------------------------------------------
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]





-----------------------------------------
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase & Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.

---------------------------------------------------------------------
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]

Reply via email to