When I run Maven install I see my .jar
files are getting copied into the repository location:
[INFO] --- maven-install-plugin:2.4:install (default-install) @ data-model ---
[INFO] Installing E:\java\web\data-model\target\rest-server.jar to C:\Users\Stefan\.m2\repository\com\mahlzeit\server\data-model\0.0.1-SNAPSHOT\data-model-0.0.1-SNAPSHOT.jar
[INFO] Installing E:\java\web\data-model\pom.xml to C:\Users\Stefan\.m2\repository\com\mahlzeit\server\data-model\0.0.1-SNAPSHOT\data-model-0.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
I'm referencing those in my pom.xml
:
<dependencies>
<dependency>
<groupId>com.mahlzeit.server</groupId>
<artifactId>mahlzeit-data-model</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.mahlzeit.server</groupId>
<artifactId>mahlzeit-shared</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
</dependencies>
I'm having of course a few more dependencies from remote locations. Those dependencies are getting downloaded and placed into <project>/war/WEB-INF/lib
as they should - but not my local files data-model-0.0.1-SNAPSHOT.jar
and shared-0.0.1-SNAPSHOT.jar
.
Why doesn't Maven copy those files like it does with the other files into <project>/war/WEB-INF/lib
?
This is the /lib
directory where you can see that Hibernate dependencies are getting downloaded and copied into this directory:
Edit: Thinking about it I might be running into the same issue again while trying to avoid it.