How 'bout this:
pom.xml:
##################################################################################
<project>
<build>
<plugins>
<plugin>
<groupId>torque</groupId>
<artifactId>maven-torque-plugin</artifactId>
<version>3.2-rc1</version>
</plugin>
</plugins>
</build>
</project>
##################################################################################
command line and error:
##################################################################################
C:\projects\myproject>mvn -e torque:sql
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
Downloading:
http://repo1.maven.org/maven2/torque/maven-torque-plugin/3.2-rc1/maven-torque-plugin-3.2-rc1.pom
11K downloaded
Downloading:
http://repo1.maven.org/maven2/torque/maven-torque-plugin/3.2-rc1/maven-torque-plugin-3.2-rc1.jar
13K downloaded
[INFO] Searching repository for plugin with prefix: 'torque'.
[INFO]
----------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] null
[INFO]
----------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
at
org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:292)
at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:198)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:163)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1095)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1305)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java
:376)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:132)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
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]
----------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Mar 16 14:35:30 EST 2006
[INFO] Final Memory: 1M/2M
[INFO]
----------------------------------------------------------------------------
C:\projects\myproject>
##################################################################################
Any thoughts? What does that error mean? Its not exactly telling me what's
wrong. Thanks again.
Charlie
Wayne Fay said the following on 3/16/2006 2:00 PM:
First off, if you haven't already, you should probably review the
"Getting Started With Maven" guide on the Maven site.
http://maven.apache.org/guides/getting-started/index.html
Every plugin has its own configuration etc. So you will need to look
at the Torque plugin documentation to find out what settings to use
etc. There should also be an example of how to use the plugin on the
Torque plugin page.
Assuming this is a build-time plugin, you will need to add the plugin
to your <build><plugins> section of your pom.xml, and it will be
automatically downloaded the next time you run "mvn ...".
Wayne
On 3/16/06, Charles Harvey III <[EMAIL PROTECTED]> wrote:
Hello there.
I know I should know how to do this, but I seem hopelessly inept at it.
How do I download a plugin and then use it? Here is the plugin I am looking
for, torque 3.2-rc1:
http://www.ibiblio.org/maven2/torque/maven-torque-plugin/3.2-rc2/
What are the steps I take to download that plugin and then install it into
the registry of plugins? Then use it too. Do I just put it in my pom.xml?
Is there a certain command line to download and install plugins?
Thanks for the help.
Charlie
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]