project package tools_eclipse export / ant / maven / gradle

 

Build Eclipse RCP Product with Ant, Maven

http://eclipsercpforum.group.iteye.com/group/wiki/627

Usually when we package a Product, we usually do it through the export operation of the Product, but this approach limits the automated execution of Continous Integration. So, how to write an automated build script?

、、、

 

 

 

1. Maven is packaged into an executable jar package and added in pom.xml

<build>

<plugins>

...

<plugin>

<artifactId>maven-assembly-plugin</artifactId>

<configuration>

<descriptorRefs>

<descriptorRef>jar-with-dependencies</descriptorRef>

</descriptorRefs>

<archive>

<manifest>

<mainClass>com.xahl.conf.App</mainClass> <!-- class with main method-->

</manifest>

</archive>

</configuration>

</plugin>

...

</plugins>

</build>

Execute the command mvn assembly:assembly -Dmaven.test.skip=true (skip the test)

Then it can be packaged into an executable jar, and all dependent packages can be typed in

2, package -Dmaven.test.skip=true -e hit ordinary jar

3 Configure the sts tool maven command right click Run as -->run Comfiguration --> Maven build --> name : package Goals:-Dmaven.test.skip=true -e --> run

 

4 打client jar  call mvn install -Dmaven.test.skip=true

 

end

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326463541&siteId=291194637