Class TychoModelReader

  • All Implemented Interfaces:
    org.apache.maven.model.io.ModelReader

    @Component(role=org.apache.maven.model.io.ModelReader.class,
               hint="tycho")
    public class TychoModelReader
    extends org.sonatype.maven.polyglot.io.ModelReaderSupport
    Tycho POM model reader. Deduces maven model artifactId and version from OSGi manifest Bundle-SymbolicName and Bundle-Version headers or feature.xml id and version attributes. Assumes parent pom is located in parent directory (from which groupId is inherited). Bundles with Bundle-SymbolicName ending with ".tests" will be assigned packaging type "eclipse-test-plugin".
    • Constructor Detail

      • TychoModelReader

        public TychoModelReader()
    • Method Detail

      • read

        public org.apache.maven.model.Model read​(Reader input,
                                                 Map<String,​?> options)
                                          throws IOException,
                                                 org.apache.maven.model.io.ModelParseException
        Throws:
        IOException
        org.apache.maven.model.io.ModelParseException