Can't use BaseController in Intellij IDEA 14.1.5


i followed the "Getting Started with Plugin Development" guide (, to write a server-side plugin for TeamCity 9.1.3. I installed Java 1.8.0_60, TeamCity, Intellij IDEA, maven 3.3.3 and set the environment variables. I followed the instructions step by step, but when i tried to create the controller (Step 4 B) i recognized, that i can't import classes. if i write "import", the automatic prediction shows just "static" as possibility. If i type "

public class AppServer extends

BaseController{}" Intellij IDEA says: "cannot resolve symbol 'BaseController'".

Did anyone knows a solution?

Edit: In [Project settings -> libraries] i saw that some *.jar Files (server-web-api-9.0.3-SNAPSHOT-javadoc.jar & server-web-api-9.0.3-SNAPSHOT-sources.jar) in the directory [*.m2\repository\org\jetbrains\teamcity\/server-web-api/9.0.3-Snapshot] are missing. The *-sources & *-javadoc files for the tests-support and server-api folder i downloaded at but i cannot find the other missing files there.

i hope you can help me.


EDIT for others with the same problem:

Here you can search missing files:

Comment actions Permalink

For me it looks like IntelliJ IDEA did not fetch dependencies for some reason. Did you try building your project using Maven?

Comment actions Permalink

i built my project with this command in Maven:

mvn archetype:generate -DarchetypeRepository= -DarchetypeArtifactId=teamcity-server-plugin -DarchetypeGroupId=org.jetbrains.teamcity.archetypes -DarchetypeVersion=LATEST
Comment actions Permalink

mvn archetype:generate just generates Maven project, in order to build it you need to use mvn package command.

Comment actions Permalink

At the first time i got much warnings, but when i downloaded some missing files from i minimized them. But i dont know how to "fix" this Warnings.

this are the last warnings, but it works until now fine. Thanks.

[INFO] ------------------------------------------------------------------------
[INFO] Building build 9.0.3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] --- replacer:1.5.2:replace (default) @ build ---
[INFO] Replacement run on 1 file.
[INFO] --- maven-assembly-plugin:2.4:single (make-assembly) @ build ---
[INFO] Reading assembly descriptor: plugin-assembly.xml
[WARNING] NOTE: Currently, inclusion of module dependencies may produce unpredic
table results if a version conflict occurs.
[WARNING] The following patterns were never triggered in this artifact inclusion
o  '*'

this is the plugin-assembly.xml in the project root\build directory:

<?xml version="1.0"?> <assembly>   <id>plugin-assembly</id>   <includeBaseDirectory>false</includeBaseDirectory>   <formats>     <format>zip</format>   </formats>   <files>      <file>          <source>target/teamcity-plugin.xml</source>          <outputDirectory>/</outputDirectory>      </file>   </files>   <moduleSets>     <moduleSet>        <useAllReactorProjects>true</useAllReactorProjects>        <includes>            <include>com.demoDomain.teamcity.demoPlugin:releasemodePlugin-server</include>        </includes>        <binaries>            <outputDirectory>server</outputDirectory>            <unpack>false</unpack>            <dependencySets>                <dependencySet>                     <includes>                          <include>*</include>                     </includes>                </dependencySet>            </dependencySets>        </binaries>     </moduleSet>   </moduleSets> </assembly>


Please sign in to leave a comment.