[
https://issues.apache.org/jira/browse/MNG-6536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
shruti updated MNG-6536:
------------------------
Description:
Hi,
Runnig a maven java project with rest assured dependency to test the server for
the https application.
I observe that the project perfectly runs the rest assured code and gives the
reponse when running the project as testNG from the eclipse manually. But on
running the same project from the command prompt as "mvn test -PTest" , where
Test is the same testNG file gives the 403 forbidden error for the same https
application link.
Weird is here that, how the clipse is able to run the project but why not
through maven command.
I feel it is something with the maven server that needs to bypass before I
call the https, some SSL certificate matching needs to be ignored. But I don't
know how we do that.
I am using Maven 3.3.9 and following is the pom.xml that contains all the
dependencies :
<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>Framework.Vendor_API_System</groupId>
<artifactId>IM_Vendor_API_System_TestSuite</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>AutomationTesting</name>
<url>[http://maven.apache.org|http://maven.apache.org/]</url>
<profiles>
<profile>
<id>Test</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>SuitesXMLPath/Test.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.jayway.restassured</groupId>
<artifactId>rest-assured</artifactId>
<version>2.9.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.13</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.13</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.6.0</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>3.6.0</version>
</dependency>
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports</artifactId>
<version>3.1.3</version>
</dependency>
<!-- [https://mvnrepository.com/artifact/org.apache.commons/commons-email] -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-email</artifactId>
<version>1.2</version>
</dependency>
</dependencies>
</project>
Thanks
was:
Hi,
Runnig a maven java project with rest assured dependency to test the server for
the https application.
I observe that the project perfectly runs the rest assured code and gives the
reponse when running the project as testNG from the eclipse. But on running the
same project from the command prompt as "mvn test -PTest" , where Test is the
same testNG file gives the 403 forbidden error for the same https application
link.
Weird is here that, how the clipse is able to run the project but why not
through maven command.
I feel it is something with the maven server that needs to bypass before I
call the https, some SSL certificate matching needs to be ignored. But I don't
know how we do that.
I am using Maven 3.3.9 and following is the pom.xml that contains all the
dependencies :
<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>Framework.Vendor_API_System</groupId>
<artifactId>IM_Vendor_API_System_TestSuite</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>AutomationTesting</name>
<url>[http://maven.apache.org|http://maven.apache.org/]</url>
<profiles>
<profile>
<id>Test</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>SuitesXMLPath/Test.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.jayway.restassured</groupId>
<artifactId>rest-assured</artifactId>
<version>2.9.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.13</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.13</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.6.0</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>3.6.0</version>
</dependency>
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports</artifactId>
<version>3.1.3</version>
</dependency>
<!-- [https://mvnrepository.com/artifact/org.apache.commons/commons-email] -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-email</artifactId>
<version>1.2</version>
</dependency>
</dependencies>
</project>
Thanks
> Https server is not fulfilled while running the maven project from maven
> commands
> ---------------------------------------------------------------------------------
>
> Key: MNG-6536
> URL: https://issues.apache.org/jira/browse/MNG-6536
> Project: Maven
> Issue Type: Bug
> Reporter: shruti
> Priority: Major
>
> Hi,
> Runnig a maven java project with rest assured dependency to test the server
> for the https application.
> I observe that the project perfectly runs the rest assured code and gives the
> reponse when running the project as testNG from the eclipse manually. But on
> running the same project from the command prompt as "mvn test -PTest" , where
> Test is the same testNG file gives the 403 forbidden error for the same https
> application link.
> Weird is here that, how the clipse is able to run the project but why not
> through maven command.
> I feel it is something with the maven server that needs to bypass before I
> call the https, some SSL certificate matching needs to be ignored. But I
> don't know how we do that.
> I am using Maven 3.3.9 and following is the pom.xml that contains all the
> dependencies :
>
> <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>Framework.Vendor_API_System</groupId>
> <artifactId>IM_Vendor_API_System_TestSuite</artifactId>
> <version>0.0.1-SNAPSHOT</version>
> <packaging>jar</packaging>
> <name>AutomationTesting</name>
> <url>[http://maven.apache.org|http://maven.apache.org/]</url>
> <profiles>
> <profile>
> <id>Test</id>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <version>2.18.1</version>
> <configuration>
> <suiteXmlFiles>
> <suiteXmlFile>SuitesXMLPath/Test.xml</suiteXmlFile>
> </suiteXmlFiles>
> </configuration>
> </plugin>
> </plugins>
> </build>
> </profile>
> </profiles>
> <properties>
> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> </properties>
> <dependencies>
> <dependency>
> <groupId>com.jayway.restassured</groupId>
> <artifactId>rest-assured</artifactId>
> <version>2.9.0</version>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.testng</groupId>
> <artifactId>testng</artifactId>
> <version>6.11</version>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.poi</groupId>
> <artifactId>poi-ooxml</artifactId>
> <version>3.13</version>
> </dependency>
> <dependency>
> <groupId>org.apache.poi</groupId>
> <artifactId>poi</artifactId>
> <version>3.13</version>
> </dependency>
> <dependency>
> <groupId>org.seleniumhq.selenium</groupId>
> <artifactId>selenium-java</artifactId>
> <version>3.6.0</version>
> </dependency>
> <dependency>
> <groupId>org.seleniumhq.selenium</groupId>
> <artifactId>selenium-server</artifactId>
> <version>3.6.0</version>
> </dependency>
> <dependency>
> <groupId>com.aventstack</groupId>
> <artifactId>extentreports</artifactId>
> <version>3.1.3</version>
> </dependency>
> <!-- [https://mvnrepository.com/artifact/org.apache.commons/commons-email] -->
> <dependency>
> <groupId>org.apache.commons</groupId>
> <artifactId>commons-email</artifactId>
> <version>1.2</version>
> </dependency>
> </dependencies>
> </project>
>
>
> Thanks
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)