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

Reply via email to