sevntu-checkstyle / sevntu.checkstyle

Additional Checkstyle checks, that could be added as extension to EclipseCS plugin and maven-checkstyle-plugin, Sonar checkstyle plugin, extension for CheckStyle IDEA plugin.
http://sevntu-checkstyle.github.io/sevntu.checkstyle/
190 stars 147 forks source link

Issue #936: bump-cs-version missed eclipsecs-sevntu-plugin #939

Closed stoyanK7 closed 1 year ago

stoyanK7 commented 1 year ago

Resolves #936


Any ideas why this is failing? What am I missing here?

✔ ~/Open Source/sevntu.checkstyle/eclipsecs-sevntu-plugin [issue/936-fix-bump-cs-version-missed-eclipsecs-sevntu-plugin L|✔] 
21:43 $ mvn clean package
[INFO] Scanning for projects...
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Fetching p2.index from https://download.eclipse.org/releases/2020-09/ (122B)
[INFO] Adding repository https://download.eclipse.org/releases/2020-09
[INFO] Fetching p2.index from https://download.eclipse.org/technology/epp/packages/2020-09/ (128B)
[INFO] Fetching p2.index from https://download.eclipse.org/releases/2020-09/202009161000/ (142B)
[INFO] Resolving dependencies of MavenProject: com.github.sevntu-checkstyle:eclipsecs-sevntu-plugin:1.43.0 @ /home/stoyan/Open Source/sevntu.checkstyle/eclipsecs-sevntu-plugin/pom.xml
[INFO] {osgi.os=linux, osgi.ws=gtk, org.eclipse.update.install.features=true, osgi.arch=x86_64}
[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: eclipsecs-sevntu-plugin 1.43.0
[ERROR]   Missing requirement: eclipsecs-sevntu-plugin 1.43.0 requires 'osgi.bundle; net.sf.eclipsecs.checkstyle 0.0.0' but it could not be found
[ERROR] 
[ERROR] See https://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.
[ERROR] Cannot resolve dependencies of MavenProject: com.github.sevntu-checkstyle:eclipsecs-sevntu-plugin:1.43.0 @ /home/stoyan/Open Source/sevntu.checkstyle/eclipsecs-sevntu-plugin/pom.xml: See log for details -> [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/MavenExecutionException
coveralls commented 1 year ago

Coverage Status

Coverage remained the same at 98.798% when pulling bc30b73a7fa7110a54caab7776dae121f39199dd on stoyanK7:issue/936-fix-bump-cs-version-missed-eclipsecs-sevntu-plugin into 45ae6b1c4012b6f9139419e3053856ca3298bb20 on sevntu-checkstyle:master.

romani commented 1 year ago

This how I do compilation https://github.com/sevntu-checkstyle/sevntu.checkstyle/wiki/SevNTU-plugin-for-EclipseCS-plugin-compilation

stoyanK7 commented 1 year ago

I get failures on compiling sevntu sources

mvn clean install -f eclipse-pom.xml
...
[INFO] --------< com.github.sevntu-checkstyle:eclipsecs-sevntu-plugin >--------
[INFO] Building eclipse-cs Sevntu Checkstyle Plugin 1.43.0                [2/4]
[INFO] ---------------------------[ eclipse-plugin ]---------------------------
[WARNING] The POM for net.sf.eclipsecs:net.sf.eclipsecs.ui:jar:10.0.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for parent 1.43.0:
[INFO] 
[INFO] parent ............................................. SUCCESS [  0.241 s]
[INFO] eclipse-cs Sevntu Checkstyle Plugin ................ FAILURE [  0.070 s]
[INFO] Extension for eclipse-cs Plugin with additional Checks SKIPPED
[INFO] Tycho Test Build ................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  17.873 s
[INFO] Finished at: 2022-11-26T22:23:17+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project eclipsecs-sevntu-plugin: Could not resolve dependencies for project com.github.sevntu-checkstyle:eclipsecs-sevntu-plugin:eclipse-plugin:1.43.0: Could not find artifact net.sf.eclipsecs:net.sf.eclipsecs.ui:jar:10.0.0-SNAPSHOT -> [Help 1]
romani commented 1 year ago

Did you do https://github.com/sevntu-checkstyle/sevntu.checkstyle/pull/939#issuecomment-1328089001 ?

stoyanK7 commented 1 year ago

I did and got this as I said: https://github.com/sevntu-checkstyle/sevntu.checkstyle/pull/939#issuecomment-1328117011

Even though compiling failed, bumping the version works.

romani commented 1 year ago

eclipsecs.ui:jar:10.0.0-SNAPSHOT

We are on 10.4 already, strange how you got this old reference.

romani commented 1 year ago

I see it at eclipsecs-sevntu-plugin/pom.xml

Ok, no worries, I will cover it.

@rnveach , FYI, we still on old eclipsecs :(.