Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] M2E not working as advertised.

Hi Anders,

I created a clean maven-archetype-webapp from the maven wizard . So
why is it necessary to do another step? What is the protocol  here? Do
I do a "Update Project Configuration..." everytime I add something?
I'm asking cause there is no documentation on M2E.

Anyway yes there are 2 problems:

"Project configuration is not up-to-dae with pom.xml. Run maven ->
Update Project or use Quick Fix."
"Project configuration is not up-to-dae with pom.xml. Run project
configuration update.

I did "Quick Fix"

Now I have 2 problems:

"The import javax.servlet.annotation cannot be resolved"
"WebListener cannot be resolved to a type"

How the hell? I have all the libraries for these issues.


On Thu, May 10, 2012 at 11:35 AM, Anders Hammar <anders@xxxxxxxxxx> wrote:
> No problems reported in the Problems view?
> Did you try "Update Project Configuration..."?
>
> /Anders
>
> On Thu, May 10, 2012 at 11:28 AM, Jacques Koorts <jkoorts@xxxxxxxxx> wrote:
>> I think eclipse does not know where to find my class files. It was
>> advertised that you dont need to do mvn eclipse:eclipse anymore, so I
>> didnt.
>>
>> On Thu, May 10, 2012 at 11:25 AM, Jacques Koorts <jkoorts@xxxxxxxxx> wrote:
>>> It looks fine:
>>>
>>> <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";>
>>>  <modelVersion>4.0.0</modelVersion>
>>>  <groupId>mobi.bozza.wap</groupId>
>>>  <artifactId>wap</artifactId>
>>>  <packaging>war</packaging>
>>>  <version>0.0.1-SNAPSHOT</version>
>>>  <name>wap Maven Webapp</name>
>>>  <url>http://maven.apache.org</url>
>>>
>>>  <dependencies>
>>>    <dependency>
>>>      <groupId>junit</groupId>
>>>      <artifactId>junit</artifactId>
>>>      <version>3.8.1</version>
>>>      <scope>test</scope>
>>>    </dependency>
>>>        <dependency>
>>>                <groupId>commons-collections</groupId>
>>>                <artifactId>commons-collections</artifactId>
>>>                <version>3.2.1</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>commons-lang</groupId>
>>>                <artifactId>commons-lang</artifactId>
>>>                <version>2.6</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>commons-logging</groupId>
>>>                <artifactId>commons-logging</artifactId>
>>>                <version>1.1.1</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>net.sf.ehcache</groupId>
>>>                <artifactId>ehcache-core</artifactId>
>>>                <version>2.5.2</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>net.sf.jsr107cache</groupId>
>>>                <artifactId>jsr107cache</artifactId>
>>>                <version>1.1</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>jstl</groupId>
>>>                <artifactId>jstl</artifactId>
>>>                <version>1.2</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>ch.qos.logback</groupId>
>>>                <artifactId>logback-classic</artifactId>
>>>                <version>1.0.2</version>
>>>        </dependency>
>>>    <dependency>
>>>                <groupId>ch.qos.logback</groupId>
>>>                <artifactId>logback-core</artifactId>
>>>                <version>1.0.2</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>mysql</groupId>
>>>                <artifactId>mysql-connector-java</artifactId>
>>>                <version>5.1.19</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>org.springframework</groupId>
>>>                <artifactId>spring-aop</artifactId>
>>>                <version>3.1.1.RELEASE</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>org.springframework</groupId>
>>>                <artifactId>spring-asm</artifactId>
>>>                <version>3.1.1.RELEASE</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>org.springframework</groupId>
>>>                <artifactId>spring-aspects</artifactId>
>>>                <version>3.1.1.RELEASE</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>org.springframework</groupId>
>>>                <artifactId>spring-beans</artifactId>
>>>                <version>3.1.1.RELEASE</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>org.springframework.webflow</groupId>
>>>                <artifactId>org.springframework.binding</artifactId>
>>>                <version>2.0.5.RELEASE</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>org.springframework</groupId>
>>>                <artifactId>spring-context-support</artifactId>
>>>                <version>3.1.1.RELEASE</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>org.springframework</groupId>
>>>                <artifactId>spring-context</artifactId>
>>>                <version>3.1.1.RELEASE</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>org.springframework</groupId>
>>>                <artifactId>spring-core</artifactId>
>>>                <version>3.1.1.RELEASE</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>org.springframework</groupId>
>>>                <artifactId>spring-expression</artifactId>
>>>                <version>3.1.1.RELEASE</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>org.springframework</groupId>
>>>                <artifactId>spring-instrument</artifactId>
>>>                <version>3.1.1.RELEASE</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>org.springframework</groupId>
>>>                <artifactId>spring-instrument-tomcat</artifactId>
>>>                <version>3.1.1.RELEASE</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>org.springframework</groupId>
>>>                <artifactId>spring-jdbc</artifactId>
>>>                <version>3.1.1.RELEASE</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>org.springframework</groupId>
>>>                <artifactId>spring-jms</artifactId>
>>>                <version>3.1.1.RELEASE</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>org.springframework</groupId>
>>>                <artifactId>spring-orm</artifactId>
>>>                <version>3.1.1.RELEASE</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>org.springframework</groupId>
>>>                <artifactId>spring-oxm</artifactId>
>>>                <version>3.1.1.RELEASE</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>org.springframework</groupId>
>>>                <artifactId>spring-test</artifactId>
>>>                <version>3.1.1.RELEASE</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>org.springframework</groupId>
>>>                <artifactId>spring-web</artifactId>
>>>                <version>3.1.1.RELEASE</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>org.springframework.webflow</groupId>
>>>                <artifactId>spring-webflow</artifactId>
>>>                <version>2.3.1.RELEASE</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>org.slf4j</groupId>
>>>                <artifactId>slf4j-api</artifactId>
>>>                <version>1.6.4</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>net.sourceforge.wurfl</groupId>
>>>                <artifactId>wurfl</artifactId>
>>>                <version>1.4.0.1</version>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>org.apache.tomcat</groupId>
>>>                <artifactId>servlet-api</artifactId>
>>>                <version>6.0.35</version>
>>>                <scope>provided</scope>
>>>        </dependency>
>>>        <dependency>
>>>                <groupId>org.apache.commons</groupId>
>>>                <artifactId>commons-io</artifactId>
>>>                <version>1.3.2</version>
>>>        </dependency>
>>>  </dependencies>
>>>
>>>  <build>
>>>
>>>    <plugins>
>>>      <plugin>
>>>        <artifactId>maven-compiler-plugin</artifactId>
>>>        <version>2.0.2</version>
>>>        <configuration>
>>>                <source>1.6</source>
>>>                <target>1.6</target>
>>>        </configuration>
>>>          </plugin>
>>>
>>>    </plugins>
>>>  </build>
>>> </project>
>>>
>>>
>>> On Thu, May 10, 2012 at 11:23 AM, Thorsten Heit <thorsten.heit@xxxxxx> wrote:
>>>> Hi,
>>>>
>>>>> I'm really disappointed in this product. I'm sure it works fine for
>>>>> many, but after a clean installation of elcipse and M2E, creating a
>>>>> maven project with arch type maven-archetype-webapp with artifactid of
>>>>> hallo word, produces the following issues:
>>>>>
>>>>> 1. src/main/java was not created
>>>>>
>>>>> If this was intentional then I suggest someone create a
>>>>> maven-archetype-mvc-webapp.
>>>>>
>>>>> 2. ceating src/main/java, adding your pom, src files, web.xml and
>>>>> dispatcher-servlet.xml and then hitting the run button gives you
>>>>>
>>>>> SEVERE: Error configuring application listener of class
>>>>> net.sourceforge.wurfl.core.web.WURFLServletContextListener
>>>>> java.lang.ClassNotFoundException:
>>>>> net.sourceforge.wurfl.core.web.WURFLServletContextListener
>>>>
>>>> You're obviously missing some necessary dependencies.
>>>> How does your pom.xml look like?
>>>>
>>>>
>>>> Thorsten
>>>> _______________________________________________
>>>> 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


Back to the top