Skip to content

Commit

Permalink
fix IDE
Browse files Browse the repository at this point in the history
  • Loading branch information
pan3793 committed Feb 29, 2024
1 parent 2034d62 commit b8ec695
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,33 @@ under the License.
</exclusions>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<!-- This is to ensure references to shaded classes can be resolved in IDEs such as
Intellij. For reference: https://youtrack.jetbrains.com/issue/IDEA-126596 -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>compile</id>
<goals>
<goal>attach-artifact</goal>
</goals>
<phase>package</phase>
<configuration>
<artifacts>
<artifact>
<file>${basedir}/target/${project.artifactId}-${project.version}.jar</file>
<type>jar</type>
<classifier>optional</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,33 @@ under the License.
</exclusions>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<!-- This is to ensure references to shaded classes can be resolved in IDEs such as
Intellij. For reference: https://youtrack.jetbrains.com/issue/IDEA-126596 -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>compile</id>
<goals>
<goal>attach-artifact</goal>
</goals>
<phase>package</phase>
<configuration>
<artifacts>
<artifact>
<file>${basedir}/target/${project.artifactId}-${project.version}.jar</file>
<type>jar</type>
<classifier>optional</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit b8ec695

Please sign in to comment.