Finally I have the time to come back to this subject that I left
    open... 
     
    I could found that Eclipse-Features package type doesn't have
    anything bounded to generate-resources phase, as in it
    components.xml below. Is there a way to override this default
    configuration, so I can bind the resource:resource goal to it ? 
     
    <component> 
             
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role> 
              <role-hint>eclipse-feature</role-hint> 
              <implementation> 
               
        org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping 
              </implementation> 
              <configuration> 
                <lifecycles> 
                  <lifecycle> 
                    <id>default</id> 
                    <phases> 
                      <validate> 
                       
org.eclipse.tycho:tycho-packaging-plugin:${project.version}:build-qualifier, 
                       
        org.eclipse.tycho:tycho-packaging-plugin:${project.version}:validate-id, 
                       
org.eclipse.tycho:tycho-packaging-plugin:${project.version}:validate-version 
                      </validate> 
                      <generate-resources> 
                          </generate-resources> 
                      <package> 
                       
org.eclipse.tycho:tycho-packaging-plugin:${project.version}:package-feature, 
                       
        org.eclipse.tycho:tycho-p2-plugin:${project.version}:p2-metadata, 
                       
        org.eclipse.tycho:tycho-p2-plugin:${project.version}:feature-p2-metadata 
                      </package> 
                      <install> 
                       
org.apache.maven.plugins:maven-install-plugin:${install-plugin.version}:install, 
                       
        org.eclipse.tycho:tycho-p2-plugin:${project.version}:update-local-index 
                      </install> 
                      <deploy> 
                       
org.apache.maven.plugins:maven-deploy-plugin:${deploy-plugin.version}:deploy 
                      </deploy> 
                    </phases> 
                  </lifecycle> 
                </lifecycles> 
              </configuration> 
            </component> 
     
     
    I've tried to do this, but didn't work: 
                <plugin> 
                    
       <groupId>org.apache.maven.plugins</groupId> 
                    
       <artifactId>maven-resources-plugin</artifactId> 
                      <executions> 
                          <execution> 
                              <id>execution1</id> 
                            
       <phase>generate-resources</phase> 
                              <goals> 
                                  <goal>resources</goal> 
                              </goals> 
                          </execution> 
                      </executions> 
                  </plugin> 
     
    thanks 
     
    Cristiano 
     
     
    On 20/08/11 12:31, Oberlies, Tobias wrote:
    
      You should be able to see this in the log: If a maven-resources-plugin goal is executed, there will be a line for it in the build output. Maybe this is in fact missing in the lifecycle of eclipse-features?
Regards
Tobias
Cristiano wrote:
 
      
        The file is being copied to the resulted jar, but it seems that
maven-resources-plugin is not being called at all.
 
       
      
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
 
     
     
  
 |