adding a module library?

I'm trying to add a module library. In the my iml file I have:

... This is where I want to add the new jar. But in the "Configure Project->]]>Library ", under the module
libraries section I do not see this module library. In fact, almost none
our jars are there. (But the project /does/ compile.) Am I missing
something. Is there somewhere else to go to add jars now?

4 comments

The problem here is that your library is named. Although the internal architecture allows adding named libraries at module level, we
decided that it will be enough to allow to add "unnamed" libraries only from the UI. Still, you can configure a named library
contaning several jars at the project or application level.

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"


"Barry Kaplan" <bkaplan@integratedtrading.com> wrote in message news:bq0b29$nqg$1@is.intellij.net...

I'm trying to add a module library. In the my iml file I have:

>

<orderEntry type="module-library">
<library name="trading">
<CLASSES>
...

>

This is where I want to add the new jar.

>

But in the "Configure Project->Library ", under the module
libraries section I do not see this module library. In fact, almost none
our jars are there. (But the project /does/ compile.) Am I missing
something. Is there somewhere else to go to add jars now?

>


0

I'm somewhat confused. The named library existed from a previous eap (it
contains the majority of libraries our project depends on). Are you
saying that now I can no longer see that library from withih idea (even
though they are still included in the classpath)? Do I need to edit the
iml or ipr file to unname the library unmamed so that I can configure it?

Eugene Zhuravlev (JetBrains) wrote:

The problem here is that your library is named. Although the internal architecture allows adding named libraries at module level, we
decided that it will be enough to allow to add "unnamed" libraries only from the UI. Still, you can configure a named library
contaning several jars at the project or application level.


0

>Are you

saying that now I can no longer see that library from withih idea (even
though they are still included in the classpath)?


If your library is at project or application level, then you are able to create/edit it and attach to module. Only module-level
libraries are now unnamed (because it seems that there are no benefits to create named libraries if you can ue them only within one
module). Since it is supposed that you do not edit iml files directly, there simply won't be a situation when you have named
module-level libraries. So in UI you won't see only named module-level libraries.

>Do I need to edit the

iml or ipr file to unname the library unmamed so that I can configure it?


Yes. You should define a separate anonymous library per each jar. Project conversion utility should solve this issue.
Another option is to have named libraries at project/application level, so you can easily attach/detach them from module (this is
the preferred way).

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"



"Barry Kaplan" <bkaplan@integratedtrading.com> wrote in message news:bq7kfo$520$1@is.intellij.net...

I'm somewhat confused. The named library existed from a previous eap (it
contains the majority of libraries our project depends on). Are you
saying that now I can no longer see that library from withih idea (even
though they are still included in the classpath)? Do I need to edit the
iml or ipr file to unname the library unmamed so that I can configure it?

>

Eugene Zhuravlev (JetBrains) wrote:

The problem here is that your library is named. Although the internal architecture allows adding named libraries at module

level, we

decided that it will be enough to allow to add "unnamed" libraries only from the UI. Still, you can configure a named library
contaning several jars at the project or application level.

>

>


0

]]>


I have the above module-level library in my iml file. It is indeed
named. I have no way to edit this from within idea (that I can find).
Are you saying that I should delete these elements from the iml and
recreate them and the name will go away?

What I have been doing is just editing the iml file directly to
add/change entries.

0

Please sign in to leave a comment.