You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Xiaobo Chen <xi...@cs.dal.ca> on 2006/02/23 16:35:35 UTC

question about plug in

Hi, all

I am very new in Maven. I am following the tutorial for Jetspeed:

http://portals.apache.org/jetspeed-1/tutorial/prerequisites.html

When I typed:

mvn -e -Dmaven.test.skip=true dist:install

NOT "maven -Dmaven.test.skip=true dist:install " as in the web page. I
have version maven 2.0.2.

it reported:


+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'dist'.
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-dist-plugin' does not
exist or no valid version could be found
[INFO]
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.maven.plugins:maven-dist-plugin' does not exist or no valid
version could be found
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1247)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1483)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:378)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:134)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
The plugin 'org.apache.maven.plugins:maven-dist-plugin' does not exist or
no valid version could be found
	at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:225)
	at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:87)
	at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:160)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1218)
	... 14 more

It looks like some plugins haven't been installed.

So I go to the next step as in the webpage:

In the plugin directory:

  mvn -e plugin:install

But it repoted:

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'plugin'.
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
----------------------------------------------------------------------------
[INFO] Required goal not found: plugin:install
[INFO]
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Required goal not found:
plugin:install
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1499)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:378)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:134)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
----------------------------------------------------------------------------

Still looks like plugin not installed.

I have no idea about those plugins, and I am searching the site but still
don't know how to install them? Can anyone give my a hand?

Thanks a lot.

Xiaobo


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: question about plug in

Posted by Piéroni Raphaël <ra...@gmail.com>.
Hi Xiaobo,

As far as i know Plugins for Maven 1.x and plugins for Maven 2.x are not
compatible.

If you use Maven 1.x, the plugins are located at ibiblio.org/maven/ (not
maven2)

You can find some there : http://ibiblio.org/maven/maven-plugins/plugins/
Some other there : http://ibiblio.org/maven/maven/plugins/

But the best way to install a plugin is to call a command line like :

maven plugin:download
  -Dmaven.repo.remote=http://www.ibiblio.org/maven,
http://cvs.apache.org/repository/
  -DgroupId=maven
  -DartifactId=maven-ant-plugin
  -Dversion=1.9

You can go here to see all the basic plugins
http://maven.apache.org/maven-1.x/reference/plugins/ then for each plugin
insterristing you, go to the download page of that particular plugin choose
a version. in the release notes for that version you will see a command line
to call for installing the plugin. beware of having all the command with the
options in one line only.

You can found non basic plugins there :
http://maven-plugins.sourceforge.net/

Hope that helps

Regards,

Raphaël

2006/2/23, Xiaobo Chen <xi...@cs.dal.ca>:
>
> Thanks for your reply. So if I use, 1.x, how can I install all those
> plugins? Actually, which plugins shall I install?
>
> Shall I download all those as in this page:
>
> http://www.ibiblio.org/maven2/plugins/org/apache/maven/plugins/
>
> into the the 'lib' directory?
>
> Thanks a lot!
>
> Xiaobo
>
>
> > Hi,
> > you use maven 2.0.2  I think there is not yet dist plugin available for
> > maven2.x
> > maven  command  runs maven 1.x
> > Tom.
> >
> > 2006/2/23, Xiaobo Chen <xi...@cs.dal.ca>:
> >> Hi, all
> >>
> >> I am very new in Maven. I am following the tutorial for Jetspeed:
> >>
> >> http://portals.apache.org/jetspeed-1/tutorial/prerequisites.html
> >>
> >> When I typed:
> >>
> >> mvn -e -Dmaven.test.skip=true dist:install
> >>
> >> NOT "maven -Dmaven.test.skip=true dist:install " as in the web page. I
> >> have version maven 2.0.2.
> >>
> >> it reported:
> >>
> >>
> >> + Error stacktraces are turned on.
> >> [INFO] Scanning for projects...
> >> [INFO] Searching repository for plugin with prefix: 'dist'.
> >> [INFO]
> >>
> ----------------------------------------------------------------------------
> >> [ERROR] BUILD ERROR
> >> [INFO]
> >>
> ----------------------------------------------------------------------------
> >> [INFO] The plugin 'org.apache.maven.plugins:maven-dist-plugin' does not
> >> exist or no valid version could be found
> >> [INFO]
> >>
> ----------------------------------------------------------------------------
> >> [INFO] Trace
> >> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
> >> 'org.apache.maven.plugins:maven-dist-plugin' does not exist or no valid
> >> version could be found
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
> DefaultLifecycleExecutor.java:1247)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(
> DefaultLifecycleExecutor.java:1483)
> >>         at
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds
> (DefaultLifecycleExecutor.java:378)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java:134)
> >>         at
> >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> >>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> >>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> >>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>         at
> >> sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> >>         at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> >>         at java.lang.reflect.Method.invoke(Method.java:324)
> >>         at
> >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >>         at
> >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >> Caused by:
> >> org.apache.maven.plugin.version.PluginVersionNotFoundException:
> >> The plugin 'org.apache.maven.plugins:maven-dist-plugin' does not exist
> >> or
> >> no valid version could be found
> >>         at
> >>
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion
> (DefaultPluginVersionManager.java:225)
> >>         at
> >>
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion
> (DefaultPluginVersionManager.java:87)
> >>         at
> >> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(
> DefaultPluginManager.java:160)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
> DefaultLifecycleExecutor.java:1218)
> >>         ... 14 more
> >>
> >> It looks like some plugins haven't been installed.
> >>
> >> So I go to the next step as in the webpage:
> >>
> >> In the plugin directory:
> >>
> >>   mvn -e plugin:install
> >>
> >> But it repoted:
> >>
> >> + Error stacktraces are turned on.
> >> [INFO] Scanning for projects...
> >> [INFO] Searching repository for plugin with prefix: 'plugin'.
> >> [INFO]
> >>
> ----------------------------------------------------------------------------
> >> [ERROR] BUILD FAILURE
> >> [INFO]
> >>
> ----------------------------------------------------------------------------
> >> [INFO] Required goal not found: plugin:install
> >> [INFO]
> >>
> ----------------------------------------------------------------------------
> >> [INFO] Trace
> >> org.apache.maven.BuildFailureException: Required goal not found:
> >> plugin:install
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(
> DefaultLifecycleExecutor.java:1499)
> >>         at
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds
> (DefaultLifecycleExecutor.java:378)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java:134)
> >>         at
> >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> >>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> >>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> >>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>         at
> >> sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> >>         at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> >>         at java.lang.reflect.Method.invoke(Method.java:324)
> >>         at
> >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >>         at
> >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >> [INFO]
> >>
> ----------------------------------------------------------------------------
> >>
> >> Still looks like plugin not installed.
> >>
> >> I have no idea about those plugins, and I am searching the site but
> >> still
> >> don't know how to install them? Can anyone give my a hand?
> >>
> >> Thanks a lot.
> >>
> >> Xiaobo
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: question about plug in

Posted by Alexandre Poitras <al...@gmail.com>.
You don't have to install any plugins, maven will download everything by itself.

On 2/23/06, Xiaobo Chen <xi...@cs.dal.ca> wrote:
> Thanks for your reply. So if I use, 1.x, how can I install all those
> plugins? Actually, which plugins shall I install?
>
> Shall I download all those as in this page:
>
> http://www.ibiblio.org/maven2/plugins/org/apache/maven/plugins/
>
> into the the 'lib' directory?
>
> Thanks a lot!
>
> Xiaobo
>
>
> > Hi,
> > you use maven 2.0.2  I think there is not yet dist plugin available for
> > maven2.x
> > maven  command  runs maven 1.x
> > Tom.
> >
> > 2006/2/23, Xiaobo Chen <xi...@cs.dal.ca>:
> >> Hi, all
> >>
> >> I am very new in Maven. I am following the tutorial for Jetspeed:
> >>
> >> http://portals.apache.org/jetspeed-1/tutorial/prerequisites.html
> >>
> >> When I typed:
> >>
> >> mvn -e -Dmaven.test.skip=true dist:install
> >>
> >> NOT "maven -Dmaven.test.skip=true dist:install " as in the web page. I
> >> have version maven 2.0.2.
> >>
> >> it reported:
> >>
> >>
> >> + Error stacktraces are turned on.
> >> [INFO] Scanning for projects...
> >> [INFO] Searching repository for plugin with prefix: 'dist'.
> >> [INFO]
> >> ----------------------------------------------------------------------------
> >> [ERROR] BUILD ERROR
> >> [INFO]
> >> ----------------------------------------------------------------------------
> >> [INFO] The plugin 'org.apache.maven.plugins:maven-dist-plugin' does not
> >> exist or no valid version could be found
> >> [INFO]
> >> ----------------------------------------------------------------------------
> >> [INFO] Trace
> >> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
> >> 'org.apache.maven.plugins:maven-dist-plugin' does not exist or no valid
> >> version could be found
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1247)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1483)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:378)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:134)
> >>         at
> >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> >>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> >>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> >>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>         at
> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >>         at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>         at java.lang.reflect.Method.invoke(Method.java:324)
> >>         at
> >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >>         at
> >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >> Caused by:
> >> org.apache.maven.plugin.version.PluginVersionNotFoundException:
> >> The plugin 'org.apache.maven.plugins:maven-dist-plugin' does not exist
> >> or
> >> no valid version could be found
> >>         at
> >> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:225)
> >>         at
> >> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:87)
> >>         at
> >> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:160)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1218)
> >>         ... 14 more
> >>
> >> It looks like some plugins haven't been installed.
> >>
> >> So I go to the next step as in the webpage:
> >>
> >> In the plugin directory:
> >>
> >>   mvn -e plugin:install
> >>
> >> But it repoted:
> >>
> >> + Error stacktraces are turned on.
> >> [INFO] Scanning for projects...
> >> [INFO] Searching repository for plugin with prefix: 'plugin'.
> >> [INFO]
> >> ----------------------------------------------------------------------------
> >> [ERROR] BUILD FAILURE
> >> [INFO]
> >> ----------------------------------------------------------------------------
> >> [INFO] Required goal not found: plugin:install
> >> [INFO]
> >> ----------------------------------------------------------------------------
> >> [INFO] Trace
> >> org.apache.maven.BuildFailureException: Required goal not found:
> >> plugin:install
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1499)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:378)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:134)
> >>         at
> >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> >>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> >>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> >>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>         at
> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >>         at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>         at java.lang.reflect.Method.invoke(Method.java:324)
> >>         at
> >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >>         at
> >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >> [INFO]
> >> ----------------------------------------------------------------------------
> >>
> >> Still looks like plugin not installed.
> >>
> >> I have no idea about those plugins, and I am searching the site but
> >> still
> >> don't know how to install them? Can anyone give my a hand?
> >>
> >> Thanks a lot.
> >>
> >> Xiaobo
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


--
Alexandre Poitras
Québec, Canada

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: question about plug in

Posted by Arnaud HERITIER <ah...@gmail.com>.
no.
You have just to install maven (1.0.2 or 1.1-beta2 I don't know which one is
supported by jetspeed) and to launch the given command.

Arnaud


On 2/23/06, Xiaobo Chen <xi...@cs.dal.ca> wrote:
>
> Thanks for your reply. So if I use, 1.x, how can I install all those
> plugins? Actually, which plugins shall I install?
>
> Shall I download all those as in this page:
>
> http://www.ibiblio.org/maven2/plugins/org/apache/maven/plugins/
>
> into the the 'lib' directory?
>
> Thanks a lot!
>
> Xiaobo
>
>
> > Hi,
> > you use maven 2.0.2  I think there is not yet dist plugin available for
> > maven2.x
> > maven  command  runs maven 1.x
> > Tom.
> >
> > 2006/2/23, Xiaobo Chen <xi...@cs.dal.ca>:
> >> Hi, all
> >>
> >> I am very new in Maven. I am following the tutorial for Jetspeed:
> >>
> >> http://portals.apache.org/jetspeed-1/tutorial/prerequisites.html
> >>
> >> When I typed:
> >>
> >> mvn -e -Dmaven.test.skip=true dist:install
> >>
> >> NOT "maven -Dmaven.test.skip=true dist:install " as in the web page. I
> >> have version maven 2.0.2.
> >>
> >> it reported:
> >>
> >>
> >> + Error stacktraces are turned on.
> >> [INFO] Scanning for projects...
> >> [INFO] Searching repository for plugin with prefix: 'dist'.
> >> [INFO]
> >>
> ----------------------------------------------------------------------------
> >> [ERROR] BUILD ERROR
> >> [INFO]
> >>
> ----------------------------------------------------------------------------
> >> [INFO] The plugin 'org.apache.maven.plugins:maven-dist-plugin' does not
> >> exist or no valid version could be found
> >> [INFO]
> >>
> ----------------------------------------------------------------------------
> >> [INFO] Trace
> >> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
> >> 'org.apache.maven.plugins:maven-dist-plugin' does not exist or no valid
> >> version could be found
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
> DefaultLifecycleExecutor.java:1247)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(
> DefaultLifecycleExecutor.java:1483)
> >>         at
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds
> (DefaultLifecycleExecutor.java:378)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java:134)
> >>         at
> >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> >>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> >>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> >>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>         at
> >> sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> >>         at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> >>         at java.lang.reflect.Method.invoke(Method.java:324)
> >>         at
> >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >>         at
> >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >> Caused by:
> >> org.apache.maven.plugin.version.PluginVersionNotFoundException:
> >> The plugin 'org.apache.maven.plugins:maven-dist-plugin' does not exist
> >> or
> >> no valid version could be found
> >>         at
> >>
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion
> (DefaultPluginVersionManager.java:225)
> >>         at
> >>
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion
> (DefaultPluginVersionManager.java:87)
> >>         at
> >> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(
> DefaultPluginManager.java:160)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
> DefaultLifecycleExecutor.java:1218)
> >>         ... 14 more
> >>
> >> It looks like some plugins haven't been installed.
> >>
> >> So I go to the next step as in the webpage:
> >>
> >> In the plugin directory:
> >>
> >>   mvn -e plugin:install
> >>
> >> But it repoted:
> >>
> >> + Error stacktraces are turned on.
> >> [INFO] Scanning for projects...
> >> [INFO] Searching repository for plugin with prefix: 'plugin'.
> >> [INFO]
> >>
> ----------------------------------------------------------------------------
> >> [ERROR] BUILD FAILURE
> >> [INFO]
> >>
> ----------------------------------------------------------------------------
> >> [INFO] Required goal not found: plugin:install
> >> [INFO]
> >>
> ----------------------------------------------------------------------------
> >> [INFO] Trace
> >> org.apache.maven.BuildFailureException: Required goal not found:
> >> plugin:install
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(
> DefaultLifecycleExecutor.java:1499)
> >>         at
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds
> (DefaultLifecycleExecutor.java:378)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java:134)
> >>         at
> >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> >>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> >>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> >>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>         at
> >> sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> >>         at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> >>         at java.lang.reflect.Method.invoke(Method.java:324)
> >>         at
> >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >>         at
> >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >> [INFO]
> >>
> ----------------------------------------------------------------------------
> >>
> >> Still looks like plugin not installed.
> >>
> >> I have no idea about those plugins, and I am searching the site but
> >> still
> >> don't know how to install them? Can anyone give my a hand?
> >>
> >> Thanks a lot.
> >>
> >> Xiaobo
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: question about plug in

Posted by Xiaobo Chen <xi...@cs.dal.ca>.
Thanks for your reply. So if I use, 1.x, how can I install all those
plugins? Actually, which plugins shall I install?

Shall I download all those as in this page:

http://www.ibiblio.org/maven2/plugins/org/apache/maven/plugins/

into the the 'lib' directory?

Thanks a lot!

Xiaobo


> Hi,
> you use maven 2.0.2  I think there is not yet dist plugin available for
> maven2.x
> maven  command  runs maven 1.x
> Tom.
>
> 2006/2/23, Xiaobo Chen <xi...@cs.dal.ca>:
>> Hi, all
>>
>> I am very new in Maven. I am following the tutorial for Jetspeed:
>>
>> http://portals.apache.org/jetspeed-1/tutorial/prerequisites.html
>>
>> When I typed:
>>
>> mvn -e -Dmaven.test.skip=true dist:install
>>
>> NOT "maven -Dmaven.test.skip=true dist:install " as in the web page. I
>> have version maven 2.0.2.
>>
>> it reported:
>>
>>
>> + Error stacktraces are turned on.
>> [INFO] Scanning for projects...
>> [INFO] Searching repository for plugin with prefix: 'dist'.
>> [INFO]
>> ----------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ----------------------------------------------------------------------------
>> [INFO] The plugin 'org.apache.maven.plugins:maven-dist-plugin' does not
>> exist or no valid version could be found
>> [INFO]
>> ----------------------------------------------------------------------------
>> [INFO] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
>> 'org.apache.maven.plugins:maven-dist-plugin' does not exist or no valid
>> version could be found
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1247)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1483)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:378)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:134)
>>         at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:324)
>>         at
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>         at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> Caused by:
>> org.apache.maven.plugin.version.PluginVersionNotFoundException:
>> The plugin 'org.apache.maven.plugins:maven-dist-plugin' does not exist
>> or
>> no valid version could be found
>>         at
>> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:225)
>>         at
>> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:87)
>>         at
>> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:160)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1218)
>>         ... 14 more
>>
>> It looks like some plugins haven't been installed.
>>
>> So I go to the next step as in the webpage:
>>
>> In the plugin directory:
>>
>>   mvn -e plugin:install
>>
>> But it repoted:
>>
>> + Error stacktraces are turned on.
>> [INFO] Scanning for projects...
>> [INFO] Searching repository for plugin with prefix: 'plugin'.
>> [INFO]
>> ----------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO]
>> ----------------------------------------------------------------------------
>> [INFO] Required goal not found: plugin:install
>> [INFO]
>> ----------------------------------------------------------------------------
>> [INFO] Trace
>> org.apache.maven.BuildFailureException: Required goal not found:
>> plugin:install
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1499)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:378)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:134)
>>         at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:324)
>>         at
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>         at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> [INFO]
>> ----------------------------------------------------------------------------
>>
>> Still looks like plugin not installed.
>>
>> I have no idea about those plugins, and I am searching the site but
>> still
>> don't know how to install them? Can anyone give my a hand?
>>
>> Thanks a lot.
>>
>> Xiaobo
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: question about plug in

Posted by Tom Joad <tj...@gmail.com>.
Hi,
you use maven 2.0.2  I think there is not yet dist plugin available for maven2.x
maven  command  runs maven 1.x
Tom.

2006/2/23, Xiaobo Chen <xi...@cs.dal.ca>:
> Hi, all
>
> I am very new in Maven. I am following the tutorial for Jetspeed:
>
> http://portals.apache.org/jetspeed-1/tutorial/prerequisites.html
>
> When I typed:
>
> mvn -e -Dmaven.test.skip=true dist:install
>
> NOT "maven -Dmaven.test.skip=true dist:install " as in the web page. I
> have version maven 2.0.2.
>
> it reported:
>
>
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'dist'.
> [INFO]
> ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:maven-dist-plugin' does not
> exist or no valid version could be found
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
> 'org.apache.maven.plugins:maven-dist-plugin' does not exist or no valid
> version could be found
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1247)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1483)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:378)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:134)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
> The plugin 'org.apache.maven.plugins:maven-dist-plugin' does not exist or
> no valid version could be found
>         at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:225)
>         at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:87)
>         at
> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:160)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1218)
>         ... 14 more
>
> It looks like some plugins haven't been installed.
>
> So I go to the next step as in the webpage:
>
> In the plugin directory:
>
>   mvn -e plugin:install
>
> But it repoted:
>
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'plugin'.
> [INFO]
> ----------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Required goal not found: plugin:install
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.BuildFailureException: Required goal not found:
> plugin:install
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1499)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:378)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:134)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> [INFO]
> ----------------------------------------------------------------------------
>
> Still looks like plugin not installed.
>
> I have no idea about those plugins, and I am searching the site but still
> don't know how to install them? Can anyone give my a hand?
>
> Thanks a lot.
>
> Xiaobo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org