1

I've created a jenkins job using "Maven 2/3 Project" type. The java project I'm using uses ActiveJDBC which requires a step in instrumentation while compiling.

From the command line the 'mvn package' works correctly and the classes are instrumented correctly for ActiveJDBC.

When run from Jenkins the model classes are instrumented but not included in instrumented model classes. The application fails with "are you sure models have been instrumented?"

Why isn't the jenkins job not including the instrumented classes in the war file?

4

2 回答 2

2

Okay. I figured it out.

There is a bug with Jenkins that if your Job name contains space characters then the instrumented classes will not be copied to your war file!?

I renamed the job named from "Customer Info App" to "CustomerInfoApp" and it worked perfectly.

As a general rule, never use white spaces in your job names.

于 2013-06-09T08:42:53.023 回答
0

您的 Jenkins 配置有问题。多年来,我们一直在 Jenkings 上构建 ActiveJDBC 项目。有可能再次编译检测类并且包含非检测类而不是检测类。查看 Lenkins 日志,发现在编译后调用了检测工具,而不是相反。

于 2013-06-09T03:09:28.287 回答