I get folowing error as soon as I create a minecraft forge mod project for the minecraft version 1.18.2 with java sdk 17:
Could not resolve all files for configuration ':runtimeClasspathCopy'.
> Could not find net.minecraftforge:forge:1.18.2-40.1.25_mapped_official_1.18.2.
Searched in the following locations:
- file:/C:/Users/Hendrik/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.18.2-40.1.25_mapped_official_1.18.2/forge-1.18.2-40.1.25_mapped_official_1.18.2.pom
- file:/C:/Users/Hendrik/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.18.2-40.1.25_mapped_official_1.18.2/forge-1.18.2-40.1.25_mapped_official_1.18.2.jar
Required by:
project :
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
The given documentation also doon't realy helpes.
Maybe it's a problem with your cache, so deleted it from
C:\Users\Hendrik\.gradle\caches\forge_gradle
and rerun genEclipseRuns
Related
I'm trying to configure my Oracle JET based project to the sonar qube. On executing sonar-scanner command I ended up with following error:
ERROR: Language of file 'src\js\path_mapping.json' can not be decided as the file matches patterns of both sonar.lang.patterns.gscan.t13y : **/*.wptg,**/*.properties,**/*.rts,**/*.xlf,**/*.xliff,**/*.xrts,**/*.dlf,**/*.msg,**/*.resx,**/*.rc,**/*.yaml,**/*.yml,**/*.json,**/*.txt,**/*.strings and sonar.lang.patterns.json : **/*.json
I tried to override the files association by setting up the following in project properties file:
sonar.json.file.suffixes=.json
This couldn't help either. Getting the same error again.
As I don't have access to sonar admin module, I need to achieve it though project properties only.
Is there any other way to fix it? I did not find any concrete answer anywhere.
I'm trying to implement adding maven dependencies to my ant build using this article. I beleive I have everything set up as indicated by the article but since it is not working I must be missing something. I am getting this error:
Could not load definitions from resource org/apache/maven/artifact/ant/antlib.xml. It could not be found.
My searches for this error seem to imply I an missing maven-ant-tasks-2.1.3.jar. However, it is in the path indicated by the classpath. Can someone help be debug this? TIA.
I found at least part of the problem. I had the wrong file name in the classpath. It was maven-ant-tasks.jar and it should have been maven-ant-tasks-2.1.3.jar.
Unfortunately I now have a different problem which I think implies a corrupt jar file.
Unable to obtain resource from /usr/build/lib/maven-ant-tasks-2.1.3.jar: java.util.zip.ZipException: error in opening zip file
Downloading the jar file again did not help.
Never mind. Apparently the Apache maven web site has a corrupt version. I downloaded it from the mvnrepository and that worked.
I have a project in the Hybris running with gradle.bat
The code setup is working fine until clean and build, but when I run the gradle.bat. I am getting the following error.
Exception in thread "main" java.io.FileNotFoundException: *C:\{path}\gradle-4.6-bin.zip* (The system cannot find the path specified)
This is not a environment issue. Please confirm that the gradle is in the specified path itself.
For better performance :
Step 1 : Place gradle-4.6-bin.zip in the gradle/wrapper folder itself.
Step 2 : Open the gradle.properties and replace the distribution URL with following, distributionUrl=gradle-4.6-bin.zip
I hope this will help you.
Its an issue with the gradle version.
Check your version in the project structure and change gradle settings accordingly.
I'm trying to build dcm4chee-arc-cdi with code cloned from github: https://github.com/dcm4che/dcm4chee-arc-cdi
However when issuing the build command as described at the README.md
mvn install -D db=psql I get the following error:
[ERROR] Failed to execute goal on project dcm4chee-arc-conf: Could
not resolve dependencies for project
org.dcm4che.dcm4chee-arc:dcm4chee-arc-conf:jar:4.5.0-SNAPSHOT: The
following artifacts could not be resolved:
org.dcm4che:dcm4che-conf-api:jar:3.3.8-SNAPSHOT,
org.dcm4che:dcm4che-conf-dicom:jar:3.3.8-SNAPSHOT,
org.dcm4che:dcm4che-imageio:jar:3.3.8-SNAPSHOT,
org.dcm4che:dcm4che-net-hl7:jar:3.3.8-SNAPSHOT,
org.dcm4che:dcm4che-conf-api-hl7:jar:3.3.8-SNAPSHOT,
org.dcm4che:dcm4che-soundex:jar:3.3.8-SNAPSHOT,
org.dcm4che.dcm4chee-storage:dcm4chee-storage-service:jar:2.1.0-SNAPSHOT:
Failure to find org.dcm4che:dcm4che-conf-api:jar:3.3.8-SNAPSHOT in
http://www.dcm4che.org/maven2 was cached in the local repository
Does anybody have a suggestion on how to overcome this?
thanks
It seems that some other projects needed to be built before dcm4chee-arc-cdi.
Those were:
The dcm4che 3 library ( https://github.com:dcm4che/dcm4che )
The configuration layer ( https://github.com/dcm4che/dcm4chee-conf )
The storage layer ( https://github.com/dcm4che/dcm4chee-storage2 )
The monitoring framework ( https://github.com/dcm4che/dcm4chee-monitoring )
Seems the release repository (http://www.dcm4che.org/maven2/) is not holding the expected versions.
Take dcm4che-conf-api-hl7 for example. Its declared version (3.3.8-SNAPSHOT) does not exist in http://www.dcm4che.org/maven2/org/dcm4che/dcm4che-conf-api-hl7/
I guess the others are similar errors.
I suggest you contact one of the project's contributors like Umberto Cappellini
For a temp solution, you can edit the main pom.xml and replace the missing versions with actual versions you find in the repository I mentioned above.
I hope this helps.
When I build my project by tycho-maven-plugin, I encounter the following message:
[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: foo-updatesite raw:0.2.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):0.2.0-SNAPSHOT
[ERROR] Missing requirement for filter properties ~= $0: foo-feature.feature.group 0.2.0.qualifier requires 'foo-plugin 0.0.0' but it could not be found
[ERROR] Cannot satisfy dependency: foo-updatesite raw:0.2.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):0.2.0-SNAPSHOT depends on: foo-feature.feature.group [0.2.0,0.2.1)
This error occurs when building an update site. Plugin and feature are build normally. I build the update site from PDE without issues.
The project structure is common: there is a parent project with pom packaging and three modules: plugin, feature and updatesite. Of course, I invoke mvn clean package from the parent project.
What can be the reason for this error? How can I debug it?
UPD: I tried many things: removed "grandparent" pom, removed SNAPSHOT/qualifier, played with configuration. However, I found the solution: I switched to tycho 0.19 instead of 0.21. So I suppose there is a bug in tycho 0.21.
The error message
Missing requirement for filter properties ~= $0
indicates that you have defined an environment filter when you include the plugin foo-plugin in the feature.xml. However this does not explain the dependency resolution error you are seeing. The only way I can reproduce the error message is by adding an Eclipse-PlatformFilter header in the manifest of the plugin using a value which doesn't match environments configuration in the POM.
I had the same error message:
Missing requirement for filter properties ~= $0: foo-feature.feature.group 0.2.0.qualifier requires 'foo-plugin 0.0.0' but it could not be found
For some reason this error (also) means, that foo-plugin is present... twice.
So in your case, open the "Content" tab of the "Target Editor" and make sure that foo-plugin is not present in two distinct versions. I common way this could happen is if two features contain the same bundle.