IntelliJ / Maven

Discussion in 'Plugin Development' started by iiHeroo, Dec 25, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    iiHeroo

    When I was setting up my pom.xml for Maven, the version for maven-compiler-plugin returned an error, the error was

    Plugin "org.apache.maven.plugins:maven-compiler-plugin:2.3.2" not found

    So I tried a bunch of different other versions and it still didn't work, here's a photo

    [​IMG]

    Edit: The more option says 'Inspects a Maven model for resolution problems'
     
  2. Offline

    Not2EXceL

    [​IMG]
    Try that, I can't remember if thats what I did to fix my red version numbers. Its worth a try. If I could remember correctly, I'd tell you how I did it, but thats the best I got.

    If not try invalidate your caches, and relaunch IntelliJ.

    You also could try a 'mvn clean install' run.
     
  3. Offline

    iiHeroo

    Not2EXceL

    Still no :(

    And I only get this issue with IntelliJ v13.
     
  4. Offline

    Not2EXceL

    Hmm lemme go do some more digging and see if I can recreate it. I did have the same issue, but I did something to fix it. And yeah I'm on 13 too.
     
  5. Offline

    mrkirby153

    iiHeroo

    Can't reproduce your issue. Also, how do you guys have your intellij theme be black? Mine is white and sometimes its too white.
     
  6. Offline

    iiHeroo

    Files > Settings > Editor > Colors & Fonts (Dont click on the arrow for it to break it down)

    Color Scheme: Darcula

    Apply

    Ok

    Exit & Restart
     
  7. Offline

    Not2EXceL

  8. Offline

    iiHeroo



    Code:
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <groupId>org.me.horrgs</groupId>
        <artifactId>KitPvP</artifactId>
        <version>1.0</version>
        <name>KitPvP</name>
        <build>
            <defaultGoal>clean package install</defaultGoal>
            <finalName>KitPvP</finalName>
            <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
            <resources>
                <resource>
                    <targetPath>.</targetPath>
                    <filtering>true</filtering>
                    <directory>${basedir}/src/main/resources/</directory>
                    <includes>
                        <include>*.yml</include>
                    </includes>
                </resource>
            </resources>
            <plugins>
                <plugin>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>2.3.2</version>
                    <configuration>
                        <source>1.6</source>
                        <target>1.6</target>
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <configuration>
                        <descriptors>
                            <descriptor>src/main/assembly/package.xml</descriptor>
                        </descriptors>
                    </configuration>
                    <executions>
                        <execution>
                            <id>build</id>
                            <phase>package</phase>
                            <goals>
                                <goal>single</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </build>
        <dependencies>
            <dependency>
                <groupId>org.bukkit</groupId>
                <artifactId>bukkit</artifactId>
                <version>LATEST</version>
            </dependency>
            <dependency>
                <groupId>org.bukkit</groupId>
                <artifactId>bukkit</artifactId>
                <version>1.7.2-R0.1-SNAPSHOT</version>
            </dependency>
        </dependencies>
        <repositories>
            <repository>
                <id>bukkit-repo</id>
                <url>http://repo.bukkit.org/content/groups/public/</url>
            </repository>
     
        </repositories>
    </project>
     
  9. Offline

    Not2EXceL

    C:\Users\laazy_000\.m2\repository\org\apache\maven\plugins

    iiHeroo Did you clear out your plugins from your .m2 folder? and then reimport?

    also my pom.xml has this in it and everything is working
    Code:
    <pluginManagement>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-compiler-plugin</artifactId>
                        <version>3.1.1</version>
                        <configuration>
                            <source>1.6</source>
                            <target>1.6</target>
                            <encoding>UTF-8</encoding>
                        </configuration>
                    </plugin>
                </plugins>
            </pluginManagement>
    
    dunno if that actually changes anything or not
     
  10. Offline

    iiHeroo


    lemme try :)
     
  11. Offline

    Not2EXceL

    iiHeroo made a quick edit to my previous post
     
  12. Offline

    iiHeroo



    If you don't mind, could you send me your whole pom.xml?
     
  13. Offline

    Not2EXceL


    Code:xml
    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <project xmlns:xsi="[url]http://www.w3.org/2001/XMLSchema-instance[/url]"
    3. xmlns="[url]http://maven.apache.org/POM/4.0.0[/url]"
    4. xsi:schemaLocation="[url]http://maven.apache.org/POM/4.0.0[/url] [url]http://maven.apache.org/xsd/maven-4.0.0.xsd[/url]">
    5. <modelVersion>4.0.0</modelVersion>
    6.  
    7. <groupId>com.not2excel</groupId>
    8. <artifactId>EXceLRPG</artifactId>
    9. <version>0.0.1</version>
    10. <packaging>jar</packaging>
    11.  
    12. <name>EXceLRPG</name>
    13.  
    14. <build>
    15. <finalName>EXceLRPG</finalName>
    16. <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
    17. <directory>${basedir}/builds</directory>
    18.  
    19. <resources>
    20. <resource>
    21. <targetPath>.</targetPath>
    22. <filtering>true</filtering>
    23. <directory>${basedir}/src/main/resources/</directory>
    24. <includes>
    25. <include>*.yml</include>
    26. <include>*.properties</include>
    27. <include>*.md</include>
    28. </includes>
    29. </resource>
    30. </resources>
    31.  
    32. <pluginManagement>
    33. <plugins>
    34. <plugin>
    35. <groupId>org.apache.maven.plugins</groupId>
    36. <artifactId>maven-compiler-plugin</artifactId>
    37. <version>3.1.1</version>
    38. <configuration>
    39. <source>1.6</source>
    40. <target>1.6</target>
    41. <encoding>UTF-8</encoding>
    42. </configuration>
    43. </plugin>
    44. </plugins>
    45. </pluginManagement>
    46.  
    47. <plugins>
    48. <plugin>
    49. <groupId>org.apache.maven.plugins</groupId>
    50. <artifactId>maven-compiler-plugin</artifactId>
    51. <version>2.3.2</version>
    52. <configuration>
    53. <source>1.6</source>
    54. <target>1.6</target>
    55. </configuration>
    56. </plugin>
    57.  
    58. <plugin>
    59. <artifactId>maven-assembly-plugin</artifactId>
    60. <configuration>
    61. <descriptors>
    62. <descriptor>src/main/assembly/package.xml</descriptor>
    63. </descriptors>
    64. </configuration>
    65. <executions>
    66. <execution>
    67. <id>build</id>
    68. <phase>package</phase>
    69. <goals>
    70. <goal>single</goal>
    71. </goals>
    72. </execution>
    73. </executions>
    74. </plugin>
    75.  
    76. <plugin>
    77.  
    78. <artifactId>maven-resources-plugin</artifactId>
    79. <version>2.6</version>
    80. <executions>
    81. <execution>
    82. <id>copy-resources</id>
    83. <phase>validate</phase>
    84. <goals>
    85. <goal>copy-resources</goal>
    86. </goals>
    87. <configuration>
    88. <outputDirectory>${project.build.directory}</outputDirectory>
    89. <includeEmptyDirs>true</includeEmptyDirs>
    90. <resources>
    91. <resource>
    92. <directory>${basedir}/src/main/resources</directory>
    93. <filtering>false</filtering>
    94. </resource>
    95. </resources>
    96. </configuration>
    97. </execution>
    98. </executions>
    99. </plugin>
    100.  
    101. <plugin>
    102. <groupId>org.apache.maven.plugins</groupId>
    103. <artifactId>maven-shade-plugin</artifactId>
    104. <version>2.2</version>
    105. <executions>
    106. <execution>
    107. <phase>package</phase>
    108. <goals>
    109. <goal>shade</goal>
    110. </goals>
    111. </execution>
    112. </executions>
    113. <configuration>
    114. <finalName>${project.artifactId}-${project.version}</finalName>
    115. <!--<relocations>-->
    116. <!--<relocation>-->
    117. <!--<pattern>com.not2excel.api</pattern>-->
    118. <!--<shadedPattern>com.not2excel.api</shadedPattern>-->
    119. <!--</relocation>-->
    120. <!--</relocations>-->
    121. <artifactSet>
    122. <excludes>
    123. <exclude>*:EXceLAPI</exclude>
    124. <exclude>*:bukkit</exclude>
    125. <exclude>*:craftbukkit</exclude>
    126. </excludes>
    127. </artifactSet>
    128. </configuration>
    129. </plugin>
    130. </plugins>
    131. </build>
    132.  
    133. <repositories>
    134. <repository>
    135. <id>bukkit-repo</id>
    136. <url>[url]http://repo.bukkit.org/content/groups/public/</url>[/url]
    137. <snapshots>
    138. <enabled>true</enabled>
    139. <updatePolicy>always</updatePolicy>
    140. </snapshots>
    141. </repository>
    142. <repository>
    143. <id>CommandAPI</id>
    144. <url>[url]https://github.com/Not2EXceL/EXceLAPI_Builds/raw/master</url>[/url]
    145. <snapshots>
    146. <enabled>true</enabled>
    147. <updatePolicy>always</updatePolicy>
    148. </snapshots>
    149. </repository>
    150. </repositories>
    151.  
    152. <dependencies>
    153. <dependency>
    154. <groupId>org.bukkit</groupId>
    155. <artifactId>bukkit</artifactId>
    156. <version>LATEST</version>
    157. <type>jar</type>
    158. <scope>provided</scope>
    159. </dependency>
    160. <dependency>
    161. <groupId>org.bukkit</groupId>
    162. <artifactId>craftbukkit</artifactId>
    163. <version>LATEST</version>
    164. <scope>provided</scope>
    165. </dependency>
    166. <dependency>
    167. <groupId>com.not2excel.api</groupId>
    168. <artifactId>EXceLAPI</artifactId>
    169. <version>LATEST</version>
    170. <type>jar</type>
    171. <scope>provided</scope>
    172. </dependency>
    173. </dependencies>
    174.  
    175. <distributionManagement>
    176. <repository>
    177. <id>internal.repo</id>
    178. <name>Temporary Staging Repository</name>
    179. <url>file://${project.build.directory}/repo</url>
    180. </repository>
    181. </distributionManagement>
    182. </project>
     
Thread Status:
Not open for further replies.

Share This Page