Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change requiresDependencyResolution to NONE #26

Open
tisonkun opened this issue Dec 29, 2021 · 3 comments · May be fixed by #28
Open

Change requiresDependencyResolution to NONE #26

tisonkun opened this issue Dec 29, 2021 · 3 comments · May be fixed by #28

Comments

@tisonkun
Copy link

We set requiresDependencyResolution = TEST and thus if a module depends on local module and the local module doesn't build yet, the goal will failed with:

[INFO] ---------------< org.apache.seatunnel:seatunnel-config >----------------
[INFO] Building seatunnel-config 2.0.5-SNAPSHOT                          [2/47]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ seatunnel-config ---
[INFO] Deleting /Users/tison/Brittani/seatunnel/seatunnel-config/target
[INFO] 
[INFO] --- scalastyle-maven-plugin:1.0.0:check (default-cli) @ seatunnel-config ---
[WARNING] sourceDirectory is not specified or does not exist value=/Users/tison/Brittani/seatunnel/seatunnel-config/src/main/scala
Saving to outputFile=/Users/tison/Brittani/seatunnel/seatunnel-config/target/target/scalastyle-output.xml
Processed 0 file(s)
Found 0 errors
Found 0 warnings
Found 0 infos
Finished in 2 ms
[INFO] 
[INFO] ---------------< org.apache.seatunnel:seatunnel-common >----------------
[INFO] Building seatunnel-common 2.0.5-SNAPSHOT                          [3/47]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for SeaTunnel 2.0.5-SNAPSHOT:
[INFO] 
[INFO] SeaTunnel .......................................... SUCCESS [  0.425 s]
[INFO] seatunnel-config ................................... SUCCESS [  0.018 s]
[INFO] seatunnel-common ................................... FAILURE [  0.025 s]
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.914 s
[INFO] Finished at: 2021-12-29T10:35:14+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project seatunnel-common: Could not resolve dependencies for project org.apache.seatunnel:seatunnel-common:jar:2.0.5-SNAPSHOT: Could not find artifact org.apache.seatunnel:seatunnel-config:jar:2.0.5-SNAPSHOT -> [Help 1]

@Mojo(name = "check", defaultPhase = LifecyclePhase.VERIFY, requiresProject = true, requiresDependencyResolution = ResolutionScope.TEST)

While maven-checkstyle-plugin uses requiresDependencyResolution = NONE and avoid this problem.

I'd like to understand whether this plugin can relax the requirement.

@kezhenxu94
Copy link

kezhenxu94 commented Dec 29, 2021

IMO check style plugin should only care about the source codes, not their dependencies, agree to use requiresDependencyResolution = NONE if there is no other reason

@baiyangtx
Copy link

I agree with that.
I want to run checkstyle before test in github ci. but I have to install the project to local repository before I run scalestyle-maven-plugin.

@baiyangtx
Copy link

I have submit a PR for this issue. #28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants