Apologies if I'm missing something obvious (and I did search the list archives without success).

I have the following pom.xml defined for a project that depends on the activation.jar. I could only find that jar published on the maven 1 repo on java.net.

I deleted my local .m2 repo (to make sure I didn't botch the repo/dependency configs), and I ran: mvn clean package site While maven is downloading all the needed plugins/deps, in the middle of the download, it starts trying to use: http://cvs.apache.org/maven-snapshot-repository/
for only some jars.
The download gets stuck on these for a long time (I assume until something times out).

So I have a couple questions:

1. Why are only SOME downloads hitting: http://cvs.apache.org/maven-snapshot-repository/ when those same items exist in the normal central repo (and when I never define the cvs.apache.org repo anywhere)?

2. Any idea how I can workaround this issue to avoid these long download delays?

I tried also re-defining the "central" repo in my pom before the jsvs.net.m1 repo (hoping that might always force checking of "central" before any other repo). Didn't seem to make any difference.

Thanks,
Dan


Pom.xml follows:

<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>

    <modelVersion>4.0.0</modelVersion>

    <groupId>org.jdbc4olap</groupId>
    <artifactId>jdbc4olap</artifactId>
    <version>1.1-SNAPSHOT</version>
    <packaging>jar</packaging>

    <name>Jdbc4Olap</name>
<description>Jdbc4Olap is a JDBC Type 4 driver for OLAP datasources, which partially implements the JDBC 3.0 specification. It can communicate directly with most OLAP databases using the XMLA protocol : SAPĀ® BW,
        Microsoft Analysis ServicesĀ®, Mondrian...

Furthermore, in order to support wider use, Jdbc4Olap includes a SQL-MDX converter and virtual relational map of
        OLAP databases.
    </description>
    <inceptionYear>2008</inceptionYear>
    <url>http://www.jdbc4olap.org/</url>

    <licenses>
        <license>
            <name>LGPL v2 license</name>
            <url>http://www.gnu.org/licenses/old-licenses/library.txt</url>

            <distribution>manual</distribution>
<!-- @todo restore this after publishing jdbc4olap in the maven repo. -->
            <!--<distribution>repo</distribution>-->
        </license>
    </licenses>

    <developers>
        <developer>
            <id>fsiberchicot</id>
            <name>Florian Siberchicot</name>
            <!--<email>fsiberchicot at jdbc4olap.org</email>-->
            <email>fsiberchicot at users.sourceforge.net</email>
            <roles>
                <role>admin</role>
                <role>developer</role>
            </roles>
        </developer>

        <developer>
            <id>bhamail</id>
            <name>Dan Rollo</name>
            <email>bhamail at users.sourceforge.net</email>
            <roles>
                <role>developer</role>
            </roles>
            <timezone>-5</timezone>
        </developer>
    </developers>

    <scm>

<connection>scm:svn:https://jdbc4olap.svn.sourceforge.net/svnroot/jdbc4olap/trunk/jdbc4olap</connection>

<developerConnection>scm:svn:https://jdbc4olap.svn.sourceforge.net/svnroot/jdbc4olap/trunk/jdbc4olap</developerConnection>
        <url>http://jdbc4olap.svn.sourceforge.net/</url>
    </scm>

    <build>
        <sourceDirectory>src</sourceDirectory>
        <resources>
<!-- This exists only to ensure the files from the 'jjtree' folder (sql.jjt, SimpleNode.java) are included in the sources jar. This also results in the sql.jjt file being included in the production jar,
            which is not a problem.
            Investigate geronimo jjtree plugin for an alternative. -->
            <resource>
                <directory>${basedir}/jjtree</directory>
                <includes>
                    <include>**/*.jjt</include>
                </includes>
            </resource>
        </resources>

        <testSourceDirectory>test</testSourceDirectory>


        <plugins>

            <plugin>
                <!-- Compile using Java 5 spec. -->
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                    <!--<verbose>true</verbose>-->
                </configuration>
            </plugin>


            <!-- Generate grammar classes.
             JJTree processes sql.jjt to produce sql.jj,
             JavaCC processes sql.jj to produce *.java source files. -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>javacc-maven-plugin</artifactId>
                <version>2.4.1</version>
                <executions>
                    <execution>
                        <id>jjtree-javacc</id>
                        <goals>
                            <goal>jjtree-javacc</goal>
                            <!--<goal>jjtree</goal>-->
                        </goals>
                        <configuration>
<!-- The Java version for which to generate source code. -->
                            <jdkVersion>1.5</jdkVersion>

<!-- The directory where the decorated JavaCC grammar files (*.jjt) are located. It will be recursively scanned for input files to pass to JJTree. The parameters includes and excludes
                            can be used to select a subset of files.
Default value is: ${basedir}/src/main/jjtree. -->
                            <sourceDirectory>jjtree</sourceDirectory>
                        </configuration>
                    </execution>
                </executions>
            </plugin>


            <!-- attach source jar -->
            <plugin>
                <artifactId>maven-source-plugin</artifactId>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <!-- attach javadocs -->
            <plugin>
                <artifactId>maven-javadoc-plugin</artifactId>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

        </plugins>
    </build>


    <reporting>
        <plugins>
            <plugin>
                <!-- Generate the BNF documentation for the sql grammer.
Run 'mvn site' to generate the BNF report in: target/site/jjdoc/org/jdbc4olap/parsing/sql.html -->
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>javacc-maven-plugin</artifactId>
                <version>2.4.1</version>
            </plugin>
        </plugins>
    </reporting>


    <repositories>
<!-- Only required for Sun activation.jar (not hosted on ibiblio, nor in maven2-repository.dev.java.net). -->
        <repository>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <id>java.net</id>
            <url>http://download.java.net/maven/1</url>
            <layout>legacy</layout>
        </repository>
    </repositories>


    <dependencies>

        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.3.1</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>javax.xml.soap</groupId>
            <artifactId>saaj-api</artifactId>
            <version>1.3</version>
            <!--<scope>system</scope>-->
            <!--<systemPath>${basedir}/lib/saaj-api.jar</systemPath>-->
        </dependency>

        <dependency>
            <groupId>com.sun.xml.messaging.saaj</groupId>
            <artifactId>saaj-impl</artifactId>
            <version>1.3</version>
            <scope>test</scope>
            <!--<scope>system</scope>-->
            <!--<systemPath>${basedir}/lib/saaj-impl.jar</systemPath>-->
            <!-- Note: "provided" also seems to work with jdk 1.5 -->
            <!--<scope>provided</scope> -->
        </dependency>

        <dependency>
            <groupId>javax.activation</groupId>
            <artifactId>activation</artifactId>
<!-- The manifest of saaj-impl.jar lists activation.jar as required (Class-Path: saaj-api.jar activation.jar), but jdbc4olap does not appear to require it at runtime. Try adding this jar if you have problems at runtime. -->
            <optional>true</optional>
            <version>1.1.1</version>
            <scope>runtime</scope>
            <!--<version>1.0.2</version>-->
            <!--<scope>system</scope>-->
            <!--<systemPath>${basedir}/lib/activation.jar</systemPath>-->
        </dependency>

        <!-- not used, yet... -->
        <!--<dependency>-->
            <!--<groupId>org.apache.log4j</groupId>-->
            <!--<artifactId>log4j</artifactId>-->
            <!--<version>1.2.13</version>-->
            <!--<scope>system</scope>-->
            <!--<systemPath>${basedir}/lib/log4j-1.2.13.jar</systemPath>-->
        <!--</dependency>-->

    </dependencies>

</project>



Snippet of output where download gets stuck on odd repo follows:

Downloading: http://repo1.maven.org/maven2/org/apache/maven/doxia/doxia/1.0-alpha-9/doxia-1.0-alpha-9.pom
8K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/6/maven-parent-6.pom
19K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.5.1/plexus-utils-1.5.1.jar
205K downloaded
Downloading: http://repo1.maven.org/maven2/net/java/dev/javacc/javacc/4.0/javacc-4.0.jar
267K downloaded
Downloading: http://repo1.maven.org/maven2/edu/ucla/cs/compilers/jtb/1.3.2/jtb-1.3.2.jar
329K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-reporting-impl/2.0.4/maven-reporting-impl-2.0.4.jar
13K downloaded
Downloading: http://download.java.net/maven/1/commons-validator/jars/commons-validator-1.2.0.jar Downloading: http://cvs.apache.org/maven-snapshot-repository/commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.jar

<...download gets stuck here for a long time - minutes...then proceeds>

Downloading: http://repo1.maven.org/maven2/commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.jar
88K downloaded

<...if I understand correctly, the above means the jar was actually downloaded from the normal repo...>

Downloading: http://download.java.net/maven/1/commons-beanutils/jars/commons-beanutils-1.7.0.jar Downloading: http://repo1.maven.org/maven2/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar
184K downloaded
Downloading: http://download.java.net/maven/1/commons-logging/jars/commons-logging-1.0.4.jar Downloading: http://repo1.maven.org/maven2/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
37K downloaded
Downloading: http://download.java.net/maven/1/commons-digester/jars/commons-digester-1.6.jar Downloading: http://repo1.maven.org/maven2/commons-digester/commons-digester/1.6/commons-digester-1.6.jar
164K downloaded
Downloading: http://download.java.net/maven/1/commons-collections/jars/commons-collections-2.0.jar Downloading: http://repo1.maven.org/maven2/commons-collections/commons-collections/2.0/commons-collections-2.0.jar
88K downloaded
Downloading: http://download.java.net/maven/1/xml-apis/jars/xml-apis-1.0.b2.jar Downloading: http://repo1.maven.org/maven2/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar
106K downloaded
Downloading: http://download.java.net/maven/1/oro/jars/oro-2.0.7.jar
Downloading: http://cvs.apache.org/maven-snapshot-repository/oro/oro/2.0.7/oro-2.0.7.jar
Downloading: http://repo1.maven.org/maven2/oro/oro/2.0.7/oro-2.0.7.jar
63K downloaded
Downloading: http://download.java.net/maven/1/org.apache.maven.doxia/jars/doxia-core-1.0-alpha-7.jar Downloading: http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/doxia/doxia-core/1.0-alpha-7/doxia-core-1.0-alpha-7.jar

<...download gets stuck here again for a long time - minutes...then proceeds>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to