mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[maven] IDEA-359629 test resolve plugins in projects with packaging "bundle"
GitOrigin-RevId: c208d411db66453a7a8389ddf9fe5e6c045b4bcd
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6f2f3dc471
commit
633c3db1ce
+30
@@ -0,0 +1,30 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package org.jetbrains.idea.maven.importing
|
||||
|
||||
import com.intellij.maven.testFramework.MavenMultiVersionImportingTestCase
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import org.junit.Test
|
||||
|
||||
class MavenPluginResolutionTest : MavenMultiVersionImportingTestCase() {
|
||||
@Test
|
||||
fun `test resolve bundle packaging plugin versions`() = runBlocking {
|
||||
importProjectAsync("""
|
||||
<groupId>test</groupId>
|
||||
<artifactId>project</artifactId>
|
||||
<version>1</version>
|
||||
<packaging>bundle</packaging>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<extensions>true</extensions>
|
||||
<groupId>org.apache.felix</groupId>
|
||||
<artifactId>maven-bundle-plugin</artifactId>
|
||||
<version>5.1.8</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
""".trimIndent())
|
||||
assertEquals(1, projectsTree.projects.size)
|
||||
assertEmpty(projectsTree.projects.first().problems)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user