Scott Rankin
05/24/2023, 4:51 PMephemient
05/24/2023, 4:55 PMephemient
05/24/2023, 4:57 PM<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-core-jvm</artifactId>
<version>1.7.1</version>
</dependency>
ephemient
05/24/2023, 4:59 PMScott Rankin
05/24/2023, 5:12 PM<https://repo.maven.apache.org/maven2>
which seems to complain about not being able to find a number of the org.jetbrains jars. Specifically org.jetbrains.kotlinxkotlinx coroutines bomjar:1.6.2,
0:04:12.126 [ERROR] Failed to execute goal on project engine-settings: Could not resolve dependencies for project pragma:engine-settings:pom:PRAGMA-LOCAL-SNAPSHOT: Could not find artifact org.jetbrains.kotlinx:kotlinx-coroutines-bom:jar:1.6.2 in central (<https://repo.maven.apache.org/maven2>)
Here's a snippet of our engine-settings.xml which contains,
<kotlin-coroutine.version>1.6.2</kotlin-coroutine.version>
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-jdk8</artifactId>
<version>${kotlin-coroutine.version}</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-core</artifactId>
<version>${kotlin-coroutine.version}</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-debug</artifactId>
<version>${kotlin-coroutine.version}</version>
</dependency>
<!-- TEST DEP BELOW -->
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-test</artifactId>
<version>${kotlin-coroutine.version}</version>
<scope>test</scope>
</dependency>
If I use help to generate the effective pom I see the following repositories and pluginRepositories neither of which contains repo1.maven.org/maven2,
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Central Repository</name>
<url><https://repo.maven.apache.org/maven2></url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Central Repository</name>
<url><https://repo.maven.apache.org/maven2></url>
</pluginRepository>
</pluginRepositories>
ephemient
05/24/2023, 5:20 PM.pom
-only artifact. Maven is supposed to handle that just fineephemient
05/24/2023, 5:21 PMScott Rankin
05/24/2023, 5:33 PMScott Rankin
05/24/2023, 5:33 PMScott Rankin
05/24/2023, 6:00 PMmvn -X dependency:tree
it looks like the dependency to the kotlinx-coroutines-bom
comes from kotlinx-coroutines-debug
?
10:46:01.835 [DEBUG] org.jetbrains.kotlinx:kotlinx-coroutines-debug:jar:1.6.2:compile
10:46:01.835 [DEBUG] org.jetbrains.kotlinx:kotlinx-coroutines-bom:jar:1.6.2:runtime
10:46:01.835 [DEBUG] net.java.dev.jna:jna:jar:5.9.0:runtime
10:46:01.835 [DEBUG] net.java.dev.jna:jna-platform:jar:5.9.0:runtime
However, it also looks like the mockk-jvm
(and mockk-dsl-jvm
) we are using might depend on kotlinx-coroutines-bom
1.6.4 [1] which perhaps is causing maven some trouble?
10:46:01.196 [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for <https://repo.maven.apache.org/maven2>
10:46:01.211 [DEBUG] Writing tracking file C:\Users\Scott\.m2\repository\io\mockk\mockk-jvm\1.13.3\_remote.repositories
10:46:01.211 [DEBUG] Writing tracking file C:\Users\Scott\.m2\repository\io\mockk\mockk-jvm\1.13.3\mockk-jvm-1.13.3.pom.lastUpdated
10:46:01.214 [DEBUG] Using transporter WagonTransporter with priority -1.0 for <https://repo.maven.apache.org/maven2>
10:46:01.214 [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for <https://repo.maven.apache.org/maven2>
10:46:01.227 [DEBUG] Writing tracking file C:\Users\Scott\.m2\repository\org\jetbrains\kotlinx\kotlinx-coroutines-bom\1.6.4\_remote.repositories
10:46:01.227 [DEBUG] Writing tracking file C:\Users\Scott\.m2\repository\org\jetbrains\kotlinx\kotlinx-coroutines-bom\1.6.4\kotlinx-coroutines-bom-1.6.4.pom.lastUpdated
[1] https://repo1.maven.org/maven2/io/mockk/mockk-jvm/1.13.3/mockk-jvm-1.13.3.pomScott Rankin
05/24/2023, 6:23 PMephemient
05/24/2023, 6:23 PMScott Rankin
05/24/2023, 6:23 PMephemient
05/24/2023, 6:24 PMephemient
05/24/2023, 6:26 PMScott Rankin
05/24/2023, 6:30 PM