Skip to content

Commit

Permalink
version1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamsunday committed Dec 5, 2014
1 parent 55f63de commit 35dcce9
Show file tree
Hide file tree
Showing 7 changed files with 620 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
2 changes: 2 additions & 0 deletions maven clean.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
set MAVEN_OPTS=%MAVEN_OPTS% -XX:MaxPermSize=128m
mvn jetty:stop clean
2 changes: 2 additions & 0 deletions maven install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
set MAVEN_OPTS=%MAVEN_OPTS% -XX:MaxPermSize=128m
mvn jetty:stop clean install -U
2 changes: 2 additions & 0 deletions maven jetty run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
set MAVEN_OPTS=%MAVEN_OPTS% -XX:MaxPermSize=128m
mvn jetty:stop jetty:run
2 changes: 2 additions & 0 deletions maven jetty stop.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
set MAVEN_OPTS=%MAVEN_OPTS% -XX:MaxPermSize=128m
mvn jetty:stop
72 changes: 70 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,75 @@
</dependencies>

<build>
<finalName>SSH</finalName>
</build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<target>1.7</target>
<resource>1.7</resource>
</configuration>
</plugin>
<!-- 将源码打成jar包 -->
<plugin>
<artifactId>maven-source-plugin</artifactId>
<configuration>
<attach>true</attach>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<!-- 编译jar包 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
</plugin>

<!-- 配置Maven插件(mvn jetty:run可以运行项目) -->
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.1.0.RC1</version>
<configuration>
<!-- 指定访问端口 -->
<httpConnector>
<port>9999</port>
</httpConnector>
<!-- 间隔x扫描一次,实现热部署 -->
<scanIntervalSeconds>3</scanIntervalSeconds>
<!-- 编写类文件之后,是否自动重启jetty;可选后面两个值[manual|automatic] -->
<reload>manual</reload>
<!-- 指定关闭端口 -->
<stopPort>9998</stopPort>
<stopKey>stop-jetty-for-it</stopKey>
<webApp>
<!-- 指定项目路径(如果不写,则按照pom.xml里面的artifactId属性值配置),访问路径为http://localhost:9999/oa -->
<!-- 配置<contextPath>/Somnus</contextPath>,则访问路径为http://localhost:9999/oa -->
<!-- 配置<contextPath>/</contextPath>,则访问路径为http://localhost:9999 -->
<contextPath>/SSH</contextPath>
<!-- 更改jetty默认webdefault.xml文件,主要修改了useFileMappedBuffer属性为false,使其不锁定静态文件 -->
<!-- 此文件在C盘\用户目录\.m2\repository\org\eclipse\jetty\jetty-webapp\9.1.0.RC1\找到jar包,打开jar包目录org\eclipse\jetty\webapp\目录中 -->
<defaultsDescriptor>webdefault.xml</defaultsDescriptor>
</webApp>
</configuration>
</plugin>
</plugins>
</build>

</project>
Loading

0 comments on commit 35dcce9

Please sign in to comment.