install:install-file is working just fine - it succeeded. You included javax.transaction:jta:1.0.1B on the command line for some reason. That is the syntax for a maven goal, so it tried to execute it. Since the JAR actually exists, it tries to execute the JAR as a plugin - and fails.
The NPE has been fixed in SVN. But if you remove that from the command line, it will work as you expected. - Brett On 11/14/05, Jerarckill - ANS <[EMAIL PROTECTED]> wrote: > I don't understand. > > - Why do I have to remove the plugin? > - What does think that a plugin is to be executed? > > When using the install-file goal of the install plugin, the only think it > should do is "installing" the file to my local repository. It shouldn't > be related to executing things. > > Also, if the file is already successfully installed, i think that having a > stacktrace with a nullPointerException isn't a valid response. > > - If it is already there : overwrite (perhaps overwrite file only if flag > is set) > - If the file isn't : simply install it. > > Of course, there may be something I don't understand with this plugin and > it is more than just installing files but... well... it doesn't seem to me > like something else has to be done here. > > Anyway, thank you for the answer, > > Jer > > > On Mon, 14 Nov 2005 01:01:11 +0100, Brett Porter <[EMAIL PROTECTED]> > wrote: > > > Remove: > > javax.transaction:jta:1.0.1B:jar > > > > It thinks that is a plugin to execute. THe file was already > > successfully installed. > > > > - Brett > > > > On 11/13/05, Jerarckill - ANS <[EMAIL PROTECTED]> wrote: > >> Hello, > >> > >> I encountered a problem while trying to install JTA jar file using the > >> install plugin, as told by maven. > >> > >> I was trying to install the following file: > >> C:\development\install\jta-1.0.1B.jar > >> ... which really was there with the exect file name written. > >> > >> When launching the following action: > >> > >> mvn install:install-file -DgroupId=javax.transaction -DartifactId=jta > >> -Dversion=1.0.1B -Dpackaging=jar > >> -Dfile=C:/development/install/jta-1.0.1B.jar > >> javax.transaction:jta:1.0.1B > >> :jar > >> > >> maven works and sends me this output: > >> > >> [INFO] Scanning for projects... > >> [INFO] Searching repository for plugin with prefix: 'install'. > >> Downloading: > >> http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar > >> [WARNING] Unable to get resource from repository central > >> (http://repo1.maven.org/maven2) > >> [INFO] Cannot find mojo descriptor for: > >> 'javax.transaction:jta:1.0.1B:jar' > >> - Treating as non-aggregator. > >> [INFO] > >> ---------------------------------------------------------------------------- > >> [INFO] Building Maven Default Project > >> [INFO] task-segment: [install:install-file] (aggregator-style) > >> [INFO] > >> ---------------------------------------------------------------------------- > >> [INFO] [install:install-file] > >> [INFO] Installing C:\development\install\jta-1.0.1B.jar to > >> C:\development\MAVEN_REPO\javax\transaction\jta\1.0.1B\jta-1.0.1B.jar > >> [INFO] > >> ---------------------------------------------------------------------------- > >> [INFO] Building Maven Default Project > >> [INFO] task-segment: [javax.transaction:jta:1.0.1B:jar] > >> [INFO] > >> ---------------------------------------------------------------------------- > >> [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:1356) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:481) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:452) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137) > >> 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:585) > >> 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: 5 seconds > >> [INFO] Finished at: Wed Nov 09 11:15:32 CET 2005 > >> [INFO] Final Memory: 1M/4M > >> [INFO] > >> ---------------------------------------------------------------------------- > >> > >> > >> Can someone help me? > >> > >> Jérôme JADOULLE > >> > >> > >> --------------------------------------------------------------------- > >> 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] > > > > > > > > > > -- > > > > --------------------------------------------------------------------- > 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]
