litesolutions / objectscript-custom-rules

0 stars 0 forks source link

Unable to build using maven #1

Open GendronAC opened 1 year ago

GendronAC commented 1 year ago

Followed steps here : https://objectscriptquality.com/docs/objectscriptquality-release/3-0-x/build-your-custom-rules : Plugin Project Sample

There seems to be a missing build dependency.

Let me know if you need any more traces :

PS C:\Git\objectscript-custom-rules> mvn package -U
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/org/sonarsource/sonar-packaging-maven-plugin/sonar-packaging-maven-plugin/1.17/sonar-packaging-maven-plugin-1.17.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/sonarsource/sonar-packaging-maven-plugin/sonar-packaging-maven-plugin/1.17/sonar-packaging-maven-plugin-1.17.pom (6.7 kB at 33 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/sonarsource/parent/parent/36/parent-36.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/sonarsource/parent/parent/36/parent-36.pom (29 kB at 846 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/sonarsource/sonar-packaging-maven-plugin/sonar-packaging-maven-plugin/1.17/sonar-packaging-maven-plugin-1.17.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/sonarsource/sonar-packaging-maven-plugin/sonar-packaging-maven-plugin/1.17/sonar-packaging-maven-plugin-1.17.jar (33 kB at 765 kB/s)
[INFO]
[INFO] ---------< org.sonarsource.samples:objectscript-custom-rules >----------
[INFO] Building My Sonar plugin 1.0
[INFO]   from pom.xml
[INFO] ----------------------------[ sonar-plugin ]----------------------------
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/maven-metadata.xml (936 B at 18 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml (2.0 kB at 69 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml (781 B at 30 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml (870 B at 41 kB/s)
Downloading from lite.global: https://maven.litesolutions.es/content/repositories/litesolutions-releases/org/sonarsource/sonarqube/sonar-plugin-api/6.7/sonar-plugin-api-6.7.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/sonarsource/sonarqube/sonar-plugin-api/6.7/sonar-plugin-api-6.7.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/sonarsource/sonarqube/sonar-plugin-api/6.7/sonar-plugin-api-6.7.pom (8.4 kB at 323 kB/s)
Downloading from lite.global: https://maven.litesolutions.es/content/repositories/litesolutions-releases/org/sonarsource/sonarqube/sonarqube/6.7/sonarqube-6.7.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/sonarsource/sonarqube/sonarqube/6.7/sonarqube-6.7.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/sonarsource/sonarqube/sonarqube/6.7/sonarqube-6.7.pom (51 kB at 1.2 MB/s)
Downloading from lite.global: https://maven.litesolutions.es/content/repositories/litesolutions-releases/org/sonarsource/parent/parent/41/parent-41.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/sonarsource/parent/parent/41/parent-41.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/sonarsource/parent/parent/41/parent-41.pom (31 kB at 1.2 MB/s)
Downloading from lite.global: https://maven.litesolutions.es/content/repositories/litesolutions-releases/org/sonarsource/objectscript/objectscript-frontend/3.2.0/objectscript-frontend-3.2.0.pom
Downloaded from lite.global: https://maven.litesolutions.es/content/repositories/litesolutions-releases/org/sonarsource/objectscript/objectscript-frontend/3.2.0/objectscript-frontend-3.2.0.pom (3.6 kB at 6.5 kB/s)
Downloading from lite.global: https://maven.litesolutions.es/content/repositories/litesolutions-releases/org/sonarsource/objectscript/objectscript/3.2.0/objectscript-3.2.0.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/sonarsource/objectscript/objectscript/3.2.0/objectscript-3.2.0.pom
Downloading from lite.global: https://maven.litesolutions.es/content/repositories/litesolutions-releases/org/sonarsource/objectscript/objectscript-testing/3.2.0/objectscript-testing-3.2.0.pom
Downloaded from lite.global: https://maven.litesolutions.es/content/repositories/litesolutions-releases/org/sonarsource/objectscript/objectscript-testing/3.2.0/objectscript-testing-3.2.0.pom (2.5 kB at 4.4 kB/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.731 s
[INFO] Finished at: 2023-03-31T13:51:26-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project objectscript-custom-rules: Could not resolve dependencies for project org.sonarsource.samples:objectscript-custom-rules:sonar-plugin:1.0: Failed to collect dependencies at org.sonarsource.objectscript:objectscript-frontend:jar:3.2.0: Failed to read artifact descriptor for org.sonarsource.objectscript:objectscript-frontend:jar:3.2.0: The following artifacts could not be resolved: org.sonarsource.objectscript:objectscript:pom:3.2.0 (absent): Could not find artifact org.sonarsource.objectscript:objectscript:pom:3.2.0 in lite.global (https://maven.litesolutions.es/content/repositories/litesolutions-releases/) -> [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/DependencyResolutionException
PS C:\Git\objectscript-custom-rules>
GendronAC commented 1 year ago

@martalite could you help ?

martalite commented 1 year ago

Hi @GendronAC, Sorry for the delay. I have done an update of the objectscript plugin. could you try?