Is there a definitive list anywhere of all these "magic" values?
-----Original Message-----
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: 29 April 2004 05:10
To: Maven Users List
Subject: Re: Copying resources from repository
${maven.repo.local}/...
----- Original Message -----
From: "Jesper Linvald" <[EMAIL PROTECTED]>
To: "'Maven Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, April 28, 2004 10:57 PM
Subject: RE: Copying resources from repository
Hello,
Thank you for your answer. This is exactly what am doing right now - I guess
my problem is that I don't know the generic way to copy resources from local
repo to somewhere else: Of course I don't wont to write: copy
c:/documents$settings/someuser/etc. - I would like to write: copy
maven.localrepos.myresource or similar - I don't know the magic words for
this!
Do you?
I know that the maven.dependency.classpath includes the repository but not
the directories as I understand it - so the class.getResource("myResource")
want be able to load resources from the repository since it needs a relative
path. THIS is why I need to copy the resource to some place where a relative
reference (I.e just the name when the resource is in the ${basedir}) makes
sense.
Hope you understand my problem :)
Jesper
>-----Original Message-----
>From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
>Sent: 28. april 2004 14:32
>To: Maven Users List
>Subject: Re: Copying resources from repository
>
>
>----- Original Message -----
>From: "Jesper Linvald" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, April 28, 2004 1:59 PM
>Subject: Copying resources from repository
>
>
>> Hello all,
>>
>>
>> I need to copy an xml file from the repository into my project dir.
>>
>> Is there a way to do this that dosent break the "maven repository
>> philosophy"?
>
>Yes
>In your repo :
>repo
> ----your_groupId
> ----xmls
> ------your_file.xml
>
>In your project.xml
><dependency>
> <groupId>your_groupId</groupId>
> <artifactId>your_file</artifactId>
> <version>your_version</version>
> <type>xml</type>
></dependency>
>
>In your maven.xml:
>You can write a goal that copy your file from your local repository to
>your project directory.
>
>
>> The xml file is an argument to java which dosent recognize the file
>> even though I encluded the maven.dependency.classpath.
>>
>> It looks like this:
>>
>> <java classname="net.msl.util.busobjgen.BusObjectFacadeGenerator"
>> fork ="true" failonerror="true" maxmemory="128m">
>> <arg value="-x"/>
>> <arg value="md_ngp_facade_template.xml"/><!--
>This
>> is the file that I want to retrieve from the repository -->
>> <arg value="-s"/>
>> <arg value="src_gen"/>
>> <arg value="-t"/>
>> <arg value="src_gen"/>
>> <arg value="-d-"/>
>> <arg value="-f+"/>
>> <ant:classpath
>refid="maven.dependency.classpath">
>>
>>
>> I tried changing the xml file arg value into a -1.0.xml (this is its
>> name in the repository) extension - it dosent work!
>>
>> Hope you are able to help!
>>
>> Regards,
>>
>> Jesper Linvald
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.654 / Virus Database: 419 - Release Date: 06-04-2004
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.654 / Virus Database: 419 - Release Date: 06-04-2004
---------------------------------------------------------------------
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]
------------------------------------------------------------------------
For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.
Internet communications are not secure and therefore the Barclays
Group does not accept legal responsibility for the contents of this
message. Although the Barclays Group operates anti-virus programmes,
it does not accept responsibility for any damage whatsoever that is
caused by viruses being passed. Any views or opinions presented are
solely those of the author and do not necessarily represent those of the
Barclays Group. Replies to this email may be monitored by the Barclays
Group for operational or business reasons.
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]