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

Exception shown when can't fetch javadoc from Central #6

Open
DavidLeoni opened this issue Jul 31, 2016 · 0 comments
Open

Exception shown when can't fetch javadoc from Central #6

DavidLeoni opened this issue Jul 31, 2016 · 0 comments

Comments

@DavidLeoni
Copy link
Member

In version 0.6.1, when the program can't fetch the javadoc (because i.e. it's still not in mirrored in Maven Central), although it can still correctly locate the local one in target/apidocs it displays this ugly exception:

mag 05, 2015 2:25:36 PM eu.trentorise.opendata.josman.Josmans fetchJavadoc
INFO: Fetching javadoc from http://repo1.maven.org/maven2/eu/trentorise/opendata/semtext/semtext/1.0.0/semtext-1.0.0-javadoc.jar into C:\Users\david_2\AppData\Local\Temp\eu.trentorise.opendata.semtext-semtext-javado
c1514907120617724699.jar ...
mag 05, 2015 2:25:36 PM eu.trentorise.opendata.josman.JosmanProject copyJavadoc
WARNING: Error while fetching javadoc from Maven Central, trying to locate it at c:\Users\david_2\Da\prj\trentorise\semtext\prj\.\target\checkout\target\semtext-1.0.0-javadoc.jar
java.lang.RuntimeException: Error while fetch-and-write javadoc for eu.trentorise.opendata.semtext/semtext-1.0.0 into file C:\Users\david_2\AppData\Local\Temp\eu.trentorise.opendata.semtext-semtext-javadoc1514907120
617724699.jar
        at eu.trentorise.opendata.josman.Josmans.fetchJavadoc(Josmans.java:414)
        at eu.trentorise.opendata.josman.JosmanProject.copyJavadoc(JosmanProject.java:849)
        at eu.trentorise.opendata.josman.JosmanProject.processGitDocsDir(JosmanProject.java:596)
        at eu.trentorise.opendata.josman.JosmanProject.generateSite(JosmanProject.java:720)
        at eu.trentorise.opendata.josman.maven.SiteMojo.execute(SiteMojo.java:41)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.io.FileNotFoundException: http://repo1.maven.org/maven2/eu/trentorise/opendata/semtext/semtext/1.0.0/semtext-1.0.0-javadoc.jar
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1623)
        at org.apache.commons.io.FileUtils.copyURLToFile(FileUtils.java:1419)
        at eu.trentorise.opendata.josman.Josmans.fetchJavadoc(Josmans.java:411)
        ... 25 more

mag 05, 2015 2:25:47 PM eu.trentorise.opendata.josman.JosmanProject generateSite
INFO:

Site is now browsable at c:\Users\david_2\Da\prj\trentorise\semtext\prj\target\site
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant