schnatterer / smeagol-galore

A git-based wiki featuring markdown, a WYSIWYG Editor, PlantUML, and much more
MIT License
24 stars 5 forks source link

Docker-Image not buildable out of the box #2

Closed silvio closed 5 years ago

silvio commented 5 years ago

I try to build a own image and drop into an error.

[INFO] Building cas4-overlay 1.0
[...]
Downloaded from restlet-repository: http://maven.restlet.org/org/restlet/jee/org.restlet.ext.spring/2.1.0/org.restlet.ext.spring-2.1.0.jar (16 kB at 18 kB/s)                                                                                                                                                                  
Downloaded from restlet-repository: http://maven.restlet.org/org/restlet/jee/org.restlet.ext.slf4j/2.1.0/org.restlet.ext.slf4j-2.1.0.jar (3.3 kB at 2.7 kB/s)                                                                                                                                                                  
Downloaded from restlet-repository: http://maven.restlet.org/org/restlet/jee/org.restlet.ext.servlet/2.1.0/org.restlet.ext.servlet-2.1.0.jar (20 kB at 14 kB/s)                                                                                                                                                                
Downloaded from restlet-repository: http://maven.restlet.org/org/restlet/jee/org.restlet/2.1.0/org.restlet-2.1.0.jar (725 kB at 343 kB/s)                                                                                                                                                                                      
[INFO] ------------------------------------------------------------------------                                                                                                                                                                                                                                                
[INFO] BUILD FAILURE                                                                                                                                                                                                                                                                                                           
[INFO] ------------------------------------------------------------------------                                                                                                                                                                                                                                                
[INFO] Total time:  03:11 min                                                                                                                                                                                                                                                                                                  
[INFO] Finished at: 2018-11-29T19:10:04Z                                                                                                                                                                                                                                                                                       
[INFO] ------------------------------------------------------------------------                                                                                                                                                                                                                                                
[ERROR] Failed to execute goal on project cas4-overlay: Could not resolve dependencies for project net.unicon:cas4-overlay:war:1.0: Could not find artifact javax.xml:xmldsig:jar:1.0 in sonatype-releases (http://oss.sonatype.org/content/repositories/releases/), try downloading from http://java.sun.com/webservices/downl
oads/webservicespack.html -> [Help 1]                                                                                                                                                                                                                                                                                          
[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/DependencyResolutionException                                                                                                                                                                                                                                
The command '/bin/sh -c mvn dependency:resolve dependency:resolve-plugins' returned a non-zero code: 1                                                                                                                                                                                                                         

I have runned with option -X but don't get much more informations, just some stacktraces:

ERROR] Failed to execute goal on project cas4-overlay: Could not resolve dependencies for project net.unicon:cas4-overlay:war:1.0: Could not find artifact javax.xml:xmldsig:jar:1.0 in sonatype-releases (http://oss.sonatype.org/content/repositories/releases/), try downloading from http://java.sun.com/webservices/downl
oads/webservicespack.html -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project cas4-overlay: Could not resolve dependencies for project net.unicon:cas4-overlay:war:1.0: Could not find artifact javax.xml:xmldsig:jar:1.0 in sonatype-releases (http://oss.sonatype.org/content/repositories/releases/), try downlo
ading from http://java.sun.com/webservices/downloads/webservicespack.html
[...]
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project net.unicon:cas4-overlay:war:1.0: Could not find artifact javax.xml:xmldsig:jar:1.0 in sonatype-releases (http://oss.sonatype.org/content/repositories/releases/), try downloading from http://java.sun.com/webser
vices/downloads/webservicespack.html
[...]
Caused by: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact javax.xml:xmldsig:jar:1.0 in sonatype-releases (http://oss.sonatype.org/content/repositories/releases/), try downloading from http://java.sun.com/webservices/downloads/webservicespack.html
[...]
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact javax.xml:xmldsig:jar:1.0 in sonatype-releases (http://oss.sonatype.org/content/repositories/releases/), try downloading from http://java.sun.com/webservices/downloads/webservicespack.html
[...]
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact javax.xml:xmldsig:jar:1.0 in sonatype-releases (http://oss.sonatype.org/content/repositories/releases/), try downloading from http://java.sun.com/webservices/downloads/webservicespack.html
[...]
schnatterer commented 5 years ago

Thanks @silvio.

Seems like oracle now redirects everything from java.sun.com to oracle.com. One of the transitive dependencies relied on java.sun.com, too bad. Seems like oracle broke my build 😠

The solution I found (using atlassian's maven repo) might no be the best, but works for now. Don't have too much time right now.

Plz reopen if it doesn't work for you.