When using milyn smooks there are some things not mentioned in the manuals.
To be able to use ejc to generate edifact proxies you needs some dependencies in the pom file.
This isn't mentioned in the manuals.
The maven-ejc-plugin has it:s own class path therefore it is necessary to declare dependencies twice.
Maybe the order matters? Dependencies to be declared before build section?
<build>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.milyn</groupId>
<artifactId>maven-ejc-plugin</artifactId>
<version>1.6</version>
<dependencies>
<dependency>
<groupId>org.milyn</groupId>
<artifactId>milyn-edisax-parser</artifactId>
<version>1.7.0</version>
</dependency>
<dependency>
<groupId>org.milyn.edi.unedifact</groupId>
<artifactId>d96a-mapping</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.milyn.edi.unedifact</groupId>
<artifactId>d96b-mapping</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.milyn.edi.unedifact</groupId>
<artifactId>d04a-mapping</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.milyn.edi.unedifact</groupId>
<artifactId>d04b-mapping</artifactId>
<version>1.4</version>
</dependency>
</dependencies>
<configuration>
<!-- <ediMappingFile>src/d04a-mapping-1.4/org_milyn_edi_unedifact/d04a-mapping/1_4/APERAK.xml</ediMappingFile> -->
<ediMappingFile>urn:org.milyn.edi.unedifact:d96b-mapping:1.4</ediMappingFile>
<messages>MSCONS</messages>
<!-- <packageName>se.ediel.d04a.model</packageName> -->
</configuration>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.milyn</groupId>
<artifactId>milyn-smooks-all</artifactId>
<version>1.7.0</version>
</dependency>
<!-- <dependency> <groupId>org.milyn</groupId> <artifactId>milyn-smooks-ejc</artifactId>
<version>1.7.0</version> </dependency> -->
<dependency>
<groupId>org.milyn.edi.unedifact</groupId>
<artifactId>d04a-mapping</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.milyn.edi.unedifact</groupId>
<artifactId>d04b-mapping</artifactId>
<version>1.4</version>
</dependency>
<!-- <dependency> <groupId>org.mvel</groupId> <artifactId>mvel2</artifactId>
<version>2.2.0.Final</version> </dependency> -->
<!-- <dependency> <groupId>org.milyn</groupId> <artifactId>milyn-smooks-edi</artifactId>
<version>1.4</version> </dependency> -->
<!-- https://mvnrepository.com/artifact/org.milyn/milyn-edisax-parser -->
<!-- <dependency> <groupId>org.milyn</groupId> <artifactId>milyn-edisax-parser</artifactId>
<version>1.7.0</version> </dependency> -->
</dependencies>