maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anders Hammar <and...@hammar.net>
Subject Re: Assembly Plugin
Date Tue, 19 Oct 2010 11:23:37 GMT
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.maimon@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 <anders@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.maimon@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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message