Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Tycho and Kotlin

> @Mojo(name = "compile", defaultPhase = LifecyclePhase.COMPILE,
> requiresDependencyResolution = ResolutionScope.COMPILE
>  (https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-
> maven-
> plugin/src/main/java/org/jetbrains/kotlin/maven/K2JVMCompileMojo.java).
> 
> Is MavenProject.getCompileClasspathElements() delivering a different
> result than project.getDependencies() when resolving dependencies and
> therefore picks up these SYSTEM dependencies?

ResolutionScope.COMPILE documentation says so: "compile resolution scope = compile + system + provided dependencies", see [1]. And the Mojo API docs say the same about the Mojo.requiresDependencyResolution element, see [2].

[1] https://maven.apache.org/plugin-tools/maven-plugin-annotations/apidocs/org/apache/maven/plugins/annotations/ResolutionScope.html#COMPILE
[2] https://maven.apache.org/developers/mojo-api-specification.html

Back to the top