As I suspected... "At the moment, only Maven 1 is supported by the Torque Maven plugin. The recommended version is Maven 1.0.2." http://db.apache.org/torque/releases/torque-3.2/maven-plugin/index.html
Wayne On 3/16/06, Wayne Fay <[EMAIL PROTECTED]> wrote: > I'd suspect either: > > 1. this is a m1 plugin and possibly not going to work in m2 without > some code changes -- are you sure this will work in m2? > > 2. you are missing some configuration/settings > > Looking at the torque plugin webpage, there seems to be a variety of > configuration options etc, and it looks like you're not using any of > them. This works ok for reporting plugins, and less ok for build > plugins. > > I'd suspect that you need to include at least one <executions> with > proper config, so the plugin is executed at the right phase etc during > your build. > > Wayne > > > On 3/16/06, Charles Harvey III <[EMAIL PROTECTED]> wrote: > > 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] > > > > >
