When I try and build some of the sample plugins I get this maven error coming from the Jive repositories (see bold below).
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building plugin
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] artifact com.jivesoftware.maven:maven-clearspace-plugin-packager: checking for updates from jive.central
[WARNING] repository metadata for: 'artifact com.jivesoftware.maven:maven-clearspace-plugin-packager' could not be retrieved from repository: jive.central due to an error: Error transferring file: Server redirected too many times (20)
[INFO] Repository 'jive.central' will be blacklisted
Downloading: http://maven-secure.jivesoftware.com/archiva/repository/jive.internal/woodstox/wstx-asl/3.2.1/wstx-asl-3.2.1.pom
[INFO] Unable to find resource 'woodstox:wstx-asl:pom:3.2.1' in repository jive.internal (http://maven-secure.jivesoftware.com/archiva/repository/jive.internal)
Downloading: http://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots/woodstox/wstx-asl/3.2.1/wstx-asl-3.2.1.pom
[INFO] Unable to find resource 'woodstox:wstx-asl:pom:3.2.1' in repository jive.snapshots (http://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots)
Downloading: http://maven.jivesoftware.com/central/woodstox/wstx-asl/3.2.1/wstx-asl-3.2.1.pom
[WARNING] Unable to get resource 'woodstox:wstx-asl:pom:3.2.1' from repository jive.central (http://maven.jivesoftware.com/central): Error transferring file: Server redirected too many times (20)
Downloading: http://repo1.maven.org/maven2/woodstox/wstx-asl/3.2.1/wstx-asl-3.2.1.pom
[INFO] Unable to find resource 'woodstox:wstx-asl:pom:3.2.1' in repository central (http://repo1.maven.org/maven2)
[INFO] [dependency:copy-dependencies {execution: copy-extra-dependencies}]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/kgilpin/jive-dev/plugins/embedcontent/trunk/src/test/resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] No tests to run.
[INFO] [jar:jar {execution: default-jar}]
[INFO] Building jar: /home/kgilpin/jive-dev/plugins/embedcontent/trunk/target/tmp-classes.jar
[INFO] [clearspacepackager:package-plugin {execution: default}]
[INFO] Creating exploded plugin directory: /home/kgilpin/jive-dev/plugins/embedcontent/trunk/target/embedcontent
[INFO] Building plugin jar: /home/kgilpin/jive-dev/plugins/embedcontent/trunk/target/embedcontent.jar
[INFO] [antrun:run {execution: rename-exploded}]
[INFO] Executing tasks
[delete] Deleting 1 files from /home/kgilpin/jive-dev/plugins/embedcontent/trunk/target
[INFO] Executed tasks
[INFO] [install:install {execution: default-install}]
[INFO] Installing /home/kgilpin/jive-dev/plugins/embedcontent/trunk/target/tmp-classes.jar to /home/kgilpin/.m2/repository/com/jivesoftware/plugin/embedcontent/embedcontent/2.1.0.dev_SNAPSHOT/embedcontent-2.1.0.dev_SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error installing artifact: File /home/kgilpin/jive-dev/plugins/embedcontent/trunk/target/tmp-classes.jar does not exist
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19 seconds
[INFO] Finished at: Fri Oct 16 14:28:10 EDT 2009
[INFO] Final Memory: 21M/38M
[INFO] ------------------------------------------------------------------------
Fetching the URL http://maven.jivesoftware.com/central in a browser leads to a similar error (too many redirects) and ends with the URL http://maven.jivesoftware.com/archivaarchivaarchivaarchivaarchivaarchivaarchivaarchivaarchivaarchivaarchivaarchivaarchivaarchivaarchivaarchivaarchivaarchivaarchivaarchivacentral
Hi Kevin,
Could you provide me with your current maven settings.xml file? ( feel free to remove login credentials )
Here you go.
Hey Kevin,
It looks like the servers section of your settings.xml is missing your login credentials:
<servers>
<server>
<id>jive.internal</id>
</server>
<server>
<id>jive.snapshots</id>
</server>
</servers>
Should look something like :
<servers>
<server>
<id>jive.internal</id>
<username>your-name</username>
<password>changeme</password>
</server>
<server>
<id>jive.snapshots</id>
<username>your-name</username>
<password>changeme</password>
</server>
<server>
<id>central</id>
<username>your-name</username>
<password>changeme</password>
</server>
</servers>
I took out the login credentials because you asked me to. In the real document they are there.
Ah, you removed the whole XML element instead of it's contents. My apologies. I'm going to send this stack to one of our Professional Services engineers to see if they can shed some light on the issue.
Could you attach your pom.xml for this project?
I get this error from the sample plugins provided by Jive, as described on the Building Plugins documentation page. For example, the userstats plugin.
Hi Kevin,
That sample plugin is no longer maintained and out of date and contains the incorrect maven repository address. It should be maven-secure.jivesoftware.com instead of maven.jivesoftware.com
Can you tell me which of the sample plugins are maintained?
I'm not sure which of these are maintained but I've escalated to Core Engineering team to see which, if any, of these plugins are maintained.
I was running into the same problem and am also very interested in knowing the answer.
Jive combines collaboration software, community software & social networking software into the leading SBS solution.
© Copyright 2000–2009 Jive Software. All rights reserved.
915 SW Stark St., Suite 400, Portland, OR 97205