m2e-wtp 0.14.0 is compatible with the lastet m2e version. See https://github.com/sonatype/m2eclipse-wtp/wiki If anything fails, try using a fresh Eclipse install.
You can try creating a project using the org.jboss.spec.archetypes: jboss-javaee6-webapp:7.0.0.Final archetype. It's been validated working with m2e-wtp and AS7 2011/10/13 Ackerman, Mitchell <[email protected]> > Try as I might, I can’t get a maven project deployed to my app server – > Jboss 7 – successfully using m2eclipse and WTP.**** > > ** ** > > My environment is **** > > **- **Eclipse Indigo, **** > > **- **Maven Integration for WTP 0.13.1…**** > > **- **Maven integration for eclipse 1.0.1…**** > > **- **M2e connector for mavenarchiver pom properties 0.14.0…**** > > ** ** > > I have attempted to include the latest version of m2eclipse but it is > incompatible with WTP, which requires 1.0.1. I have also tried other > versions, but all with the same result.**** > > ** ** > > I have a Maven web project that bundles web content in the standard maven > manner, i.e., structured like this:**** > > ** ** > > TestWar**** > > **- **Src **** > > **- **Target**** > > **o **Classes**** > > **o **Maven-archiver**** > > **o **TestWar-0.0.1-SNAPSHOT**** > > **o **TestWar-0.0.1-SNAPSHOT.war**** > > ** ** > > There is nothing else in the source, though the pom depends upon other > projects, here is a simplified version:**** > > ** ** > > <?xml version="1.0"?>**** > > <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/maven-v4_0_0.xsd">**** > > ** ** > > <groupId>com.pgi</groupId>**** > > <artifactId>TestWar</artifactId>**** > > <version>0.0.1-SNAPSHOT</version>**** > > <modelVersion>4.0.0</modelVersion>**** > > <packaging>war</packaging>**** > > ** ** > > <dependencies>**** > > .**** > > .**** > > .**** > > </dependencies>**** > > ** ** > > <build>**** > > <plugins>**** > > <plugin>**** > > > <artifactId>maven-war-plugin</artifactId>**** > > > <version>2.1.1</version>**** > > > <configuration>**** > > > <failOnMissingWebXml>false</failOnMissingWebXml>**** > > > </configuration>**** > > </plugin>**** > > </plugins>**** > > </build>**** > > </project>**** > > ** ** > > If I mark the project as deployable, it attempts to do so but ends up > attempting to deploy 2 war files, one for the project and one for the > embedded war file. The output includes:**** > > ** ** > > 11:00:33,453 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - > 1) The deployment scanner found a directory named META-INF that was not > inside a directory whose name ends with .ear, .jar, .rar, .sar or .war. This > is likely the result of unzipping an archive directly inside the > C:\java\jboss\jboss-as-7.0.1.Final\standalone\deployments directory, which > is a user error. The META-INF directory will not be scanned for deployments, > but it is possible that the scanner mayfind other files from the unzipped > archive and attempt to deploy them, leading to errors.**** > > ** ** > > 11:00:33,454 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - > 1) The deployment scanner found a directory named WEB-INF that was not > inside a directory whose name ends with .ear, .jar, .rar, .sar or .war. This > is likely the result of unzipping an archive directly inside the > C:\java\jboss\jboss-as-7.0.1.Final\standalone\deployments directory, which > is a user error. The WEB-INF directory will not be scanned for deployments, > but it is possible that the scanner mayfind other files from the unzipped > archive and attempt to deploy them, leading to errors.**** > > ** ** > > 11:00:33,477 INFO [org.jboss.as.server.deployment] (MSC service thread > 1-1) Starting deployment of "TestWar-0.0.1-SNAPSHOT.war"**** > > 11:00:33,478 INFO [org.jboss.as.server.deployment] (MSC service thread > 1-2) Starting deployment of "TestWar"**** > > ** ** > > I have tried all kind of combinations and permutations of plugins and > project configuration, to no avail. My questions are:**** > > ** ** > > Should this work?**** > > If so, what am I doing wrong?**** > > ** ** > > Thanks, Mitchell**** > > _______________________________________________ > m2e-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/m2e-users > > -- "Have you tried turning it off and on again" - The IT Crowd
_______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users
