JiaLiangC opened a new pull request, #3850: URL: https://github.com/apache/ambari/pull/3850
## What changes were proposed in this pull request? Problem: The current build process for Ambari Server encounters issues during parallel compilation, resulting in an incomplete distribution package. Specifically, the Ambari Admin frontend is missing from the final package. Current build command: ``` mvn -T2C -B clean install package -Drat.skip=true -DskipTests -Dmaven.test.skip=true -Dfindbugs.skip=true ``` Root Cause: 1. Ambari Server's `pom.xml` does not include a dependency on Ambari Admin. 2. The assembly descriptor `src/main/assemblies/server.xml` packages Ambari Server, Agent, and Admin into the `ambari-server-*-dist` release package. 3. During parallel compilation, if Ambari Server completes before Ambari Admin, the packaging process executes prematurely. 4. This results in Ambari Admin's JAR file not being correctly included in the distribution package. Current relevant section in `server.xml`: ```xml <fileSet> <fileMode>644</fileMode> <directory>${ambari-admin-dir}/target</directory> <outputDirectory>/var/lib/ambari-server/resources/views</outputDirectory> <includes> <include>*.jar</include> </includes> </fileSet> ``` Proposed Solution: 1. Add Ambari Admin as a dependency in Ambari Server's `pom.xml`. Testing: - Verify successful parallel compilation - Confirm the presence of Ambari Admin frontend in the final package  This fix ensures that all components, including Ambari Admin, are properly packaged during parallel compilation, resolving the issue of missing frontend upon installation. ## How was this patch tested? (Please explain how this patch was tested. Ex: unit tests, manual tests) (If this patch involves UI changes, please attach a screen-shot; otherwise, remove this) Please review [Ambari Contributing Guide](https://cwiki.apache.org/confluence/display/AMBARI/How+to+Contribute) before opening a pull request. -- 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: dev-unsubscr...@ambari.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ambari.apache.org For additional commands, e-mail: dev-h...@ambari.apache.org