Hi,
thanks, i was able to use it as a dependency, it was easy, but the problem
with the directory structure remains..
when my file is src/main/config/myxml.xml and i set the output directory to
be conf the result is
conf/src/main/config/myxml.xml
while i want it to just be
conf/myxml.xml

i guess that i'm doing something wrong here..

thanks.

On Tue, Oct 19, 2010 at 1:23 PM, Anders Hammar <and...@hammar.net> wrote:

> OK, move the config file to a separate project then. The use the dependency
> plugin as someone else suggested, and unpack.
>
> Have a look at the assembly plugin. You can control which folder stuff is
> added to in the archive. (define outputDirectory)
>
> /Anders
> On Tue, Oct 19, 2010 at 12:26, Maimon Oded <oded.mai...@gmail.com> wrote:
>
> > Hi,
> > Thanks for the very quick response.
> > I've one project that include a configuration file, the same
> configuration
> > file with same values need to be used in other projects (more than one),
> i
> > didn't want to keep the same file on multiple projects and maintain each
> of
> > them.
> >
> > i can change the structure of the project to maven structure but my issue
> > with it is that in assembly that i create i want all files in
> > src/main/config to be save to conf directory, but what the assembly
> plugin
> > does instead is creating directory structure like this
> > conf/src/main/config/<files> (i actually need conf/<files>)
> >
> > this xml file is being used by the other projects by sending the xml path
> > as
> > a VM parameter...
> >
> > i hope i made my self clear...
> >
> > thanks
> >
> > On Tue, Oct 19, 2010 at 10:48 AM, Anders Hammar <and...@hammar.net>
> wrote:
> >
> > > Your structure is not following the Maven file structure standard. All
> > > files
> > > should typically be in the appropriate directory below src (like
> > > src/main/config, src/main/scripts, etc).
> > >
> > > I find what you're trying to do strange. We would most likely be able
> to
> > > suggest a good solution if you provided more info on what you're trying
> > to
> > > actually achieve.
> > >
> > > I don't understand why you would like to assemble the content of a
> > project
> > > plus a minor part of some other project. What's the purpose? Why isn't
> > the
> > > xml file in the project to begin with?
> > >
> > > /Anders
> > >
> > > On Tue, Oct 19, 2010 at 09:55, Maimon Oded <oded.mai...@gmail.com>
> > wrote:
> > >
> > > > Hi,
> > > > I'm new to maven and I've a basic question that i hope that someone
> can
> > > > help
> > > > me with, my projects structure looks something like this:
> > > >
> > > > My project structure is simple:
> > > > - Project A
> > > >  - src
> > > >  - conf
> > > >    - myxml.xml
> > > >  - scripts
> > > >
> > > > - Project B
> > > >  - src
> > > >
> > > > I would like to have an assembly for project B that will include only
> > the
> > > > myxml.xml file from project A + all the files in project B,
> > > > is it possible? how?
> > > >
> > > > thanks,
> > > > Oded.
> > > >
> > >
> >
> >
> >
> > --
> >
> >
> > Oded.
> >
>



-- 


Oded.

Reply via email to