How to update external library?

Answered

Hello!

I created 2 projects. The first is jar library. Second project includes this library. When I update my library (make and then build artifacts), in second project changes don't appear. For example:
1. Add new class in library (first project) SomeClass
2. Make, build artifacts
3. In second project when I create SomeClass object, it has red color, but project successfully compile.

How to say Idea to rescan classes from library?

P.S. Intellij IDEA Community edition 9.0.4, Windows XP SP3

3 comments
Comment actions Permalink

To update files in IDEA you can use File | Synchronize action or enable 'Synchronize files on frame activation' option in Settings | General.

Also you can create a single project with two dependent modules instead.

Hello!

>

I created 2 projects. The first is simply jar library. Second project includes this library. When I update my library (make and then build artifacts), in second project changes don't appear. For example:
1. Add new class in library (first project) SomeClass
2. Make, build artifacts
3. In second project when I create SomeClass object, it has red color, but project successfully compile.

>

How to say Idea to rescan classes from library?

>

---
Original message URL: http://devnet.jetbrains.net/message/5277567#5277567



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Where is the File | Synchronize action?

0
Comment actions Permalink

> Where is the File | Synchronize action?

Since 2019.3 it is renamed to Reload All From Disk

0

Please sign in to leave a comment.