popbr / data-integration

Apache License 2.0
1 stars 4 forks source link

Confirm that project compile #5

Closed aubertc closed 1 year ago

aubertc commented 1 year ago

Since my last commits, I can compile the project just fine. However, it seems that github cannot, returning the error message

Error: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.1.0:java (default-cli) on project Installation_Test: An exception occurred while executing the Java class. Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found -> [Help 1]

Can you confirm that it compiles on your end, @MNSleeper , and / or try to get github to compile it properly?

MNSleeper commented 1 year ago

Project does compile. I have had to comment out website scraping methods, as they aren't fully implemented and don't work. I see now I have to move them to their own mini java file and work on it until it, well, works. For now, they're commented out and the program compiles for me.

Github fails to build the program, which I thought I solved when I commented out the unfinished/unstable methods. I'll look into this tomorrow/today. It's 1 am.

aubertc commented 1 year ago

Start by looking at https://github.com/popbr/data-integration/actions/runs/3286988349/jobs/5415676634#step:4:6956 I am not sure what it is complaining about, maybe we have some configuration wrong.

aubertc commented 1 year ago

Commenting further on that:

Note that I have the same error on my installation.

MNSleeper commented 1 year ago

I found a few errors that prevented compilation and fixed them. For me,I can compile Installation Test now.

Git can't compile. The only error is:

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.1.0:java (default-cli) on project Installation_Test: An exception occurred while executing the Java class. Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found -> [Help 1]

What do you make of that?

aubertc commented 1 year ago

Please, don't hesitate to add links to the error messages.

It seems that adding

<dependency>
    <groupId>xerces</groupId>
    <artifactId>xercesImpl</artifactId>
    <version>2.12.2</version>
</dependency>

(the version may not be the "right" one) to the pom could solve that.

MNSleeper commented 1 year ago

Should this be added to both the DatabaseIO Project as well?

aubertc commented 1 year ago

Ok, so the current Java_CI.yml "works" for the test, that's good to know. "Works" in the sens that the project can be compiled, but the execution does not succeed, cf. https://github.com/popbr/data-integration/actions/runs/3316925417/jobs/5479254033#step:4:8119

This may (or may not) be the next issue we want to tackle: how to make this program executes successfully on github's servers?

MNSleeper commented 1 year ago

So, after Matching, the next big issue is Scraping, then Git Execution

aubertc commented 1 year ago

We can close this issue for now, then.