Maven3 eclipse: eclipse not working - the eclipse plugin target for the pom project is not running

I have a problem with maven 3 running on Windows7 64 bit. When I execute maven eclipse: eclipse (I use maven-eclipse-plugin 2.8), maven does not create any configuration. I just get the following log:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building sesame-connector
[INFO]    task-segment: [eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
[INFO] No goals needed for project - skipping
[INFO] [eclipse:eclipse {execution: default-cli}]
[INFO] Not running eclipse plugin goal for pom project
[INFO] Using Eclipse Workspace: C:\workspace
[WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C
:\Program Files\Java\jre6
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAIN
ER

My eclipse plugin configuration looks fine, so I really don't understand why it doesn't work:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>2.3.1</version>

    <configuration>
        <source>1.6</source>
        <target>1.6</target>                    
    </configuration>
</plugin>
<plugins>
    <plugin>
        <artifactId>maven-eclipse-plugin</artifactId>
        <configuration>
            <source>1.6</source>
            <target>1.6</target>
        </configuration>
        <version>2.8</version>
    </plugin>
</plugins>

Does anyone experience this behavior?

+3
source share
2 answers

I found a mistake in my pom file - package declaration: <package>pom</package>. When I change it to jar, everything starts to work. The eclipse plugin does not create any eclipse files for pom projects.

+6
source

, , eclipse , .

Not running eclipse plugin goal for pom project
0

Source: https://habr.com/ru/post/1788945/


All Articles