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 alt text

alt text

Or some libraries of Axon.ivy Libraries as alt text alt text

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's gravatar image

anhle
(suspended)
accept rate: 0%

edited 25.02.2020 at 05:05

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.

(26.02.2020 at 02:50) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×35
×22
×8

Asked: 25.02.2020 at 05:00

Seen: 7,778 times

Last updated: 26.02.2020 at 02:50