Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command line running karate throws FileNotFoundException #529

Closed
ghost opened this issue Sep 14, 2018 · 12 comments
Closed

Command line running karate throws FileNotFoundException #529

ghost opened this issue Sep 14, 2018 · 12 comments
Assignees

Comments

@ghost
Copy link

ghost commented Sep 14, 2018

Problem: We package a jar file with all the dependencies so that we can run this karate tests on command line via our CI tools.
This worked in v 0.6.0 but is broken in 0.8.0

We're doing this using:

public static void main(String[] args) {
        JUnitCore.main(ExamplesTest.class.getCanonicalName());
    }

Code available in: https://github.com/ali-nutmeg/broken-karate

Steps to reproduce:

  1. run maven clean install
  2. run java -jar target/broken-karate-test-jar-with-dependencies.jar
  3. You will see the FileNotFoundException occur

To prove that it is broken:

  1. In the pom file, change the karate version to 0.6.0 and re-run the steps above
  2. You should see that the tests now run.

I would be interested in a fix to this before I am forced to move to using the standalone karate runner.

Thank you

@ptrthomas
Copy link
Member

closing as duplicate of #520 - we've done a lot of work on this front and now need community help

also see if the released beta version 0.9.0.RC1 fixes this for you. if you still see issues, continue the discussion at 520

@ptrthomas ptrthomas self-assigned this Sep 15, 2018
@ptrthomas ptrthomas added bug and removed duplicate labels Sep 15, 2018
@ptrthomas ptrthomas added this to the 0.9.0 milestone Sep 15, 2018
@ptrthomas
Copy link
Member

@ali-nutmeg I took a closer look and the problem was in the JUnit runner which I did not expect initially. you can see the fix made in the commit log above. I can confirm this will work fine in 0.9.0 final.

@ptrthomas ptrthomas reopened this Sep 15, 2018
@ghost
Copy link
Author

ghost commented Sep 17, 2018

@ptrthomas Thanks for taking a look at this.
Is there an ETA for the 0.9.0 release? I tried 0.9.0.RC1 but I got an UnsupportedOperationException You will be able to see this if you try changing the version in my uploaded project.

I checked out the branch where the fix was made and looks likes it's all working fine.

Thank you

@ptrthomas
Copy link
Member

@ali-nutmeg just released 0.9.0.RC2 - (may take a few minutes to show up)

great to get your feedback !

you can try using 0.9.0.RC2 in prod, it passes all the regression suites.

@ptrthomas ptrthomas removed this from the 0.9.0 milestone Nov 17, 2018
@rohit1212s
Copy link

Hi Peter,
I am also trying to create a executable jar of my Karate test framework from last one week and I tried explore all available resource on internet and went through all your comments of this thread as well but couldn't succeed. I am getting below error :-
JUnit version 4.13.1
.13:53:31.714 [main] INFO com.intuit.karate.Runner - waiting for parallel features to complete ...

HTML report: (paste into browser to view) | Karate version: 0.9.6
file:/C:/Workspace/eclipseproject/epos/target/surefire-reports/karate-summary.html

Karate version: 0.9.6

elapsed: 0,77 | threads: 5 | thread time: 0,00
features: 0 | ignored: 0 | efficiency: 0,00
scenarios: 0 | passed: 0 | failed: 0

ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
13:53:32.706 [main] DEBUG org.apache.velocity - CommonsLogLogChute name is 'org.apache.velocity'
13:53:32.707 [main] DEBUG org.apache.velocity - Initializing Velocity, Calling init()...
13:53:32.707 [main] DEBUG org.apache.velocity - Starting Apache Velocity v1.7 (compiled: 2010-11-19 12:14:37)
13:53:32.707 [main] DEBUG org.apache.velocity - Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties
13:53:32.707 [main] DEBUG org.apache.velocity - Trying to use logger class org.apache.velocity.runtime.log.AvalonLogChute
13:53:32.707 [main] DEBUG org.apache.velocity - Target log system for org.apache.velocity.runtime.log.AvalonLogChute is not available (java.lang.NoClassDefFoundError: org/apache/log/format/Formatter). Falling back to next log system...
13:53:32.707 [main] DEBUG org.apache.velocity - Trying to use logger class org.apache.velocity.runtime.log.Log4JLogChute
13:53:32.707 [main] DEBUG org.apache.velocity - Target log system for org.apache.velocity.runtime.log.Log4JLogChute is not available (java.lang.NoClassDefFoundError: org/apache/log4j/Layout). Falling back to next log system...
13:53:32.707 [main] DEBUG org.apache.velocity - Trying to use logger class org.apache.velocity.runtime.log.CommonsLogLogChute
13:53:32.707 [main] DEBUG org.apache.velocity - Using logger class org.apache.velocity.runtime.log.CommonsLogLogChute
13:53:32.712 [main] DEBUG org.apache.velocity - ResourceLoader instantiated: org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.726 [main] DEBUG org.apache.velocity - ResourceCache: initialized (class org.apache.velocity.runtime.resource.ResourceCacheImpl) with class java.util.Collections$SynchronizedMap cache map.
13:53:32.728 [main] DEBUG org.apache.velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Stop
13:53:32.729 [main] DEBUG org.apache.velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Define
13:53:32.730 [main] DEBUG org.apache.velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Break
13:53:32.731 [main] DEBUG org.apache.velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Evaluate
13:53:32.732 [main] DEBUG org.apache.velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Literal
13:53:32.733 [main] DEBUG org.apache.velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Macro
13:53:32.734 [main] DEBUG org.apache.velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Parse
13:53:32.736 [main] DEBUG org.apache.velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Include
13:53:32.737 [main] DEBUG org.apache.velocity - Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
13:53:32.768 [main] DEBUG org.apache.velocity - Created '20' parsers.
13:53:32.778 [main] DEBUG org.apache.velocity - Velocimacro : "velocimacro.library" is not set. Trying default library: VM_global_library.vm
13:53:32.779 [main] DEBUG org.apache.velocity - Could not load resource 'VM_global_library.vm' from ResourceLoader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader: ClasspathResourceLoader Error: cannot find resource VM_global_library.vm
13:53:32.779 [main] DEBUG org.apache.velocity - Velocimacro : Default library not found.
13:53:32.779 [main] DEBUG org.apache.velocity - Velocimacro : allowInline = true : VMs can be defined inline in templates
13:53:32.779 [main] DEBUG org.apache.velocity - Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
13:53:32.779 [main] DEBUG org.apache.velocity - Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
13:53:32.779 [main] DEBUG org.apache.velocity - Velocimacro : autoload off : VM system will not automatically reload global library macros
13:53:32.913 [main] DEBUG org.apache.velocity - ResourceManager : found templates/generators/errorpage.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.920 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/headers.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.921 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/head.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.924 [main] DEBUG org.apache.velocity - Velocimacro : added VM stringArray: source=/templates/macros/array.js.vm
13:53:32.925 [main] DEBUG org.apache.velocity - Velocimacro : added VM numberArray: source=/templates/macros/array.js.vm
13:53:32.925 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/array.js.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.927 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeBuildInfo: source=/templates/macros/page/buildinfo.vm
13:53:32.927 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/page/buildinfo.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.933 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeClassifications: source=/templates/macros/page/classifications.vm
13:53:32.933 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/page/classifications.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.934 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeLead: source=/templates/macros/page/lead.vm
13:53:32.934 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/page/lead.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.937 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeNavigation: source=/templates/macros/page/navigation.vm
13:53:32.937 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/page/navigation.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.939 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeReportInfo: source=/templates/macros/page/reportInfo.vm
13:53:32.940 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/page/reportInfo.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.941 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeTitle: source=/templates/macros/page/title.vm
13:53:32.941 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/page/title.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.942 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeExpandingButtons: source=/templates/macros/report/expandAllButtons.vm
13:53:32.942 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/report/expandAllButtons.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.948 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeReportTable: source=/templates/macros/report/reportTable.vm
13:53:32.948 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/report/reportTable.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.950 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeReportHeader: source=/templates/macros/report/reportHeader.vm
13:53:32.950 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/report/reportHeader.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.957 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeStatsTable: source=/templates/macros/report/statsTable.vm
13:53:32.957 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/report/statsTable.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.959 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeBrief: source=/templates/macros/json/brief.vm
13:53:32.959 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/json/brief.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.960 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeDocString: source=/templates/macros/json/docstring.vm
13:53:32.960 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/json/docstring.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.961 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeDuration: source=/templates/macros/json/duration.vm
13:53:32.962 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/json/duration.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.965 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeElement: source=/templates/macros/json/element.vm
13:53:32.965 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/json/element.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.976 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeEmbeddings: source=/templates/macros/json/embeddings.vm
13:53:32.977 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeHtmlEmbedding: source=/templates/macros/json/embeddings.vm
13:53:32.977 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeImageEmbedding: source=/templates/macros/json/embeddings.vm
13:53:32.977 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeImageReferenceEmbedding: source=/templates/macros/json/embeddings.vm
13:53:32.977 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeTextEmbedding: source=/templates/macros/json/embeddings.vm
13:53:32.977 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeUnknownEmbedding: source=/templates/macros/json/embeddings.vm
13:53:32.977 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/json/embeddings.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.980 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeHooks: source=/templates/macros/json/hooks.vm
13:53:32.981 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/json/hooks.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.984 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeOutput: source=/templates/macros/json/output.vm
13:53:32.984 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/json/output.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.985 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeMessage: source=/templates/macros/json/message.vm
13:53:32.986 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/json/message.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.988 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeSteps: source=/templates/macros/json/steps.vm
13:53:32.989 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/json/steps.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:32.990 [main] DEBUG org.apache.velocity - Velocimacro : added VM includeTags: source=/templates/macros/json/tags.vm
13:53:32.990 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/macros/json/tags.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
13:53:33.007 [main] DEBUG org.apache.velocity - VM #includeNavigation: too few arguments to macro. Wanted 1 got 0
13:53:33.008 [main] DEBUG org.apache.velocity - Left side ($active_tab) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. /templates/macros/page/navigation.vm[line 14, column 51]
13:53:33.008 [main] DEBUG org.apache.velocity - Left side ($active_tab) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. /templates/macros/page/navigation.vm[line 15, column 51]
13:53:33.009 [main] DEBUG org.apache.velocity - Left side ($active_tab) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. /templates/macros/page/navigation.vm[line 16, column 51]
13:53:33.009 [main] DEBUG org.apache.velocity - Left side ($active_tab) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. /templates/macros/page/navigation.vm[line 20, column 51]
13:53:33.009 [main] DEBUG org.apache.velocity - Null reference [template 'templates/generators/errorpage.vm', line 20, column 85] : $build_number cannot be resolved.
13:53:33.009 [main] DEBUG org.apache.velocity - Null reference [template 'templates/generators/errorpage.vm', line 20, column 85] : $build_number cannot be resolved.
13:53:33.013 [main] DEBUG org.apache.velocity - ResourceManager : found /templates/footer.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader

Time: 2,289

OK (1 test)

and I also tried with Karate 1.0.1</version but no luck. Below is the pom.xml file and plugin I am using for my project. Could you please assist me to resolve this?


4.0.0

<groupId>epos</groupId>
<artifactId>epos</artifactId>
<version>0.0.1-SNAPSHOT</version>

<name>epos</name>
<!-- FIXME change it to the project's website -->
<url>http://www.example.com</url>

<properties>
	<hybernate_entities.version>8.00.02_env</hybernate_entities.version>
	<able-epos-api.version>30.0.4</able-epos-api.version>
	<java.version>1.8</java.version>
	<project.encoding>UTF-8</project.encoding>
	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
	<artifactory.url>https://artifactory.ing.net/artifactory</artifactory.url>
	<cxf.version>3.1.6</cxf.version>
	<maven.compiler.source>1.8</maven.compiler.source>
	<maven.compiler.target>1.8</maven.compiler.target>
	<!-- <artifactory.url>https://lrv150m6.europe.intranet/artifactory</artifactory.url> -->

</properties>

<dependencies>
	<dependency>
		<groupId>org.projectlombok</groupId>
		<artifactId>lombok</artifactId>
		<version>1.18.16</version>
	</dependency>


	<!-- https://mvnrepository.com/artifact/junit/junit -->
	<dependency>
		<groupId>junit</groupId>
		<artifactId>junit</artifactId>
		<version>4.13.1</version>
		<!-- <scope>test</scope> -->
	</dependency>
	<!-- https://mvnrepository.com/artifact/org.hamcrest/hamcrest-core -->
	<dependency>
		<groupId>org.hamcrest</groupId>
		<artifactId>hamcrest-core</artifactId>
		<version>2.2</version>
		<!-- <scope>test</scope> -->
	</dependency>

	<!-- <dependency> -->
	<!-- <groupId>com.intuit.karate</groupId> -->
	<!-- <artifactId>karate-junit4</artifactId> -->
	<!-- <version>1.0.1</version> -->
	<!-- </dependency> -->

	<dependency>
		<groupId>com.intuit.karate</groupId>
		<artifactId>karate-apache</artifactId>
		<version>0.9.6</version>
		<!-- -->
	</dependency>
	<dependency>
		<groupId>com.intuit.karate</groupId>
		<artifactId>karate-junit4</artifactId>
		<version>0.9.6</version>
		<!-- -->
	</dependency>
	<!-- https://mvnrepository.com/artifact/com.intuit.karate/karate-netty -->
	<dependency>
		<groupId>com.intuit.karate</groupId>
		<artifactId>karate-netty</artifactId>
		<version>0.9.2</version>
		<scope>test</scope>
	</dependency>

	<dependency>
		<groupId>info.cukes</groupId>
		<artifactId>gherkin</artifactId>
		<version>2.12.2</version>
	</dependency>
	<!-- https://mvnrepository.com/artifact/com.oracle.database.jdbc/ojdbc8 -->
	<dependency>
		<groupId>com.oracle.database.jdbc</groupId>
		<artifactId>ojdbc8</artifactId>
		<version>19.7.0.0</version>
	</dependency>


	<!-- https://mvnrepository.com/artifact/org.springframework/spring-jdbc -->
	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-jdbc</artifactId>
		<version>5.2.11.RELEASE</version>
	</dependency>
	<!-- https://mvnrepository.com/artifact/net.masterthought/maven-cucumber-reporting -->
	<dependency>
		<groupId>net.masterthought</groupId>
		<artifactId>maven-cucumber-reporting</artifactId>
		<version>5.4.0</version>
	</dependency>

	<dependency>
		<groupId>com.fasterxml.jackson.core</groupId>
		<artifactId>jackson-core</artifactId>
		<version>2.10.1</version>
	</dependency>
	<!-- <dependency> <groupId>nl.ing.securities</groupId> <artifactId>hybernate_entities</artifactId> 
		<version>7.10</version> </dependency> -->

	<dependency>
		<groupId>org.testng</groupId>
		<artifactId>testng</artifactId>
		<version>6.14.2</version>
	</dependency>
	<dependency>
		<groupId>org.assertj</groupId>
		<artifactId>assertj-core</artifactId>
		<version>3.10.0</version>
	</dependency>
	<!-- <dependency> <groupId>nl.ing.securities</groupId> <artifactId>swtch</artifactId> 
		<version>ANY</version> </dependency> -->

	<dependency>
		<groupId>nl.ing.securities</groupId>
		<artifactId>able-epos-api</artifactId>
		<version>${able-epos-api.version}</version>
	</dependency>
	<dependency>
		<groupId>nl.ing.securities.epos</groupId>
		<artifactId>epos-api-32</artifactId>
		<version>20210413T135440-d457525-RELEASE</version>
	</dependency>
	<!-- <dependency> -->
	<!-- <groupId>nl.ing.securities</groupId> -->
	<!-- <artifactId>onboard</artifactId> -->
	<!-- <version>1.1.0</version> -->
	<!-- <classifier>jar-with-dependencies</classifier> -->
	<!-- </dependency> -->
	<dependency>
		<groupId>org.apache.cxf</groupId>
		<artifactId>cxf-rt-frontend-jaxws</artifactId>
		<version>${cxf.version}</version>
	</dependency>
	<dependency>
		<groupId>org.apache.cxf</groupId>
		<artifactId>cxf-rt-transports-http</artifactId>
		<version>${cxf.version}</version>
	</dependency>
	<dependency>
		<groupId>org.apache.cxf</groupId>
		<artifactId>cxf-rt-transports-http-jetty</artifactId>
		<version>${cxf.version}</version>
	</dependency>

</dependencies>
<repositories>
	<repository>
		<id>P05750-incoming-maven</id>
		<url>https://pkgs.dev.azure.com/IngEurCDaaS01/IngOne/_packaging/P05750-incoming-maven/maven/v1</url>
		<releases>
			<enabled>true</enabled>
		</releases>
		<snapshots>
			<enabled>true</enabled>
		</snapshots>
	</repository>
	<repository>
		<id>P05948-incoming-maven</id>
		<url>https://pkgs.dev.azure.com/IngEurCDaaS01/IngOne/_packaging/P05948-incoming-maven/maven/v1</url>
		<releases>
			<enabled>true</enabled>
		</releases>
		<snapshots>
			<enabled>true</enabled>
		</snapshots>
	</repository>
</repositories>

<build>
	<plugins>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-compiler-plugin</artifactId>
			<configuration>
				<source>1.8</source>
				<target>1.8</target>
			</configuration>
		</plugin>

		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-jar-plugin</artifactId>
			<configuration>
				<archive>
					<manifest>
						<addClasspath>true</addClasspath>
						<mainClass>TestRunner</mainClass>
					</manifest>
				</archive>
			</configuration>
		</plugin>
	</plugins>

	<testResources>
		<testResource>
			<directory>src/test/java</directory>
			<excludes>
				<exclude>**/*.java</exclude>
			</excludes>
			<!-- <includes> -->
			<!-- <include>TestRunner.java</include> -->
			<!-- </includes> -->
		</testResource>
		<testResource>
			<directory>src/test/resources</directory>
		</testResource>
	</testResources>
	<pluginManagement><!-- lock down plugins versions to avoid using Maven 
			defaults (may be moved to parent pom) -->
		<plugins>
			<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
			<plugin>
				<artifactId>maven-clean-plugin</artifactId>
				<version>3.1.0</version>
			</plugin>
			<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
			<plugin>
				<artifactId>maven-resources-plugin</artifactId>
				<version>3.0.2</version>
			</plugin>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.8.1</version>
			</plugin>
			<plugin>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.22.1</version>
			</plugin>
			<plugin>
				<artifactId>maven-jar-plugin</artifactId>
				<version>3.0.2</version>
			</plugin>
			<plugin>
				<artifactId>maven-install-plugin</artifactId>
				<version>2.5.2</version>
			</plugin>
			<plugin>
				<artifactId>maven-deploy-plugin</artifactId>
				<version>2.8.2</version>
			</plugin>
			<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
			<plugin>
				<artifactId>maven-site-plugin</artifactId>
				<version>3.7.1</version>
			</plugin>
			<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-jar-plugin -->



			<!-- <plugin> -->
			<!-- <artifactId>maven-project-info-reports-plugin</artifactId> -->
			<!-- <version>3.0.0</version> -->
			<!-- </plugin> -->

		</plugins>

	</pluginManagement>
</build>

@ptrthomas
Copy link
Member

@rohit1212s please stop spamming your logs here, if this continues you will be blocked

@rohit1212s
Copy link

rohit1212s commented Jun 21, 2021 via email

@ptrthomas
Copy link
Member

@rohit1212s yes. see #1650 as just one recent example of a team that has done this. other examples are here: https://stackoverflow.com/a/58339662/143475

@rohit1212s
Copy link

rohit1212s commented Jun 22, 2021 via email

@ptrthomas
Copy link
Member

@rohit1212s no idea. so this is not a priority for me. let's hope someone reading this offers to help - but in the meantime your best course of action is to find a solution and submit a PR or at least provide some pointers to us for the fix ( just like it was done in #1650 )

@pankajguptaphd
Copy link

is there an example of working code somewhere? The link for the code at the top of the page is broken.

@ptrthomas
Copy link
Member

@pankajguptaphd no idea. see if there are any hints in linked issues

@karatelabs karatelabs locked as resolved and limited conversation to collaborators Dec 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants