You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Thorsten Heit <th...@gmx.de> on 2009/03/12 12:47:32 UTC

site plugin ignoring proxy settings?

Hi,

in our company we have to use a proxy for Internet access. Therefore I've
setup Nexus as a repository manager for our Maven builds. Using a couple of
entries in ${user.home}/.m2/settings.xml this works quite well for building
stuff and deploying them via the release plugin.

Yesterday I've seen a strange behaviour with the site plugin that I'm sure
must have been occurring with my settings all the time but that I've ignored
so far. I don't know if that has been asked/answered already because I
haven't found anything in the list archive or in JIRA.


When I build the project's web site with "mvn site" or "mvn site:site", the
build hangs for about 15-20s when it is generating the dependencies report,
then a first warning message appears saying the repository 'java.net' is
invalid, another 15-20s pause until the second message is shown with
repository 'java.net' replaced by 'central':


sukv_archivar> mvn -e site:site
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'site'.
[INFO]
------------------------------------------------------------------------
[INFO] Building SUKV-Archivar
[INFO]    task-segment: [site:site]
[INFO]
------------------------------------------------------------------------
[INFO] [site:site]
[WARNING] No URL defined for the project - decoration links will not be
resolved
[INFO] Generating "About" report.
[INFO] Generating "Issue Tracking" report.
[INFO] Generating "Project Team" report.
[INFO] Generating "Dependencies" report.
[WARNING] The repository url
'https://maven-repository.dev.java.net/nonav/repository' is invalid -
Repository 'java.net' will be blacklisted.
[WARNING] The repository url 'http://repo1.maven.org/maven2' is invalid -
Repository 'central' will be blacklisted.
[INFO] Generating "Project Plugins" report.
[INFO] Generating "Continuous Integration" report.
[INFO] Generating "Source Repository" report.
[INFO] Generating "Project License" report.
[INFO] Generating "Mailing Lists" report.
[INFO] Generating "Plugin Management" report.
[INFO] Generating "Project Summary" report.
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 minute 1 second
[INFO] Finished at: Thu Mar 12 10:01:32 CET 2009
[INFO] Final Memory: 22M/40M
[INFO]
------------------------------------------------------------------------
sukv_archivar> 

In the above case I commented out the <reporting> section in my pom.xml, but
it doesn't make any difference when activating a couple of reports such as
* maven-project-info-reports-plugin
* maven-jxr-plugin
* taglist-maven-plugin
* maven-javadoc-plugin
* maven-surefire-report-plugin


It seems that the report generation attempts a direct access to the Internet
which will not work because of our firewall, so that finally a timeout
occurs. I.e. the report generation ignores the proxy / repository manager
settings in my settings.xml.

What is causing this behaviour? And why is a repository 'java.net' contacted
that isn't specified anywhere?


Here are the relevant parts of my settings.xml:

<profiles>
  <profile>
    <id>default</id>
    <activation>
      <activeByDefault>true</activeByDefault>
    </activation>

    <repositories>
      <repository>
        <id>central</id>
        <url>http://10.26.31.180:4080/nexus/content/groups/public</url>
        <snapshots>
          <enabled>false</enabled>
        </snapshots>
      </repository>

      <repository>
        <id>snapshots</id>
       
<url>http://10.26.31.180:4080/nexus/content/groups/public-snapshots</url>
        <releases>
          <enabled>false</enabled>
        </releases>
      </repository>
    </repositories>

    <pluginRepositories>
      <pluginRepository>
        <id>central</id>
       
<url>http://10.26.31.180:4080/nexus/content/repositories/central</url>
        <snapshots>
          <enabled>false</enabled>
        </snapshots>
      </pluginRepository>

      <pluginRepository>
        <id>snapshots</id>
       
<url>http://10.26.31.180:4080/nexus/content/repositories/apache-snapshots</url>
        <releases>
          <enabled>false</enabled>
        </releases>
      </pluginRepository>
    </pluginRepositories>
  </profile>
</profiles>

<mirrors>
  <mirror>
    <id>apache-snapshots</id>
    <mirrorOf>apache.snapshots</mirrorOf>
   
<url>http://10.26.31.180:4080/nexus/content/groups/public-snapshots</url>
    <name>Maven proxy</name>
  </mirror>

  <mirror>
    <id>central</id>
    <mirrorOf>central</mirrorOf>
    <url>http://10.26.31.180:4080/nexus/content/groups/public</url>
    <name>Maven proxy</name>
  </mirror>
</mirrors>

It even doesn't work when I add a section in mirrors using
<mirrorOf>*</mirrorOf>

Am I missing something?


Regards

Thorsten
-- 
View this message in context: http://www.nabble.com/site-plugin-ignoring-proxy-settings--tp22474676p22474676.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: site plugin ignoring proxy settings?

Posted by Heinrich Nirschl <he...@gmail.com>.
On Thu, Mar 12, 2009 at 12:47 PM, Thorsten Heit <th...@gmx.de> wrote:
> When I build the project's web site with "mvn site" or "mvn site:site", the
> build hangs for about 15-20s when it is generating the dependencies report,
> then a first warning message appears saying the repository 'java.net' is
> invalid, another 15-20s pause until the second message is shown with
> repository 'java.net' replaced by 'central':
>

I can confirm this behaviour. The mirror setting is ignored by the
project-info-reports:dependencies report. This was already the case
with the last release of the PIR plugin, its not new with version
2.1.1.

regards,
Henry

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org