I understand. OK, firstly you can only produce one artifact per POM. So for you to build 2 JARs you would either need to use a plugin for this purpose or create your own.
This is probably not ideal, so I recommend using 2 POMs. You don't have to change your layout much. Have a look at the following page: http://maven.apache.org/guides/mini/guide-using-one-source-directory.html The basic idea is to replace your main POM with a "parent" pom, which references to "child" poms. The first child will be the one that builds the project.jar. The second will be one that wraps the mibs into config.jar. Then the parent pom will reference these to as modules. Read the page, and see if that will help you. Quintin Beukes On Sun, Oct 18, 2009 at 3:12 PM, _MS_ <matija.slivo...@gisdata.com> wrote: > > > > Why does it have to be a separate JAR if only project1 depends on it? > > Quintin Beukes > > My project1 is actually web application but tests can also be run locally on > my computer. I keep all my config mib files in separate directory under > project directory > > project1 > |-src > | |-main > | |-java > | |-test > |-mibs > > So to save my self time I used to have ant script that jared configuration > into config.jar. Afterwords I could run application locally and also deploy > everything to remote server. > > Now I'm trying to use maven as primary build tool. > > -- > View this message in context: > http://www.nabble.com/Config.jar-project-dependency-tp25939781p25946570.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org