Re: how can I filter the resources of one of the dependencies before building an EAR?
On Wed, Jun 24, 2009 at 9:31 AM, Sergio Rodriguez wrote: > > Thanks for your answers. Is it possible to filter the contents of an EAR? I > thought you could only do that by previously unpacking the resources in a > tmp directory. Then you misunderstood my proposal. My proposal is to keep your ear project like it is (no token filtering) and then reuse the EAR to do the filtering according to your environment. You could do this through Maven or with a simple ant script that you ship with your distribution. What's missing is a plugin that performs the filtering on an existing file (no copy just overwrite) and that takes arbitrary resource set. I have actually implemented a custom plugin that does that but maybe it exists somewhere now. S. > > > > snicoll wrote: > > > > It would much more powerful to perform that transformation when you > > actually > > deploy the artifacts on the server instead of burning the value in > > something > > you could potentially deploy on the repository > > > > I would leave the token in the file and add a filtering procedure when > the > > app is built and deployed. You lost the ability to copy an ear right the > > way > > but you could have that with a separate project that relies on your ear > > and > > perform the transformation for you. > > > > S. > > > > On Tue, Jun 23, 2009 at 9:10 AM, Sergio Rodriguez > > wrote: > > > >> > >> Hello, > >> > >> I have an EJB project that is a dependency of several of my projects. I > >> need > >> to modify the JNDI name at the EJB's jboss.xml so I can deploy several > >> apps > >> on the same jboss server. > >> > >> How can I filter the resources of an already-compiled dependency? I have > >> tried to unpack-dependencies and filter them, but don't know how to pack > >> them again into a new EJB for my EAR. > >> > >> Any suggestions? > >> -- > >> View this message in context: > >> > http://www.nabble.com/how-can-I-filter-the-resources-of-one-of-the-dependencies-before-building-an-EAR--tp24160990p24160990.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 > >> > >> > > > > > > -- > > Large Systems Suck: This rule is 100% transitive. If you build one, you > > suck" -- S.Yegge > > > > > > -- > View this message in context: > http://www.nabble.com/how-can-I-filter-the-resources-of-one-of-the-dependencies-before-building-an-EAR--tp24160990p24180002.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 > > -- Large Systems Suck: This rule is 100% transitive. If you build one, you suck" -- S.Yegge
Re: how can I filter the resources of one of the dependencies before building an EAR?
Thanks for your answers. Is it possible to filter the contents of an EAR? I thought you could only do that by previously unpacking the resources in a tmp directory. snicoll wrote: > > It would much more powerful to perform that transformation when you > actually > deploy the artifacts on the server instead of burning the value in > something > you could potentially deploy on the repository > > I would leave the token in the file and add a filtering procedure when the > app is built and deployed. You lost the ability to copy an ear right the > way > but you could have that with a separate project that relies on your ear > and > perform the transformation for you. > > S. > > On Tue, Jun 23, 2009 at 9:10 AM, Sergio Rodriguez > wrote: > >> >> Hello, >> >> I have an EJB project that is a dependency of several of my projects. I >> need >> to modify the JNDI name at the EJB's jboss.xml so I can deploy several >> apps >> on the same jboss server. >> >> How can I filter the resources of an already-compiled dependency? I have >> tried to unpack-dependencies and filter them, but don't know how to pack >> them again into a new EJB for my EAR. >> >> Any suggestions? >> -- >> View this message in context: >> http://www.nabble.com/how-can-I-filter-the-resources-of-one-of-the-dependencies-before-building-an-EAR--tp24160990p24160990.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 >> >> > > > -- > Large Systems Suck: This rule is 100% transitive. If you build one, you > suck" -- S.Yegge > > -- View this message in context: http://www.nabble.com/how-can-I-filter-the-resources-of-one-of-the-dependencies-before-building-an-EAR--tp24160990p24180002.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
Re: how can I filter the resources of one of the dependencies before building an EAR?
It would much more powerful to perform that transformation when you actually deploy the artifacts on the server instead of burning the value in something you could potentially deploy on the repository I would leave the token in the file and add a filtering procedure when the app is built and deployed. You lost the ability to copy an ear right the way but you could have that with a separate project that relies on your ear and perform the transformation for you. S. On Tue, Jun 23, 2009 at 9:10 AM, Sergio Rodriguez wrote: > > Hello, > > I have an EJB project that is a dependency of several of my projects. I > need > to modify the JNDI name at the EJB's jboss.xml so I can deploy several apps > on the same jboss server. > > How can I filter the resources of an already-compiled dependency? I have > tried to unpack-dependencies and filter them, but don't know how to pack > them again into a new EJB for my EAR. > > Any suggestions? > -- > View this message in context: > http://www.nabble.com/how-can-I-filter-the-resources-of-one-of-the-dependencies-before-building-an-EAR--tp24160990p24160990.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 > > -- Large Systems Suck: This rule is 100% transitive. If you build one, you suck" -- S.Yegge
Re: how can I filter the resources of one of the dependencies before building an EAR?
Hi, I've been dealing with much the same requirement. I think you'll want to use the assembly plugin in order to "pack them again," and you'll want the resulting EJB artifact to be a dependency for the project that builds the EAR. Just an observation: intuitively this approach strikes me as antithetical to some core Maven values and even basic "good practices" like factoring out commonality, etc. I limit its application to a very narrow use case. Specifically, I only use this approach for the situation where I require the ability to deploy, into a single appserver, multiple instances of the same application that are guaranteed to be identical except as regards their configuration as obtained from the various deployment descriptors (e.g., context roots, data source bindings, etc.). To the extent possible (and practicable) I obviate this problem by refactoring. Mark Sergio Rodriguez wrote: > > Hello, > > I have an EJB project that is a dependency of several of my projects. I > need to modify the JNDI name at the EJB's jboss.xml so I can deploy > several apps on the same jboss server. > > How can I filter the resources of an already-compiled dependency? I have > tried to unpack-dependencies and filter them, but don't know how to pack > them again into a new EJB for my EAR. > > Any suggestions? > -- View this message in context: http://www.nabble.com/how-can-I-filter-the-resources-of-one-of-the-dependencies-before-building-an-EAR--tp24160990p24166045.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
how can I filter the resources of one of the dependencies before building an EAR?
Hello, I have an EJB project that is a dependency of several of my projects. I need to modify the JNDI name at the EJB's jboss.xml so I can deploy several apps on the same jboss server. How can I filter the resources of an already-compiled dependency? I have tried to unpack-dependencies and filter them, but don't know how to pack them again into a new EJB for my EAR. Any suggestions? -- View this message in context: http://www.nabble.com/how-can-I-filter-the-resources-of-one-of-the-dependencies-before-building-an-EAR--tp24160990p24160990.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