${localRepository.class} gives me ...
{bootclasspath=null/com/sun/rt/1.3.1_08/rt.jar}

Isn't this strange ?

Carlos Sanchez a écrit :
try localRepository.class to see what class is it, and then look into
the javadocs to see what properties are available

On 6/29/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote:

Isn't there anyone that knows what's behind the "localRepository" property ?

I've tried ${localRepository}/x/y/z and gets
{bootclasspath=[local] ->
file://D:/maven/M2repository/com/sun/rt/1.3.1_08/rt.jar}

I've then searched into maven2 sources and tried
${localRepository.location}, ${localrepository.basedir} but allways get
 {bootclasspath=null/com/sun/rt/1.3.1_08/rt.jar}

Any suggestion, please ?

Nicolas De Loof a écrit :
>
> That may be an interesting way to solve this issue.
> But for a workaround, do you know any way to set the compilerArguments
> using an ${xx} expression, based on the localRepository path ?
>
> Carlos Sanchez a écrit :
>> I think that feature needs to be implemented, an option to add a
>> dependency to the bootclasspath
>>
>> On 6/29/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote:
>>>
>>> That seems a good solution
>>>
>>> Could you please tell me how to get the absolute path to a dependency ?
>>> What is the maven2 equivbalent for maven 1
>>> "${plugin.getDependencyPath('com.sun:rt')}" ?
>>>
>>> Iv' tried :
>>>
>>>      <compilerArguments>
>>>          <bootclasspath>
>>>                    ${localRepository}/com/sun/rt/1.3.1_08/rt.jar
>>>          </bootclasspath>
>>>      </compilerArguments>
>>>
>>> And other solutions but I can't set the expected bootclasspath :
>>>
>>> [DEBUG]   (f) compilerArguments = {bootclasspath=[local] ->
>>> file://D:/maven/M2repository/com/sun/rt/1.3.1_08/rt.jar}
>>> ...
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>> [ERROR] BUILD FAILURE
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>> [INFO] Compilation failure
>>> ...
>>> Fatal Error: Unable to locate package java.lang in classpath or
>>> bootclasspath
>>>
>>>
>>>
>>>
>>> dan tran a écrit :
>>> > I think you need to fork the compiler and use compilerArguments
>>> instead
>>> >
>>> > -D
>>> >
>>> >
>>> > On 6/28/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote:
>>> >>
>>> >>
>>> >> Hello,
>>> >>
>>> >> <short version>
>>> >> How to set the bootclasspath used by maven-compiler-plugin ?
>>> >> </short version>
>>> >>
>>> >> My build must target JDK1.3 so I've configured compiler plugin to
>>> use
>>> >> JRE1.3 rt.jar as bootclasspath.
>>> >> Please notice I'd like to avoid to install a 1.3 JDK on every
>>> developper
>>> >> system and use <executable>.
>>> >>
>>> >> <plugin>
>>> >>        <groupId>org.apache.maven.plugins</groupId>
>>> >>        <artifactId>maven-compiler-plugin</artifactId>
>>> >>        <configuration>
>>> >>            <source>1.3</source>
>>> >>            <target>1.3</target>
>>> >>
>>> >>
>>> >>
>>> <bootclasspath>${localRepository}/com/sun/rt/1.3.1_08/rt.jar</bootclasspath>
>>>
>>> >>
>>> >>        </configuration>
>>> >>        <dependencies>
>>> >>            <dependency>
>>> >>               <groupId>com.sun</groupId>
>>> >>               <artifactId>rt</artifactId>
>>> >>               <version>1.3.1_08</version>
>>> >>            </dependency>
>>> >>        </dependencies>
>>> >>      </plugin>
>>> >>
>>> >>
>>> >> As this doesn't work (I've added a <code> "Test".split(","); </code>
>>> >> sanity check in a class so compilation may fail but doesn't) I've
>>> used
>>> >> -X to get the compiler configuration. Here it is :
>>> >>
>>> >> [DEBUG]   (f) compileSourceRoots =
>>> >> [D:\commons\platina\platina-core\src\test\java]
>>> >> [DEBUG]   (f) compilerId = javac
>>> >> [DEBUG]   (f) debug = true
>>> >> [DEBUG]   (f) fork = false
>>> >> [DEBUG]   (f) optimize = false
>>> >> [DEBUG]   (f) outputDirectory =
>>> >> D:\commons\platina\platina-core\target\test-classes
>>> >> [DEBUG]   (f) outputFileName = platina-core-1.0.0-SNAPSHOT
>>> >> [DEBUG]   (f) showDeprecation = false
>>> >> [DEBUG]   (f) showWarnings = false
>>> >> [DEBUG]   (f) source = 1.3
>>> >> [DEBUG]   (f) staleMillis = 0
>>> >> [DEBUG]   (f) target = 1.3
>>> >> [DEBUG]   (f) verbose = false
>>> >> [DEBUG] -- end configuration --
>>> >>
>>> >> There is no "bootclasspath" property.
>>> >> According to
>>> >>
>>> http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html
>>> >> this does not exist.
>>> >> This option was used on a previous version of maven2 / compiler
>>> plugin.
>>> >>
>>> >> Is this option deprecated (and removed), and why ?
>>> >>
>>> >> Nico.
>>> >>
>>> >>
>>> >> This message contains information that may be privileged or
>>> confidential
>>> >> and is the property of the Capgemini Group. It is intended only
>>> for the
>>> >> person to whom it is addressed. If you are not the intended
>>> >> recipient,  you
>>> >> are not authorized to read, print, retain, copy, disseminate,
>>> >> distribute,
>>> >> or use this message or any part thereof. If you receive this
>>> message in
>>> >> error, please notify the sender immediately and delete all
>>> copies of
>>> >> this
>>> >> message.
>>> >>
>>> >>
>>> >>
>>> ---------------------------------------------------------------------
>>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>>> >>
>>> >>
>>> >
>>>
>>> This message contains information that may be privileged or
>>> confidential and is the property of the Capgemini Group. It is
>>> intended only for the person to whom it is addressed. If you are not
>>> the intended recipient,  you are not authorized to read, print,
>>> retain, copy, disseminate,  distribute, or use this message or any
>>> part thereof. If you receive this  message in error, please notify
>>> the sender immediately and delete all  copies of this message.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>
> This message contains information that may be privileged or
> confidential and is the property of the Capgemini Group. It is
> intended only for the person to whom it is addressed. If you are not
> the intended recipient,  you are not authorized to read, print,
> retain, copy, disseminate,  distribute, or use this message or any
> part thereof. If you receive this  message in error, please notify the
> sender immediately and delete all  copies of this message.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.


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





This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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

Reply via email to