[ https://issues.apache.org/jira/browse/IGNITE-6150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16136874#comment-16136874 ]
Alexandr Fedotov commented on IGNITE-6150: ------------------------------------------ [root cause] *ignite-osgi-karaf* module declares the following order of plugins 1. *maven-resources-plugin* (*generate-resources* phase) 2. *build-helper-maven-plugin* *parent* module declares 1. *build-helper-maven-plugin* 2. *maven-remote-resources-plugin* (*generate-resources* phase) from the *release* profile According to the Maven composition rules the effective POM results in the following order of plugins 1. *maven-resources-plugin* (*generate-resources* phase) 2. *build-helper-maven-plugin* 3. *maven-remote-resources-plugin* (*generate-resources* phase) from the *release* profile That breaks the logic where 3. should be executed before 1. The fix is to change the order of plugins in *ignite-osgi-karaf* module to ensure the proper ordering. > ignite-osgi-karaf-licenses.txt is absent in a build > --------------------------------------------------- > > Key: IGNITE-6150 > URL: https://issues.apache.org/jira/browse/IGNITE-6150 > Project: Ignite > Issue Type: Bug > Affects Versions: 1.9 > Reporter: Ksenia Rybakova > Assignee: Alexandr Fedotov > > optional/ignite-osgi-karaf/licenses/ignite-osgi-karaf-licenses.txt file is > absent in a build. > While building there is a warning: > {noformat} > [23:57:23][Step 30/31] [INFO] An Ant BuildException has occured: Warning: > Could not find file > /var/lib/teamcity/data/work/374178e7af8a6b6/incubator-ignite/modules/osgi-karaf/target/classes/META-INF/licenses.txt > to copy. > [23:57:23][Step 30/31] around Ant part ...<move > file="/var/lib/teamcity/data/work/374178e7af8a6b6/incubator-ignite/modules/osgi-karaf/target/classes/META-INF/licenses.txt" > > tofile="/var/lib/teamcity/data/work/374178e7af8a6b6/incubator-ignite/modules/osgi-karaf/target/licenses/ignite-osgi-karaf-licenses.txt"/>... > @ 4:270 in > /var/lib/teamcity/data/work/374178e7af8a6b6/incubator-ignite/modules/osgi-karaf/target/antrun/build-main.xml > [23:57:23][Step 30/31] > /var/lib/teamcity/data/work/374178e7af8a6b6/incubator-ignite/modules/osgi-karaf/target/antrun/build-main.xml:4: > Warning: Could not find file > /var/lib/teamcity/data/work/374178e7af8a6b6/incubator-ignite/modules/osgi-karaf/target/classes/META-INF/licenses.txt > to copy. > [23:57:23][Step 30/31] at > org.apache.tools.ant.taskdefs.Copy.copySingleFile(Copy.java:619) > [23:57:23][Step 30/31] at > org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:444) > [23:57:23][Step 30/31] at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) > [23:57:23][Step 30/31] at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [23:57:23][Step 30/31] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > [23:57:23][Step 30/31] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > [23:57:23][Step 30/31] at > java.lang.reflect.Method.invoke(Method.java:606) > [23:57:23][Step 30/31] at > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) > [23:57:23][Step 30/31] at > org.apache.tools.ant.Task.perform(Task.java:348) > [23:57:23][Step 30/31] at > org.apache.tools.ant.Target.execute(Target.java:390) > [23:57:23][Step 30/31] at > org.apache.tools.ant.Target.performTasks(Target.java:411) > [23:57:23][Step 30/31] at > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) > [23:57:23][Step 30/31] at > org.apache.tools.ant.Project.executeTarget(Project.java:1368) > [23:57:23][Step 30/31] at > org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:327) > [23:57:23][Step 30/31] at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > [23:57:23][Step 30/31] at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) > [23:57:23][Step 30/31] at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > [23:57:23][Step 30/31] at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > [23:57:23][Step 30/31] at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) > [23:57:23][Step 30/31] at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) > [23:57:23][Step 30/31] at > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) > [23:57:23][Step 30/31] at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) > [23:57:23][Step 30/31] at > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) > [23:57:23][Step 30/31] at > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) > [23:57:23][Step 30/31] at > org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) > [23:57:23][Step 30/31] at > org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) > [23:57:23][Step 30/31] at > org.apache.maven.cli.MavenCli.main(MavenCli.java:141) > [23:57:23][Step 30/31] at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [23:57:23][Step 30/31] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > [23:57:23][Step 30/31] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > [23:57:23][Step 30/31] at > java.lang.reflect.Method.invoke(Method.java:606) > [23:57:23][Step 30/31] at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) > [23:57:23][Step 30/31] at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) > [23:57:23][Step 30/31] at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) > [23:57:23][Step 30/31] at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)