Подготовка к работе отдельно от IDE
This commit is contained in:
27
pom.xml
27
pom.xml
@@ -189,6 +189,33 @@
|
|||||||
<argLine>-Dfile.encoding=${project.build.sourceEncoding}</argLine>
|
<argLine>-Dfile.encoding=${project.build.sourceEncoding}</argLine>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
<version>2.4</version>
|
||||||
|
<configuration>
|
||||||
|
<archive>
|
||||||
|
<manifest>
|
||||||
|
<addClasspath>true</addClasspath>
|
||||||
|
<classpathPrefix>dependency/</classpathPrefix>
|
||||||
|
</manifest>
|
||||||
|
</archive>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
<version>2.8</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>copy-dependencies</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-dependencies</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|||||||
@@ -12,8 +12,10 @@
|
|||||||
<property name="locations">
|
<property name="locations">
|
||||||
<list>
|
<list>
|
||||||
<value>classpath:application.properties</value>
|
<value>classpath:application.properties</value>
|
||||||
|
<value>file:application.properties</value>
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="ignoreUnresolvablePlaceholders" value="true"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<mongo:mongo id="mongo" host="${mongo.host}" port="${mongo.port}"/>
|
<mongo:mongo id="mongo" host="${mongo.host}" port="${mongo.port}"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user