Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AisLib is not building #48

Closed
bushaev opened this issue Dec 17, 2018 · 4 comments
Closed

AisLib is not building #48

bushaev opened this issue Dec 17, 2018 · 4 comments
Assignees

Comments

@bushaev
Copy link
Contributor

bushaev commented Dec 17, 2018

While trying to build AisLib with maven, using the following command:
mvn clean install
I encountered some errors about the repository for parent pom project not being available:

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for dk.dma.ais.lib:ais-parent:2.4-SNAPSHOT: Could not find artifact dk.dma:dma-root-pom:pom:24 in dma-releases (http://repository-dma.
forge.cloudbees.com/release/) and 'parent.relativePath' points at wrong local POM @ line 5, column 10
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project dk.dma.ais.lib:ais-parent:2.4-SNAPSHOT (/home/bushaev/dev/ais/AisLib/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for dk.dma.ais.lib:ais-parent:2.4-SNAPSHOT: Could not find artifact dk.dma:dma-root-pom:pom:24 in dma-releases (http://repository-
dma.forge.cloudbees.com/release/) and 'parent.relativePath' points at wrong local POM @ line 5, column 10 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
@tbsalling tbsalling self-assigned this Dec 19, 2018
@tbsalling
Copy link
Contributor

Thanks - we're on it :-)

@tbsalling
Copy link
Contributor

As a work-around - until we get a more permanent solution (a new artifact repository): Can you try this manual build procedure:

$ git clone https://github.com/dma-dk/dma-developers.git
...
$ cd dma-developers/rootpom/
$ mvn clean install
...
$ cd ../..
$ git clone https://github.com/dma-enav/e-Navigation.git
...
$ cd e-Navigation/
$ mvn clean install -DargLine="-Djdk.net.URLClassPath.disableClassPathURLCheck=true"
...
$ cd ..
$ git clone https://github.com/dma-dk/dma-commons.git
...
$ cd dma-commons/
$ mvn clean install -DargLine="-Djdk.net.URLClassPath.disableClassPathURLCheck=true"
...
$ cd ..
$ git clone https://github.com/kaspernielsen/codegen.git
...
$ cd codegen
$ mvn clean install -DargLine="-Djdk.net.URLClassPath.disableClassPathURLCheck=true"
...
$ cd ..
$ git clone https://github.com/MaritimeConnectivityPlatform/MaritimeCloud.git
...
$ cd MaritimeCloud
$ sed -i 's/0.1/0.8-SNAPSHOT/' mc-msdl/mc-msdl-javagenerator/pom.xml
$ mvn clean install -DskipTests -DargLine="-Djdk.net.URLClassPath.disableClassPathURLCheck=true"
..
$ cd ..
$ git clone https://github.com/dma-ais/AisLib.git
...
$ cd AisLib/
$ mvn clean install -DargLine="-Djdk.net.URLClassPath.disableClassPathURLCheck=true"
...
$ ls -l ~/.m2/repository/dk/dma/ais/lib/ais-lib-messages/2.4-SNAPSHOT/ais-lib-messages-2.4-SNAPSHOT.jar 
-rw-r--r-- 1 root root 138403 Dec 19 15:23 /root/.m2/repository/dk/dma/ais/lib/ais-lib-messages/2.4-SNAPSHOT/ais-lib-messages-2.4-SNAPSHOT.jar

The procedure works (today :-)) when I run it using $ docker run -it --rm maven:3.6.0-jdk-8 /bin/bash.

This project needs a massive cleanup of its dependencies.

@bushaev
Copy link
Contributor Author

bushaev commented Dec 29, 2018

Thanks, it worked :)

@tbsalling
Copy link
Contributor

I close this issue, though the dep cleanup remains to be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants