Maven is compiling less number of classes than expected. Porting build pipeline from Jenkins to Github Actions

Recently, we have ported our build pipeline from jenkins build to Github Actions. We build our application WAR using mvn clean deploy -U -B -s settings.xml

Our artifact repositry is Jfrog and we have different users creds to be used in both jenkins app build and Github actions build pipeline.

The weird problem is that we saw the number of classes getting compiled are significant less in Github Actions build as compared to jenkins which results in failure of test cases later.

Here are the logs from maven:

Jenkins:

[INFO] --- gmavenplus-plugin:1.3:compile (default) @ myapp-service --- 
[INFO] No sources specified for compilation. Skipping. 
[INFO] 
[INFO] --- build-helper-maven-plugin:3.2.0:add-test-source (add-integration-test-sources) @ myapp-service --- 
[INFO] Test Source directory: C:DBuildCIjavasrctest-integrationgroovy added. 
[INFO] Test Source directory: C:DBuildCIjavasrctest-integrationjava added. 
[INFO] 
[INFO] --- gmavenplus-plugin:1.3:testGenerateStubs (default) @ myapp-service --- 
[INFO] Using Groovy 3.0.12 to perform testGenerateStubs. 
[INFO] Generated 0 stubs. 
[INFO] 
[INFO] --- build-helper-maven-plugin:3.2.0:add-test-resource (add-integration-test-resources) @ myapp-service --- 
[INFO] 
[INFO] --- maven-resources-plugin:3.3.1:testResources (default-testResources) @ myapp-service --- 
[INFO] Copying 86 resources from srctestresources to targettest-classes 
[INFO] Copying 251 resources from srctest-integrationresources to targettest-classes 
[INFO] 
[INFO] --- maven-compiler-plugin:3.11.0:testCompile (default-testCompile) @ myapp-service --- 
[INFO] Changes detected - recompiling the module! :dependency 
[INFO] Compiling 452 source files with javac [debug release 17] to targettest-classes

GitHub Actions:

[INFO] Test Source directory: /java/src/test-integration/java added.
[INFO] 
[INFO] --- gmavenplus-plugin:1.3:testGenerateStubs (default) @ myapp-service ---
[INFO] No sources specified for stub generation.  Skipping.
[INFO] 
[INFO] --- build-helper-maven-plugin:3.2.0:add-test-resource (add-integration-test-resources) @ myapp-service ---
[INFO] 
[INFO] --- maven-resources-plugin:3.3.1:testResources (default-testResources) @ myapp-service ---
[INFO] Copying 86 resources from src/test/resources to target/test-classes
[INFO] Copying 251 resources from src/test-integration/resources to target/test-classes
[INFO] 
[INFO] --- maven-compiler-plugin:3.11.0:testCompile (default-testCompile) @ myapp-service ---
[INFO] Changes detected - recompiling the module! :dependency
[INFO] Compiling 199 source files with javac [debug release 17] to target/test-classes
[INFO] -------------------------------------------------------------
Error:  COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
Error:  /java/src/test-integration/java/com/service/core/repository/mongodb/AbstractMongoIntegrationTest.java:[16,35] cannot find symbol
  symbol:   class IntegrationTestDataUtility
  location: package com.service.util
Error:  /java/src/test-integration/java/com/service/core/repository/mongodb/AbstractMongoIntegrationTest.java:[71,19] cannot find symbol
  symbol:   class IntegrationTestDataUtility
  location: class com.service.core.repository.mongodb.AbstractMongoIntegrationTest
[INFO] 2 errors 

IntegrationTestDataUtility is a groovy class. I am thinking that the error is because the number of classes compiled are 199 which is less than actual 452 so many are not present at runtime during integration tests execution. My local machine during code build is also showing 452 classes and 199 is the only difference we found when compared Jenkins Vs Github actions logs.

Would appreciate if someone can tell why the difference in number of classes being compiled .

5

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa

Maven is compiling less number of classes than expected. Porting build pipeline from Jenkins to Github Actions

Recently, we have ported our build pipeline from jenkins build to Github Actions. We build our application WAR using mvn clean deploy -U -B -s settings.xml

Our artifact repositry is Jfrog and we have different users creds to be used in both jenkins app build and Github actions build pipeline.

The weird problem is that we saw the number of classes getting compiled are significant less in Github Actions build as compared to jenkins which results in failure of test cases later.

Here are the logs from maven:

Jenkins:

[INFO] --- gmavenplus-plugin:1.3:compile (default) @ myapp-service --- 
[INFO] No sources specified for compilation. Skipping. 
[INFO] 
[INFO] --- build-helper-maven-plugin:3.2.0:add-test-source (add-integration-test-sources) @ myapp-service --- 
[INFO] Test Source directory: C:DBuildCIjavasrctest-integrationgroovy added. 
[INFO] Test Source directory: C:DBuildCIjavasrctest-integrationjava added. 
[INFO] 
[INFO] --- gmavenplus-plugin:1.3:testGenerateStubs (default) @ myapp-service --- 
[INFO] Using Groovy 3.0.12 to perform testGenerateStubs. 
[INFO] Generated 0 stubs. 
[INFO] 
[INFO] --- build-helper-maven-plugin:3.2.0:add-test-resource (add-integration-test-resources) @ myapp-service --- 
[INFO] 
[INFO] --- maven-resources-plugin:3.3.1:testResources (default-testResources) @ myapp-service --- 
[INFO] Copying 86 resources from srctestresources to targettest-classes 
[INFO] Copying 251 resources from srctest-integrationresources to targettest-classes 
[INFO] 
[INFO] --- maven-compiler-plugin:3.11.0:testCompile (default-testCompile) @ myapp-service --- 
[INFO] Changes detected - recompiling the module! :dependency 
[INFO] Compiling 452 source files with javac [debug release 17] to targettest-classes

GitHub Actions:

[INFO] Test Source directory: /java/src/test-integration/java added.
[INFO] 
[INFO] --- gmavenplus-plugin:1.3:testGenerateStubs (default) @ myapp-service ---
[INFO] No sources specified for stub generation.  Skipping.
[INFO] 
[INFO] --- build-helper-maven-plugin:3.2.0:add-test-resource (add-integration-test-resources) @ myapp-service ---
[INFO] 
[INFO] --- maven-resources-plugin:3.3.1:testResources (default-testResources) @ myapp-service ---
[INFO] Copying 86 resources from src/test/resources to target/test-classes
[INFO] Copying 251 resources from src/test-integration/resources to target/test-classes
[INFO] 
[INFO] --- maven-compiler-plugin:3.11.0:testCompile (default-testCompile) @ myapp-service ---
[INFO] Changes detected - recompiling the module! :dependency
[INFO] Compiling 199 source files with javac [debug release 17] to target/test-classes
[INFO] -------------------------------------------------------------
Error:  COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
Error:  /java/src/test-integration/java/com/service/core/repository/mongodb/AbstractMongoIntegrationTest.java:[16,35] cannot find symbol
  symbol:   class IntegrationTestDataUtility
  location: package com.service.util
Error:  /java/src/test-integration/java/com/service/core/repository/mongodb/AbstractMongoIntegrationTest.java:[71,19] cannot find symbol
  symbol:   class IntegrationTestDataUtility
  location: class com.service.core.repository.mongodb.AbstractMongoIntegrationTest
[INFO] 2 errors 

IntegrationTestDataUtility is a groovy class. I am thinking that the error is because the number of classes compiled are 199 which is less than actual 452 so many are not present at runtime during integration tests execution. My local machine during code build is also showing 452 classes and 199 is the only difference we found when compared Jenkins Vs Github actions logs.

Would appreciate if someone can tell why the difference in number of classes being compiled .

5

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật