|
68 | 68 | </dependencies> |
69 | 69 |
|
70 | 70 | <build> |
| 71 | + <finalName>nbs-client4j1.0</finalName> |
| 72 | + <resources> |
| 73 | +<!-- <resource> |
| 74 | + <directory>${project.basedir}/config/**</directory> |
| 75 | + <targetPath>${project.build.outputDirectory}/config</targetPath> |
| 76 | + </resource>--> |
| 77 | + </resources> |
71 | 78 | <plugins> |
72 | 79 | <plugin> |
73 | 80 | <groupId>org.apache.maven.plugins</groupId> |
|
111 | 118 | </execution> |
112 | 119 | </executions> |
113 | 120 | </plugin> |
| 121 | + <!-- 打jar包 --> |
| 122 | + <plugin> |
| 123 | + <groupId>org.codehaus.mojo</groupId> |
| 124 | + <artifactId>appassembler-maven-plugin</artifactId> |
| 125 | + <version>2.0.0</version> |
| 126 | + <executions> |
| 127 | + <execution> |
| 128 | + <id>make-assembly</id> |
| 129 | + <phase>package</phase> |
| 130 | + <goals> |
| 131 | + <goal>assemble</goal> |
| 132 | + </goals> |
| 133 | + </execution> |
| 134 | + </executions> |
| 135 | + <configuration> |
| 136 | + <assembleDirectory>${project.build.directory}/</assembleDirectory> |
| 137 | + <repositoryLayout>flat</repositoryLayout> |
| 138 | + <configurationSourceDirectory>src/main/resources</configurationSourceDirectory> |
| 139 | + <configurationSourceDirectory>config</configurationSourceDirectory> |
| 140 | + <configurationDirectory>true</configurationDirectory> |
| 141 | + <includeConfigurationDirectoryInClasspath>true</includeConfigurationDirectoryInClasspath> |
| 142 | + <extraJvmArguments>-Xms256m</extraJvmArguments> |
| 143 | + <binFileExtensions><unix>.sh</unix></binFileExtensions> |
| 144 | + <platforms> |
| 145 | + <platform>windows</platform> |
| 146 | + <platform>unix</platform> |
| 147 | + </platforms> |
| 148 | + <repositoryName>lib</repositoryName> |
| 149 | + <programs> |
| 150 | + <program> |
| 151 | + <mainClass>UI.AppMainWindow</mainClass> |
| 152 | + <name>nbs-client4j</name> |
| 153 | + <jvmSettings> |
| 154 | + <extraArguments> |
| 155 | + <extraArgument>-server</extraArgument> |
| 156 | + <extraArgument>-Xms256m</extraArgument> |
| 157 | + </extraArguments> |
| 158 | + </jvmSettings> |
| 159 | + </program> |
| 160 | + </programs> |
| 161 | + </configuration> |
| 162 | + </plugin> |
| 163 | + |
| 164 | + <plugin> |
| 165 | + <groupId>org.apache.maven.plugins</groupId> |
| 166 | + <artifactId>maven-dependency-plugin</artifactId> |
| 167 | + <executions> |
| 168 | + <execution> |
| 169 | + <id>copy</id> |
| 170 | + <phase>package</phase> |
| 171 | + <goals> |
| 172 | + <goal>copy-dependencies</goal> |
| 173 | + </goals> |
| 174 | + <configuration> |
| 175 | + <!--<!– ${project.build.directory} 构建目录,缺省为target –> --> |
| 176 | + <outputDirectory> |
| 177 | + ${project.build.directory}/lib |
| 178 | + </outputDirectory> |
| 179 | + </configuration> |
| 180 | + </execution> |
| 181 | + </executions> |
| 182 | + </plugin> |
| 183 | + |
| 184 | + <!-- The configuration of maven-assembly-plugin --> |
| 185 | + <!-- <plugin> |
| 186 | + <groupId>org.apache.maven.plugins</groupId> |
| 187 | + <artifactId>maven-assembly-plugin</artifactId> |
| 188 | + <version>2.4</version> |
| 189 | + <!– The configuration of the plugin –> |
| 190 | + <configuration> |
| 191 | + <!– Specifies the configuration file of the assembly plugin –> |
| 192 | + <descriptors> |
| 193 | + <descriptor>src/main/assembly/assembly.xml</descriptor> |
| 194 | + </descriptors> |
| 195 | + </configuration> |
| 196 | + <executions> |
| 197 | + <execution> |
| 198 | + <id>make-assembly</id> |
| 199 | + <phase>package</phase> |
| 200 | + <goals> |
| 201 | + <goal>single</goal> |
| 202 | + </goals> |
| 203 | + </execution> |
| 204 | + </executions> |
| 205 | + </plugin>--> |
114 | 206 |
|
115 | 207 | </plugins> |
116 | 208 | </build> |
|
0 commit comments