4 Replies Latest reply: Mar 16, 2012 12:36 PM by flemster RSS

    Developing 1st Widget = Can't create Maven sample project: dummyCustomerSite

    flemster

      lHi,

      Trying to go through the NewBaseProject creation tutorial from the JiveDeveloperKit-v2.  Have been successful to get the virtual box installed and maven configured to the point of creating a 5min helloworld project, but cannot get the build of the dummyCustomer project.   With the diags on Maven is reporting the follow error multiple times:

       

      [WARNING] repository metadata for: 'snapshot com.jivesoftware.maven:maven-jive-archetype:5.0.x-SNAPSHOT' could not be retrieved from repository: jive.internal due to an error: Error transferring file: Server redirected too many  times (20)

       

      Thinking it's a id password error, I've check the settings.xml and all seems right (as I'm going through a proxy, and using my Jive ID where expected). Below is the dump of the settings with pw's xxx out.   Any suggestions are appreciated.  My "goal"  to build a widget from a custom RSS feed that user can include on their sites.  I'm new to the environment so any suggested (better) tutorials would be appreciated...  Regards,  Rob

       

       

      <?xml version="1.0"?>

      <settings>
        <profiles>
          <profile>
            <id>jive.archiva</id>
            <activation>
              <activeByDefault>true</activeByDefault>
            </activation>
            <repositories>
              <repository>
                <id>secure.jive.eap.5_0</id>
                <name>Secure Jive EAP 5.0</name>
                <url>http://maven-secure.jiveland.com/archiva/repository/eap.5_0</url>
              </repository>
              <repository>
                <id>jive.internal.maven</id>
                <name>Jive's Repository</name>
                <url>http://maven-int.jiveland.com/archiva/repository/snapshots</url>
              </repository>
              <repository>
                <id>jive.internal</id>
                <name>Jive's Repository</name>
                <url>http://maven-secure.jivesoftware.com/archiva/repository/jive.internal</url>
              </repository>
              <repository>
                <id>jive.snapshots</id>
                <name>Jive's Repository</name>
                <url>http://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots</url>
              </repository>
            </repositories>
            <pluginRepositories>
              <pluginRepository>
                <id>jive.internal</id>
                <name>Jive's Repository</name>
                <url>http://maven-secure.jivesoftware.com/archiva/repository/jive.internal</url>
              </pluginRepository>
              <pluginRepository>
                <id>jive.internal.maven</id>
                <name>Jive's Repository</name>
                <url>http://maven-int.jiveland.com/archiva/repository/snapshots</url>
              </pluginRepository>
              <pluginRepository>
                <id>jive.snapshots</id>
                <name>Jive's Repository</name>
                <url>http://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots</url>
              </pluginRepository>
            </pluginRepositories>
            <properties>
              <!-- we assume you have unpacked tomcat on your filesystem. Change this to match your file path-->
              <tomcat6.home><![CDATA[/root/Desktop/apache-tomcat-6.0.32]]></tomcat6.home>
              <cargo.wait>false</cargo.wait>
              <jive.setup>true</jive.setup>
              <jive.devMode>false</jive.devMode>
              <pluginDirs>null</pluginDirs>
            </properties>
          </profile>
        </profiles>

        <!-- Be sure to substitute your login name and password information here -->
        <servers>
          <server>
            <id>jive.internal.maven</id>
            <username>flemster</username>
            <password>24xxxxxxx</password>
          </server>
          <server>
            <id>secure.jive.eap.5_0</id>
            <username>flemster</username>
            <password>24xxxxxxx</password>
          </server>
          <server>
            <id>jive.internal</id>
            <username>flemster</username>
            <password>24xxxxxxx</password>
          </server>
          <server>
            <id>jive.snapshots</id>
            <username>flemster</username>
            <password>24xxxxxxx</password>
          </server>
          <server>
            <id>central</id>
            <username>flemster</username>
            <password>24xxxxxxx</password>
          </server>
        </servers>
        <proxies>
          <proxy>
            <id>optional</id>
            <active>true</active>
            <protocol>http</protocol>
            <username>maple/776221434</username>
            <password>24xxxxxxx</password>
            <host>oproxy.fg.rbc.com</host>
            <port>8080</port>
            <nonProxyHosts></nonProxyHosts>
          </proxy>
        </proxies>
      </settings>

        • Re: Developing 1st Widget = Can't create Maven sample project: dummyCustomerSite
          aley

          Hi Rob

           

          1) There's a standard widget to display RSS feeds. I suspect you know that one already, but in case you don't...

           

          2) I'm not sure where you found "NewBaseProject" and "JiveDeveloperKit-v2"; I've struggled as well to find simple tutorials to get started. But you get there eventually...

          I assume you're talking about the following command:

          mvn archetype:create -e -DarchetypeGroupId=com.jivesoftware.maven -DarchetypeArtifactId=maven-jive-archetype -DarchetypeVersion=5.0.x-SNAPSHOT -DgroupId=com.jivesoftware.dummycustomer -DartifactId=dummyCustomerSite  
          

          Is that accurate?

           

          3) It's quite possible that the proxy is indeed the problem.

          If it happens to be an NTLM proxy, did you try specifying your username as "Domainname\Username" (with a backslash instead of a regular one) in Maven's proxy configuration?

           

          Regards,

          Andreas