mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
[maven] IDEA-359629 test resolve plugins in projects with packaging "bundle"
(cherry picked from commit c208d411db66453a7a8389ddf9fe5e6c045b4bcd) IJ-CR-146858 GitOrigin-RevId: c0c632e9f896a6b28e0c619d3cbaa4348a00d3db
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a842928a94
commit
612955ce13
@@ -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