Plugin execution not covered by lifecycle configuration

767 views
Skip to first unread message

Leandro Miranda

unread,
Jan 30, 2015, 8:44:12 AM1/30/15
to maven-down...@googlegroups.com
Hi, 

I'm trying to use download-maven-plugin in a specific maven lifecycle phase "generate-resources" but I'm keeping geeting this error message:

Plugin execution not covered by lifecycle configuration: com.googlecode.maven-download-plugin:download-maven-plugin:1.2.1:wget (execution: atualiza-
 conteudo, phase: generate-resources)

Can anybody help?

<build>
<plugins>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<outputFileName>AgrupaConteudo</outputFileName>
<overwrite>true</overwrite>
<retries>3</retries>
<outputDirectory>${basedir}/src/main/resources/conteudo</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jsonschema2pojo</groupId>
<artifactId>jsonschema2pojo-maven-plugin</artifactId>
<version>0.4.7</version>
<configuration>
<sourceType>json</sourceType>
<useLongIntegers>true</useLongIntegers>
<!-- <annotationStyle>jackson2</annotationStyle> -->
<annotationStyle>gson</annotationStyle>
<sourceDirectory>${basedir}/src/main/resources</sourceDirectory>
<targetPackage>br.infoglobo.json</targetPackage>
</configuration>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Mickael Istria

unread,
Feb 2, 2015, 1:28:28 AM2/2/15
to maven-down...@googlegroups.com
Indeed, there is no m2e connector for the download-maven-plugin.
This page gives you more details on how to workaround it: https://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html

--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets
Reply all
Reply to author
Forward
0 new messages