RE: maven-eclipse-plugin
Hi, Depending on what you're trying to do, it should do the job: I imagine you want Maven to tell Eclipse where to find the dependencies etc. Maven-eclipse-plugin did that by generating a .classpath file. m2eclipse installs in Eclipse and tells it what to do without having to refresh the project every time. However, m2eclipse uses an embedded install of Maven, not the machine-installed one, but you can tell it where to look for the config files. Does this sound adequate? What is your particular requirement? Cheers, Jonathan Winterflood -Message d'origine- De : Dmitri Ilyin [mailto:ilyin.dmi...@googlemail.com] Envoyé : lundi 16 février 2009 16:54 À : Maven Users List Objet : Re: maven-eclipse-plugin well, this is an eclipse plugin, i need maven plugin. 2009/2/16 Jason van Zyl > http://m2eclipse.sonatype.org/ > > On 16-Feb-09, at 8:49 AM, Dmitri Ilyin wrote: > Hallo, > > > > i wanted to use maven-eclipse-plugin with Eclipse 3.4. After short > tries i have found out that it only support WTP 1.5. The actual > version of Eclipse WTP is 3.x > > After that i find that the last version of plugin is 10 month old. > > What ist he status oft he plugin? Is it still in developing? If no, > are there any alternatives? I'm new in maven and looking for eclipse > support for maven. > > > > Thanks > > Dmitri This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Custom plugin ClassCastException: BasicComponentConfigurator
Hi list, The project I'm working on uses a custom made plugin to download and run specific versions of artefacts, using their POMs to get their dependencies. In-house, this works fine, and for our user on the clients machines (SunOs 5.9, not that it should matter?), also. However, a different user on a different client's machine (SunOs 5.10, in theory same mvn and java; also tried a machine with SunOs 5.8) fails with java.lang.ClassCastException: org.codehaus.plexus.component.configurator.BasicComponentConfigurator at org.codehaus.plexus.personality.plexus.lifecycle.phase.AutoConfigurePhas e.execute(AutoConfigurePhase.java:34) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLif ecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComp onentLifecycle(AbstractComponentManager.java:105) at org.codehaus.plexus.component.manager.AbstractComponentManager.createCom ponentInstance(AbstractComponentManager.java:95) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.g etComponent(ClassicSingletonComponentManager.java:92) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer .java:331) at org.codehaus.plexus.DefaultPlexusContainer.registerComponentDiscoveryLis teners(DefaultPlexusContainer.java:693) at org.codehaus.plexus.DefaultPlexusContainer.start(DefaultPlexusContainer. java:777) at org.codehaus.plexus.DefaultPlexusContainer.createChildContainer(DefaultP lexusContainer.java:270) at org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginMana ger.java:291) at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(Defau ltPluginManager.java:207) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginM anager.java:171) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default LifecycleExecutor.java:1257) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(De faultLifecycleExecutor.java:1522) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAgg regationNeeds(DefaultLifecycleExecutor.java:386) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:138) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.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) running mvn with -X yields: (diff-style) + Error stacktraces are turned on. Maven version: 2.0.7 Java version: 1.5.0_07 -OS name: "sunos" version: "5.9" arch: "sparc" -[DEBUG] Building Maven user-level plugin registry from: '/home//.m2/plugin-registry.xml' +OS name: "sunos" version: "5.10" arch: "sparc" +[DEBUG] Building Maven user-level plugin registry from: '/home/**/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/home/*/maven/maven-2.0.7/conf/plugin-registry.xml' [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'sih-tools'. [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo [DEBUG] Retrieving parent-POM: fr.ifremer.sih:sih-parent::1.1 for project: fr.ifremer.plugins:maven-sih-tools-plugin:maven-plugin:1.1 from the repository. [DEBUG] Retrieving parent-POM: fr.ifremer:common::1.0.0 for project: fr.ifremer.sih:sih-parent:pom:1.1 from the repository. [DEBUG] Adding managed dependencies for fr.ifremer.plugins:maven-sih-tools-plugin [DEBUG] antlr:antlr:jar:2.7.2:compile [DEBUG] asm:asm:jar:2.2.3:compile [...] [DEBUG] jregex:jregex:jar:1.2_01 [DEBUG] taglibs:standard:jar:1.0.6 -[INFO] -[INFO] Building sih-tools-runtime -[INFO]task-segment: [sih-tools:reception] -[INFO] -[...] +[INFO] +[ERROR] FATAL ERROR +[INFO]
Maven2, maven-scm-plugin, svn, interactive mode
Hi all, I'm trying to use the scm plugin to bootstrap a project from a SVN repository. Using: mvn scm:bootstrap -DconnectionUrl="scm:svn:$SCM_PATH" -DscmVersion="$SCM_REVISION" -DscmVersionType="$SCM_REVISION_TYPE" -Dusername="$SCM_USER" -Dpassword="$SCM_PWD" -Dgoals="install" All works well However, the end user of this script would like SVN to prompt for username, password, and certificate trusting... Per the svn scm provider plugin, I created a config file with false, which works: maven calls SVN without the -non-interactive option. However, it seems that maven doesn't pipe the svn command's inputs and outputs: On windows (xp sp2), it just hangs (no cpu), as if it were waiting for input, but there is no message On Solaris (5.6, sh), I do get a request for a password, based on the current user (although this isn't the user I want to use, this seems to be a logical svn behaviour), but doesn't react to input. Has anyone had any success using the interactive mode for svn with the scm plugin? Also, are there any known plans on making the interactive mode available via a -D switch? [Based on my reading of maven-scm-provider-svn-commons-1.1-sources & maven-scm-provider-svnexe-1.1-sources, there is nothing in that direction so far] My current workaround is to prompt for username & password in the script, and pass these to maven, using the non-interactive default mode, although this does not cater for certificate problems. Thanks in advance, Jonathan Winterflood Capgemini Ouest - Agence de Brest