Maven application--- No source code was seen and extracted #11782
Replies: 4 comments 7 replies
-
Hi @bettyli037. Thanks you for your question. Without further details it's really difficult to tell what is going on. To start, Ccould you share the output produced by CodeQL? |
Beta Was this translation helpful? Give feedback.
-
Yes, that works. I found this error from the db logs generated by codeql. If I just run the mvn -f pom.xml clean install, it won’t produce any error. The building process is successful.
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Jeroen Ketema ***@***.***>
Sent: Thursday, December 22, 2022 4:57:49 PM
To: github/codeql ***@***.***>
Cc: Jingyi Li ***@***.***>; Mention ***@***.***>
Subject: Re: [github/codeql] Maven application--- No source code was seen and extracted (Discussion #11782)
Hi @bettyli037<https://github.com/bettyli037>. Thanks for the additional details. Just to check: if you just run mvn -f pom.xml clean install -DskipTests on its own, does that work, or do you get the same errors?
—
Reply to this email directly, view it on GitHub<#11782 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUJ6LKVSRTYY5MRSJNW2OSTWOTFF3ANCNFSM6AAAAAATG6KZTQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
This error indicates that you're using a JAR file with a
Then passing that jar on the classpath to You have two options:
|
Beta Was this translation helpful? Give feedback.
-
Okay. Thank you so much for your reply. I will try that way and let you know.
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Chris Smowton ***@***.***>
Sent: Thursday, January 5, 2023 12:59:31 PM
To: github/codeql ***@***.***>
Cc: Jingyi Li ***@***.***>; Mention ***@***.***>
Subject: Re: [github/codeql] Maven application--- No source code was seen and extracted (Discussion #11782)
My guess is the test with just mvn -f pom.xml clean install -DskipTests without codeql involved may have been run in a different environment (local?) than CodeQL (actions?)
—
Reply to this email directly, view it on GitHub<#11782 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUJ6LKVTOOYMZVGLQKTKO5LWQ4DYHANCNFSM6AAAAAATG6KZTQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi all,
I am trying to generate codeql database for my Java application. But I got this error: no source code was seen and extracted. The building process is successful, however the codebase is not able to be generated.
The command i am using to generate the database is
codeql database create codeql/dbs -l java -c 'mvn -f pom.xml clean install -DskipTests' --overwrite
.No src.zip was generated. Here is my db folder structure
I found javac-output-.log that shows a lot of errors as this:
And as a result, a lot of symbols cannot be found. But obviously, the compiling process is successful, as I start from a clean repo without target folder. And after I run the above command, the target folder was formed and there are files exist there.
Please help me find out the problem.
Thank you so much!
Betty
Beta Was this translation helpful? Give feedback.
All reactions