Skip to content

Commit

Permalink
JavaEE Enterprise Basic Development Platform
Browse files Browse the repository at this point in the history
New version 4.4.0-RELEASE_fixed.3 release!

# Add `Maven local artifact install` #11
  • Loading branch information
ushelp committed Jan 17, 2018
1 parent 718a24b commit cbaf63d
Show file tree
Hide file tree
Showing 77 changed files with 352 additions and 535 deletions.
132 changes: 74 additions & 58 deletions .readme.md.html
Original file line number Diff line number Diff line change
Expand Up @@ -735,67 +735,83 @@ <h4> <a id="develop-documentation开发文档-4" class="anchor" href="#develop-d
<h2> <a id="run运行" class="anchor" href="#run%E8%BF%90%E8%A1%8C" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Run/运行</h2>
<h3> <a id="中文" class="anchor" href="#%E4%B8%AD%E6%96%87" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>中文</h3>
<ol>
<li>运行环境</li>
</ol>
<ul>
<li>JDK 7+</li>
<li>Oracle / MySQL 5.7</li>
<li>Maven 3+</li>
</ul>
<ol start="2">
<li> <p>创建数据库</p> <p>执行相应 SQL 脚本 <code>database\DATABASE_easyee_LANGUAGE[_COUNTRY].sql</code></p> </li>
</ol>
<ul>
<li> <p>MySQL</p>
<div class="highlight highlight-source-sql">
<pre>mysql<span class="pl-k">&gt;</span> source MySQL_easyee_LANGUAGE[_COUNTRY].sql</pre>
</div> </li>
<li> <p>Oracle(<strong>代码默认基于 MySQL基于 Oracle 需要手动修改实体主键生成策略</strong>)</p>
<div class="highlight highlight-source-sql">
<pre>SQL<span class="pl-k">&gt;</span> start Oracle_easyee_LANGUAGE[_COUNTRY].sql</pre>
</div> </li>
</ul>
<ol start="3">
<li> <p>编辑 JDBC 数据库连接配置参数</p> <p>Spring Boot: <code>src/main/resources/application.properties</code></p> <p>Non-Spring Boot: <code>src/main/resources/db.properties</code></p> </li>
<li> <p>启动</p> <p>执行 <code>startup.bat</code>/<code>startup.sh</code></p> </li>
</ol>
<blockquote>
<p>Spring Boot: <code>mvn compile spring-boot:run</code></p>
<p>Non-Spring Boot: <code>mvn jetty:run</code></p>
</blockquote>
<ol start="5">
<li> <p>访问( jetty HTTP 端口 <code>9999</code>)</p> <p><a href="http://localhost:9999/" rel="nofollow">http://localhost:9999/</a></p> <p>最高管理员用户名: <code>admin</code></p> <p>密码: <code>admin123</code></p> </li>
<li> <p>运行环境</p>
<ul>
<li>JDK 7+</li>
<li>Oracle / MySQL 5.7</li>
<li>Maven 3+</li>
</ul> </li>
<li> <p>安装 <code>Maven local artifact install/</code> 下的 Maven 本地库</p>
<ul>
<li>Windows: <code>install.bat</code> </li>
<li>Linux: <code>install.sh</code> </li>
</ul> </li>
<li> <p>创建数据库</p> <p>执行相应 SQL 脚本 <code>database\DATABASE_easyee_LANGUAGE[_COUNTRY].sql</code></p>
<ul>
<li> <p>MySQL</p>
<div class="highlight highlight-source-sql">
<pre>mysql<span class="pl-k">&gt;</span> source MySQL_easyee_LANGUAGE[_COUNTRY].sql</pre>
</div> </li>
<li> <p>Oracle(<strong>代码默认基于 MySQL基于 Oracle 需要手动修改实体主键生成策略</strong>)</p>
<div class="highlight highlight-source-sql">
<pre>SQL<span class="pl-k">&gt;</span> start Oracle_easyee_LANGUAGE[_COUNTRY].sql</pre>
</div> </li>
</ul> </li>
<li> <p>编辑 JDBC 数据库连接配置参数</p>
<ul>
<li> <p>Spring Boot: <code>src/main/resources/application.properties</code></p> </li>
<li> <p>Non-Spring Boot: <code>src/main/resources/db.properties</code></p> </li>
</ul> </li>
<li> <p>启动</p>
<ul>
<li> <p>执行 <code>startup.bat</code>/<code>startup.sh</code></p> </li>
<li> <p>或者</p>
<ul>
<li>Spring Boot: <code>mvn compile spring-boot:run</code> </li>
<li>Non-Spring Boot: <code>mvn jetty:run</code>,<code>mvn tomcat7:run</code> </li>
</ul> </li>
</ul> </li>
<li> <p>访问( Jetty HTTP 端口 <code>9999</code>, Tomcat 端口 <code>8080</code>)</p> <p><a href="http://localhost:9999/" rel="nofollow">http://localhost:9999/</a></p> <p>最高管理员用户名: <code>admin</code></p> <p>密码: <code>admin123</code></p> </li>
</ol>
<h3> <a id="english" class="anchor" href="#english" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>English</h3>
<ol>
<li>Run Enviroment</li>
</ol>
<ul>
<li>JDK 7+</li>
<li>Oracle / MySQL 5.7</li>
<li>Maven 3+</li>
</ul>
<ol start="2">
<li> <p>Create database</p> <p>execute <code>database\DATABASE_easyee_LANGUAGE[_COUNTRY].sql</code></p> </li>
</ol>
<ul>
<li> <p>MySQL</p>
<div class="highlight highlight-source-sql">
<pre>mysql<span class="pl-k">&gt;</span> source MySQL_easyee_LANGUAGE[_COUNTRY].sql</pre>
</div> </li>
<li> <p>Oracle (<strong>The code default use MySQL, If want to run with Oracle need modify entity primary key generator</strong>)</p>
<div class="highlight highlight-source-sql">
<pre>SQL<span class="pl-k">&gt;</span> start Oracle_easyee_LANGUAGE[_COUNTRY].sql</pre>
</div> </li>
</ul>
<ol start="3">
<li> <p>Edit jdbc properties</p> <p>Spring Boot: <code>src/main/resources/application.properties</code></p> <p>Non-Spring Boot: <code>src/main/resources/db.properties</code></p> </li>
<li> <p>Start</p> <p>Run <code>startup.bat</code>/<code>startup.sh</code></p>
<blockquote>
<p>Spring Boot: <code>mvn compile spring-boot:run</code></p>
<p>Non-Spring Boot: <code>mvn jetty:run</code></p>
</blockquote> </li>
<li> <p>Visit( jetty HTTP port <code>9999</code>)</p> <p><a href="http://localhost:9999/" rel="nofollow">http://localhost:9999/</a></p> <p>Username: <code>admin</code></p> <p>Password: <code>admin123</code></p> </li>
<li> <p>Run Enviroment</p>
<ul>
<li>JDK 7+</li>
<li>Oracle / MySQL 5.7</li>
<li>Maven 3+</li>
</ul> </li>
<li> <p>Execute <code>Maven local artifact install/</code></p>
<ul>
<li>Windows: <code>install.bat</code> </li>
<li>Linux: <code>install.sh</code> </li>
</ul> </li>
<li> <p>Create database</p> <p>execute <code>database\DATABASE_easyee_LANGUAGE[_COUNTRY].sql</code></p>
<ul>
<li> <p>MySQL</p>
<div class="highlight highlight-source-sql">
<pre>mysql<span class="pl-k">&gt;</span> source MySQL_easyee_LANGUAGE[_COUNTRY].sql</pre>
</div> </li>
<li> <p>Oracle (<strong>The code default use MySQL, If want to run with Oracle need modify entity primary key generator</strong>)</p>
<div class="highlight highlight-source-sql">
<pre>SQL<span class="pl-k">&gt;</span> start Oracle_easyee_LANGUAGE[_COUNTRY].sql</pre>
</div> </li>
</ul> </li>
<li> <p>Edit jdbc properties</p>
<ul>
<li> <p>Spring Boot: <code>src/main/resources/application.properties</code></p> </li>
<li> <p>Non-Spring Boot: <code>src/main/resources/db.properties</code></p> </li>
</ul> </li>
<li> <p>Start</p>
<ul>
<li> <p>Run <code>startup.bat</code>/<code>startup.sh</code></p> </li>
<li> <p>Or</p>
<ul>
<li>Spring Boot: <code>mvn compile spring-boot:run</code> </li>
<li>Non-Spring Boot: <code>mvn jetty:run</code>,<code>mvn tomcat7:run</code> </li>
</ul> </li>
</ul> </li>
<li> <p>Visit( Jetty HTTP port <code>9999</code>, Tomcat HTTP port <code>8080</code>)</p> <p><a href="http://localhost:9999/" rel="nofollow">http://localhost:9999/</a></p> <p>Username: <code>admin</code></p> <p>Password: <code>admin123</code></p> </li>
</ol>
<h2> <a id="monitoring监控" class="anchor" href="#monitoring%E7%9B%91%E6%8E%A7" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Monitoring/监控</h2>
<p><a href="https://github.com/javamelody/javamelody/wiki">JavaMelody</a> based performance monitoring, <strong>Must log in EasyEE first</strong>.</p>
Expand Down
12 changes: 12 additions & 0 deletions Maven local artifact install/install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@echo off
echo 1. Install CKFinderPlugin-FileEditor...
call mvn install:install-file -Dfile=CKFinderPlugin-FileEditor-2.6.2.1.jar -DgroupId=com.ckfinder -DartifactId=CKFinderPlugin-FileEditor -Dversion=2.6.2.1 -Dpackaging=jar
echo 2. Install CKFinderPlugin-ImageResize...
call mvn install:install-file -Dfile=CKFinderPlugin-ImageResize-2.6.2.1.jar -DgroupId=com.ckfinder -DartifactId=CKFinderPlugin-ImageResize -Dversion=2.6.2.1 -Dpackaging=jar
echo 3. Install CKFinderPlugin-Watermark...
call mvn install:install-file -Dfile=CKFinderPlugin-Watermark-2.6.2.1.jar -DgroupId=com.ckfinder -DartifactId=CKFinderPlugin-Watermark -Dversion=2.6.2.1 -Dpackaging=jar
echo 4. Install CKFinder...
call mvn install:install-file -Dfile=CKFinder-2.6.2.1.jar -DgroupId=com.ckfinder -DartifactId=CKFinder -Dversion=2.6.2.1 -Dpackaging=jar

echo Install all success!
pause
13 changes: 13 additions & 0 deletions Maven local artifact install/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
echo 1. Install CKFinderPlugin-FileEditor...
mvn install:install-file -Dfile=CKFinderPlugin-FileEditor-2.6.2.1.jar -DgroupId=com.ckfinder -DartifactId=CKFinderPlugin-FileEditor -Dversion=2.6.2.1 -Dpackaging=jar

echo 2. Install CKFinderPlugin-ImageResize...
mvn install:install-file -Dfile=CKFinderPlugin-ImageResize-2.6.2.1.jar -DgroupId=com.ckfinder -DartifactId=CKFinderPlugin-ImageResize -Dversion=2.6.2.1 -Dpackaging=jar

echo 3. Install CKFinderPlugin-Watermark...
mvn install:install-file -Dfile=CKFinderPlugin-Watermark-2.6.2.1.jar -DgroupId=com.ckfinder -DartifactId=CKFinderPlugin-Watermark -Dversion=2.6.2.1 -Dpackaging=jar

echo 4. Install CKFinder...
mvn install:install-file -Dfile=CKFinder-2.6.2.1.jar -DgroupId=com.ckfinder -DartifactId=CKFinder -Dversion=2.6.2.1 -Dpackaging=jar

echo Install all success!
47 changes: 0 additions & 47 deletions project/easyee-sh-springboot/.classpath

This file was deleted.

24 changes: 23 additions & 1 deletion project/easyee-sh-springboot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
<itext.version>2.1.7</itext.version>
<xstream.version>1.4.10</xstream.version>
<jrobin.version>1.5.9</jrobin.version>
<!-- CKFinder -->
<ckfinder.version>2.6.2.1</ckfinder.version>
<!-- Redis -->
<spring.data.redis.version>1.8.9.RELEASE</spring.data.redis.version>
<jedis.version>2.9.0</jedis.version>
Expand Down Expand Up @@ -138,7 +140,27 @@
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>

<!-- CKFinder -->
<dependency>
<groupId>com.ckfinder</groupId>
<artifactId>CKFinder</artifactId>
<version>${ckfinder.version}</version>
</dependency>
<dependency>
<groupId>com.ckfinder</groupId>
<artifactId>CKFinderPlugin-FileEditor</artifactId>
<version>${ckfinder.version}</version>
</dependency>
<dependency>
<groupId>com.ckfinder</groupId>
<artifactId>CKFinderPlugin-ImageResize</artifactId>
<version>${ckfinder.version}</version>
</dependency>
<dependency>
<groupId>com.ckfinder</groupId>
<artifactId>CKFinderPlugin-Watermark</artifactId>
<version>${ckfinder.version}</version>
</dependency>

<!-- Spring Boot devtools -->
<dependency>
Expand Down
24 changes: 23 additions & 1 deletion project/easyee-sh-springboot/pom_jar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
<itext.version>2.1.7</itext.version>
<xstream.version>1.4.10</xstream.version>
<jrobin.version>1.5.9</jrobin.version>
<!-- CKFinder -->
<ckfinder.version>2.6.2.1</ckfinder.version>
<!-- Redis -->
<spring.data.redis.version>1.8.9.RELEASE</spring.data.redis.version>
<jedis.version>2.9.0</jedis.version>
Expand Down Expand Up @@ -142,7 +144,27 @@
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>

<!-- CKFinder -->
<dependency>
<groupId>com.ckfinder</groupId>
<artifactId>CKFinder</artifactId>
<version>${ckfinder.version}</version>
</dependency>
<dependency>
<groupId>com.ckfinder</groupId>
<artifactId>CKFinderPlugin-FileEditor</artifactId>
<version>${ckfinder.version}</version>
</dependency>
<dependency>
<groupId>com.ckfinder</groupId>
<artifactId>CKFinderPlugin-ImageResize</artifactId>
<version>${ckfinder.version}</version>
</dependency>
<dependency>
<groupId>com.ckfinder</groupId>
<artifactId>CKFinderPlugin-Watermark</artifactId>
<version>${ckfinder.version}</version>
</dependency>

<!-- Spring Boot devtools -->
<dependency>
Expand Down
24 changes: 23 additions & 1 deletion project/easyee-sh-springboot/pom_war.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
<itext.version>2.1.7</itext.version>
<xstream.version>1.4.10</xstream.version>
<jrobin.version>1.5.9</jrobin.version>
<!-- CKFinder -->
<ckfinder.version>2.6.2.1</ckfinder.version>
<!-- Redis -->
<spring.data.redis.version>1.8.9.RELEASE</spring.data.redis.version>
<jedis.version>2.9.0</jedis.version>
Expand Down Expand Up @@ -149,7 +151,27 @@
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>

<!-- CKFinder -->
<dependency>
<groupId>com.ckfinder</groupId>
<artifactId>CKFinder</artifactId>
<version>${ckfinder.version}</version>
</dependency>
<dependency>
<groupId>com.ckfinder</groupId>
<artifactId>CKFinderPlugin-FileEditor</artifactId>
<version>${ckfinder.version}</version>
</dependency>
<dependency>
<groupId>com.ckfinder</groupId>
<artifactId>CKFinderPlugin-ImageResize</artifactId>
<version>${ckfinder.version}</version>
</dependency>
<dependency>
<groupId>com.ckfinder</groupId>
<artifactId>CKFinderPlugin-Watermark</artifactId>
<version>${ckfinder.version}</version>
</dependency>

<!-- Spring Boot devtools -->
<dependency>
Expand Down
Loading

0 comments on commit cbaf63d

Please sign in to comment.