Build failure


#1

my build for a project is getting succeded when i tried locally but not through Circle CI

any one of you can help me out on this?


#2

Hello! Please provide more details as shown here.

We all want to help you get back to building, but we need some help from you to do that :slight_smile:


#3

This is my POM.xml


4.0.0

<parent>
	<groupId>org.sonatype.oss</groupId>
	<artifactId>oss-parent</artifactId>
	<version>7</version>
</parent>

<groupId>uk.co.jemos.podam</groupId>
<artifactId>podam</artifactId>
<version>6.0.2.RELEASE</version>
<name>podam</name>

<properties>
	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	<serenity.version>1.0.59</serenity.version>
	<spring.version>4.1.6.RELEASE</spring.version>
    <spring.integration.version>4.1.3.RELEASE</spring.integration.version>
</properties>

<url>http://mtedone.github.io/podam/</url>
<licenses>
	<license>
		<name>Podam runs under the MIT license</name>
		<url>LICENSE.txt</url>
	</license>
</licenses>

<issueManagement>
	<system>JIRA</system>
	<url>https://agileguru.atlassian.net</url>
</issueManagement>

<ciManagement>
	<system>Jenkins</system>
	<url>https://jemos.ci.cloudbees.com/job/podam/</url>
</ciManagement>

<mailingLists>
	<mailingList>
		<name>PODAM - Google Groups</name>
		<subscribe>http://groups.google.com/group/podam</subscribe>
		<unsubscribe>http://groups.google.com/group/podam</unsubscribe>
	</mailingList>
</mailingLists>

<scm>
	<url>scm:git clone git://github.com/mtedone/podam.git</url>
	<connection>scm:git clone git://github.com/mtedone/podam.git</connection>
</scm>

<developers>
	<developer>
		<id>mtedone</id>
		<name>Marco Tedone</name>
		<email>marco.tedone@gmail.com</email>
		<organization>Jemos</organization>
		<organizationUrl>http://www.jemos.co.uk</organizationUrl>
		<roles>
			<role>Project Lead</role>
		</roles>
		<timezone>UTC</timezone>
		<url>http://www.linkedin.com/in/mtedone</url>
	</developer>
</developers>

<contributors>
	<contributor>
		<name>Daniil Ivanov</name>
		<email>daniil.ivanov@gmail.com</email>
		<roles>
			<role>Contributor</role>
		</roles>
		<timezone>EET</timezone>
	</contributor>
	<contributor>
		<name>Alec Ross</name>
		<email>haelduksf@gmail.com</email>
		<organization>Insigma Hengtian Software</organization>
		<organizationUrl>http://www.hengtiansoft.com</organizationUrl>
		<roles>
			<role>Developer</role>
		</roles>
		<timezone>CST</timezone>
	</contributor>
	<contributor>
		<name>Márcio Carmona</name>
		<email>marciocarmona@gmail.com</email>
		<organizationUrl>http://www.linkedin.com/in/marciocarmona</organizationUrl>
		<roles>
			<role>Developer</role>
		</roles>
		<timezone>UTC-4</timezone>
	</contributor>
	<contributor>
		<name>Ganesh Subramanian</name>
		<email>tbd@somedomain.com</email>
		<roles>
			<role>Developer</role>
		</roles>
	</contributor>
	<contributor>
		<name>Antony Stubbs</name>
		<email>antony.stubbs@gmail.com</email>
		<organizationUrl>https://www.linkedin.com/in/antonystubbs</organizationUrl>
		<roles>
			<role>Developer</role>
		</roles>
	</contributor>
	<contributor>
		<name>Bradley Baetz</name>
		<email>bradley.baetz@tobedefined.com</email>
		<organizationUrl>https://tobedefined.com</organizationUrl>
		<roles>
			<role>Developer</role>
		</roles>
	</contributor>
	<contributor>
		<name>Victor Basso</name>
		<email>vitobasso@gmail.com</email>
		<organizationUrl>http://www.sagaranatech.com</organizationUrl>
		<roles>
			<role>Developer</role>
		</roles>
		<timezone>UTC-3</timezone>
	</contributor>
	<contributor>
		<name>Clément Oukhemanou</name>
		<email>c.oukhemanou@radhius.fr</email>
		<roles>
			<role>Developer</role>
		</roles>
	</contributor>
</contributors>



<build>
	<extensions>
		<extension>
			<groupId>org.apache.maven.scm</groupId>
			<artifactId>maven-scm-provider-gitexe</artifactId>
			<version>1.3</version>
		</extension>
		<extension>
			<groupId>org.apache.maven.scm</groupId>
			<artifactId>maven-scm-manager-plexus</artifactId>
			<version>1.3</version>
		</extension>
		<extension>
			<groupId>org.kathrynhuxtable.maven.wagon</groupId>
			<artifactId>wagon-gitsite</artifactId>
			<version>0.3.1</version>
		</extension>
	</extensions>
	<plugins>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-compiler-plugin</artifactId>
			<version>2.5.1</version>
			<configuration>
				<source>1.6</source>
				<target>1.6</target>
			</configuration>
		</plugin>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-javadoc-plugin</artifactId>
			<version>2.9.1</version>
			<configuration>
				<attach>true</attach>
				<show>private</show>
				<doctitle>Jemos Podam API - Version: ${project.version}</doctitle>
				<footer>Jemos 2002 - 2014: All Rights Reserved. Podam runs under
					the MIT license</footer>
				<additionalparam>${javadoc.opts}</additionalparam>
			</configuration>
		</plugin>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-site-plugin</artifactId>
			<version>3.3</version>
		</plugin>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-project-info-reports-plugin</artifactId>
			<version>2.7</version>
		</plugin>
		<!-- It signs the artifact for uploading to Maven Central -->
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-gpg-plugin</artifactId>
			<version>1.6</version>
			<executions>
				<execution>
					<id>sign-artifacts</id>
					<phase>deploy</phase>
					<goals>
						<goal>sign</goal>
					</goals>
				</execution>
			</executions>
		</plugin>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-assembly-plugin</artifactId>
			<version>2.2</version>
			<executions>
				<execution>
					<id>assembly-project</id>
					<phase>deploy</phase>
					<goals>
						<goal>single</goal>
					</goals>
				</execution>
			</executions>
			<configuration>
				<outputDirectory>${project.build.directory}/site/downloads</outputDirectory>
				<descriptors>
					<descriptor>src/main/assembly/project.xml</descriptor>
					<descriptor>src/main/assembly/bin.xml</descriptor>
				</descriptors>
			</configuration>
		</plugin>					
		<plugin>
			<groupId>org.codehaus.mojo</groupId>
			<artifactId>sonar-maven-plugin</artifactId>
			<version>2.2</version>
		</plugin>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-source-plugin</artifactId>
			<version>2.3</version>
			<executions>
				<execution>
					<id>attach-sources</id>
					<goals>
						<goal>jar</goal>
					</goals>
				</execution>
			</executions>
		</plugin>
		<plugin>
			<groupId>org.jacoco</groupId>
			<artifactId>jacoco-maven-plugin</artifactId>
			<version>0.7.4.201502262128</version>
			<executions>
				<execution>
					<id>default-prepare-agent</id>
					<goals>
						<goal>prepare-agent</goal>
					</goals>
				</execution>
				<execution>
					<id>default-report</id>
					<phase>prepare-package</phase>
					<goals>
						<goal>report</goal>
					</goals>
				</execution>
				<execution>
					<id>default-check</id>
					<goals>
						<goal>check</goal>
					</goals>
					<configuration>
						<rules>
						</rules>
					</configuration>
				</execution>
			</executions>
		</plugin>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-surefire-plugin</artifactId>
			<version>2.11</version>
			<configuration>
			<!-- 	<skip>true</skip> -->
			<includes>
					<include>**/*Test.java</include>
					<include>**/Test*.java</include>
					<include>**/When*.java</include>
					<include>**/*TestSuite.java</include>
			</includes>
			</configuration>
		</plugin>
		 <!--	<plugin>
			<artifactId>maven-failsafe-plugin</artifactId>
			<version>2.11</version>
			<configuration>
				<includes>
					<include>**/*Test.java</include>
					<include>**/Test*.java</include>
					<include>**/When*.java</include>
					<include>**/*TestSuite.java</include>
				</includes>
			</configuration>
			<executions>
				<execution>
					<goals>
						<goal>integration-test</goal>
						<goal>verify</goal>
					</goals>
				</execution>
			</executions>
		</plugin> -->
		<plugin>
			<groupId>net.serenity-bdd.maven.plugins</groupId>
			<artifactId>serenity-maven-plugin</artifactId>
			<version>${serenity.version}</version>
			<executions>
				<execution>
					<id>thucydides-reports</id>
					<phase>post-integration-test</phase>
					<goals>
						<goal>aggregate</goal>
					</goals>
				</execution>
			</executions>
		</plugin>
	</plugins>
</build>
<reporting>
	<outputDirectory>${basedir}/target/site</outputDirectory>
	<plugins>
		<plugin>
			<artifactId>maven-project-info-reports-plugin</artifactId>
			<version>2.7</version>
			<reportSets>
				<reportSet>
					<reports>
						<report>project-team</report>
						<report>mailing-list</report>
						<report>cim</report>
						<report>issue-tracking</report>
						<report>license</report>
						<report>scm</report>
						<report>summary</report>
					</reports>
				</reportSet>
			</reportSets>
		</plugin>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-javadoc-plugin</artifactId>
			<version>2.9.1</version>
			<configuration>
				<attach>true</attach>
				<show>private</show>
				<doctitle>Jemos Podam API - Version: ${project.version}</doctitle>
				<footer>Jemos 2002 - 2014: All Rights Reserved. Podam runs under
					the MIT license</footer>
				<additionalparam>${javadoc.opts}</additionalparam>
			</configuration>
		</plugin>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-surefire-report-plugin</artifactId>
			<version>2.18.1</version>
		</plugin>
		<plugin>
			<groupId>org.jacoco</groupId>
			<artifactId>jacoco-maven-plugin</artifactId>
			<version>0.7.4.201502262128</version>
		</plugin>
		<plugin>
			<groupId>net.serenity-bdd.maven.plugins</groupId>
			<artifactId>serenity-maven-plugin</artifactId>
			<version>${serenity.version}</version>
		</plugin>
	</plugins>
</reporting>
<distributionManagement>
	<site>
		<id>github-project-site</id>
		<url>gitsite:git@github.com/mtedone/podam.git</url>
	</site>
</distributionManagement>

<dependencies>
	<dependency>
		<groupId>net.jcip</groupId>
		<artifactId>jcip-annotations</artifactId>
		<version>1.0</version>
	</dependency>
	<dependency>
		<groupId>org.slf4j</groupId>
		<artifactId>slf4j-api</artifactId>
		<version>1.7.12</version>
	</dependency>
	<dependency>
		<groupId>javax.annotation</groupId>
		<artifactId>jsr250-api</artifactId>
		<version>1.0</version>
	</dependency>
	<dependency>
		<groupId>javax.validation</groupId>
		<artifactId>validation-api</artifactId>
		<version>1.1.0.Final</version>
	</dependency>

	<!-- Testing dependencies -->
	<dependency>
		<groupId>junit</groupId>
		<artifactId>junit</artifactId>
		<version>4.12</version>
		<scope>test</scope>
	</dependency>
	<dependency>
		<groupId>xml-apis</groupId>
		<artifactId>xml-apis</artifactId>
		<version>1.4.01</version>
		<scope>test</scope>
	</dependency>
	<dependency>
		<groupId>org.apache.logging.log4j</groupId>
		<artifactId>log4j-core</artifactId>
		<version>2.3</version>
		<scope>test</scope>
	</dependency>
	<dependency>
		<groupId>org.apache.logging.log4j</groupId>
		<artifactId>log4j-jcl</artifactId>
		<version>2.2</version>
		<scope>test</scope>
	</dependency>
	<dependency>
		<groupId>org.apache.logging.log4j</groupId>
		<artifactId>log4j-slf4j-impl</artifactId>
		<version>2.3</version>
		<scope>test</scope>
	</dependency>

	<!-- Spring framework -->
	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-core</artifactId>
		<version>${spring.version}</version>
	</dependency>
	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-context</artifactId>
		<version>${spring.version}</version>
	</dependency>
	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-messaging</artifactId>
		<version>${spring.version}</version>
	</dependency>
	<dependency>
		<groupId>org.hibernate</groupId>
		<artifactId>hibernate-validator</artifactId>
		<version>4.2.0.Final</version>
	</dependency>
	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-test</artifactId>
		<version>${spring.version}</version>
		<scope>test</scope>
	</dependency>
    <dependency>
        <groupId>org.springframework.integration</groupId>
        <artifactId>spring-integration-core</artifactId>
        <version>${spring.integration.version}</version>
    </dependency>


	<!-- Serenity-BDD -->
	<dependency>
		<groupId>net.serenity-bdd</groupId>
		<artifactId>serenity-core</artifactId>
		<version>${serenity.version}</version>
		<scope>test</scope>
	</dependency>
	<dependency>
		<groupId>net.serenity-bdd</groupId>
		<artifactId>serenity-junit</artifactId>
		<version>${serenity.version}</version>
		<scope>test</scope>
	</dependency>
</dependencies>

<profiles>
	<profile>
		<id>doclint-java8-disable</id>
		<activation>
			<jdk>[1.8,)</jdk>
		</activation>
		<properties>
			<javadoc.opts>-Xdoclint:none</javadoc.opts>
		</properties>
	</profile>
</profiles>

This is the what i get during my build in CircleCI which is working fine when i build it in local.


#4

Not sure if you are still having issues, if so this post may help


#5

I tried the above solution but no success…I am still getting error as follows:-

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.732 s
[INFO] Finished at: 2016-10-06T21:57:46+00:00
[INFO] Final Memory: 26M/1482M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:resolve-plugins (resolve-plugins) on project podam: Nested: Could not find artifact org.eclipse.mylyn.github:org.eclipse.egit.github.core:jar:3.1.0.201310021548-r in central (https://repo.maven.apache.org/maven2)
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.eclipse.mylyn.github -DartifactId=org.eclipse.egit.github.core -Dversion=3.1.0.201310021548-r -Dpackaging=jar -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.eclipse.mylyn.github -DartifactId=org.eclipse.egit.github.core -Dversion=3.1.0.201310021548-r -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR]
[ERROR] org.eclipse.mylyn.github:org.eclipse.egit.github.core:jar:3.1.0.201310021548-r
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots, releases=false, snapshots=true),
[ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
[ERROR] -> [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/MojoExecutionException


#6

I am also getting the same error, while building podam. Its working on my local machine, but its failing on CircleCi.

Downloading: https://repo.maven.apache.org/maven2/org/eclipse/mylyn/github/org.eclipse.egit.github.core/3.1.0.201310021548-r/org.eclipse.egit.github.core-3.1.0.201310021548-r.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.071 s
[INFO] Finished at: 2017-03-13T02:26:55+00:00
[INFO] Final Memory: 25M/726M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:resolve-plugins (resolve-plugins) on project podam: Nested: Could not find artifact org.eclipse.mylyn.github:org.eclipse.egit.github.core:jar:3.1.0.201310021548-r in central (https://repo.maven.apache.org/maven2)


#7