Unable to execute maven tests at some times using citrus test frame work - maven

I am running citrus test cases using maven command which looks like this
mvn integration-test -Dfilename.pattern=**/*Rest.xml -Dhtmlreport.name=report4.html
I am executing above command using java procesess executor here is the code
public class TestExecutor {
String[] command = new String[3];
command[0] = "cmd";
command[1] = "/c";
command[2] = "mvn integration-test -Dfilename.pattern=**/*"+xmlName+" "+"-Dhtmlreport.name="+report_name;
}
Process p = Runtime.getRuntime().exec(command);
I am exposing above code as rest service. user sends system properties through url. I am passing that information to maven fail safe plugin using maven command here is the maven fail safe plugin properties.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.20</version>
<configuration>
<systemProperties>
<citrus.xml.file.name.pattern>${filename.pattern}</citrus.xml.file.name.pattern>
<citrus.html.report.file>${htmlreport.name}</citrus.html.report.file>
</systemProperties>
</configuration>
<executions>
<execution>
<id>integration-tests</id>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
after my rest service receiving this information it execute maven command which was mentioned above. What the problem I am facing is when the rest service used as single instance the command was executing fine. But when I tested this code in for multi users ie is in multi threaded environment. Some times every user hit(Tests) was executing fine but most of the time this code was not executing all the users test cases(ie is some users test cases were excuting fine ) but for remaing users the console out put was just like this. There are no tests executed. I am using testNg to execute my test cases.
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------< com.walmart.citrus:multi-user-handling >---------------
[INFO] Building Citrus Integration Test 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons-io:commons-io:jar:1.3.2
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # multi-user-handling ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) # multi-user-handling ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 4 source files to D:\springnotes\multi-user-handling\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # multi-user-handling ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) # multi-user-handling ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.20:test (default-test) # multi-user-handling ---
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) # multi-user-handling ---
[INFO]
[INFO] --- maven-failsafe-plugin:2.20:integration-test (integration-tests) # multi-user-handling ---
[WARNING] The parameter forkMode is deprecated since version 2.14. Use forkCount and reuseForks instead.
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent! The file encoding for reports output files should be provided by the POM property ${project.reporting.outputEncoding}.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 48.568 s
[INFO] Finished at: 2018-08-23T23:41:20+05:30
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "test" could not be activated because it does not exist.
for remaining users in successes case of executing the test case out put was like this
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------< com.citrus:multi-user-handling >---------------
[INFO] Building Citrus Integration Test 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons-io:commons-io:jar:1.3.2
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # multi-user-handling ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) # multi-user-handling ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # multi-user-handling ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) # multi-user-handling ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.20:test (default-test) # multi-user-handling ---
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) # multi-user-handling ---
[INFO]
[INFO] --- maven-failsafe-plugin:2.20:integration-test (integration-tests) # multi-user-handling ---
[WARNING] The parameter forkMode is deprecated since version 2.14. Use forkCount and reuseForks instead.
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.walmart.tests.SampleXmlIT
23:41:11,094 INFO citrus.Citrus| Unable to locate Citrus application properties
23:41:11,137 INFO BeanDefinitionReader| Loading XML bean definitions from URL [file:/D:/springnotes/multi-user-handling/target/test-classes/citrus-context.xml]
23:41:11,709 DEBUG BeanDefinitionReader| Loaded 0 bean definitions from location pattern [classpath*:citrus-context.xml]
23:41:13,545 INFO port.LoggingReporter|
23:41:13,545 INFO port.LoggingReporter| ------------------------------------------------------------------------
23:41:13,545 INFO port.LoggingReporter| .__ __
23:41:13,545 INFO port.LoggingReporter| ____ |__|/ |________ __ __ ______
23:41:13,545 INFO port.LoggingReporter| _/ ___\| \ __\_ __ \ | \/ ___/
23:41:13,545 INFO port.LoggingReporter| \ \___| || | | | \/ | /\___ \
23:41:13,545 INFO port.LoggingReporter| \___ >__||__| |__| |____//____ >
23:41:13,545 INFO port.LoggingReporter| \/ \/
23:41:13,545 INFO port.LoggingReporter|
23:41:13,545 INFO port.LoggingReporter| C I T R U S T E S T S 2.7.3
23:41:13,546 INFO port.LoggingReporter|
23:41:13,546 INFO port.LoggingReporter| ------------------------------------------------------------------------
23:41:13,546 DEBUG port.LoggingReporter| BEFORE TEST SUITE
23:41:13,546 INFO port.LoggingReporter|
23:41:13,546 INFO port.LoggingReporter|
23:41:13,546 INFO port.LoggingReporter| BEFORE TEST SUITE: SUCCESS
23:41:13,546 INFO port.LoggingReporter| ------------------------------------------------------------------------
23:41:13,546 INFO port.LoggingReporter|
23:41:13,582 DEBUG t.TestContextFactory| Created new test context - using global variables: '{}'
23:41:14,618 INFO port.LoggingReporter|
23:41:14,618 INFO port.LoggingReporter| ------------------------------------------------------------------------
23:41:14,618 DEBUG port.LoggingReporter| STARTING TEST 20180326024725Rest <com\walmart\resources>
23:41:14,618 INFO port.LoggingReporter|
23:41:14,618 DEBUG citrus.TestCase| Initializing test case
23:41:14,619 DEBUG context.TestContext| Setting variable: citrus.test.name with value: '20180326024725Rest'
23:41:14,619 DEBUG context.TestContext| Setting variable: citrus.test.package with value: 'com\walmart\resources'
23:41:14,619 DEBUG citrus.TestCase| Test variables:
23:41:14,619 DEBUG citrus.TestCase| citrus.test.name = 20180326024725Rest
23:41:14,619 DEBUG citrus.TestCase| citrus.test.package = com\test\resources
23:41:14,619 INFO port.LoggingReporter|
23:41:14,619 DEBUG port.LoggingReporter| TEST STEP 1/1: echo
23:41:14,620 INFO actions.EchoAction|
hmmm
23:41:14,620 INFO port.LoggingReporter|
23:41:14,620 DEBUG port.LoggingReporter| TEST STEP 1/1 SUCCESS
23:41:14,621 INFO port.LoggingReporter|
23:41:14,621 INFO port.LoggingReporter| TEST SUCCESS 20180326024725Rest (com\walmart\resources)
23:41:14,621 INFO port.LoggingReporter| ------------------------------------------------------------------------
23:41:14,621 INFO port.LoggingReporter|
[TestHTMLReporter] Access is denied
23:41:15,207 INFO port.LoggingReporter|
23:41:15,207 INFO port.LoggingReporter| ------------------------------------------------------------------------
23:41:15,208 DEBUG port.LoggingReporter| AFTER TEST SUITE
23:41:15,208 INFO port.LoggingReporter|
23:41:15,208 INFO port.LoggingReporter|
23:41:15,208 INFO port.LoggingReporter| AFTER TEST SUITE: SUCCESS
23:41:15,208 INFO port.LoggingReporter| ------------------------------------------------------------------------
23:41:15,209 INFO port.LoggingReporter|
23:41:15,209 INFO port.LoggingReporter| ------------------------------------------------------------------------
23:41:15,209 INFO port.LoggingReporter|
23:41:15,209 INFO port.LoggingReporter| CITRUS TEST RESULTS
23:41:15,209 INFO port.LoggingReporter|
23:41:15,212 INFO port.LoggingReporter| 20180326024725Rest ............................................. SUCCESS
23:41:15,212 INFO port.LoggingReporter|
23:41:15,212 INFO port.LoggingReporter| TOTAL: 1
23:41:15,212 DEBUG port.LoggingReporter| SKIPPED: 0 (0.0%)
23:41:15,212 INFO port.LoggingReporter| FAILED: 0 (0.0%)
23:41:15,212 INFO port.LoggingReporter| SUCCESS: 1 (100.0%)
23:41:15,212 INFO port.LoggingReporter|
23:41:15,212 INFO port.LoggingReporter| ------------------------------------------------------------------------
23:41:15,212 DEBUG report.HtmlReporter| Generating HTML test report
23:41:15,213 DEBUG util.FileUtils| Reading file resource: 'test-detail.html' (encoding is 'windows-1252')
23:41:15,584 DEBUG util.FileUtils| Reading file resource: 'test-report.html' (encoding is 'windows-1252')
23:41:15,591 INFO report.HtmlReporter| Generated HTML test report: target\citrus-reports\report8.html
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.61 s - in com.walmart.tests.SampleXmlIT
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[WARNING] Could not delete temp directory D:\springnotes\multi-user-handling\target\surefire because Directory D:\springnotes\multi-user-handling\target\surefire unable to be deleted.
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent! The file encoding for reports output files should be provided by the POM property ${project.reporting.outputEncoding}.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 51.719 s
[INFO] Finished at: 2018-08-23T23:41:19+05:30
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "test" could not be activated because it does not exist.
Here is my rest service code
#RestController
public class RestRunner {
static String namePattern="";
#RequestMapping(value="runurtest", method=RequestMethod.GET)
#ResponseBody
public String rest(#RequestParam String xmlName,#RequestParam String report_name) throws Exception
{
//TestExecutor class executes maven command in java procesess
new TestExecutor().exec(xmlName,report_name);
//report manger class sends html report user
return new ReportManager().readHTMLFile(report_name);
}
}

By default, the maven-failsafe-plugin will only execute test classes with the following wildcard patterns:
**/IT*.java **/*IT.java **/*ITCase.java
In case your test classes do not follow any of these naming conventions, then failsafe will not execute your tests.
You can configure the maven-failsafe-plugin to use different naming patterns. Please see how to do this in https://maven.apache.org/surefire/maven-failsafe-plugin/examples/inclusion-exclusion.html

Related

Maven doesn't build -runner.jar

I have generated a new project with the archetype and I have run the following maven
./mvnw -Dskiptests clean package
It should build two jar files xxx.jar and xx-runner.jar but it only build one (xxx.jar).
I have configured JAVA_HOME and GRAALVM_HOME pointing to the GraalVM that I have downloaded.
I have installed the Native Image.
My OS is UBUNTU
Maven should build the two JAR files but I don't why. Could someone help me.
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------< es.olivar.jaen:atomic-fruit-service >-----------------
[INFO] Building atomic-fruit-service 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # atomic-fruit-service ---
[INFO] Deleting /home/sobremesa/Documents/Develop/java/quarkus/poc/atomic-fruit-service/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # atomic-fruit-service ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- quarkus-maven-plugin:2.11.3.Final:generate-code (default) # atomic-fruit-service ---
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) # atomic-fruit-service ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /home/sobremesa/Documents/Develop/java/quarkus/poc/atomic-fruit-service/target/classes
[INFO]
[INFO] --- quarkus-maven-plugin:2.11.3.Final:generate-code-tests (default) # atomic-fruit-service ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # atomic-fruit-service ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/sobremesa/Documents/Develop/java/quarkus/poc/atomic-fruit-service/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) # atomic-fruit-service ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to /home/sobremesa/Documents/Develop/java/quarkus/poc/atomic-fruit-service/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:3.0.0-M7:test (default-test) # atomic-fruit-service ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) # atomic-fruit-service ---
[INFO] Building jar: /home/sobremesa/Documents/Develop/java/quarkus/poc/atomic-fruit-service/target/atomic-fruit-service-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- quarkus-maven-plugin:2.11.3.Final:build (default) # atomic-fruit-service ---
[INFO] [io.quarkus.deployment.QuarkusAugmentor] Quarkus augmentation completed in 1475ms
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.615 s
[INFO] Finished at: 2022-08-29T23:38:29+02:00
Thank very much indeed.
The output jar is target/quarkus-app/quarkus-run.jar

Why failed to compile pentaho-kettle-9.0.0.2-R?

Why dose the release build fail? Pentaho-kettle-9.0.0.3-R is same problem.
Environmental information:
maven version 3
jdk 11
mvn clean install -Dmaven.test.skip=true
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) # kettle-core ---
[INFO]
[INFO] --- build-helper-maven-plugin:3.0.0:parse-version (set-doc-version-property) # kettle-core ---
[INFO]
[INFO] --- build-helper-maven-plugin:3.0.0:rootlocation (set-root-dir-property) # kettle-core ---
[INFO]
[INFO] --- license-helper-maven-plugin:1.27:check-license (check-license) # kettle-core ---
[INFO] Effective license file is [/usr/src/app/src/pentaho-kettle-9.0.0.2-R/LICENSE.txt]
[INFO]
[INFO] --- iterator-maven-plugin:0.5.1:iterator (javascript-dependencies_unpack-dependencies) # kettle-core ---
[INFO] ------ (dummy) org.apache.maven.plugins:maven-dependency-plugin:3.1.0:unpack-dependencies
[INFO]
[INFO] --- build-helper-maven-plugin:3.0.0:add-resource (add-filtered-resources) # kettle-core ---
[INFO]
[INFO] --- license-helper-maven-plugin:1.27:bundle (bundle-license) # kettle-core ---
[INFO] License file [/usr/src/app/src/pentaho-kettle-9.0.0.2-R/LICENSE.txt] will be added to [META-INF/LICENSE.txt]
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) # kettle-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 90 resources
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) # kettle-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 398 source files to /usr/src/app/src/pentaho-kettle-9.0.0.2-R/core/target/classes
[INFO] /usr/src/app/src/pentaho-kettle-9.0.0.2-R/core/src/main/java/org/pentaho/di/version/BuildVersion.java: Some input files use or override a deprecated API.
[INFO] /usr/src/app/src/pentaho-kettle-9.0.0.2-R/core/src/main/java/org/pentaho/di/version/BuildVersion.java: Recompile with -Xlint:deprecation for details.
[INFO] /usr/src/app/src/pentaho-kettle-9.0.0.2-R/core/src/main/java/org/pentaho/di/core/plugins/SupplementalPlugin.java: Some input files use unchecked or unsafe operations.
[INFO] /usr/src/app/src/pentaho-kettle-9.0.0.2-R/core/src/main/java/org/pentaho/di/core/plugins/SupplementalPlugin.java: Recompile with -Xlint:unchecked for details.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /usr/src/app/src/pentaho-kettle-9.0.0.2-R/core/src/main/java/org/pentaho/di/core/Result.java:[32,33] package javax.xml.bind.annotation does not exist
[ERROR] /usr/src/app/src/pentaho-kettle-9.0.0.2-R/core/src/main/java/org/pentaho/di/core/Result.java:[65,2] cannot find symbol
symbol: class XmlRootElement
[INFO] 2 errors
Who can help me?
Look at main pom.xml like
https://github.com/pentaho/pentaho-kettle/blob/master/pom.xml
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
Use jdk8.
package javax.xml.bind.annotation does not exist because if I ain't mistaken, it is moved to jee with removal from jdk core since jdk9

Maven don't execute junit test

I'm trying to test this project: https://github.com/deglans/jenktest
but maven say that:
$ mvn clean install
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] jenktest
[INFO] hello
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building jenktest 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # jenktest ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # jenktest ---
[INFO] Installing /documenti/deglans/Programs/IdeaProjects/jenktest/pom.xml to /home/deglans/.m2/repository/io/github/deglans/jenktest/0.0.1-SNAPSHOT/jenktest-0.0.1-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building hello 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # hello ---
[INFO] Deleting /documenti/deglans/Programs/IdeaProjects/jenktest/hello/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # hello ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # hello ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to /documenti/deglans/Programs/IdeaProjects/jenktest/hello/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # hello ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /documenti/deglans/Programs/IdeaProjects/jenktest/hello/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) # hello ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /documenti/deglans/Programs/IdeaProjects/jenktest/hello/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # hello ---
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) # hello ---
[INFO] Building jar: /documenti/deglans/Programs/IdeaProjects/jenktest/hello/target/hello-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # hello ---
[INFO] Installing /documenti/deglans/Programs/IdeaProjects/jenktest/hello/target/hello-0.0.1-SNAPSHOT.jar to /home/deglans/.m2/repository/io/github/deglans/hello/0.0.1-SNAPSHOT/hello-0.0.1-SNAPSHOT.jar
[INFO] Installing /documenti/deglans/Programs/IdeaProjects/jenktest/hello/pom.xml to /home/deglans/.m2/repository/io/github/deglans/hello/0.0.1-SNAPSHOT/hello-0.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] jenktest ........................................... SUCCESS [ 0.449 s]
[INFO] hello .............................................. SUCCESS [ 1.715 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.360 s
[INFO] Finished at: 2017-12-16T11:41:59+01:00
[INFO] Final Memory: 14M/48M
[INFO] ------------------------------------------------------------------------
What is the warning and why maven completely skip the test phase?
The final purpose of this work is to test email jenkins feature, but for now I'm blocked by this problem...
Thanks
Summary
You need to either rename GreetingTests.java to GreetingTest.java, or update your maven-surefire-plugin. Updating surefire plugin can provide better pattern for inclusions of tests. You can declare it in project's parent POM ./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">
<!-- ... -->
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20.1</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
Detail
What is the warning and why maven completely skip the test phase?
Maven didn't skip the test phase. Maven unit tests are executed by maven-surefire-plugin, and it has been triggered correctly:
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # hello ---
You need to rename your test to GreetingTests.java to GreetingTest.java. Because the surefire-plugin:2.12.4 does not recognize pattern *Tests.java, as documented here:
By default, the plugin will automatically include all test classes with the following wildcard patterns:
"**/Test*.java" - includes all of its subdirectories and all java
filenames that start with "Test".
"**/*Test.java" - includes all of its subdirectories and all java
filenames that end with "Test".
"**/*TestCase.java" - includes all of its subdirectories and all java
filenames that end with "TestCase".

Maven Plugin Signature Check Error

I am using the following library as dependency:
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>apache-jena-libs</artifactId>
<type>pom</type>
<version>3.2.0</version> <!-- Set version -->
</dependency>
when doing a mvn clean install, it is failing and generating the following error:
[ERROR] Failed to execute goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.11:check (signature-check) on project frontend-core: Execution signature-check of goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.11:check failed. IllegalArgumentException -> [Help 1]
Any idea about why this error and how to solve it ?
Thanks
Here goes the whole output of mvn clean install with the error:
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] ESWC 2015 Tutorial
[INFO] ESWC 2015 Tutorial :: Frontend
[INFO] ESWC 2015 Tutorial :: Frontend :: Core
[INFO] ESWC 2015 Tutorial :: Frontend :: Distributable
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ESWC 2015 Tutorial 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # eswc-2015 ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven-3) # eswc-2015 ---
[INFO]
[INFO] --- maven-dependency-plugin:2.5.1:unpack (unpack) # eswc-2015 ---
[INFO] Configured Artifact: org.ldp4j:ldp4j-config:1.0.0-SNAPSHOT:jar
[INFO] Unpacking /home/bakerally/.m2/repository/org/ldp4j/ldp4j-config/1.0.0-SNAPSHOT/ldp4j-config-1.0.0-SNAPSHOT.jar to /home/bakerally/Documents/repositories/github/LDPTest3/target/config with includes "" and excludes ""
[INFO]
[INFO] --- maven-jgit-buildnumber-plugin:1.2.8:extract-buildnumber (git-buildnumber) # eswc-2015 ---
[INFO] Git info extracted, revision: '2699b4d', branch: 'OSM_Sample', tag: '', commitsCount: '68', buildnumber: '2699b4d'
[INFO]
[INFO] --- gmaven-plugin:1.0:execute (buildNumber) # eswc-2015 ---
Build number: 1.0.0-SNAPSHOT build 68 (OSM_Sample#2699b4d)
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.1.201405082137:prepare-agent (default-prepare-agent) # eswc-2015 ---
[INFO] jacoco.agent.ut.arg set to -javaagent:/home/bakerally/.m2/repository/org/jacoco/org.jacoco.agent/0.7.1.201405082137/org.jacoco.agent-0.7.1.201405082137-runtime.jar=destfile=/home/bakerally/Documents/repositories/github/LDPTest3/target/coverage-reports/jacoco-ut.exec,includes=org.ldp4j.*
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:timestamp-property (timestamp-property) # eswc-2015 ---
[WARNING] Using platform locale (en_US actually) to format date/time, i.e. build is platform dependent!
[INFO]
[INFO] --- license-maven-plugin:2.6:format (update-licenses) # eswc-2015 ---
[INFO] Updating license headers...
[INFO] Updating license header in: /home/bakerally/Documents/repositories/github/LDPTest3/frontend/dist/pom.xml
[INFO] Updating license header in: /home/bakerally/Documents/repositories/github/LDPTest3/frontend/core/pom.xml
[INFO] Updating license header in: /home/bakerally/Documents/repositories/github/LDPTest3/frontend/pom.xml
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:add-resource (install-legal-files) # eswc-2015 ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:add-resource (install-test-legal-files) # eswc-2015 ---
[INFO]
[INFO] --- maven-surefire-plugin:2.17:test (default-test) # eswc-2015 ---
[INFO] No tests to run.
[INFO]
[INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) > generate-sources # eswc-2015 >>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven-3) # eswc-2015 ---
[INFO]
[INFO] --- maven-dependency-plugin:2.5.1:unpack (unpack) # eswc-2015 ---
[INFO] Configured Artifact: org.ldp4j:ldp4j-config:1.0.0-SNAPSHOT:jar
[INFO] ldp4j-config-1.0.0-SNAPSHOT.jar already unpacked.
[INFO]
[INFO] --- maven-jgit-buildnumber-plugin:1.2.8:extract-buildnumber (git-buildnumber) # eswc-2015 ---
[INFO] Git info extracted, revision: '2699b4d', branch: 'OSM_Sample', tag: '', commitsCount: '68', buildnumber: '2699b4d'
[INFO]
[INFO] --- gmaven-plugin:1.0:execute (buildNumber) # eswc-2015 ---
Build number: 1.0.0-SNAPSHOT build 68 (OSM_Sample#2699b4d)
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.1.201405082137:prepare-agent (default-prepare-agent) # eswc-2015 ---
[INFO] jacoco.agent.ut.arg set to -javaagent:/home/bakerally/.m2/repository/org/jacoco/org.jacoco.agent/0.7.1.201405082137/org.jacoco.agent-0.7.1.201405082137-runtime.jar=destfile=/home/bakerally/Documents/repositories/github/LDPTest3/target/coverage-reports/jacoco-ut.exec,includes=org.ldp4j.*
[INFO]
[INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) < generate-sources # eswc-2015 <<<
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) # eswc-2015 ---
[INFO]
[INFO] --- maven-jar-plugin:2.4:test-jar (attach-tests) # eswc-2015 ---
[INFO] Skipping packaging of the test-jar
[INFO]
[INFO] --- truezip-maven-plugin:1.1:copy (update-sources) # eswc-2015 ---
[INFO]
[INFO] --- maven-javadoc-plugin:2.10.1:jar (attach-javadocs) # eswc-2015 ---
[INFO] Not executing Javadoc as the project is not a Java classpath-capable package
[INFO]
[INFO] --- license-maven-plugin:2.6:check (check-licenses) # eswc-2015 ---
[INFO] Checking licenses...
[INFO]
[INFO] --- animal-sniffer-maven-plugin:1.11:check (signature-check) # eswc-2015 ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java16-sun:1.10
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # eswc-2015 ---
[INFO] Installing /home/bakerally/Documents/repositories/github/LDPTest3/pom.xml to /home/bakerally/.m2/repository/org/ldp4j/tutorial/eswc-2015/1.0.0-SNAPSHOT/eswc-2015-1.0.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ESWC 2015 Tutorial :: Frontend 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # eswc-2015-frontend ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven-3) # eswc-2015-frontend ---
[INFO]
[INFO] --- maven-dependency-plugin:2.5.1:unpack (unpack) # eswc-2015-frontend ---
[INFO] Configured Artifact: org.ldp4j:ldp4j-config:1.0.0-SNAPSHOT:jar
[INFO] Unpacking /home/bakerally/.m2/repository/org/ldp4j/ldp4j-config/1.0.0-SNAPSHOT/ldp4j-config-1.0.0-SNAPSHOT.jar to /home/bakerally/Documents/repositories/github/LDPTest3/frontend/target/config with includes "" and excludes ""
[INFO]
[INFO] --- maven-jgit-buildnumber-plugin:1.2.8:extract-buildnumber (git-buildnumber) # eswc-2015-frontend ---
[INFO] Git info extracted, revision: '2699b4d', branch: 'OSM_Sample', tag: '', commitsCount: '68', buildnumber: '2699b4d'
[INFO]
[INFO] --- gmaven-plugin:1.0:execute (buildNumber) # eswc-2015-frontend ---
Build number: 1.0.0-SNAPSHOT build 68 (OSM_Sample#2699b4d)
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.1.201405082137:prepare-agent (default-prepare-agent) # eswc-2015-frontend ---
[INFO] jacoco.agent.ut.arg set to -javaagent:/home/bakerally/.m2/repository/org/jacoco/org.jacoco.agent/0.7.1.201405082137/org.jacoco.agent-0.7.1.201405082137-runtime.jar=destfile=/home/bakerally/Documents/repositories/github/LDPTest3/frontend/target/coverage-reports/jacoco-ut.exec,includes=org.ldp4j.*
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:timestamp-property (timestamp-property) # eswc-2015-frontend ---
[WARNING] Using platform locale (en_US actually) to format date/time, i.e. build is platform dependent!
[INFO]
[INFO] --- license-maven-plugin:2.6:format (update-licenses) # eswc-2015-frontend ---
[INFO] Updating license headers...
[INFO] Updating license header in: /home/bakerally/Documents/repositories/github/LDPTest3/frontend/pom.xml
[INFO] Updating license header in: /home/bakerally/Documents/repositories/github/LDPTest3/frontend/core/pom.xml
[INFO] Updating license header in: /home/bakerally/Documents/repositories/github/LDPTest3/frontend/dist/pom.xml
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:add-resource (install-legal-files) # eswc-2015-frontend ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:add-resource (install-test-legal-files) # eswc-2015-frontend ---
[INFO]
[INFO] --- maven-surefire-plugin:2.17:test (default-test) # eswc-2015-frontend ---
[INFO] No tests to run.
[INFO]
[INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) > generate-sources # eswc-2015-frontend >>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven-3) # eswc-2015-frontend ---
[INFO]
[INFO] --- maven-dependency-plugin:2.5.1:unpack (unpack) # eswc-2015-frontend ---
[INFO] Configured Artifact: org.ldp4j:ldp4j-config:1.0.0-SNAPSHOT:jar
[INFO] ldp4j-config-1.0.0-SNAPSHOT.jar already unpacked.
[INFO]
[INFO] --- maven-jgit-buildnumber-plugin:1.2.8:extract-buildnumber (git-buildnumber) # eswc-2015-frontend ---
[INFO] Git info extracted, revision: '2699b4d', branch: 'OSM_Sample', tag: '', commitsCount: '68', buildnumber: '2699b4d'
[INFO]
[INFO] --- gmaven-plugin:1.0:execute (buildNumber) # eswc-2015-frontend ---
Build number: 1.0.0-SNAPSHOT build 68 (OSM_Sample#2699b4d)
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.1.201405082137:prepare-agent (default-prepare-agent) # eswc-2015-frontend ---
[INFO] jacoco.agent.ut.arg set to -javaagent:/home/bakerally/.m2/repository/org/jacoco/org.jacoco.agent/0.7.1.201405082137/org.jacoco.agent-0.7.1.201405082137-runtime.jar=destfile=/home/bakerally/Documents/repositories/github/LDPTest3/frontend/target/coverage-reports/jacoco-ut.exec,includes=org.ldp4j.*
[INFO]
[INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) < generate-sources # eswc-2015-frontend <<<
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) # eswc-2015-frontend ---
[INFO]
[INFO] --- maven-jar-plugin:2.4:test-jar (attach-tests) # eswc-2015-frontend ---
[INFO] Skipping packaging of the test-jar
[INFO]
[INFO] --- truezip-maven-plugin:1.1:copy (update-sources) # eswc-2015-frontend ---
[INFO]
[INFO] --- maven-javadoc-plugin:2.10.1:jar (attach-javadocs) # eswc-2015-frontend ---
[INFO] Not executing Javadoc as the project is not a Java classpath-capable package
[INFO]
[INFO] --- license-maven-plugin:2.6:check (check-licenses) # eswc-2015-frontend ---
[INFO] Checking licenses...
[INFO]
[INFO] --- animal-sniffer-maven-plugin:1.11:check (signature-check) # eswc-2015-frontend ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java16-sun:1.10
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # eswc-2015-frontend ---
[INFO] Installing /home/bakerally/Documents/repositories/github/LDPTest3/frontend/pom.xml to /home/bakerally/.m2/repository/org/ldp4j/tutorial/frontend/eswc-2015-frontend/1.0.0-SNAPSHOT/eswc-2015-frontend-1.0.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ESWC 2015 Tutorial :: Frontend :: Core 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # frontend-core ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven-3) # frontend-core ---
[INFO]
[INFO] --- maven-dependency-plugin:2.5.1:unpack (unpack) # frontend-core ---
[INFO] Configured Artifact: org.ldp4j:ldp4j-config:1.0.0-SNAPSHOT:jar
[INFO] Unpacking /home/bakerally/.m2/repository/org/ldp4j/ldp4j-config/1.0.0-SNAPSHOT/ldp4j-config-1.0.0-SNAPSHOT.jar to /home/bakerally/Documents/repositories/github/LDPTest3/frontend/core/target/config with includes "" and excludes ""
[INFO]
[INFO] --- maven-jgit-buildnumber-plugin:1.2.8:extract-buildnumber (git-buildnumber) # frontend-core ---
[INFO] Git info extracted, revision: '2699b4d', branch: 'OSM_Sample', tag: '', commitsCount: '68', buildnumber: '2699b4d'
[INFO]
[INFO] --- gmaven-plugin:1.0:execute (buildNumber) # frontend-core ---
Build number: 1.0.0-SNAPSHOT build 68 (OSM_Sample#2699b4d)
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.1.201405082137:prepare-agent (default-prepare-agent) # frontend-core ---
[INFO] jacoco.agent.ut.arg set to -javaagent:/home/bakerally/.m2/repository/org/jacoco/org.jacoco.agent/0.7.1.201405082137/org.jacoco.agent-0.7.1.201405082137-runtime.jar=destfile=/home/bakerally/Documents/repositories/github/LDPTest3/frontend/core/target/coverage-reports/jacoco-ut.exec,includes=org.ldp4j.*
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:timestamp-property (timestamp-property) # frontend-core ---
[WARNING] Using platform locale (en_US actually) to format date/time, i.e. build is platform dependent!
[INFO]
[INFO] --- license-maven-plugin:2.6:format (update-licenses) # frontend-core ---
[INFO] Updating license headers...
[INFO] Updating license header in: /home/bakerally/Documents/repositories/github/LDPTest3/frontend/core/pom.xml
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:add-resource (install-legal-files) # frontend-core ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:add-resource (install-test-legal-files) # frontend-core ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # frontend-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/bakerally/Documents/repositories/github/LDPTest3/frontend/core/src/main/resources
[INFO] Copying 2 resources
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # frontend-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 11 source files to /home/bakerally/Documents/repositories/github/LDPTest3/frontend/core/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # frontend-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/bakerally/Documents/repositories/github/LDPTest3/frontend/core/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) # frontend-core ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.17:test (default-test) # frontend-core ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) # frontend-core ---
[INFO] Building jar: /home/bakerally/Documents/repositories/github/LDPTest3/frontend/core/target/frontend-core-1.0.0-SNAPSHOT.jar
[INFO]
[INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) > generate-sources # frontend-core >>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven-3) # frontend-core ---
[INFO]
[INFO] --- maven-dependency-plugin:2.5.1:unpack (unpack) # frontend-core ---
[INFO] Configured Artifact: org.ldp4j:ldp4j-config:1.0.0-SNAPSHOT:jar
[INFO] ldp4j-config-1.0.0-SNAPSHOT.jar already unpacked.
[INFO]
[INFO] --- maven-jgit-buildnumber-plugin:1.2.8:extract-buildnumber (git-buildnumber) # frontend-core ---
[INFO] Git info extracted, revision: '2699b4d', branch: 'OSM_Sample', tag: '', commitsCount: '68', buildnumber: '2699b4d'
[INFO]
[INFO] --- gmaven-plugin:1.0:execute (buildNumber) # frontend-core ---
Build number: 1.0.0-SNAPSHOT build 68 (OSM_Sample#2699b4d)
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.1.201405082137:prepare-agent (default-prepare-agent) # frontend-core ---
[INFO] jacoco.agent.ut.arg set to -javaagent:/home/bakerally/.m2/repository/org/jacoco/org.jacoco.agent/0.7.1.201405082137/org.jacoco.agent-0.7.1.201405082137-runtime.jar=destfile=/home/bakerally/Documents/repositories/github/LDPTest3/frontend/core/target/coverage-reports/jacoco-ut.exec,includes=org.ldp4j.*
[INFO]
[INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) < generate-sources # frontend-core <<<
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) # frontend-core ---
[INFO] Building jar: /home/bakerally/Documents/repositories/github/LDPTest3/frontend/core/target/frontend-core-1.0.0-SNAPSHOT-sources.jar
[INFO]
[INFO] --- maven-jar-plugin:2.4:test-jar (attach-tests) # frontend-core ---
[INFO] Skipping packaging of the test-jar
[INFO]
[INFO] --- truezip-maven-plugin:1.1:copy (update-sources) # frontend-core ---
[INFO]
[INFO] --- maven-javadoc-plugin:2.10.1:jar (attach-javadocs) # frontend-core ---
[INFO] Building jar: /home/bakerally/Documents/repositories/github/LDPTest3/frontend/core/target/frontend-core-1.0.0-SNAPSHOT-javadoc.jar
[INFO]
[INFO] --- license-maven-plugin:2.6:check (check-licenses) # frontend-core ---
[INFO] Checking licenses...
[INFO]
[INFO] --- animal-sniffer-maven-plugin:1.11:check (signature-check) # frontend-core ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java16-sun:1.10
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ESWC 2015 Tutorial ................................. SUCCESS [ 6.794 s]
[INFO] ESWC 2015 Tutorial :: Frontend ..................... SUCCESS [ 1.307 s]
[INFO] ESWC 2015 Tutorial :: Frontend :: Core ............. FAILURE [ 4.140 s]
[INFO] ESWC 2015 Tutorial :: Frontend :: Distributable .... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.964 s
[INFO] Finished at: 2017-03-06T14:53:34+01:00
[INFO] Final Memory: 51M/476M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.11:check (signature-check) on project frontend-core: Execution signature-check of goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.11:check failed. IllegalArgumentException -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :frontend-core
You may disable checksum in maven.
This is a trick but may work.
http://www.codeoriented.com/how-to-disable-maven-checksum-validation/
Another way is download library and add manually to local repository.
Describe, how do it.
http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
Next another way
In downloads libs with apache-jena-3.2 is example:
<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>org.apache.jena</groupId>
<artifactId>jena-examples</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Apache Jena - Code Examples</name>
<description>A collection of example code illustrating uses of Apache Jena</description>
<url>http://jena.apache.org/</url>
<properties>
<ver.jena>[3.1.0,)</ver.jena>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<organization>
<name>Apache Software Foundation</name>
<url>http://apache.org</url>
</organization>
<dependencies>
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>apache-jena-libs</artifactId>
<version>${ver.jena}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.2</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>apache-repo-snapshots</id>
<url>http://repository.apache.org/content/repositories/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>apache-repo-releases</id>
<url>http://repository.apache.org/content/repositories/releases/</url>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
try set
[3.1.0,)
and add repositories
You may before delete library from local repository. In dir M2_HOME.

Maven/JBehave build issue

When attempting to use the Maven plugin with JBehave, I am getting a build error that says
Plugin org.kohsuke:access-modifier-checker:1.4 or one of its dependencies could not be resolved: Failure to find org.jenkins-ci:annotation-indexer:jar:1.4 in http://repo1.maven.org/maven2 was cached in the local repository
This is everything that happened in the terminal minus some of the reports generated:
dhcp-10-126-9-165:jbehave-3.8 DeeWu$ mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] JBehave
[INFO] JBehave Core
[INFO] JBehave Ant
[INFO] JBehave Maven Plugin
[INFO] JBehave Hudson Plugin
[INFO] JBehave Jenkins Plugin
[INFO] JBehave Navigator
[INFO] JBehave Gherkin
[INFO] JBehave ODF
[INFO] JBehave Google
[INFO] JBehave Groovy
[INFO] JBehave Scala
[INFO] JBehave Guice
[INFO] JBehave PicoContainer
[INFO] JBehave Spring
[INFO] JBehave Weld
[INFO] JBehave Archetypes
[INFO] JBehave Simple Archetype
[INFO] JBehave Groovy Archetype
[INFO] JBehave Guice Archetype
[INFO] JBehave Pico Archetype
[INFO] JBehave Spring Archetype
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building JBehave 3.8
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # jbehave ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) # jbehave ---
[INFO] Installing /Users/DeeWu/src/jbehave-3.8/pom.xml to /Users/DeeWu/.m2/repository/org/jbehave/jbehave/3.8/jbehave-3.8.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building JBehave Core 3.8
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # jbehave-core ---
[INFO] Deleting /Users/DeeWu/src/jbehave-3.8/jbehave-core/target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) # jbehave-core ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 20 resources
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # jbehave-core ---
[INFO] Compiling 185 source files to /Users/DeeWu/src/jbehave-3.8/jbehave- core/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) # jbehave-core ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 7 resources
[INFO] Copying 15 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) # jbehave-core -- -
[INFO] Compiling 78 source files to /Users/DeeWu/src/jbehave-3.8/jbehave-core/target/test- classes
[INFO]
[INFO] --- maven-surefire-plugin:2.8.1:test (default-test) # jbehave-core ---
[INFO] Surefire report directory: /Users/DeeWu/src/jbehave-3.8/jbehave- core/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.jbehave.core.ConfigurableEmbedderBehaviour
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.875 sec
Running org.jbehave.core.configuration.AnnotationBuilderBehaviour
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.423 sec
Running org.jbehave.core.configuration.AnnotationFinderBehaviour
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec
Running org.jbehave.core.configuration.KeywordsBehaviour
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
Running org.jbehave.core.configuration.ParanamerConfigurationBehaviour
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.027 sec
Running org.jbehave.core.configuration.PropertyBasedConfigurationBehaviour
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.jbehave.core.configuration.UnmodifiableConfigurationBehaviour
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.088 sec
Running org.jbehave.core.embedder.ConcurrencyBehaviour
Using controls EmbedderControls[batch=false,skip=false,generateViewAfterStories=true,ignoreFailureInStories=f alse,ignoreFailureInView=false,verboseFailures=false,verboseFiltering=false,storyTimeoutInSecs =1,threads=1]
Running embeddable org.jbehave.core.embedder.ConcurrencyBehaviour$ThreadsStories
Processing system properties {}
Using controls EmbedderControls[batch=false,skip=false,generateViewAfterStories=true,ignoreFailureInStories=f alse,ignoreFailureInView=false,verboseFailures=false,verboseFiltering=false,storyTimeoutInSecs =1,threads=1]
(BeforeStories)
Running story org/jbehave/core/embedder/a_long.story
(org/jbehave/core/embedder/a_long.story)
Scenario:
Mauro starts counting to 3
Mauro says 0 Mississippi (0 millis)
Mauro says 1 Mississippi (1001 millis)
Story org/jbehave/core/embedder/a_long.story duration of 2 seconds has exceeded timeout of 1 seconds
When Mauro counts to 3 Mississippi (FAILED)
(java.lang.InterruptedException: sleep interrupted)
STORY CANCELLED (DURATION 2 s)
Running story test+dir/dummy.story
(test+dir/dummy.story)
Scenario:
(AfterStories)
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) # jbehave-core ---
[INFO] Building jar: /Users/DeeWu/src/jbehave-3.8/jbehave-core/target/jbehave-core-3.8.jar
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (package-resources) # jbehave-core ---
[WARNING] Parameter tasks is deprecated, use target instead
[INFO] Executing tasks
main:
[zip] Building zip: /Users/DeeWu/src/jbehave-3.8/jbehave-core/target/jbehave-core- resources.zip
[INFO] Executed tasks
[INFO]
[INFO] --- build-helper-maven-plugin:1.5:attach-artifact (attach-artifacts) # jbehave-core ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) # jbehave-core ---
[INFO] Installing /Users/DeeWu/src/jbehave-3.8/jbehave-core/target/jbehave-core-3.8.jar to /Users/DeeWu/.m2/repository/org/jbehave/jbehave-core/3.8/jbehave-core-3.8.jar
[INFO] Installing /Users/DeeWu/src/jbehave-3.8/jbehave-core/pom.xml to /Users/DeeWu/.m2/repository/org/jbehave/jbehave-core/3.8/jbehave-core-3.8.pom
[INFO] Installing /Users/DeeWu/src/jbehave-3.8/jbehave-core/target/jbehave-core- resources.zip to /Users/DeeWu/.m2/repository/org/jbehave/jbehave-core/3.8/jbehave-core-3.8- resources.zip
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building JBehave Ant 3.8
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # jbehave-ant ---
[INFO] Deleting /Users/DeeWu/src/jbehave-3.8/jbehave-ant/target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) # jbehave-ant ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/DeeWu/src/jbehave-3.8/jbehave- ant/src/main/resources
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # jbehave-ant ---
[INFO] Compiling 9 source files to /Users/DeeWu/src/jbehave-3.8/jbehave-ant/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) # jbehave-ant ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/DeeWu/src/jbehave-3.8/jbehave- ant/src/test/resources
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) # jbehave-ant ---
[INFO] Compiling 3 source files to /Users/DeeWu/src/jbehave-3.8/jbehave-ant/target/test- classes
[INFO]
[INFO] --- maven-surefire-plugin:2.8.1:test (default-test) # jbehave-ant ---
[INFO] Surefire report directory: /Users/DeeWu/src/jbehave-3.8/jbehave- ant/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.jbehave.ant.EmbedderTaskBehaviour
Using executor service Mock for ExecutorService, hashCode: 1234403385
Mapping stories as embeddables using embedder Mock for Embedder, hashCode: 1464447632
Found class names : []
Mapping stories as paths using embedder Mock for Embedder, hashCode: 1750442808
Found story paths: [org/jbehave/ant/stories/first.story, org/jbehave/ant/stories/second.story]
Generating stories view using embedder Mock for Embedder, hashCode: 142077827
Reporting stepdocs using embedder Mock for Embedder, hashCode: 848649429
Running stories as Embeddables using embedder Mock for Embedder, hashCode: 1717173025
Found class names : [org.jbehave.ant.stories.Embeddable1, org.jbehave.ant.stories.Embeddable2]
Running stories as paths using embedder Mock for Embedder, hashCode: 1477356634
Found story paths: [org/jbehave/ant/stories/first.story, org/jbehave/ant/stories/second.story]
Running stories with annotated embedder runner
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.255 sec
Found class names : [org.jbehave.ant.stories.Embeddable1, org.jbehave.ant.stories.Embeddable2]
Results :
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) # jbehave-ant ---
[INFO] Building jar: /Users/DeeWu/src/jbehave-3.8/jbehave-ant/target/jbehave-ant-3.8.jar
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) # jbehave-ant ---
[INFO] Installing /Users/DeeWu/src/jbehave-3.8/jbehave-ant/target/jbehave-ant-3.8.jar to /Users/DeeWu/.m2/repository/org/jbehave/jbehave-ant/3.8/jbehave-ant-3.8.jar
[INFO] Installing /Users/DeeWu/src/jbehave-3.8/jbehave-ant/pom.xml to /Users/DeeWu/.m2/repository/org/jbehave/jbehave-ant/3.8/jbehave-ant-3.8.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building JBehave Maven Plugin 3.8
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # jbehave-maven-plugin ---
[INFO] Deleting /Users/DeeWu/src/jbehave-3.8/jbehave-maven-plugin/target
[INFO]
[INFO] --- maven-plugin-plugin:2.7:descriptor (default-descriptor) # jbehave-maven- plugin ---
[INFO] Using 'UTF-8' encoding to read mojo metadata.
[INFO] Applying mojo extractor for language: java
[INFO] Mojo extractor for language: java found 10 mojo descriptors.
[INFO] Applying mojo extractor for language: bsh
[INFO] Mojo extractor for language: bsh found 0 mojo descriptors.
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) # jbehave-maven- plugin ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/DeeWu/src/jbehave-3.8/jbehave-maven- plugin/src/main/resources
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # jbehave-maven-plugin ---
[INFO] Compiling 11 source files to /Users/DeeWu/src/jbehave-3.8/jbehave-maven- plugin/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) # jbehave- maven-plugin ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/DeeWu/src/jbehave-3.8/jbehave-maven- plugin/src/test/resources
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) # jbehave- maven-plugin ---
[INFO] Compiling 3 source files to /Users/DeeWu/src/jbehave-3.8/jbehave-maven- plugin/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.8.1:test (default-test) # jbehave-maven-plugin ---
[INFO] Surefire report directory: /Users/DeeWu/src/jbehave-3.8/jbehave-maven- plugin/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.jbehave.mojo.EmbedderMojoBehaviour
Using executor service Mock for ExecutorService, hashCode: 257798932
[info] Mapping stories as embeddables using embedder Mock for Embedder, hashCode: 971277631
[debug] Searching for class names including [**/*StoryMaps.java] and excluding []
[info] Found class names: []
[info] Mapping stories as embeddables using embedder Mock for Embedder, hashCode: 142077827
[debug] Searching for class names including [**/*StoryMaps.java] and excluding []
[info] Found class names: []
[info] Mapping stories as paths using embedder Mock for Embedder, hashCode: 1717173025
[debug] Searching for story paths including [**/stories/*.story] and excluding []
[info] Found story paths: [org/jbehave/mojo/stories/first.story, org/jbehave/mojo/stories/second.story]
[info] Mapping stories as paths using embedder Mock for Embedder, hashCode: 1477356634
[debug] Searching for story paths including [**/stories/*.story] and excluding []
[info] Found story paths: [org/jbehave/mojo/stories/first.story, org/jbehave/mojo/stories/second.story]
[info] Generating stories view using embedder Mock for Embedder, hashCode: 176271867
[info] Reporting stepdocs using embedder Mock for Embedder, hashCode: 1067398966
[info] Reporting stepdocs using embedder Mock for Embedder, hashCode: 115841081
[info] Running stories as embeddables using embedder Mock for Embedder, hashCode: 713879274
[debug] Searching for class names including [**/stories/*.java] and excluding []
[info] Found class names: [org.jbehave.mojo.stories.Embeddable1, org.jbehave.mojo.stories.Embeddable2]
[info] Running stories as embeddables using embedder Mock for Embedder, hashCode: 424162811
[debug] Searching for class names including [**/stories/*.java] and excluding []
[info] Found class names: [org.jbehave.mojo.stories.Embeddable1, org.jbehave.mojo.stories.Embeddable2]
[info] Running stories as paths using embedder Mock for Embedder, hashCode: 1006753184
[debug] Searching for story paths including [**/stories/*.story] and excluding []
[info] Found story paths: [org/jbehave/mojo/stories/first.story, org/jbehave/mojo/stories/second.story]
[info] Running stories as paths using embedder Mock for Embedder, hashCode: 2077036671
[debug] Searching for story paths including [**/stories/*.story] and excluding []
[info] Found story paths: [org/jbehave/mojo/stories/first.story, org/jbehave/mojo/stories/second.story]
[info] Running stories with annotated embedder runner
[debug] Searching for class names including [**/stories/*.java] and excluding []
[info] Found class names: [org.jbehave.mojo.stories.Embeddable1, org.jbehave.mojo.stories.Embeddable2]
[info] Running stories with annotated embedder runner
[debug] Searching for class names including [**/stories/*.java] and excluding []
[info] Found class names: [org.jbehave.mojo.stories.Embeddable1, org.jbehave.mojo.stories.Embeddable2]
[info] Unpacked site to target/jbehave/view
[info] Unpacked core to target/jbehave/view
[info] Unpacked site to /var/folders/qp/l1knq1p930x0mb2f8wq1_4b00000gn/T/jbehave/view
[info] Unpacked core to /var/folders/qp/l1knq1p930x0mb2f8wq1_4b00000gn/T/jbehave/view
[debug] Artifact property artifactId not allowed by values [jbehave-site-resources, jbehave-core]
Tests run: 28, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.015 sec
Results :
Tests run: 28, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) # jbehave-maven-plugin ---
[INFO] Building jar: /Users/DeeWu/src/jbehave-3.8/jbehave-maven-plugin/target/jbehave- maven-plugin-3.8.jar
[INFO]
[INFO] --- maven-plugin-plugin:2.7:addPluginArtifactMetadata (default- addPluginArtifactMetadata) # jbehave-maven-plugin ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) # jbehave-maven-plugin - --
[INFO] Installing /Users/DeeWu/src/jbehave-3.8/jbehave-maven-plugin/target/jbehave- maven-plugin-3.8.jar to /Users/DeeWu/.m2/repository/org/jbehave/jbehave-maven- plugin/3.8/jbehave-maven-plugin-3.8.jar
[INFO] Installing /Users/DeeWu/src/jbehave-3.8/jbehave-maven-plugin/pom.xml to /Users/DeeWu/.m2/repository/org/jbehave/jbehave-maven-plugin/3.8/jbehave-maven-plugin- 3.8.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building JBehave Hudson Plugin 3.8
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # jbehave-hudson-plugin ---
[INFO] Deleting /Users/DeeWu/src/jbehave-3.8/jbehave-hudson-plugin/target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) # jbehave-hudson- plugin ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # jbehave-hudson-plugin ---
[INFO] Compiling 4 source files to /Users/DeeWu/src/jbehave-3.8/jbehave-hudson- plugin/target/classes
[INFO]
[INFO] --- access-modifier-checker:1.4:enforce (default-enforce) # jbehave-hudson-plugin ---
[WARNING] The POM for org.jenkins-ci:annotation-indexer:jar:1.4 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] JBehave ........................................... SUCCESS [1.930s]
[INFO] JBehave Core ...................................... SUCCESS [2:05.653s]
[INFO] JBehave Ant ....................................... SUCCESS [6.222s]
[INFO] JBehave Maven Plugin .............................. SUCCESS [20.093s]
[INFO] JBehave Hudson Plugin ............................. FAILURE [23.540s]
[INFO] JBehave Jenkins Plugin ............................ SKIPPED
[INFO] JBehave Navigator ................................. SKIPPED
[INFO] JBehave Gherkin ................................... SKIPPED
[INFO] JBehave ODF ....................................... SKIPPED
[INFO] JBehave Google .................................... SKIPPED
[INFO] JBehave Groovy .................................... SKIPPED
[INFO] JBehave Scala ..................................... SKIPPED
[INFO] JBehave Guice ..................................... SKIPPED
[INFO] JBehave PicoContainer ............................. SKIPPED
[INFO] JBehave Spring .................................... SKIPPED
[INFO] JBehave Weld ...................................... SKIPPED
[INFO] JBehave Archetypes ................................ SKIPPED
[INFO] JBehave Simple Archetype .......................... SKIPPED
[INFO] JBehave Groovy Archetype .......................... SKIPPED
[INFO] JBehave Guice Archetype ........................... SKIPPED
[INFO] JBehave Pico Archetype ............................ SKIPPED
[INFO] JBehave Spring Archetype .......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3:20.245s
[INFO] Finished at: Tue Jun 11 08:55:35 CDT 2013
[INFO] Final Memory: 27M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.kohsuke:access-modifier-checker:1.4:enforce (default- enforce) on project jbehave-hudson-plugin: Execution default-enforce of goal org.kohsuke:access-modifier-checker:1.4:enforce failed: Plugin org.kohsuke:access-modifier- checker:1.4 or one of its dependencies could not be resolved: Failure to find org.jenkins- ci:annotation-indexer:jar:1.4 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :jbehave-hudson-plugin
Any help getting this error fixed would be great!
It turns out that instead of typing
mvn clean install
into the terminal, all I needed to do was type
mvn install -s settings.xml
I faced exact same issue and it took couple of hours to debug. Wondering why this is not at all documented.
It looks like Hudson project is moved to eclipse.org hence in plugin pom.xml we need to changed parent declaration as below
<parent>
<groupId>org.eclipse.hudson.plugins</groupId>
<artifactId>hudson-plugin-parent</artifactId>
<version>3.0.0</version>
</parent>
BTW in your machine if you first build the project for Jenkins and then Hudson you won't encounter this issue. This happens only when you are building Hudson plugin freshly where Jenkins dependent jars does not exist.

Resources