On Thu, 28 Jul 2005, Adam Hardy wrote: Hi, Just saw Brett answering this. I totally missed this post - sorry.
> I'm putting together an EJB ear and I need some clarification on a > couple of points. > > (1) I can't get the maven-xdoclet-plugin to install using the docs on > http://www.neonics.com/projects/maven-xdoclet-plugin/ > > When I try to install it, I use this cmd: > > [EMAIL PROTECTED]:~/java/projects/garg-ejb$ m2 install:install-file > -DartifactId=plexus-override-component-configurator -DgroupId=plexus > -Dversion=1.0-SNAPSHOT > -Dfile=plexus-override-component-configurator-1.0-SNAPSHOT.jar > -Dpackaging=jar > > and get an error saying that the plugin is not found in my project > directory, which is obviously my cmd line being wrong. What would be the > correct cmd line to install it? That's weird. I can partly reproduce: [ERROR] Cause: org.apache.maven.plugin.MojoExecutionException: Error configuring plugin for exe cution of 'install:install-file'. at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:339) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:472) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:453) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:435) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:127) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186) at org.apache.maven.cli.MavenCli.main(MavenCli.java:292) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.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) Caused by: org.apache.maven.plugin.PluginParameterException: Invalid or missing parameters: [Mojo parameter [name: 'file'; alias: 'null']] for mojo: org.apache. maven.plugins:maven-install-plugin:2.0-beta-1-SNAPSHOT:install-file at org.apache.maven.plugin.DefaultPluginManager.checkRequiredParameters( DefaultPluginManager.java:779) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul tPluginManager.java:518) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:334) ... 15 more and that's because the file is not in the current directory. Did you download it? > (2) Even if I could get the xdoclet to run in m2, I can't figure out how > to include a second source directory (containing the xdoclet generated > classes). Is it just a comma-delimited list in the <sourceDirectory> > attribute of the pom? Brett answered this. I can add the following: In the alpha-3 version, you cannot configure the generated-sources dir. It's set to target/generated-sources/xdoclet/, so be sure to use that in the xdoclet configuration (for the generated java files). For the META-INF files like application.xml, ejb-jar.xml, web.xml etc., use target/classes/META-INF/. There's currently no separate 'generated-resources' directory it puts it in. This will be fixed, and the directories will be configurable. For now, you should use those defaults. > (3) m2 can't find the maven-ear-plugin. According to the msg here > http://marc.theaimsgroup.com/?l=turbine-maven-user&m=111962447408741&w=2 > it looks like I have to copy it from maven2/org/apache/maven/plugins to > my local repository and change its directory structure. Is there a > command line to get m2 to download it, so I then only have to change the > dir? As Brett said, no. In alpha-3, it was still in the sandbox, and not part of the distribution. In beta-1 it is. > At this point if I get an answer to any of these I'd be grateful. Sorry for the late reply, and thanks for trying it out! -- Kenney > regards > Adam > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]