You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by anita kulshreshtha <a_...@yahoo.com> on 2006/05/11 16:39:35 UTC
packaging plugin
David J,
If I run maven car:package on a non executable configuration, I get
the following message -
..................................................
3578 [main] DEBUG org.apache.geronimo.gbean.runtime.GBeanInstanceState
- GBeanInstanceState for: ge
ronimo/geronimo-gbean-deployer/1.1-SNAPSHOT/car?ServiceModule=geronimo/geronimo-gbean-deployer/1.1-S
NAPSHOT/car,j2eeType=Deployer,name=Deployer State changed from stopped
to starting
Generated package
D:\anita\geronimo\geronimo-1.1\configs\j2ee-server\target\j2ee-server-1.1-SNAPSHOT
.car
BUILD SUCCESSFUL
Total time: 12 seconds
Finished at: Thu May 11 08:28:35 EDT 2006
But the generated car (zip file) is not at this location. The
......car directory is at target/repository/.... . Where is the zip
file being generated? It is put in .maven during car:install by
copyConfig. If a zip file is always generated, Why could we not use
artifact:install?
Thanks
Anita
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Re: packaging plugin
Posted by anita kulshreshtha <a_...@yahoo.com>.
David J,
Thanks! How are the dependencies and the classPath are being
generated in the o.a.g.k.config.Configuration? What is 'import
services' as in hot-deployer importing services of j2ee-deployer? What
are your thoughts on how to handle installation of multiple artifacts
in M2 ?
Thnaks
Anita
--- anita kulshreshtha <a_...@yahoo.com> wrote:
> Please ignore my comment about a new feature. This is against
> maven's 'one artifact per project' philosophy. I found these -
>
http://www.nabble.com/-m2-migrating-from-ant---multiple-artifacts-tip-t1212986.html#a3207033
>
http://www.nabble.com/RE%3A-Retrotranslation-and-the-everpresent-1-artifact-t1500454.html#a4067224
>
> Thanks
> Anita
>
> --- anita kulshreshtha <a_...@yahoo.com> wrote:
>
> > David,
> > Thanks! More inline..
> >
> > --- David Jencks <da...@yahoo.com> wrote:
> >
> > >
> > > On May 11, 2006, at 7:39 AM, anita kulshreshtha wrote:
> > >
> > > > David J,
> > > > If I run maven car:package on a non executable
> configuration,
> > I
> > >
> > > > get
> > > > the following message -
> > > > ..................................................
> > > > 3578 [main] DEBUG
> > > org.apache.geronimo.gbean.runtime.GBeanInstanceState
> > > > - GBeanInstanceState for: ge
> > > > ronimo/geronimo-gbean-deployer/1.1-SNAPSHOT/car?
> > > > ServiceModule=geronimo/geronimo-gbean-deployer/1.1-S
> > > > NAPSHOT/car,j2eeType=Deployer,name=Deployer State changed from
> > > stopped
> > > > to starting
> > > > Generated package
> > > > D:\anita\geronimo\geronimo-1.1\configs\j2ee-server\target\j2ee-
>
> > > > server-1.1-SNAPSHOT
> > > > .car
> > > > BUILD SUCCESSFUL
> > > > Total time: 12 seconds
> > > > Finished at: Thu May 11 08:28:35 EDT 2006
> > > > But the generated car (zip file) is not at this location.
> The
> > > > ......car directory is at target/repository/.... . Where is the
> > zip
> > > > file being generated? It is put in .maven during car:install by
> > > > copyConfig. If a zip file is always generated, Why could we not
> > use
> > > > artifact:install?
> > >
> > >
> > > -- it looks to me as if the message is wrong. I don't know how
> > hard
> > >
> > > it will be to fix it: I suspect changing it to not specify a
> > location
> > >
> > > at all is the best approach.
> > >
> > > -- packaging a configuration can result in multiple car files
> (e.g.
> >
> > > for app clients). Also the configurations are generated into a
> m2
> >
> > > repository that has a somewhat tenuous relationship to the m1
> repo
> >
> > > maven uses. I couldn't see a good way to get all the artifacts
> > > copied with artifact:install, whereas setting up a m2 repository
> > and
> > >
> > > scanning it and copying everything in it seemed fairly
> > > straightforward.
> > Are we generating poms for the cars? I am always thinking in
> > terms
> > of m2.. An artifact install involves many more files in an M2
> > repository. It would be nice if all the cars (zip) were available
> > somewhere in the 'target' directory. The artifact could be
> installed
> > using install:install. AFAIK install only allows one artifact, Do
> we
> > need a new feature from maven?
> > BTW, is there a typo in
> > o.a.g.k.config.IOUtil.recursiveCopy(..)?
> >
> > if (destDir.equals(destDir)) {
> > throw new IllegalArgumentException("Source and
> > destination
> > directory are the same " + srcDir);
> > .............................................
> >
> > Thnaks
> > Anita
> >
> > >
> > > thanks
> > > david jencks
> > >
> > > >
> > > > Thanks
> > > > Anita
> > > >
> > > >
> > > > __________________________________________________
> > > > Do You Yahoo!?
> > > > Tired of spam? Yahoo! Mail has the best spam protection around
> > > > http://mail.yahoo.com
> > >
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Re: packaging plugin
Posted by anita kulshreshtha <a_...@yahoo.com>.
Please ignore my comment about a new feature. This is against
maven's 'one artifact per project' philosophy. I found these -
http://www.nabble.com/-m2-migrating-from-ant---multiple-artifacts-tip-t1212986.html#a3207033
http://www.nabble.com/RE%3A-Retrotranslation-and-the-everpresent-1-artifact-t1500454.html#a4067224
Thanks
Anita
--- anita kulshreshtha <a_...@yahoo.com> wrote:
> David,
> Thanks! More inline..
>
> --- David Jencks <da...@yahoo.com> wrote:
>
> >
> > On May 11, 2006, at 7:39 AM, anita kulshreshtha wrote:
> >
> > > David J,
> > > If I run maven car:package on a non executable configuration,
> I
> >
> > > get
> > > the following message -
> > > ..................................................
> > > 3578 [main] DEBUG
> > org.apache.geronimo.gbean.runtime.GBeanInstanceState
> > > - GBeanInstanceState for: ge
> > > ronimo/geronimo-gbean-deployer/1.1-SNAPSHOT/car?
> > > ServiceModule=geronimo/geronimo-gbean-deployer/1.1-S
> > > NAPSHOT/car,j2eeType=Deployer,name=Deployer State changed from
> > stopped
> > > to starting
> > > Generated package
> > > D:\anita\geronimo\geronimo-1.1\configs\j2ee-server\target\j2ee-
> > > server-1.1-SNAPSHOT
> > > .car
> > > BUILD SUCCESSFUL
> > > Total time: 12 seconds
> > > Finished at: Thu May 11 08:28:35 EDT 2006
> > > But the generated car (zip file) is not at this location. The
> > > ......car directory is at target/repository/.... . Where is the
> zip
> > > file being generated? It is put in .maven during car:install by
> > > copyConfig. If a zip file is always generated, Why could we not
> use
> > > artifact:install?
> >
> >
> > -- it looks to me as if the message is wrong. I don't know how
> hard
> >
> > it will be to fix it: I suspect changing it to not specify a
> location
> >
> > at all is the best approach.
> >
> > -- packaging a configuration can result in multiple car files (e.g.
>
> > for app clients). Also the configurations are generated into a m2
>
> > repository that has a somewhat tenuous relationship to the m1 repo
>
> > maven uses. I couldn't see a good way to get all the artifacts
> > copied with artifact:install, whereas setting up a m2 repository
> and
> >
> > scanning it and copying everything in it seemed fairly
> > straightforward.
> Are we generating poms for the cars? I am always thinking in
> terms
> of m2.. An artifact install involves many more files in an M2
> repository. It would be nice if all the cars (zip) were available
> somewhere in the 'target' directory. The artifact could be installed
> using install:install. AFAIK install only allows one artifact, Do we
> need a new feature from maven?
> BTW, is there a typo in
> o.a.g.k.config.IOUtil.recursiveCopy(..)?
>
> if (destDir.equals(destDir)) {
> throw new IllegalArgumentException("Source and
> destination
> directory are the same " + srcDir);
> .............................................
>
> Thnaks
> Anita
>
> >
> > thanks
> > david jencks
> >
> > >
> > > Thanks
> > > Anita
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam protection around
> > > http://mail.yahoo.com
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Re: packaging plugin
Posted by anita kulshreshtha <a_...@yahoo.com>.
David,
Thanks! More inline..
--- David Jencks <da...@yahoo.com> wrote:
>
> On May 11, 2006, at 7:39 AM, anita kulshreshtha wrote:
>
> > David J,
> > If I run maven car:package on a non executable configuration, I
>
> > get
> > the following message -
> > ..................................................
> > 3578 [main] DEBUG
> org.apache.geronimo.gbean.runtime.GBeanInstanceState
> > - GBeanInstanceState for: ge
> > ronimo/geronimo-gbean-deployer/1.1-SNAPSHOT/car?
> > ServiceModule=geronimo/geronimo-gbean-deployer/1.1-S
> > NAPSHOT/car,j2eeType=Deployer,name=Deployer State changed from
> stopped
> > to starting
> > Generated package
> > D:\anita\geronimo\geronimo-1.1\configs\j2ee-server\target\j2ee-
> > server-1.1-SNAPSHOT
> > .car
> > BUILD SUCCESSFUL
> > Total time: 12 seconds
> > Finished at: Thu May 11 08:28:35 EDT 2006
> > But the generated car (zip file) is not at this location. The
> > ......car directory is at target/repository/.... . Where is the zip
> > file being generated? It is put in .maven during car:install by
> > copyConfig. If a zip file is always generated, Why could we not use
> > artifact:install?
>
>
> -- it looks to me as if the message is wrong. I don't know how hard
>
> it will be to fix it: I suspect changing it to not specify a location
>
> at all is the best approach.
>
> -- packaging a configuration can result in multiple car files (e.g.
> for app clients). Also the configurations are generated into a m2
> repository that has a somewhat tenuous relationship to the m1 repo
> maven uses. I couldn't see a good way to get all the artifacts
> copied with artifact:install, whereas setting up a m2 repository and
>
> scanning it and copying everything in it seemed fairly
> straightforward.
Are we generating poms for the cars? I am always thinking in terms
of m2.. An artifact install involves many more files in an M2
repository. It would be nice if all the cars (zip) were available
somewhere in the 'target' directory. The artifact could be installed
using install:install. AFAIK install only allows one artifact, Do we
need a new feature from maven?
BTW, is there a typo in o.a.g.k.config.IOUtil.recursiveCopy(..)?
if (destDir.equals(destDir)) {
throw new IllegalArgumentException("Source and destination
directory are the same " + srcDir);
.............................................
Thnaks
Anita
>
> thanks
> david jencks
>
> >
> > Thanks
> > Anita
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Re: packaging plugin
Posted by David Jencks <da...@yahoo.com>.
On May 11, 2006, at 7:39 AM, anita kulshreshtha wrote:
> David J,
> If I run maven car:package on a non executable configuration, I
> get
> the following message -
> ..................................................
> 3578 [main] DEBUG org.apache.geronimo.gbean.runtime.GBeanInstanceState
> - GBeanInstanceState for: ge
> ronimo/geronimo-gbean-deployer/1.1-SNAPSHOT/car?
> ServiceModule=geronimo/geronimo-gbean-deployer/1.1-S
> NAPSHOT/car,j2eeType=Deployer,name=Deployer State changed from stopped
> to starting
> Generated package
> D:\anita\geronimo\geronimo-1.1\configs\j2ee-server\target\j2ee-
> server-1.1-SNAPSHOT
> .car
> BUILD SUCCESSFUL
> Total time: 12 seconds
> Finished at: Thu May 11 08:28:35 EDT 2006
> But the generated car (zip file) is not at this location. The
> ......car directory is at target/repository/.... . Where is the zip
> file being generated? It is put in .maven during car:install by
> copyConfig. If a zip file is always generated, Why could we not use
> artifact:install?
-- it looks to me as if the message is wrong. I don't know how hard
it will be to fix it: I suspect changing it to not specify a location
at all is the best approach.
-- packaging a configuration can result in multiple car files (e.g.
for app clients). Also the configurations are generated into a m2
repository that has a somewhat tenuous relationship to the m1 repo
maven uses. I couldn't see a good way to get all the artifacts
copied with artifact:install, whereas setting up a m2 repository and
scanning it and copying everything in it seemed fairly straightforward.
thanks
david jencks
>
> Thanks
> Anita
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com