Compile problems

I’ve been running into the following issues

2:53:53.594 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - C:\Users\tdjenkins\.jenkins\jobs\SE-Acccount\workspace\CWC_Gatling_Tests\src\test\scala\com\caseware\tests\helper\PopulateChecklist.scala:46: not found: value CSVWriter
12:53:53.598 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ -           CSVWriter.addToListchecklistID(session.attributes("checklistID").toString())
12:53:53.599 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ -           ^
12:53:53.601 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - C:\Users\tdjenkins\.jenkins\jobs\SE-Acccount\workspace\CWC_Gatling_Tests\src\test\scala\com\caseware\tests\helper\PopulateChecklist.scala:51: not found: value CSVWriter
12:53:53.601 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ -       CSVWriter.generateCsvFileCheckList()
12:53:53.601 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ -       ^
12:53:53.718 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - C:\Users\tdjenkins\.jenkins\jobs\SE-Acccount\workspace\CWC_Gatling_Tests\src\test\scala\com\caseware\tests\helper\PopulateEngagement.scala:49: not found: value CSVWriter
12:53:53.719 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ -           CSVWriter.addToListCWGUID(UUIDHelper.toPadlessBase64(UUID.fromString(session.attributes("CWGuid").toString)))
12:53:53.719 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ -           ^
12:53:53.720 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - C:\Users\tdjenkins\.jenkins\jobs\SE-Acccount\workspace\CWC_Gatling_Tests\src\test\scala\com\caseware\tests\helper\PopulateEngagement.scala:49: not found: value UUIDHelper
12:53:53.720 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ -           CSVWriter.addToListCWGUID(UUIDHelper.toPadlessBase64(UUID.fromString(session.attributes("CWGuid").toString)))
12:53:53.721 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ -                                     ^
12:53:53.721 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - C:\Users\tdjenkins\.jenkins\jobs\SE-Acccount\workspace\CWC_Gatling_Tests\src\test\scala\com\caseware\tests\helper\PopulateEngagement.scala:50: not found: value CSVWriter
12:53:53.722 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ -           CSVWriter.addToListID(session.attributes("id").toString)
12:53:53.722 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ -           ^
12:53:53.723 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - C:\Users\tdjenkins\.jenkins\jobs\SE-Acccount\workspace\CWC_Gatling_Tests\src\test\scala\com\caseware\tests\helper\PopulateEngagement.scala:54: not found: value CSVWriter
12:53:53.724 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ -           CSVWriter.generateCsvFile()
12:53:53.724 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ -           ^
12:53:54.357 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - 6 errors found

when trying the gatling-maven-plugin so I can run my builds on CI. whenever I run the following command in my Luna Eclipse IDE, I face no problems. But whenever I go to command line to run the 
same command, I run into the above problems. 

gatling:execute -Dgatling.simulationClass=com.caseware.tests.post.AccountSaveDeleteTest


I threw this in the maven build tab as shown in the screenshot

If the CSVWriter class is in an external jar, check that it’s not corrupted in Jenkins’ local maven repo.

I don't think its a problem with the jenkins machine, it happens locally if I run the same command in command prompt. Furthermore, I wrote the CSVWriter and UUID helper in java personally and I don't think they are corrupted.

You’re right, there’s indeed a problem.
It looks like maven 3.3.1 is broken. I suspect they somehow remove slf4j-api from the classpath?!

maven 3.2.5:

uri=/Users/slandelle/.m2/repository/com/typesafe/config/1.2.1/config-1.2.1.jar
uri=/Users/slandelle/.m2/repository/org/slf4j/slf4j-api/1.7.10/slf4j-api-1.7.10.jar
uri=/Users/slandelle/.m2/repository/ch/qos/logback/logback-classic/1.1.2/logback-classic-1.1.2.jar
uri=/Users/slandelle/.m2/repository/ch/qos/logback/logback-core/1.1.2/logback-core-1.1.2.jar
uri=/Users/slandelle/.m2/repository/com/typesafe/zinc/zinc/0.3.7/zinc-0.3.7.jar

maven 3.3.1:

uri=/Users/slandelle/.m2/repository/com/typesafe/config/1.2.1/config-1.2.1.jar
uri=/Users/slandelle/.m2/repository/ch/qos/logback/logback-classic/1.1.2/logback-classic-1.1.2.jar
uri=/Users/slandelle/.m2/repository/ch/qos/logback/logback-core/1.1.2/logback-core-1.1.2.jar
uri=/Users/slandelle/.m2/repository/com/typesafe/zinc/zinc/0.3.7/zinc-0.3.7.jar

I will open an issue against maven.

Until then, please refrain from using maven 3.3.1.
Thanks for reporting!

It seems this change (undocumented) was intended to solve some conflicts between maven itself (that depends on slf4j) and the project dependencies.
The solution is to get injected with the plugin artifacts.

Fixing.

Fixed: https://github.com/gatling/gatling/issues/2632

Thanks for reporting

Sorry, I mixed two threads.

My2cents: src/main/java is not in the compile scope. As you’ve probably defined src/main/scala as the sourceDirectory, you have to use build-helper-maven-plugin to add another one: https://www.google.fr/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=build-helper-maven-plugin

Would me issues go away if I re code the class in scala? I’m having a hard time getting the plugin to work.

Well, yes. But as I said, you should just have to properly configure maven so that src/main/java is a source directory too.