Failed to execute goal on project BrainfuseCoreTest: Could not resolve dependencies for project com.brainFuse.test:BrainfuseCoreTest:jar


Failed to execute goal on project BrainfuseCoreTest: Could not resolve dependencies for project com.brainFuse.test:BrainfuseCoreTest:jar



Hi Team I am running maven project. I am having Main project Maven_Java_Testing
and three sub modulesBrainfuseCoreTest,BrainfuseLoginLogoutTest and Common module. I included all dependencies but I am getting error as:


Maven_Java_Testing


BrainfuseCoreTest


BrainfuseLoginLogoutTest



could not able to resolve dependencies.



Code:


Main Package Maven_Java_Testing pom.xml
----------------------------------------
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.brainFuse.test</groupId>
<artifactId>MAVEN_JAVA_TESTNG_JENKINSREPORT</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>MAVEN_JAVA_TESTNG_JENKINSREPORT</name>
<description>MAVEN_JAVA_TESTNG for JENKINS</description>
<packaging>pom</packaging>
<modules>
<module>BrainfuseCoreTest</module>
<module>BrainfuseLoginLogoutTest</module>
<module>common</module>
</modules>
<properties>
<selenium.version>3.13.0</selenium.version>
</properties>

<repositories>
<repository>
<id>jcenter</id>
<name>bintray</name>
<url>http://jcenter.bintray.com</url>
</repository>
</repositories>

<dependencies>

<!-- <dependency>
<groupId>com.iSafe.maven</groupId>
<artifactId>iSafe</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/test/resources/iSAFE_Maven_04162018.jar</systemPath>
</dependency> -->

<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>${selenium.version}</version>
</dependency>

<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.14.3</version>
</dependency>


<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>5.0.0-BETA6</version>
</dependency>

<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>

<dependency>
<groupId>net.sourceforge.jexcelapi</groupId>
<artifactId>jxl</artifactId>
<version>2.6.12</version>
</dependency>

<dependency>
<groupId>javax.mail</groupId>
<artifactId>javax.mail-api</artifactId>
<version>1.6.0-rc2</version>
</dependency>

<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-chrome-driver</artifactId>
<version>${selenium.version}</version>
</dependency>


</dependencies>

<build>
<pluginManagement>
<plugins>


<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
<executions>
<execution>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>${project.basedir}/src/test/resources/config/testng.xml</suiteXmlFile>
</suiteXmlFiles>
<environmentVariables>
<SELENIUM_NODE_PARAMS>-enablePassThrough false</SELENIUM_NODE_PARAMS>
<SELENIUM_HUB_PARAMS>-enablePassThrough false</SELENIUM_HUB_PARAMS>
</environmentVariables>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>

BrainfuseCoreTest pom.xml
--------------------------
<?xml version="1.0"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.brainFuse.test</groupId>
<artifactId>MAVEN_JAVA_TESTNG_JENKINSREPORT</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>

<artifactId>BrainfuseCoreTest</artifactId>
<name>BrainfuseCoreTest</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.brainFuse.test</groupId>
<artifactId>common</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
</dependencies>
<!-- <dependencies>
<dependency>
<groupId>com.iSafe.maven</groupId>
<artifactId>iSafe</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/test/resources/iSAFE_Maven_04162018.jar</systemPath>
</dependency>
</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
<executions>
<execution>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>${project.basedir}/src/test/resources/config/testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build> -->
</project>

BrainfuseLoginLogoutTest pom.xml
--------------------------------
<?xml version="1.0"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.brainFuse.test</groupId>
<artifactId>MAVEN_JAVA_TESTNG_JENKINSREPORT</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>BrainfuseLoginLogoutTest</artifactId>
<name>BrainfuseLoginLogoutTest</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.brainFuse.test</groupId>
<artifactId>common</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<!-- <dependencies>
<dependency>
<groupId>com.iSafe.maven</groupId>
<artifactId>iSafe</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/test/resources/iSAFE_Maven_04162018.jar</systemPath>
</dependency>
</dependencies> -->
</project>


common pom.xml
---------------
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.brainFuse.test</groupId>
<artifactId>MAVEN_JAVA_TESTNG_JENKINSREPORT</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>common</artifactId>
<name>common</name>
</project>[![enter image description here][1]][1]


[1]: https://i.stack.imgur.com/X00gy.jpg



Kindly provide the solution to resolve this issue. I have tried updating the pom.xml file but it showing me:


pom.xml



could not able to Could not resolve dependencies for project
com.brainFuse.test:BrainfuseCoreTest:jar:0.0.1-SNAPSHOT.



Kindly find the Main module and submodule pom.xml files and provide the solution to fix it


pom.xml









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Extract Id from Twitch Clip URL

Why are these constructs (using ++) undefined behavior in C?

I'm Still Waiting (Diana Ross song)