Rangith
Rangith

Reputation: 39

Getting one error in pom.xml

I just create a new-project.even for the new projects its gives error that commented below:

Multiple annotations found at this line:

Upvotes: 1

Views: 9029

Answers (2)

nihal
nihal

Reputation: 134

Just enclose your <plugins> tag with <pluginManagement> tag like the following

<pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>jaxb2-maven-plugin</artifactId>
                <version>1.6</version>
                <executions>
                    <execution>
                        <id>xjc</id>
                        <goals>
                            <goal>xjc</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <sources>
                        <source>src/main/resources/xsds</source>
                    </sources>
                    <packageName>com.concretepage.article_ws</packageName>
                    <clearOutputDir>false</clearOutputDir>
                </configuration>
            </plugin>
        </plugins>
    </pluginManagement>

Upvotes: 3

Tunaki
Tunaki

Reputation: 137064

You should install or update M2Eclipse. Go to "Help > Install New Software..." and type the following URL: http://download.eclipse.org/technology/m2e/releases/. Select all the elements and continue with the install. Don't forget to reboot Eclipse at the end of the process.

Once you made that, right-click your project and select "Maven > Update Project...".

Upvotes: 7

Related Questions