Caused by: org.apache.uima.cas.CASRuntimeException: JCas type "com.example.types.MyNewType" used in Java code, but was not declared in the XML type descriptor.
at org.apache.uima.jcas.impl.JCasImpl.getType(JCasImpl.java:414)
<build>
<resources>
<resource>
<directory>META-INF</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<phase>package</phase>
<goals><goal>shade</goal></goals>
<configuration>
<transformers>
<!-- Set the main class of the executable JAR -->
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.example.CmdLineInterface</mainClass>
</transformer>
<!-- Merge the uimaFIT configuration files -->
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>
META-INF/org.apache.uima.fit/fsindexes.txt
</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>
META-INF/org.apache.uima.fit/types.txt
</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>
META-INF/org.apache.uima.fit/typepriorities.txt
</resource>
</transformer>
<!--
Prevent huge shaded artifacts from being deployed
to a Maven repository (remove if not desired)
-->
<outputFile>${project.build.directory}/${project.artifactId}-${project.version}-standalone.jar</outputFile>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
mvn package[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.2:shade (default) on project MyProj-UIMA: Unable to parse configuration of mojo org.apache.maven.plugins:maven-shade-plugin:2.2:shade for parameter outputFile: Abstract class or interface 'org.apache.maven.plugins.shade.resource.ResourceTransformer' cannot be instantiated
TypeSystemDescription tsd = TypeSystemDescriptionFactory.createTypeSystemDescription();
JCas jCas = JCasFactory.createJCas("com.example.types.myTypes"); // without .xml extension
MyAnnotation t = new MyAnnotation(jCas); //that's a myTypes.MyAnnotation
t.setCoveredText("this is a debug test");
logger.log(Level.INFO, "ANNOT TEXT: "+t.getCoveredText());
mvn clean packageclasspath*:com/example/types/aType.xmlclasspath*:com/example/types/anotherType.xmlclasspath*:com/example/types/subdir/myTypes.xmlmvn exec:java -Dexec.mainClass="com.example.CmdLineInterface" -Dexec.args="-a"java -jar target/MyProj-0.0.1-SNAPSHOT-standalone.jar -aBest,
Johannes
TypeSystemDescription tsd = TypeSystemDescriptionFactory.createTypeSystemDescription();
JCas jCas = JCasFactory.createJCas();
Token t = new Token(jCas);
t.setCoveredText("this is a debug test");
logger.log(Level.INFO, "TOKEN TEXT: "+t.getCoveredText());
--
You received this message because you are subscribed to the Google Groups "dkpro-core-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dkpro-core-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Assume that a typeorg.apache.uima.fit.type.Tokenis specified in the TSDorg/apache/uima/fit/type/Token.xml, then the file should have the following contents:
classpath*:org/apache/uima/fit/type/Token.xml
mvn clean package
--
You received this message because you are subscribed to the Google Groups "dkpro-core-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dkpro-core-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "dkpro-core-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dkpro-core-user/YKQnvNJHaLk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dkpro-core-us...@googlegroups.com.
-- Richard
--
You received this message because you are subscribed to the Google Groups "dkpro-core-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dkpro-core-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
2015-04-10 22:01:58 DEBUG [main] (TypeSystemDescriptionFactory) - Detected type system at [jar:file:/Users/jpietsch/.m2/repository/de/tudarmstadt/ukp/dkpro/core/de.tudarmstadt.ukp.dkpro.core.api.lexmorph-asl/1.6.2/de.tudarmstadt.ukp.dkpro.core.api.lexmorph-asl-1.6.2.jar!/desc/type/Morpheme.xml]
2015-04-10 22:01:58 DEBUG [main] (TypeSystemDescriptionFactory) - Detected type system at [file:/Users/jpietsch/Documents/.../MyProj/target/classes/com/example/types/MyType.xml]