Error while running maven install

292 views
Skip to first unread message

neha tayal

unread,
Jul 27, 2016, 6:19:42 PM7/27/16
to Jenkins Users
I am trying to run the scm plugin. After running maven install  it gives are below error 

Here is the error log
WARNING] The POM for org.jenkins-ci.tools:maven-hpi-plugin:jar:1.117 is missing, no dependency information available
[WARNING] Failed to build parent project for org.jenkins-ci.plugins:scm-anywhere:hpi:1.0-SNAPSHOT
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building SCM Anywhere Plugin 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-hpi-plugin:1.100:validate (default-validate) @ scm-anywhere ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:display-info (display-info) @ scm-anywhere ---
[INFO] Maven Version: 3.3.9
[INFO] JDK Version: 1.8.0_91 normalized as: 1.8.0-91
[INFO] OS Info: Arch: amd64 Family: dos Name: windows 7 Version: 6.1
[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (display-info) @ scm-anywhere ---
[WARNING] Rule 3: org.apache.maven.plugins.enforcer.BannedDependencies failed with message:
Found Banned Dependency: org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7
Use 'mvn dependency:tree' to locate the source of the banned dependencies.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.062 s
[INFO] Finished at: 2016-07-28T00:16:02+02:00
[INFO] Final Memory: 23M/521M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:enforce (display-info) on project scm-anywhere: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]
[ERROR] 

 Here is the pom.xml file

<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>2.9</version>
<relativePath />
</parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>scm-anywhere</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>hpi</packaging>

<properties>
<!-- Baseline Jenkins version you use to build the plugin. Users must have 
this version or newer to run. -->
<jenkins.version>1.625.3</jenkins.version>
<!-- Java Level to use. Java 7 required when using core >= 1.612 -->
<java.level>7</java.level>
<!-- Jenkins Test Harness version you use to test the plugin. -->
<!-- For Jenkins version >= 1.580.1 use JTH 2.x or higher. -->
<jenkins-test-harness.version>2.1</jenkins-test-harness.version>
<!-- Other properties you may want to use: ~ hpi-plugin.version: The HPI 
Maven Plugin version used by the plugin.. ~ stapler-plugin.version: The Stapler 
Maven plugin version required by the plugin. -->


<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<workflow.version>1.8</workflow.version>
<maven.javadoc.skip>true</maven.javadoc.skip>
</properties>

<name>SCM Anywhere Plugin</name>
<description>SCM Anywhere Plugin</description>

<licenses>
<license>
<name>MIT License</name>
</license>
</licenses>
<developers>
<developer>
<id>nhgupta</id>
<name>zone...@gmail.com</name>
<email>zone...@gmail.com</email>
</developer>
</developers>

<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>config/sun_checks.xml</configLocation>
</configuration>
</plugin>
</plugins>
</reporting>

<build>
<pluginManagement>
<plugins>
<!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> 
<version>1.4.1</version> </plugin> -->
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>display-info</id>
<configuration>
<rules>
<enforceBytecodeVersion>
<excludes combine.children="append">
<!-- Loaded conditionally. -->
<exclude>org.eclipse.jgit:org.eclipse.jgit.java7</exclude>
</excludes>
</enforceBytecodeVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.5</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
</plugin>

<plugin>
<groupId>org.jenkins-ci.tools</groupId>
<artifactId>maven-hpi-plugin</artifactId>
<version>1.100</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<groupId>org.jenkins-ci.tools</groupId>
<artifactId>maven-hpi-plugin</artifactId>
<version>1.100</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.3</version>
</plugin>
</plugins>
</build>

<!-- Assuming you want to host on @jenkinsci: <scm> <connection>scm:git:git://github.com/jenkinsci/bazaar-plugin.git</connection> 
<developerConnection>scm:git:g...@github.com:jenkinsci/bazaar-plugin.git</developerConnection> 
<repositories>
<repository>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>



<dependencies>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>token-macro</artifactId>
<version>1.5.1</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>credentials</artifactId>
<version>2.1.3</version>
</dependency>
<dependency>
<groupId>com.github.stephenc.findbugs</groupId>
<artifactId>findbugs-annotations</artifactId>
<version>1.3.9-1</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>ssh-credentials</artifactId>
<version>1.10</version>
</dependency>

<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>git</artifactId>
<version>2.3.5</version>
<scope>test</scope>
</dependency>
</dependencies>

<!-- If you want to depend on other plugins: <dependencies> <dependency> 
<groupId>org.jenkins-ci.plugins</groupId> <artifactId>credentials</artifactId> 
<version>1.9.4</version> </dependency> </dependencies> -->

</project>

Reply all
Reply to author
Forward
0 new messages