Configuration of the Maven

Asked

Viewed 338 times

4

I created a project Maven (NOTE: It is the first time I am touching this technology), but he is making this mistake. This plugin what message is talking about I need to install it? How do?

Another thing, when I go to propriedades do projeto >> Project faces and click on dynamic web module 3.1 he asks for the version of java 1.7. Is that right? In my opinion it should point to the Java 1.8, since the technologies I’m using are more current.

My grief is with these settings:
- Maven 3.3
- JDK 1.8
- Tomcat 8.0.23

inserir a descrição da imagem aqui

Could someone help me?

EDITION: this is my pom.xml:

<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>com.hellemos</groupId>
    <artifactId>Financeiro</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <packaging>war</packaging>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
    <build>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.3</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
        </plugins>
    </build>  
</project>
  • I think you could separate your doubt into two publications. Or not, if this topic solves you the second: Maven how to set JDK version?

  • I had already done this setup, and it’s not working either.

  • 1

    Two things: First, are you running Maven somewhere with an internet connection so that Maven downloads <strike>the entire internet</strike> the plugin dependencies? Second, post your pom.xml.

  • Yes, I have an internet connection.

  • 1

    Use the link from editing in your question to include the archive pom.xml, in the comments becomes difficult to visualize :)

  • Thanks @re22 =) that was what was looking for rs

  • Have you thought about using the Maven per command line? mvn clean install should run the clean and install phases of your project, just open the prompt, go to the folder where your pom.xml is and run this command> mvn clean intall I had bad experiences with Maven plugins, especially in Eclipse, in Intellij everything always worked for me.

  • 2

    In this video you teach how to set up: https://www.youtube.com/watch?v=0M6h8PrZN00

  • It worked the/ It was the configuration of the Maven that I had not yet done, so it was going wrong. Thanks @Lucaseduardo

  • @user25945 put the answer to be able to help other people.

  • or you also @Lucaseduardo

  • in the video that @Lucaseduardo posted is already with the answer Reginaldo ^^

Show 7 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.