gitgabrio opened a new issue, #1460:
URL: https://github.com/apache/incubator-kie-issues/issues/1460

   kogito-maven-plugin is used to build springboot-based kogito projects.
   It contains three mojos and a couple of configurations to drive maven 
life-cycle.
   With that in place, its usage requires the
   `<extensions>true</extensions>` flag (see 
[documentation](https://maven.apache.org/guides/mini/guide-using-extensions.html))
   The problem with this approach is that if another module, inside 
kogito-runtimes, need it, the mvn reactor tries to resolve it during initial 
pom parsing and, since the plugin has not been built, yet, the initial pom 
parsing fails.
   This became evident after refactoring of springboot integration tests, that 
relies on it.
   The issue is also hidden in our CI for some unclear reason, when using the 
usual "999-SNAPSHOT" version, but it become evident when the version is changed.
   
   The most straightful solution would be to rewrite/modify the plugin to not 
depend on its customized lifecycle, so that it can be used without the 
`<extensions>true</extensions>` flag, but there could be other problems, so 
this need investigation.
   
   
   As further indication, here's the execution order with 
`<extensions>true</extensions>` flag:
   
   ```csv
   
--------------------------------------------------------------------------------------------------------------
   PLUGIN                        | PHASE                  | ID                  
          | GOAL                 
   
--------------------------------------------------------------------------------------------------------------
   maven-enforcer-plugin         | validate               | enforce-versions    
          | enforce              
   maven-enforcer-plugin         | validate               | 
enforce-maven-version         | enforce              
   maven-enforcer-plugin         | validate               | 
enforce-java-version          | enforce              
   maven-checkstyle-plugin       | validate               | default             
          | check                
   formatter-maven-plugin        | process-sources        | default             
          | format               
   impsort-maven-plugin          | process-sources        | default             
          | sort                 
   maven-remote-resources-plugin | generate-resources     | 
process-resource-bundles      | process              
   maven-resources-plugin        | process-resources      | default-resources   
          | resources            
   maven-compiler-plugin         | compile                | default-compile     
          | compile              
   kogito-maven-plugin           | compile                | 
default-generateModel         | generateModel        
   maven-compiler-plugin         | compile                | default-compile-1   
          | compile              
   kogito-maven-plugin           | process-classes        | 
default-process-model-classes | process-model-classes
   maven-resources-plugin        | process-test-resources | 
default-testResources         | testResources
   ...        
   ```
   
   and this is with `<extensions>false</extensions>` flag:
   
   ```csv
   
----------------------------------------------------------------------------------------------------
   PLUGIN                        | PHASE                  | ID                  
     | GOAL            
   
----------------------------------------------------------------------------------------------------
   maven-enforcer-plugin         | validate               | enforce-versions    
     | enforce         
   maven-enforcer-plugin         | validate               | 
enforce-maven-version    | enforce         
   maven-enforcer-plugin         | validate               | 
enforce-java-version     | enforce         
   maven-checkstyle-plugin       | validate               | default             
     | check           
   formatter-maven-plugin        | process-sources        | default             
     | format          
   impsort-maven-plugin          | process-sources        | default             
     | sort            
   maven-remote-resources-plugin | generate-resources     | 
process-resource-bundles | process         
   maven-resources-plugin        | process-resources      | default-resources   
     | resources       
   maven-compiler-plugin         | compile                | default-compile     
     | compile         
   maven-resources-plugin        | process-test-resources | 
default-testResources    | testResources
   ...    
   ```
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to