Closed groobyming closed 2 years ago
What are the versions of Java and Maven that you are using?
Is it identical to what's in "main" or have you made some local changes to it?
On Tue, Jul 19, 2022 at 11:40 AM groobyming @.***> wrote:
Describe the bug Hi, I try to install Waggle-dance. I executed commands: mvn clean package I received error messages, including:
[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Waggle Dance Parent 3.9.8: [INFO] [INFO] Waggle Dance Parent ................................ SUCCESS [ 4.489 s] [INFO] waggle-dance-api ................................... SUCCESS [ 19.306 s] [INFO] waggle-dance-core .................................. FAILURE [ 16.880 s] [INFO] waggle-dance-rest .................................. SKIPPED [INFO] waggle-dance-boot .................................. SKIPPED [INFO] waggle-dance-integration-tests ..................... SKIPPED [INFO] waggle-dance ....................................... SKIPPED [INFO] waggle-dance-rpm ................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 42.391 s [INFO] Finished at: 2022-07-19T18:36:48+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.9:test-compile (default) on project waggle-dance-core: AJC compiler errors: [ERROR] error can't determine annotations of missing type org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner [ERROR] when processing declare parents PowerMockRunner [ERROR] when weaving intertype declarations PowerMockRunner [ERROR] when batch building BuildConfig[null] #Files=54 AopXmls=#0 [ERROR] [Xlint:cantFindType] [ERROR] error at (no source information available) [ERROR] /data/work/waggle-dance/waggle-dance-core/src/test/java/com/hotels/bdp/waggledance/client/DefaultMetaStoreClientFactoryTest.java:0::0 The type org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner cannot be resolved. It is indirectly referenced from required .class files [ERROR] [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn
-rf :waggle-dance-core To Reproduce mvn clean package
Expected behavior A clear and concise description of what you expected to happen.
Logs
[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Waggle Dance Parent 3.9.8: [INFO] [INFO] Waggle Dance Parent ................................ SUCCESS [ 4.489 s] [INFO] waggle-dance-api ................................... SUCCESS [ 19.306 s] [INFO] waggle-dance-core .................................. FAILURE [ 16.880 s] [INFO] waggle-dance-rest .................................. SKIPPED [INFO] waggle-dance-boot .................................. SKIPPED [INFO] waggle-dance-integration-tests ..................... SKIPPED [INFO] waggle-dance ....................................... SKIPPED [INFO] waggle-dance-rpm ................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 42.391 s [INFO] Finished at: 2022-07-19T18:36:48+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.9:test-compile (default) on project waggle-dance-core: AJC compiler errors: [ERROR] error can't determine annotations of missing type org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner [ERROR] when processing declare parents PowerMockRunner [ERROR] when weaving intertype declarations PowerMockRunner [ERROR] when batch building BuildConfig[null] #Files=54 AopXmls=#0 [ERROR] [Xlint:cantFindType] [ERROR] error at (no source information available) [ERROR] /data/work/waggle-dance/waggle-dance-core/src/test/java/com/hotels/bdp/waggledance/client/DefaultMetaStoreClientFactoryTest.java:0::0 The type org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner cannot be resolved. It is indirectly referenced from required .class files [ERROR] [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn
-rf :waggle-dance-core Versions (please complete the following information):
- Waggle Dance Version: 3.9.8
— Reply to this email directly, view it on GitHub https://github.com/ExpediaGroup/waggle-dance/issues/247, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAHGEN54UL2KVLRY7GKSSTVU2A3HANCNFSM537PSXIQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
@massdosage jdk version:
openjdk version "1.8.0_322"
OpenJDK Runtime Environment (Zulu 8.60.0.21-CA-macosx) (build 1.8.0_322-b06)
OpenJDK 64-Bit Server VM (Zulu 8.60.0.21-CA-macosx) (build 25.322-b06, mixed mode)
maven version:
3.8.5
I have not made any changes
I tried it out on a fresh machine that's never built it before and it worked fine:
--
java -version openjdk version "1.8.0_292" OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_292-b10) OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.292-b10, mixed mode)
--
mvn -version Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Could there be some difference in the Zulu JDK (which you have) over AdoptOpenJdk (which I have)? Also, try building the latest version (3.10.7-SNAPSHOT) rather than 3.9.8 and see if that makes any difference.
Hi @massdosage --I changed the version of jdk and maven, then I typed mvn clean package -DskipTests
, but got another error as below
[INFO] waggle-dance-api ................................... SUCCESS [ 12.284 s] [INFO] waggle-dance-core .................................. SUCCESS [ 35.938 s] [INFO] waggle-dance-rest .................................. SUCCESS [ 1.161 s] [INFO] waggle-dance-boot .................................. SUCCESS [ 28.690 s] [INFO] waggle-dance-integration-tests ..................... SUCCESS [ 6.365 s] [INFO] waggle-dance ....................................... SUCCESS [ 5.687 s] [INFO] waggle-dance-rpm ................................... FAILURE [ 4.796 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:36 min [INFO] Finished at: 2022-07-20T22:00:05+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.2.0:attached-rpm (attach-rpm) on project waggle-dance-rpm: Unable to build the RPM: Error while executing process. Cannot run program "rpmbuild" (in directory "/tmp/waggle-dance/waggle-dance-rpm/target/rpm/waggle-dance-rpm/SPECS"): error=20, Not a directory -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn
-rf :waggle-dance-rpm
FYI:
waggle-dance-tag:
waggle-dance-parent-3.9.8
jdk -version
java version "1.8.0_261" Java(TM) SE Runtime Environment (build 1.8.0_261-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)
mvn -version java version "1.8.0_261" Java(TM) SE Runtime Environment (build 1.8.0_261-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)
If I typed mvn clean package -pl '!waggle-dance-rpm' -DskipTests
to exclude the module 'waggle-dance-rpm' and then it worked fine. Should I install RPM?
You only need to install "rpm" if you want to build the RPM package. If you don't need that then you can skip it and just use the "TGZ" or jar files.
It's interesting that the different version of the JDK got rid of the compiler error, it looks like the one you were using was stricter in how it follows the path to related class files, even if they're potentially not used. Glad to hear you got it working with a different version though.
On Wed, Jul 20, 2022 at 3:35 PM groobyming @.***> wrote:
If I typed mvn clean package -pl '!waggle-dance-rpm' -DskipTests to exclude the module 'waggle-dance-rpm' and then it worked fine. Should I install RPM? [image: image] https://user-images.githubusercontent.com/34335395/180008867-dc95c141-474d-4dbc-b5a4-672ca87c90ac.png
— Reply to this email directly, view it on GitHub https://github.com/ExpediaGroup/waggle-dance/issues/247#issuecomment-1190367013, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAHGEKVOTNKQHH6IT7FFHDVVAFC5ANCNFSM537PSXIQ . You are receiving this because you were mentioned.Message ID: @.***>
@massdosage Thanks for your reply, i will close the issue
Describe the bug Hi, I try to install Waggle-dance. I executed commands:
mvn clean package
I received error messages, including:To Reproduce mvn clean package
Expected behavior A clear and concise description of what you expected to happen.
Logs
Versions (please complete the following information):