You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jan Engler <Ja...@sick.de> on 2013/06/25 14:52:24 UTC
JavaDoc plugin and firewall
Hi,
currently, I am facing a problem with the javadoc plugin: It seems that
the plugin tries to download connected dependencies (that are used in our
type hierarchy) from repo1 (central) although we have a defined mirror for
that in the settings. Can I specify mirrors for plugins somewhere in the
settings.xml or in the configuration of the plugin?
Here is my "stacktrace" (the output from the plugin):
The javasoft:synthetica:jar lies in our own repository....but apperantly,
the plugin only searches in repo1.
[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building My-Custom-App
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-javadoc-plugin:2.9:javadoc (default-cli)
@My-Custom-App>>>
[INFO]
[INFO] <<< maven-javadoc-plugin:2.9:javadoc (default-cli) @ My-Custom-App
<<<
Downloading: http://repo1.maven.org/maven2/junit/junit/4.11/junit-4.11.pom
Downloading:
http://repo1.maven.org/maven2/org/easymock/easymock/3.1/easymock-3.1.pom
Downloading:
http://repo1.maven.org/maven2/org/easymock/easymockclassextension/3.1/easymockclassextension-3.1.pom
Downloading:
http://repo1.maven.org/maven2/org/springframework/spring-test/3.2.2.RELEASE/spring-test-3.2.2.RELEASE.pom
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1:45.795s
[INFO] Finished at: Tue Jun 25 08:26:59 CEST 2013
[INFO] Final Memory: 5M/15M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal on project sick-lnf: Could not resolve
dependencies for project de.sick.sopas:my-custom-app:jar:3.0.0-SNAPSHOT:
Failed to collect dependencies for [de.javasoft:synthetica:jar:1.0
(compile), junit:junit:jar:4.11 (test), org.easymock:easymock:jar:3.1
(test), org.easymock:easymockclassextension:jar:3.1 (test),
org.springframework:spring-test:jar:3.2.2.RELEASE (test)]: Failed to read
artifact descriptor for de.javasoft:synthetica:jar:1.0: Could not transfer
artifact de.javasoft:synthetica:pom:1.0 from/to central (
http://repo1.maven.org/maven2): Error transferring file: Connection timed
out: connect -> [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
I have a mirrorOf entry in our settings.xml:
<mirrors>
<mirror>
<id>central-proxy</id>
<name>Local proxy of central repo</name>
<url>
http://nexusserver.devserver.net:8080/nexus/content/repositories/central/
</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
Any hints?
Mit freundlichen Grüßen / Best regards
Jan Engler
SICK AG - Sitz: Waldkirch i. Br. - Handelsregister: Freiburg i. Br. HRB
280355
Vorstand: Dr. Robert Bauer (Vorsitzender) - Reinhard Bösl - Dr. Mats
Gökstorp - Dr. Martin Krämer - Markus Vatter
Aufsichtsrat: Gisela Sick (Ehrenvorsitzende) - Klaus M. Bukenberger
(Vorsitzender)
Re: JavaDoc plugin and firewall
Posted by Anders Hammar <an...@hammar.net>.
You're just mirroring "central" so I'm guessing there is another repo
declared pointing at repo1 but with a different id than "central". Could
you check the effective pom of the project?
/Anders
On Tue, Jun 25, 2013 at 2:52 PM, Jan Engler <Ja...@sick.de> wrote:
> Hi,
>
> currently, I am facing a problem with the javadoc plugin: It seems that
> the plugin tries to download connected dependencies (that are used in our
> type hierarchy) from repo1 (central) although we have a defined mirror for
> that in the settings. Can I specify mirrors for plugins somewhere in the
> settings.xml or in the configuration of the plugin?
>
> Here is my "stacktrace" (the output from the plugin):
>
> The javasoft:synthetica:jar lies in our own repository....but apperantly,
> the plugin only searches in repo1.
>
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building My-Custom-App
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] >>> maven-javadoc-plugin:2.9:javadoc (default-cli)
> @My-Custom-App>>>
> [INFO]
> [INFO] <<< maven-javadoc-plugin:2.9:javadoc (default-cli) @ My-Custom-App
> <<<
> Downloading: http://repo1.maven.org/maven2/junit/junit/4.11/junit-4.11.pom
>
> Downloading:
> http://repo1.maven.org/maven2/org/easymock/easymock/3.1/easymock-3.1.pom
> Downloading:
>
> http://repo1.maven.org/maven2/org/easymock/easymockclassextension/3.1/easymockclassextension-3.1.pom
>
> Downloading:
>
> http://repo1.maven.org/maven2/org/springframework/spring-test/3.2.2.RELEASE/spring-test-3.2.2.RELEASE.pom
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1:45.795s
> [INFO] Finished at: Tue Jun 25 08:26:59 CEST 2013
> [INFO] Final Memory: 5M/15M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project sick-lnf: Could not resolve
> dependencies for project de.sick.sopas:my-custom-app:jar:3.0.0-SNAPSHOT:
> Failed to collect dependencies for [de.javasoft:synthetica:jar:1.0
> (compile), junit:junit:jar:4.11 (test), org.easymock:easymock:jar:3.1
> (test), org.easymock:easymockclassextension:jar:3.1 (test),
> org.springframework:spring-test:jar:3.2.2.RELEASE (test)]: Failed to read
> artifact descriptor for de.javasoft:synthetica:jar:1.0: Could not transfer
> artifact de.javasoft:synthetica:pom:1.0 from/to central (
> http://repo1.maven.org/maven2): Error transferring file: Connection timed
> out: connect -> [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
>
>
>
> I have a mirrorOf entry in our settings.xml:
> <mirrors>
> <mirror>
> <id>central-proxy</id>
> <name>Local proxy of central repo</name>
> <url>
> http://nexusserver.devserver.net:8080/nexus/content/repositories/central/
> </url>
> <mirrorOf>central</mirrorOf>
> </mirror>
> </mirrors>
>
> Any hints?
>
> Mit freundlichen Grüßen / Best regards
>
> Jan Engler
>
>
> SICK AG - Sitz: Waldkirch i. Br. - Handelsregister: Freiburg i. Br. HRB
> 280355
> Vorstand: Dr. Robert Bauer (Vorsitzender) - Reinhard Bösl - Dr. Mats
> Gökstorp - Dr. Martin Krämer - Markus Vatter
> Aufsichtsrat: Gisela Sick (Ehrenvorsitzende) - Klaus M. Bukenberger
> (Vorsitzender)
>