DPascalBernard / maven-alfresco-archetypes

Automatically exported from code.google.com/p/maven-alfresco-archetypes
0 stars 0 forks source link

Plugin execution not covered by lifecycle configuration: com.sourcesense.maven:maven-nosnapshot-plugin:0.0.5:strip (execution: default, phase: initialize) #63

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. mvn archetype:generate -DarchetypeGroupId=com.sourcesense.alfresco 
-DarchetypeArtifactId=maven-alfresco-amp-archetype -DarchetypeVersion=3.9.0 
-DgroupId=test -DartifactId=test -Dversion=1.0-SNAPSHOT 
-DarchetypeRepository=http://maven.alfresco.com/nexus/content/repositories/relea
ses -DinteractiveMode=false
2. Import the project into Eclipse with "Maven Integration for WTP" 
0.13.1.20110728-1800

What is the expected output? What do you see instead?
Expected: import successful. 
In fact: import error "No marketplace entries found to handle 
maven-nosnapshot-plugin:0.0.5:strip in Eclipse.  Please see Help for more 
information."

Maven Project Build Lifecycle Mapping Problem: Plugin execution not covered by 
lifecycle configuration: 
com.sourcesense.maven:maven-nosnapshot-plugin:0.0.5:strip (execution: default, 
phase: initialize)

What version of the product are you using? On what operating system?
maven-alfresco-amp-archetype: 3.9.0
maven-nosnapshot-plugin: 0.0.5
Maven Integration for WTP Eclipse plugin: 0.13.1.20110728-1800

Original issue reported on code.google.com by Sergey.Z...@gmail.com on 2 Jan 2012 at 10:14

Attachments:

GoogleCodeExporter commented 9 years ago
According to StackOverflow: "You can use the second eclipse quickfix for this 
(Permamnently mark goal add-classes in pom.xml as ignored in eclipse build)"

http://stackoverflow.com/questions/7391201/maven-plugin-error-execution-not-cove
red-by-lifecycle-configuration

It seems to work (although POM hasn't changed).

Original comment by gethinpj...@gmail.com on 19 Jan 2012 at 12:48

GoogleCodeExporter commented 9 years ago
This is the pluginManagement section I add for maven projects created with that 
archetype:

        <pluginManagement>
            <plugins>
              <plugin>
                <groupId>org.eclipse.m2e</groupId>
                <artifactId>lifecycle-mapping</artifactId>
                <version>1.0.0</version>
                <configuration>
                  <lifecycleMappingMetadata>
                    <pluginExecutions>
                      <pluginExecution>
                        <pluginExecutionFilter>
                          <groupId>org.apache.maven.plugins</groupId>
                          <artifactId>maven-dependency-plugin</artifactId>
                          <versionRange>[2.0,)</versionRange>
                          <goals>
                            <goal>copy-dependencies</goal>
                          </goals>
                        </pluginExecutionFilter>
                        <action>
                          <execute />
                        </action>
                      </pluginExecution>
                      <pluginExecution>
                        <pluginExecutionFilter>
                          <groupId>com.sourcesense.maven</groupId>
                          <artifactId>maven-nosnapshot-plugin</artifactId>
                          <versionRange>[0.0,)</versionRange>
                          <goals>
                            <goal>strip</goal>
                          </goals>
                        </pluginExecutionFilter>
                        <action>
                          <ignore />
                        </action>
                      </pluginExecution>
                    </pluginExecutions>
                  </lifecycleMappingMetadata>
                </configuration>
              </plugin>
            </plugins>
        </pluginManagement>

Original comment by rgau...@gmail.com on 21 Feb 2012 at 7:19

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r379.

Original comment by mauri...@session.it on 4 Apr 2012 at 5:11

GoogleCodeExporter commented 9 years ago
Committed pluginManagement provided by Ray (thanks!) - 
http://code.google.com/p/maven-alfresco-archetypes/source/detail?r=379

Original comment by mauri...@session.it on 4 Apr 2012 at 5:11

GoogleCodeExporter commented 9 years ago

Original comment by mauri...@session.it on 6 Apr 2012 at 6:26