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 <[email protected]> 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 <[email protected]> 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.

Reply via email to