Maven-assembly-plugin and ar archives

In my maven project, I want to build the ipkg file (this is similar to the Debian package, but for embedded systems). To do this, I need to create AR archives with the build plugin. I found this plugin in the documentation: "and any other format that has been configured for ArchiveManager." But I cannot learn how to "configure" the "ArchiveManager". How can i do this? Or better: maybe someone has already done this and can I use an existing plugin?

+4
source share
2 answers

If you are new to maven, then this is almost a "mission impossible." In theory, this should work as follows:

  • Deploy your own Archiver .
  • Provide META-INF / plexus / components.xml:

...

 <component-set> <components> <component> <role>org.codehaus.plexus.archiver.Archiver</role> <role-hint>myformat</role-hint> <implementation>com.acme.foo.MyArchiverImplementation</implementation> <instantiation-strategy>per-lookup</instantiation-strategy> </component> </components> </component-set> 
  • Add an artifact as an extension to the assembly.

See plexus-archiver , for example.

+8
source

Have you checked the maven-pkg-plugin (mentioned here and here )?

+1
source

Source: https://habr.com/ru/post/1307282/


All Articles