Open vsimko opened 7 years ago
Okay, I was not able to reproduce the problem locally.
The actual problem is that the lib/OsmAnd-core.jar
is not correctly installed to the local maven repository in the lib
directory. There is a install-file
command in the pom.xml
executed during the initialize
phase which should install the file to the respective local repository, but sadly that seems not to work as expected. Unfortunately the osmand
library is not available on mvnrepository.com
, which would make the things a lot easier.
One workaround could be to execute the install-file
command manually in the project root directory before running mvn clean install
:
mvn install:install-file -Dfile=./lib/OsmAnd-core.jar \
-DgroupId=net.osmand \
-DartifactId=osmand-core \
-Dversion=1.0 \
-Dpackaging=jar \
-DlocalRepositoryPath=./lib
@vsimko it would be great if you could test the workaround.
I'll going to try to reproduce the problem and to find a permanent fix, but most likely not before the next weekend. But unfortunately, it seems that there is no easy and reliable way to add jar
files to a maven project (I would appreciate any tips).
Expected behaviour
Mavan should build the application.
Actual behavior
Steps to reproduce the behavior