Can't use BaseController in Intellij IDEA 14.1.5

Hello,

i followed the "Getting Started with Plugin Development" guide (https://confluence.jetbrains.com/display/TCD9/Getting+Started+with+Plugin+Development), 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 http://repository.jetbrains.com/ but i cannot find the other missing files there.

i hope you can help me.

Seilen.

EDIT for others with the same problem:

Here you can search missing files:
http://repo1.maven.org/
http://repository.jetbrains.com/all/
http://dist.wso2.org/

4 comments
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?

0
Comment actions Permalink

i built my project with this command in Maven:

mvn archetype:generate -DarchetypeRepository=http://repository.jetbrains.com/all -DarchetypeArtifactId=teamcity-server-plugin -DarchetypeGroupId=org.jetbrains.teamcity.archetypes -DarchetypeVersion=LATEST
0
Comment actions Permalink

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

0
Comment actions Permalink

At the first time i got much warnings, but when i downloaded some missing files from http://repository.jetbrains.com/all/ 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] ------------------------------------------------------------------------
[INFO] Building build 9.0.3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- replacer:1.5.2:replace (default) @ build ---
[INFO] Replacement run on 1 file.
[INFO]
[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
filter:
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>

0

Please sign in to leave a comment.