S
S
scy2014-06-01 18:30:22
Java
scy, 2014-06-01 18:30:22

Maven - why doesn't it find classes from a neighboring module?

Immediately to the code, because I don’t understand)
In the parent memo:

<modules>
        <module>WebContent</module>
        <module>ServiceLayer</module>
        <module>Repository</module>
        <module>Entities</module>
    </modules>

in the repository memo:
<parent>
        <artifactId>Idet-poisk</artifactId>
        <groupId>Idet-poisk</groupId>
        <version>1.0-SNAPSHOT</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <artifactId>Repository</artifactId>
    <dependencies>
        <dependency>
            <groupId>Idet-poisk</groupId>
            <artifactId>Entities</artifactId>
            <version>1.0-SNAPSHOT</version>
        </dependency>
    </dependencies>

In the memo of entities, there is also a mention of the parent. Why are entities not visible in the repository?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
anyd3v, 2014-06-01
@scy

did you install for the module? maven really doesn’t care that it’s all grouped by a common configuration file and it will still look in the repository (first in the local one). Accordingly, you need to deploy your library there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question