You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Stanley,Michael P." <ms...@mitre.org> on 2003/02/21 22:38:55 UTC

Maven plugin-build

Hi,  

[Some nonsense background, feel free to skip ahead] I'm new to this
list.  I've been looking over the source of Maven and Jelly the last
couple of days, and am excited about these two projects.  I think there
is tremendous potential, and the project has already come a long way
since the last time I looked at it.  I plan on incorporating maven into
some of my existing projects, and getting my co-workers to adopt it as a
standard.  I also hope to contribute to the project, as much as
possible.

With that said I'm up and running.  I ran into problems building
individual plugins in Mavens repository (src/plugins-build dir).  I was
able to build all of them at once, but wanted to build them individually
by name.  I found no way to do this from src/plugins-build directory,
but found that there was a plugin-build in the maven.xml of the main
directory.  However this did not work.  I'm not sure if this is a
problem due to my environment (Cygwin + WinXP) or if others are having
similar problems.

I've modified the two maven.xml files.  I feel that this way is a little
cleaner (correct me if I'm wrong, like I said above I'm new :-), and now
it works.  Anyway, after looking through most of the documentation, I
felt that it was a cleaner solution. 

Attached are the diffs.

- Mike

RE: Maven plugin-build

Posted by "Stanley,Michael P." <ms...@mitre.org>.
> Baggage.

Yeah.  I saw your CVS commit.  

> maven java:jar will build a plugin.

I realized this after looking through the Plugin-Plugin source.  


Thanks for your help.  
- Mike

> -----Original Message-----
> From: Jason van Zyl [mailto:jason@zenplex.com]
> Sent: Friday, February 21, 2003 5:38 PM
> To: Turbine Maven Developers List
> Subject: RE: Maven plugin-build
> 
> On Fri, 2003-02-21 at 17:28, Stanley,Michael P. wrote:
> > Ok.  I just used the Plugin-Plugin and it did what I wanted, you are
> > correct.
> >
> > But then I wonder why have the "maven:plugin-build" goal in the
maven's
> > root maven.xml file?
> 
> Baggage.
> 
> maven java:jar will build a plugin.
> 
> > - Mike
> >
> > > -----Original Message-----
> > > From: Stanley,Michael P. [mailto:mstanley@mitre.org]
> > > Sent: Friday, February 21, 2003 5:14 PM
> > > To: 'Turbine Maven Developers List'
> > > Subject: RE: Maven plugin-build
> > >
> > > I'm not interested in installing (deploying) a plugin into my
> > > MAVEN_HOME.
> > > I'm interested in modifying the source of an existing plugin, and
> > > building it to see if it compiles, or create a new one.
> > >
> > > There is a goal in the main maven.xml file named
"maven:plugin-build"
> > > with the description -> " Build a plugin by name from
$${plugin.name}
> > > into an installable jar "
> > >
> > > This is exactly what I want to do (instead of
"maven:plugins-build"
> > > which builds all of them and takes time).
> > >
> > > However, the current "maven:plugin-build" doesn't work (at least
not
> > in
> > > my enviornment).  The patch I submitted does.  In addition, the
patch
> > I
> > > submitted allows you to do it from the plugin-build/ directory
> > (similar
> > > to the existing goal "build-plugins")
> > >
> > >
> > > > -----Original Message-----
> > > > From: Kurt Schrader [mailto:kschrader@karmalab.org]
> > > > Sent: Friday, February 21, 2003 4:58 PM
> > > > To: Turbine Maven Developers List
> > > > Subject: Re: Maven plugin-build
> > > >
> > > > The Maven Plugin-Plugin has the following goals:
> > > >
> > > > [plugin] : Build and install a plugin
> > > >   deploy ..................... Install an unpacked version of
the
> > > plugin
> > > >   generate-docs .............. Generate navigation, goals and
> > > properties
> > > > docs
> > > >   generate-goals ............. Generate goals.xml for the plugin
> > > >   generate-navigation ........ Generate navigation.xml for the
> > plugin
> > > >   generate-properties ........ Generate properties.xml for the
> > plugin
> > > >   install .................... Install the plugin in Maven's
plugins
> > > dir
> > > >
> > > > One of those ought to work for ya.
> > > >
> > > > -Kurt
> > > >
> > > > On Fri, 21 Feb 2003, Stanley,Michael P. wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > [Some nonsense background, feel free to skip ahead] I'm new to
> > this
> > > > > list.  I've been looking over the source of Maven and Jelly
the
> > last
> > > > > couple of days, and am excited about these two projects.  I
think
> > > there
> > > > > is tremendous potential, and the project has already come a
long
> > way
> > > > > since the last time I looked at it.  I plan on incorporating
maven
> > > into
> > > > > some of my existing projects, and getting my co-workers to
adopt
> > it
> > > as a
> > > > > standard.  I also hope to contribute to the project, as much
as
> > > > > possible.
> > > > >
> > > > > With that said I'm up and running.  I ran into problems
building
> > > > > individual plugins in Mavens repository (src/plugins-build
dir).
> > I
> > > was
> > > > > able to build all of them at once, but wanted to build them
> > > individually
> > > > > by name.  I found no way to do this from src/plugins-build
> > > directory,
> > > > > but found that there was a plugin-build in the maven.xml of
the
> > main
> > > > > directory.  However this did not work.  I'm not sure if this
is a
> > > > > problem due to my environment (Cygwin + WinXP) or if others
are
> > > having
> > > > > similar problems.
> > > > >
> > > > > I've modified the two maven.xml files.  I feel that this way
is a
> > > little
> > > > > cleaner (correct me if I'm wrong, like I said above I'm new
:-),
> > and
> > > now
> > > > > it works.  Anyway, after looking through most of the
> > documentation,
> > > I
> > > > > felt that it was a cleaner solution.
> > > > >
> > > > > Attached are the diffs.
> > > > >
> > > > > - Mike
> > > > >
> > > >
> > > >
> > > >
> >
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > turbine-maven-dev-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> > > turbine-maven-dev-help@jakarta.apache.org
> > >
> > >
> > >
> > >
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > turbine-maven-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > turbine-maven-dev-help@jakarta.apache.org
> >
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
turbine-maven-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: turbine-maven-dev-
> help@jakarta.apache.org
> --
> jvz.
> 
> Jason van Zyl
> jason@zenplex.com
> http://tambora.zenplex.org
> 
> In short, man creates for himself a new religion of a rational
> and technical order to justify his work and to be justified in it.
> 
>   -- Jacques Ellul, The Technological Society
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-maven-dev-help@jakarta.apache.org



RE: Maven plugin-build

Posted by Jason van Zyl <ja...@zenplex.com>.
On Fri, 2003-02-21 at 17:28, Stanley,Michael P. wrote:
> Ok.  I just used the Plugin-Plugin and it did what I wanted, you are
> correct.
> 
> But then I wonder why have the "maven:plugin-build" goal in the maven's
> root maven.xml file?

Baggage.

maven java:jar will build a plugin.

> - Mike 
> 
> > -----Original Message-----
> > From: Stanley,Michael P. [mailto:mstanley@mitre.org]
> > Sent: Friday, February 21, 2003 5:14 PM
> > To: 'Turbine Maven Developers List'
> > Subject: RE: Maven plugin-build
> > 
> > I'm not interested in installing (deploying) a plugin into my
> > MAVEN_HOME.
> > I'm interested in modifying the source of an existing plugin, and
> > building it to see if it compiles, or create a new one.
> > 
> > There is a goal in the main maven.xml file named "maven:plugin-build"
> > with the description -> " Build a plugin by name from $${plugin.name}
> > into an installable jar "
> > 
> > This is exactly what I want to do (instead of "maven:plugins-build"
> > which builds all of them and takes time).
> > 
> > However, the current "maven:plugin-build" doesn't work (at least not
> in
> > my enviornment).  The patch I submitted does.  In addition, the patch
> I
> > submitted allows you to do it from the plugin-build/ directory
> (similar
> > to the existing goal "build-plugins")
> > 
> > 
> > > -----Original Message-----
> > > From: Kurt Schrader [mailto:kschrader@karmalab.org]
> > > Sent: Friday, February 21, 2003 4:58 PM
> > > To: Turbine Maven Developers List
> > > Subject: Re: Maven plugin-build
> > >
> > > The Maven Plugin-Plugin has the following goals:
> > >
> > > [plugin] : Build and install a plugin
> > >   deploy ..................... Install an unpacked version of the
> > plugin
> > >   generate-docs .............. Generate navigation, goals and
> > properties
> > > docs
> > >   generate-goals ............. Generate goals.xml for the plugin
> > >   generate-navigation ........ Generate navigation.xml for the
> plugin
> > >   generate-properties ........ Generate properties.xml for the
> plugin
> > >   install .................... Install the plugin in Maven's plugins
> > dir
> > >
> > > One of those ought to work for ya.
> > >
> > > -Kurt
> > >
> > > On Fri, 21 Feb 2003, Stanley,Michael P. wrote:
> > >
> > > > Hi,
> > > >
> > > > [Some nonsense background, feel free to skip ahead] I'm new to
> this
> > > > list.  I've been looking over the source of Maven and Jelly the
> last
> > > > couple of days, and am excited about these two projects.  I think
> > there
> > > > is tremendous potential, and the project has already come a long
> way
> > > > since the last time I looked at it.  I plan on incorporating maven
> > into
> > > > some of my existing projects, and getting my co-workers to adopt
> it
> > as a
> > > > standard.  I also hope to contribute to the project, as much as
> > > > possible.
> > > >
> > > > With that said I'm up and running.  I ran into problems building
> > > > individual plugins in Mavens repository (src/plugins-build dir).
> I
> > was
> > > > able to build all of them at once, but wanted to build them
> > individually
> > > > by name.  I found no way to do this from src/plugins-build
> > directory,
> > > > but found that there was a plugin-build in the maven.xml of the
> main
> > > > directory.  However this did not work.  I'm not sure if this is a
> > > > problem due to my environment (Cygwin + WinXP) or if others are
> > having
> > > > similar problems.
> > > >
> > > > I've modified the two maven.xml files.  I feel that this way is a
> > little
> > > > cleaner (correct me if I'm wrong, like I said above I'm new :-),
> and
> > now
> > > > it works.  Anyway, after looking through most of the
> documentation,
> > I
> > > > felt that it was a cleaner solution.
> > > >
> > > > Attached are the diffs.
> > > >
> > > > - Mike
> > > >
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > turbine-maven-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > turbine-maven-dev-help@jakarta.apache.org
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> turbine-maven-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> turbine-maven-dev-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-maven-dev-help@jakarta.apache.org
-- 
jvz.

Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


RE: Maven plugin-build

Posted by "Stanley,Michael P." <ms...@mitre.org>.
Ok.  I just used the Plugin-Plugin and it did what I wanted, you are
correct.

But then I wonder why have the "maven:plugin-build" goal in the maven's
root maven.xml file?

- Mike 

> -----Original Message-----
> From: Stanley,Michael P. [mailto:mstanley@mitre.org]
> Sent: Friday, February 21, 2003 5:14 PM
> To: 'Turbine Maven Developers List'
> Subject: RE: Maven plugin-build
> 
> I'm not interested in installing (deploying) a plugin into my
> MAVEN_HOME.
> I'm interested in modifying the source of an existing plugin, and
> building it to see if it compiles, or create a new one.
> 
> There is a goal in the main maven.xml file named "maven:plugin-build"
> with the description -> " Build a plugin by name from $${plugin.name}
> into an installable jar "
> 
> This is exactly what I want to do (instead of "maven:plugins-build"
> which builds all of them and takes time).
> 
> However, the current "maven:plugin-build" doesn't work (at least not
in
> my enviornment).  The patch I submitted does.  In addition, the patch
I
> submitted allows you to do it from the plugin-build/ directory
(similar
> to the existing goal "build-plugins")
> 
> 
> > -----Original Message-----
> > From: Kurt Schrader [mailto:kschrader@karmalab.org]
> > Sent: Friday, February 21, 2003 4:58 PM
> > To: Turbine Maven Developers List
> > Subject: Re: Maven plugin-build
> >
> > The Maven Plugin-Plugin has the following goals:
> >
> > [plugin] : Build and install a plugin
> >   deploy ..................... Install an unpacked version of the
> plugin
> >   generate-docs .............. Generate navigation, goals and
> properties
> > docs
> >   generate-goals ............. Generate goals.xml for the plugin
> >   generate-navigation ........ Generate navigation.xml for the
plugin
> >   generate-properties ........ Generate properties.xml for the
plugin
> >   install .................... Install the plugin in Maven's plugins
> dir
> >
> > One of those ought to work for ya.
> >
> > -Kurt
> >
> > On Fri, 21 Feb 2003, Stanley,Michael P. wrote:
> >
> > > Hi,
> > >
> > > [Some nonsense background, feel free to skip ahead] I'm new to
this
> > > list.  I've been looking over the source of Maven and Jelly the
last
> > > couple of days, and am excited about these two projects.  I think
> there
> > > is tremendous potential, and the project has already come a long
way
> > > since the last time I looked at it.  I plan on incorporating maven
> into
> > > some of my existing projects, and getting my co-workers to adopt
it
> as a
> > > standard.  I also hope to contribute to the project, as much as
> > > possible.
> > >
> > > With that said I'm up and running.  I ran into problems building
> > > individual plugins in Mavens repository (src/plugins-build dir).
I
> was
> > > able to build all of them at once, but wanted to build them
> individually
> > > by name.  I found no way to do this from src/plugins-build
> directory,
> > > but found that there was a plugin-build in the maven.xml of the
main
> > > directory.  However this did not work.  I'm not sure if this is a
> > > problem due to my environment (Cygwin + WinXP) or if others are
> having
> > > similar problems.
> > >
> > > I've modified the two maven.xml files.  I feel that this way is a
> little
> > > cleaner (correct me if I'm wrong, like I said above I'm new :-),
and
> now
> > > it works.  Anyway, after looking through most of the
documentation,
> I
> > > felt that it was a cleaner solution.
> > >
> > > Attached are the diffs.
> > >
> > > - Mike
> > >
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> turbine-maven-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> turbine-maven-dev-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-maven-dev-help@jakarta.apache.org



RE: Maven plugin-build

Posted by di...@multitask.com.au.
"Stanley,Michael P." <ms...@mitre.org> wrote on 22/02/2003 09:13:44 AM:

> I'm not interested in installing (deploying) a plugin into my
> MAVEN_HOME. 
> I'm interested in modifying the source of an existing plugin, and
> building it to see if it compiles, or create a new one. 

Like Kurt said, 
> > [plugin] : Build and install a plugin

so change the source of one of the existing plugins in src/plugins-build, 
and from the plugin dir, e.g. src/plugins-build/java, run:

maven plugin

> However, the current "maven:plugin-build" doesn't work (at least not in
> my enviornment).  The patch I submitted does.  In addition, the patch I
> submitted allows you to do it from the plugin-build/ directory (similar
> to the existing goal "build-plugins") 

We should remove maven:plugin-build. maven plugin does that from the 
plugin directory. And that plugin does much more too.
--
dIon Gillard, Multitask Consulting
Blog:      http://www.freeroller.net/page/dion/Weblog
Work:      http://www.multitask.com.au


> 
> > -----Original Message-----
> > From: Kurt Schrader [mailto:kschrader@karmalab.org]
> > Sent: Friday, February 21, 2003 4:58 PM
> > To: Turbine Maven Developers List
> > Subject: Re: Maven plugin-build
> > 
> > The Maven Plugin-Plugin has the following goals:
> > 
> > [plugin] : Build and install a plugin
> >   deploy ..................... Install an unpacked version of the
> plugin
> >   generate-docs .............. Generate navigation, goals and
> properties
> > docs
> >   generate-goals ............. Generate goals.xml for the plugin
> >   generate-navigation ........ Generate navigation.xml for the plugin
> >   generate-properties ........ Generate properties.xml for the plugin
> >   install .................... Install the plugin in Maven's plugins
> dir
> > 
> > One of those ought to work for ya.
> > 
> > -Kurt
> > 
> > On Fri, 21 Feb 2003, Stanley,Michael P. wrote:
> > 
> > > Hi,
> > >
> > > [Some nonsense background, feel free to skip ahead] I'm new to this
> > > list.  I've been looking over the source of Maven and Jelly the last
> > > couple of days, and am excited about these two projects.  I think
> there
> > > is tremendous potential, and the project has already come a long way
> > > since the last time I looked at it.  I plan on incorporating maven
> into
> > > some of my existing projects, and getting my co-workers to adopt it
> as a
> > > standard.  I also hope to contribute to the project, as much as
> > > possible.
> > >
> > > With that said I'm up and running.  I ran into problems building
> > > individual plugins in Mavens repository (src/plugins-build dir).  I
> was
> > > able to build all of them at once, but wanted to build them
> individually
> > > by name.  I found no way to do this from src/plugins-build
> directory,
> > > but found that there was a plugin-build in the maven.xml of the main
> > > directory.  However this did not work.  I'm not sure if this is a
> > > problem due to my environment (Cygwin + WinXP) or if others are
> having
> > > similar problems.
> > >
> > > I've modified the two maven.xml files.  I feel that this way is a
> little
> > > cleaner (correct me if I'm wrong, like I said above I'm new :-), and
> now
> > > it works.  Anyway, after looking through most of the documentation,
> I
> > > felt that it was a cleaner solution.
> > >
> > > Attached are the diffs.
> > >
> > > - Mike
> > >
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> turbine-maven-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> turbine-maven-dev-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: 
turbine-maven-dev-help@jakarta.apache.org
> 


RE: Maven plugin-build

Posted by "Stanley,Michael P." <ms...@mitre.org>.
I'm not interested in installing (deploying) a plugin into my
MAVEN_HOME.  
I'm interested in modifying the source of an existing plugin, and
building it to see if it compiles, or create a new one.  

There is a goal in the main maven.xml file named "maven:plugin-build"
with the description -> " Build a plugin by name from $${plugin.name}
into an installable jar "

This is exactly what I want to do (instead of "maven:plugins-build"
which builds all of them and takes time).

However, the current "maven:plugin-build" doesn't work (at least not in
my enviornment).  The patch I submitted does.  In addition, the patch I
submitted allows you to do it from the plugin-build/ directory (similar
to the existing goal "build-plugins")  


> -----Original Message-----
> From: Kurt Schrader [mailto:kschrader@karmalab.org]
> Sent: Friday, February 21, 2003 4:58 PM
> To: Turbine Maven Developers List
> Subject: Re: Maven plugin-build
> 
> The Maven Plugin-Plugin has the following goals:
> 
> [plugin] : Build and install a plugin
>   deploy ..................... Install an unpacked version of the
plugin
>   generate-docs .............. Generate navigation, goals and
properties
> docs
>   generate-goals ............. Generate goals.xml for the plugin
>   generate-navigation ........ Generate navigation.xml for the plugin
>   generate-properties ........ Generate properties.xml for the plugin
>   install .................... Install the plugin in Maven's plugins
dir
> 
> One of those ought to work for ya.
> 
> -Kurt
> 
> On Fri, 21 Feb 2003, Stanley,Michael P. wrote:
> 
> > Hi,
> >
> > [Some nonsense background, feel free to skip ahead] I'm new to this
> > list.  I've been looking over the source of Maven and Jelly the last
> > couple of days, and am excited about these two projects.  I think
there
> > is tremendous potential, and the project has already come a long way
> > since the last time I looked at it.  I plan on incorporating maven
into
> > some of my existing projects, and getting my co-workers to adopt it
as a
> > standard.  I also hope to contribute to the project, as much as
> > possible.
> >
> > With that said I'm up and running.  I ran into problems building
> > individual plugins in Mavens repository (src/plugins-build dir).  I
was
> > able to build all of them at once, but wanted to build them
individually
> > by name.  I found no way to do this from src/plugins-build
directory,
> > but found that there was a plugin-build in the maven.xml of the main
> > directory.  However this did not work.  I'm not sure if this is a
> > problem due to my environment (Cygwin + WinXP) or if others are
having
> > similar problems.
> >
> > I've modified the two maven.xml files.  I feel that this way is a
little
> > cleaner (correct me if I'm wrong, like I said above I'm new :-), and
now
> > it works.  Anyway, after looking through most of the documentation,
I
> > felt that it was a cleaner solution.
> >
> > Attached are the diffs.
> >
> > - Mike
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-maven-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-maven-dev-help@jakarta.apache.org



Re: Maven plugin-build

Posted by Kurt Schrader <ks...@karmalab.org>.
The Maven Plugin-Plugin has the following goals:

[plugin] : Build and install a plugin
  deploy ..................... Install an unpacked version of the plugin
  generate-docs .............. Generate navigation, goals and properties docs
  generate-goals ............. Generate goals.xml for the plugin
  generate-navigation ........ Generate navigation.xml for the plugin
  generate-properties ........ Generate properties.xml for the plugin
  install .................... Install the plugin in Maven's plugins dir

One of those ought to work for ya.

-Kurt

On Fri, 21 Feb 2003, Stanley,Michael P. wrote:

> Hi,
>
> [Some nonsense background, feel free to skip ahead] I'm new to this
> list.  I've been looking over the source of Maven and Jelly the last
> couple of days, and am excited about these two projects.  I think there
> is tremendous potential, and the project has already come a long way
> since the last time I looked at it.  I plan on incorporating maven into
> some of my existing projects, and getting my co-workers to adopt it as a
> standard.  I also hope to contribute to the project, as much as
> possible.
>
> With that said I'm up and running.  I ran into problems building
> individual plugins in Mavens repository (src/plugins-build dir).  I was
> able to build all of them at once, but wanted to build them individually
> by name.  I found no way to do this from src/plugins-build directory,
> but found that there was a plugin-build in the maven.xml of the main
> directory.  However this did not work.  I'm not sure if this is a
> problem due to my environment (Cygwin + WinXP) or if others are having
> similar problems.
>
> I've modified the two maven.xml files.  I feel that this way is a little
> cleaner (correct me if I'm wrong, like I said above I'm new :-), and now
> it works.  Anyway, after looking through most of the documentation, I
> felt that it was a cleaner solution.
>
> Attached are the diffs.
>
> - Mike
>