The OPKG maven plugin is used to build native opkg packages for installation on linux systems.
All goals are run automaticly. There is no need to specify one. The only goal that you might want to run is opkg:generate to generate an OPKG control for interactive inspection.
The goal opkg::package specifies which files should be included in the OPKG. Refer to this goal for configuration options.
Include plugin in the project configuration and activate the goals
<project> <build> <plugins> <plugin> <groupId>de.gsi.cs.co.maven.plugins</groupId> <artifactId>opkg-maven-plugin</artifactId> <version>...</version> <extensions>true</extensions> <executions> <execution> <goals> <goal>generate</goal> <goal>package</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project>
Build an OPKG that includes all binaries from this artifact and it's dependencies.
<project> <build> <plugins> <plugin> <groupId>de.gsi.cs.co.maven.plugins</groupId> <artifactId>opkg-maven-plugin</artifactId> <version>...</version> <extensions>true</extensions> <executions> <execution> <goals> <goal>generate</goal> <goal>package</goal> </goals> </execution> </executions> <configuration> <includeDependencies>true</includeDependencies> <excludeDependencies> <excludeDependency>inc*</excludeDependency> </excludeDependencies> <excludeHeader>true</excludeHeader> <attach>true</attach> </configuration> </plugin> </plugins> </build> </project>