Hello Ivy team
In my project I'm using Designer 8.0.2, Engine 8.0.2, JDK 11, project-build-plugin version 8.0.0, maven 3.6.3 and maven-compiler-plugin version 3.8.0.
When I build project with maven I have some problems as maven cannot find class belong to reference libraries
Or some libraries of Axon.ivy Libraries as
Plugins in my pom.xml
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<filesets>
<fileset>
<directory>src_test</directory>
<includes>
<include>**/beans/*_.java</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>process-resources</id>
<goals>
<goal>resources</goal>
<goal>testResources</goal>
</goals>
<phase>process-test-resources</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>iar-as-property</id>
<goals>
<goal>properties</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<configuration>
<release>11</release>
</configuration>
</plugin>
<plugin>
<groupId>com.axonivy.ivy.ci</groupId>
<artifactId>project-build-plugin</artifactId>
<version>${build.plugin.version}</version>
<extensions>true</extensions>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>share-engine-core-classpath</goal>
</goals>
</execution>
<execution>
<id>default-ivy-test-properties</id>
<configuration>
<skipTest>true</skipTest>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<release>11</release>
</configuration>
<dependencies>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>6.2</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>process-meta-model</id>
<goals>
<goal>compile</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<classpathElements>${maven.processor.classpath}</classpathElements>
<annotationProcessorPaths>
<path>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version>5.4.12.Final</version>
</path>
</annotationProcessorPaths>
<proc>only</proc>
<includes>
<include>**/beans/*</include>
</includes>
<generatedSourcesDirectory>${project.build.directory}/.apt_generated</generatedSourcesDirectory>
</configuration>
</execution>
<execution>
<id>process-test-meta-model</id>
<goals>
<goal>testCompile</goal>
</goals>
<phase>generate-test-sources</phase>
<configuration>
<classpathElements>${project.build.outputDirectory},${maven.processor.classpath},${org.jmockit:jmockit:jar},${junit:junit:jar},${org.hamcrest:hamcrest-core:jar},${log4j:log4j:jar}</classpathElements>
<annotationProcessorPaths>
<path>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version>5.4.12.Final</version>
</path>
</annotationProcessorPaths>
<proc>only</proc>
<includes>
<include>**/beans/*</include>
</includes>
<generatedTestSourcesDirectory>${project.build.testSourceDirectory}</generatedTestSourcesDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.0-M1</version>
<configuration>
<checkModificationExcludes>
<checkModificationExclude>${project}/pom.xml</checkModificationExclude>
</checkModificationExcludes>
<commitByProject>true</commitByProject>
<autoversionsubmodules>true</autoversionsubmodules>
</configuration>
</plugin>
</plugins>
</pluginManagement>
Please help me to resolve it. Thanks
asked
25.02.2020 at 05:00
anhle
(suspended)
accept rate:
0%
hi @anhle I see no obvious mistake in your configuration. In addition, this seems to be a highly customized build which relies on many customizations which are rarely used in ivy projects. However, we'd gladly support you in this migration story. But as the story seems complex, I think an efficient way would be a collaborative screen session or something similar. Please use https://support.axonivy.com/ and open a ticket so that we can get in contact with you.