Can't use BaseController in Intellij IDEA 14.1.5 Follow
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: |
Please sign in to leave a comment.
For me it looks like IntelliJ IDEA did not fetch dependencies for some reason. Did you try building your project using Maven?
i built my project with this command in Maven:
mvn archetype:generate just generates Maven project, in order to build it you need to use mvn package command.
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: