adoroszlai commented on PR #8475:
URL: https://github.com/apache/ozone/pull/8475#issuecomment-2907673168

   @peterxcli Please use `mvn install` instead of `mvn verify install`.
   
   `verify` and `install` are both phases of the same 
[lifecycle](https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html).
  Running `mvn` with some phase executes steps for all prior phases, so `verify 
install` compiles and packages stuff twice.  This is unnecessary.
   
   The compiler plugin applies some optimization on the second run, apparently 
skipping annotation processing, which would create 
`ozone-default-generated.xml`.
   
   ```
   [INFO] --- compiler:3.14.0:compile (default-compile) @ hdds-common ---
   [INFO] Compiling 277 source files with javac [debug target 8] to 
target/classes
   ...
   [INFO] --- copy-rename:1.0.1:rename (rename-generated-config) @ hdds-common 
---
   [INFO] Renamed hadoop-hdds/common/target/classes/ozone-default-generated.xml 
to hadoop-hdds/common/target/classes/hdds-common-default.xml
   ...
   [INFO] --- compiler:3.14.0:compile (default-compile) @ hdds-common ---
   [INFO] Compiling 53 source files with javac [debug target 8] to 
target/classes
   [WARNING] Overwriting artifact's file from 
hadoop-hdds/common/target/hdds-common-2.1.0-SNAPSHOT.jar to 
hadoop-hdds/common/target/classes
   [INFO]
   [INFO] --- copy-rename:1.0.1:rename (rename-generated-config) @ hdds-common 
---
   ...
   [ERROR] Failed to execute goal 
com.coderplus.maven.plugins:copy-rename-maven-plugin:1.0.1:rename 
(rename-generated-config) on project hdds-common: sourceFile 
hadoop-hdds/common/target/classes/ozone-default-generated.xml does not exist
   ```


-- 
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: issues-unsubscr...@ozone.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org
For additional commands, e-mail: issues-h...@ozone.apache.org

Reply via email to