You *can* use webby in JavaEE Kepler, even if m2e-wtp is installed. You need to tell m2e to use webby instead of m2e-wtp. You have 2 options :
- Either modify your pom.xml to add an m2e lifecycle mapping, like : <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>foo.bar</groupId> <artifactId>webapp</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>war</packaging> <build> <pluginManagement> <plugins> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <versionRange>[2.0,)</versionRange> <goals> <goal>war</goal> </goals> </pluginExecutionFilter> <action> <configurator> <id>org.sonatype.m2e.webby.projectConfigurator</id> </configurator> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement> </build> </project> This will enable webby for this specific war project. Others would use the default m2e-wtp configurator. - Or use a workspace wide lifecycle mapping configuration (all war projects will use webby). Open Preferences > Maven > Lifecycle Mapping > Open workspace lifecycle mapping metadata (you can change its default location), and add : <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <versionRange>[2.0,)</versionRange> <goals> <goal>war</goal> </goals> </pluginExecutionFilter> <action> <configurator> <id>org.sonatype.m2e.webby.projectConfigurator</id> </configurator> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> save and reload the mapping metadata. You might need to trigger a full workspace build so that webby generates the target/m2e-webby/war folder. Either one of these steps will allow you to do Run As > Run as webby on your project. HIH Fred On Thu, Aug 1, 2013 at 8:36 AM, COLLIGNON, Thomas <t-collig...@efluid.fr>wrote: > Hello,**** > > ** ** > > Yes without me2-wtp it works ! I have this in eclipse Kepler “standard”, > but in eclipse Kepler “J2ee” how can I disabled me2-wtp ?**** > > ** ** > > Thanks**** > > ** ** > > *De :* m2e-users-boun...@eclipse.org [mailto:m2e-users-boun...@eclipse.org] > *De la part de* Matthew Piggott > *Envoyé :* vendredi 19 juillet 2013 15:11 > *À :* Maven Integration for Eclipse users mailing list > > *Objet :* Re: [m2e-users] Is Webby will be compatible with m2e 1.4.0 ?**** > > ** ** > > You should only have one of Webby and m2e-wtp installed.**** > > ** ** > > On 19 July 2013 06:47, COLLIGNON, Thomas <t-collig...@efluid.fr> wrote:*** > * > > Hi, **** > > **** > > Yes I Have tried, but no success L**** > > **** > > Since Juno I have never get this message …**** > > **** > > The new folder M2e-wtp will maybe in conflict with old folder m2e-webby ?* > *** > > **** > > *De :* m2e-users-boun...@eclipse.org [mailto:m2e-users-boun...@eclipse.org] > *De la part de* Rafal Krzewski > *Envoyé :* vendredi 19 juillet 2013 11:43 > *À :* m2e-users@eclipse.org > *Objet :* Re: [m2e-users] Is Webby will be compatible with m2e 1.4.0 ?**** > > **** > > Hi, > > have you tried doing what the message says? I get it occassionaly but > refreshing and & cleaning the affected project helps. > Also make sure you have "Project > Build automatically" option enabled. > > Cheers, > Rafał > > On 07/18/2013 11:58 AM, COLLIGNON, Thomas wrote:**** > > Hello,**** > > **** > > I have recently get new eclipse Kepler and m2e 1.4.0 but I think that > webby will not work now L**** > > **** > > I have this issue :**** > > **** > > *WAR base directory, D:\XXXXXX\m2e-webby\war does not exist, please > ensure your workspace is refreshed and has been built***** > > **** > > If this will be fix in webby next time ?**** > > **** > > Thanks all**** > > **** > > > > **** > > _______________________________________________**** > > m2e-users mailing list**** > > m2e-users@eclipse.org**** > > https://dev.eclipse.org/mailman/listinfo/m2e-users**** > > **** > > > _______________________________________________ > m2e-users mailing list > m2e-users@eclipse.org > https://dev.eclipse.org/mailman/listinfo/m2e-users**** > > ** ** > > _______________________________________________ > m2e-users mailing list > m2e-users@eclipse.org > https://dev.eclipse.org/mailman/listinfo/m2e-users > > -- "Have you tried turning it off and on again" - The IT Crowd
_______________________________________________ m2e-users mailing list m2e-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/m2e-users