[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Is Webby will be compatible with m2e 1.4.0 ?

Ok Iâll try, thanks for this information !

 

De : m2e-users-bounces@xxxxxxxxxxx [mailto:m2e-users-bounces@xxxxxxxxxxx] De la part de Fred Bricon
Envoyà: jeudi 1 aoÃt 2013 11:21
à: Maven Integration for Eclipse users mailing list
Objet : Re: [m2e-users] Is Webby will be compatible with m2e 1.4.0 ?

 

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 : 

         <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-collignon@xxxxxxxxx> 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-bounces@xxxxxxxxxxx [mailto:m2e-users-bounces@xxxxxxxxxxx] 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-collignon@xxxxxxxxx> 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-bounces@xxxxxxxxxxx [mailto:m2e-users-bounces@xxxxxxxxxxx] De la part de Rafal Krzewski
Envoyà: vendredi 19 juillet 2013 11:43
à: m2e-users@xxxxxxxxxxx
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@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users

 


_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users

 


_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users



 

--
"Have you tried turning it off and on again" - The IT Crowd