[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Breaking up the MC project and Mavenizing it

pgier do-not-reply at jboss.com
Tue Mar 20 14:30:21 EDT 2007


"alesj" wrote : I think the way things are now - with directories and packages, ... - it's ok.
  | What we want is artifacts (jars) to include certain 'type': SPI, plugins (impl), tests.
  | Maven should create these artifacts on the package (directory) name basis: e.g. org.jboss.[project].spi should be a part of [project]-spi.jar.

Maven is not really set up to do this automatically, we could generate the separate artifacts using the assembly plugin, but there might be an issue with dependencies.

For example, if [project]-plugins.jar has a dependency on another project, I don't think there is a way to differentiate it's dependencies from [project]-spi.jar.  In other words, all the artifacts generated by the project share a pom, and therefor have the same dependencies.  So [project]-spi would always include the same dependencies as [project]-plugin.

For now, I will set it up to generate the multiple artifacts this way, and then if there are problems with dependencies, we can always change it later.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029939#4029939

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029939



More information about the jboss-dev-forums mailing list