eomasters-repos commented on issue #236:
URL: 
https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin/issues/236#issuecomment-3127700339

   Good to know that I'm not the only one. Actually, there are also colleagues 
from the [SNAP project](https://github.com/senbox-org) who have this issue too. 
I borrowed their solution:
   ```
   <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-antrun-plugin</artifactId>
           <version>3.0.0</version>
           <executions>
             <execution>
               <id>copy-jars</id>
               <phase>package</phase>
               <configuration>
                 <target>
                   <!-- Ant copy task to collect JARs that are needed to run 
snap-desktop and copy them into kit module-->
   
                   <copy 
todir="${project.build.directory}/netbeans_clusters/project/modules/" 
flatten="true">
                     <fileset dir="${project.build.directory}/../../">
                       <include 
name="**/target/nbm/clusters/project/modules/*.jar"/>
                     </fileset>
                   </copy>
   
                   <copy 
todir="${project.build.directory}/netbeans_clusters/project/config/Modules/" 
flatten="true">
                     <fileset dir="${project.build.directory}/../../">
                       <include 
name="**/target/nbm/clusters/project/config/Modules/*.xml"/>
                     </fileset>
                   </copy>
   
                   <copy 
todir="${project.build.directory}/netbeans_clusters/project/update_tracking/" 
flatten="true">
                     <fileset dir="${project.build.directory}/../../">
                       <include 
name="**/target/nbm/clusters/project/update_tracking/*.xml"/>
                     </fileset>
                   </copy>
   
                   <mkdir 
dir="${project.build.directory}/netbeans_clusters/project/modules/docs" />
                   <copy 
todir="${project.build.directory}/netbeans_clusters/project/modules/docs/" 
flatten="true">
                     <fileset dir="${project.build.directory}/../../">
                       <include 
name="**/target/nbm/clusters/project/modules/docs/*.jar"/>
                     </fileset>
                   </copy>
   
                   <mkdir 
dir="${project.build.directory}/netbeans_clusters/project/modules/ext" />
                   <copy 
todir="${project.build.directory}/netbeans_clusters/project/modules/ext/">
                     <fileset dir="${project.build.directory}/../../">
                       <include 
name="**/target/nbm/clusters/project/modules/ext/**"/>
                     </fileset>
                     <cutdirsmapper dirs="7"/>
                   </copy>
                 </target>
               </configuration>
               <goals>
                 <goal>run</goal>
               </goals>
             </execution>
           </executions>
         </plugin>
   ```
   
   Maybe someone finds this useful.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to