Creating a Java jar results in: IllegalArgumentException: The type name Contributor and the namespace URI com.ibm.team.repository do not resolve to an IItemType.
java -jar deletedef.jar https://abc.net/ccm uid passwd builddef
2 answers
Hi , i get the same issue, have u resolved it?
Comments
Note, it is not a good idea to ask a question as an answer to a 4 years old question. You should create your own question instead.
Hi Ralph. when i try to run
You have to compile the snippets before you can run the Java snippets. The -Djava.ext.dirs in your call is typed incorrectly. replace the ; with .
Please note that the order of the ext dirs is sensitive. If you get it wrong, it might work if you are lucky or it might not work.
This has always worked for me provided I made sure that
- A correct Java Version was used to make the JAR file
- The Java extdirs were provided as described in the README.TXT included in the snippets folder of the plain java client libraries.
Comments
See https://github.com/jazz-community/work-item-command-line/tree/master/com.ibm.js.team.workitem.commandline/src/main/resources/scripts for working scripts to call such an application. A description how to create the runnable JAR file is included in the project.