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]