Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add pom and Mavenfile and revised readme

  • Loading branch information...
commit 5d8bdc10287bce27b57dac6ab95207bab8eb41fd 1 parent adf968f
Christian Meier authored March 15, 2011
1  demo/.gitignore
@@ -3,3 +3,4 @@ db/*.sqlite3
3 3
 log/*.log
4 4
 tmp/**/*
5 5
 Gemfile.lock
  6
+Gemfile.files
40  demo/Mavenfile
... ...
@@ -0,0 +1,40 @@
  1
+# -*- mode: ruby -*-
  2
+properties["jruby.plugins.version"] = '0.25.0'
  3
+
  4
+jar('junit:junit', '3.8.2').scope 'test'
  5
+
  6
+jar('org.seleniumhq.selenium.client-drivers:selenium-java-client-driver', '1.0.1').scope 'test'
  7
+
  8
+plugin('org.mortbay.jetty:jetty-maven-plugin') do |jetty|
  9
+  jetty.with(:stopKey => 'foo', :stopPort => 9999)
  10
+  jetty.in_phase('pre-integration-test').execute_goal('run').with(:daemon => true)
  11
+  jetty.in_phase('post-integration-test').execute_goal('stop')
  12
+end
  13
+
  14
+plugin('org.codehaus.mojo:selenium-maven-plugin', '1.1') do |selenium|
  15
+  selenium.in_phase('pre-integration-test').execute_goal("start-server").with(
  16
+     {
  17
+       :background => true, 
  18
+       :firefoxProfileTemplate => "${basedir}/src/test/resources/selenium" 
  19
+     })
  20
+end
  21
+
  22
+plugin('surefire', '2.6') do |surefire|
  23
+  # skip the test dring test phase
  24
+  surefire.with :skip => true
  25
+  # but execute them during integration-test phase
  26
+  surefire.in_phase('integration-test').execute_goal('test').with :skip => false
  27
+end
  28
+
  29
+execute_in_phase(:initialize) do
  30
+  require 'fileutils'
  31
+  
  32
+  if File.exists? 'pom.xml'
  33
+    pom_xml = File.new "pom.xml"
  34
+    pom = File.new "Gemfile.pom"
  35
+    out_of_date = pom_xml.mtime < pom.mtime
  36
+  else
  37
+    out_of_date = true
  38
+  end
  39
+  FileUtils.cp("Gemfile.pom", "pom.xml") if out_of_date
  40
+end
33  demo/README.textile
Source Rendered
... ...
@@ -1,48 +1,59 @@
1 1
 h1. Start the demo application
2 2
 
3  
-h2. with maven3 (jetty)
  3
+p. note: Gemfile.lock is not part of the git repository since it is platform dependent and can not be use for MRI and JRuby at the same time.
  4
+
  5
+h2. with maven3 (using jetty)
4 6
 
5 7
 bc. mvn rails3:rake -Dargs="db:setup"
6  
-mvn jetty:run -f Gemfile.pom
  8
+mvn jetty:run
7 9
 
8 10
 p. note: there is no need to have jruby, rubygems, rails installed !!!
9 11
 
10  
-h2. with ruby-maven gem (jetty)
  12
+h2. with ruby-maven gem (using jetty)
11 13
 
12  
-bc. jruby -S gem install ruby-maven --pre
  14
+bc. jruby -S gem install ruby-maven
13 15
 rmvn rake db:setup
14  
-rmvn jetty-run
  16
+rmvn jetty:run
15 17
 
16 18
 p. note: you need to have jruby installed but no rails or bundler !!!
17 19
 
18  
-h2. with jruby (webrick)
  20
+h2. with jruby (using webrick) without enforce-ssl 
19 21
 
20 22
 bc. jruby -S bundle install
21 23
 jruby -S rake db:setup
22 24
 jruby script/rails server
23 25
 
  26
+p. or with ruby-maven
  27
+
  28
+bc. rmvn rake db:setup
  29
+rmvn rails server
  30
+
  31
+p. enforce-ssl does not work since the server listens only on one port and it is kind of hacky to get SSL working
  32
+
24 33
 p. note: you to have jruby and bundler installed !!!
25 34
 
26  
-h2. with ruby (webrick)
  35
+h2. with ruby (using webrick) without enforce-ssl
27 36
 
28 37
 bc. bundle install
29 38
 rake db:setup
30 39
 script/rails server
31 40
 
  41
+p. enforce-ssl does not work since the server listens only on one port and it is kind of hacky to get SSL working
  42
+
32 43
 p. note: you to have bundler installed !!!
33 44
 
34 45
 h1. Run the integration test (selenium)
35 46
 
36  
-h2. with maven3 (jetty)
  47
+h2. with maven3
37 48
 
38 49
 bc. mvn rails3:rake -Dargs="db:setup"
39  
-mvn integration-test -f Gemfile.pom
  50
+mvn integration-test
40 51
 
41 52
 p. note: there is no need to have jruby, rubygems, rails installed !!!
42 53
 
43  
-h2. with ruby-maven gem (jetty)
  54
+h2. with ruby-maven
44 55
 
45  
-bc. jruby -S gem install ruby-maven --pre
  56
+bc. jruby -S gem install ruby-maven
46 57
 rmvn rake db:setup
47 58
 rmvn integration-test
48 59
 
547  demo/pom.xml
... ...
@@ -0,0 +1,547 @@
  1
+<project>
  2
+  <modelVersion>4.0.0</modelVersion>
  3
+  <groupId>rails</groupId>
  4
+  <artifactId>demo</artifactId>
  5
+  <version>0.0.0</version>
  6
+  <name><![CDATA[demo - rails application]]></name>
  7
+  <packaging>war</packaging>
  8
+  <repositories>
  9
+    <repository>
  10
+      <id>rubygems-releases</id>
  11
+      <url>http://gems.saumya.de/releases</url>
  12
+    </repository>
  13
+  </repositories>
  14
+  <dependencies>
  15
+    <dependency>
  16
+      <groupId>rubygems</groupId>
  17
+      <artifactId>rails</artifactId>
  18
+      <type>gem</type>
  19
+    </dependency>
  20
+    <dependency>
  21
+      <groupId>rubygems</groupId>
  22
+      <artifactId>actionmailer</artifactId>
  23
+      <type>gem</type>
  24
+    </dependency>
  25
+    <dependency>
  26
+      <groupId>rubygems</groupId>
  27
+      <artifactId>actionpack</artifactId>
  28
+      <type>gem</type>
  29
+    </dependency>
  30
+    <dependency>
  31
+      <groupId>rubygems</groupId>
  32
+      <artifactId>activemodel</artifactId>
  33
+      <type>gem</type>
  34
+    </dependency>
  35
+    <dependency>
  36
+      <groupId>rubygems</groupId>
  37
+      <artifactId>activesupport</artifactId>
  38
+      <type>gem</type>
  39
+    </dependency>
  40
+    <dependency>
  41
+      <groupId>rubygems</groupId>
  42
+      <artifactId>builder</artifactId>
  43
+      <type>gem</type>
  44
+    </dependency>
  45
+    <dependency>
  46
+      <groupId>rubygems</groupId>
  47
+      <artifactId>i18n</artifactId>
  48
+      <type>gem</type>
  49
+    </dependency>
  50
+    <dependency>
  51
+      <groupId>rubygems</groupId>
  52
+      <artifactId>erubis</artifactId>
  53
+      <type>gem</type>
  54
+    </dependency>
  55
+    <dependency>
  56
+      <groupId>rubygems</groupId>
  57
+      <artifactId>abstract</artifactId>
  58
+      <type>gem</type>
  59
+    </dependency>
  60
+    <dependency>
  61
+      <groupId>rubygems</groupId>
  62
+      <artifactId>rack</artifactId>
  63
+      <type>gem</type>
  64
+    </dependency>
  65
+    <dependency>
  66
+      <groupId>rubygems</groupId>
  67
+      <artifactId>rack-mount</artifactId>
  68
+      <type>gem</type>
  69
+    </dependency>
  70
+    <dependency>
  71
+      <groupId>rubygems</groupId>
  72
+      <artifactId>rack-test</artifactId>
  73
+      <type>gem</type>
  74
+    </dependency>
  75
+    <dependency>
  76
+      <groupId>rubygems</groupId>
  77
+      <artifactId>tzinfo</artifactId>
  78
+      <type>gem</type>
  79
+    </dependency>
  80
+    <dependency>
  81
+      <groupId>rubygems</groupId>
  82
+      <artifactId>mail</artifactId>
  83
+      <type>gem</type>
  84
+    </dependency>
  85
+    <dependency>
  86
+      <groupId>rubygems</groupId>
  87
+      <artifactId>mime-types</artifactId>
  88
+      <type>gem</type>
  89
+    </dependency>
  90
+    <dependency>
  91
+      <groupId>rubygems</groupId>
  92
+      <artifactId>treetop</artifactId>
  93
+      <type>gem</type>
  94
+    </dependency>
  95
+    <dependency>
  96
+      <groupId>rubygems</groupId>
  97
+      <artifactId>polyglot</artifactId>
  98
+      <type>gem</type>
  99
+    </dependency>
  100
+    <dependency>
  101
+      <groupId>rubygems</groupId>
  102
+      <artifactId>activerecord</artifactId>
  103
+      <type>gem</type>
  104
+    </dependency>
  105
+    <dependency>
  106
+      <groupId>rubygems</groupId>
  107
+      <artifactId>arel</artifactId>
  108
+      <type>gem</type>
  109
+    </dependency>
  110
+    <dependency>
  111
+      <groupId>rubygems</groupId>
  112
+      <artifactId>activeresource</artifactId>
  113
+      <type>gem</type>
  114
+    </dependency>
  115
+    <dependency>
  116
+      <groupId>rubygems</groupId>
  117
+      <artifactId>bundler</artifactId>
  118
+      <type>gem</type>
  119
+    </dependency>
  120
+    <dependency>
  121
+      <groupId>rubygems</groupId>
  122
+      <artifactId>railties</artifactId>
  123
+      <type>gem</type>
  124
+    </dependency>
  125
+    <dependency>
  126
+      <groupId>rubygems</groupId>
  127
+      <artifactId>rake</artifactId>
  128
+      <type>gem</type>
  129
+    </dependency>
  130
+    <dependency>
  131
+      <groupId>rubygems</groupId>
  132
+      <artifactId>thor</artifactId>
  133
+      <type>gem</type>
  134
+    </dependency>
  135
+    <dependency>
  136
+      <groupId>rubygems</groupId>
  137
+      <artifactId>activerecord-jdbc-adapter</artifactId>
  138
+      <type>gem</type>
  139
+    </dependency>
  140
+    <dependency>
  141
+      <groupId>rubygems</groupId>
  142
+      <artifactId>jdbc-sqlite3</artifactId>
  143
+      <type>gem</type>
  144
+    </dependency>
  145
+    <dependency>
  146
+      <groupId>rubygems</groupId>
  147
+      <artifactId>enforce-ssl</artifactId>
  148
+      <type>gem</type>
  149
+    </dependency>
  150
+    <dependency>
  151
+      <groupId>junit</groupId>
  152
+      <artifactId>junit</artifactId>
  153
+      <version>3.8.2</version>
  154
+      <scope>test</scope>
  155
+    </dependency>
  156
+    <dependency>
  157
+      <groupId>org.seleniumhq.selenium.client-drivers</groupId>
  158
+      <artifactId>selenium-java-client-driver</artifactId>
  159
+      <version>1.0.1</version>
  160
+      <scope>test</scope>
  161
+    </dependency>
  162
+    <dependency>
  163
+      <groupId>org.jruby</groupId>
  164
+      <artifactId>jruby-complete</artifactId>
  165
+      <version>1.5.6</version>
  166
+    </dependency>
  167
+    <dependency>
  168
+      <groupId>org.jruby.rack</groupId>
  169
+      <artifactId>jruby-rack</artifactId>
  170
+      <version>1.0.7</version>
  171
+    </dependency>
  172
+  </dependencies>
  173
+  <dependencyManagement>
  174
+    <dependencies>
  175
+      <dependency>
  176
+        <groupId>rubygems</groupId>
  177
+        <artifactId>abstract</artifactId>
  178
+        <version>1.0.0</version>
  179
+        <type>gem</type>
  180
+      </dependency>
  181
+      <dependency>
  182
+        <groupId>rubygems</groupId>
  183
+        <artifactId>actionmailer</artifactId>
  184
+        <version>3.0.0</version>
  185
+        <type>gem</type>
  186
+      </dependency>
  187
+      <dependency>
  188
+        <groupId>rubygems</groupId>
  189
+        <artifactId>actionpack</artifactId>
  190
+        <version>3.0.0</version>
  191
+        <type>gem</type>
  192
+      </dependency>
  193
+      <dependency>
  194
+        <groupId>rubygems</groupId>
  195
+        <artifactId>activemodel</artifactId>
  196
+        <version>3.0.0</version>
  197
+        <type>gem</type>
  198
+      </dependency>
  199
+      <dependency>
  200
+        <groupId>rubygems</groupId>
  201
+        <artifactId>activesupport</artifactId>
  202
+        <version>3.0.0</version>
  203
+        <type>gem</type>
  204
+      </dependency>
  205
+      <dependency>
  206
+        <groupId>rubygems</groupId>
  207
+        <artifactId>builder</artifactId>
  208
+        <version>2.1.2</version>
  209
+        <type>gem</type>
  210
+      </dependency>
  211
+      <dependency>
  212
+        <groupId>rubygems</groupId>
  213
+        <artifactId>i18n</artifactId>
  214
+        <version>0.4.2</version>
  215
+        <type>gem</type>
  216
+      </dependency>
  217
+      <dependency>
  218
+        <groupId>rubygems</groupId>
  219
+        <artifactId>erubis</artifactId>
  220
+        <version>2.6.6</version>
  221
+        <type>gem</type>
  222
+      </dependency>
  223
+      <dependency>
  224
+        <groupId>rubygems</groupId>
  225
+        <artifactId>rack</artifactId>
  226
+        <version>1.2.1</version>
  227
+        <type>gem</type>
  228
+      </dependency>
  229
+      <dependency>
  230
+        <groupId>rubygems</groupId>
  231
+        <artifactId>rack-mount</artifactId>
  232
+        <version>0.6.13</version>
  233
+        <type>gem</type>
  234
+      </dependency>
  235
+      <dependency>
  236
+        <groupId>rubygems</groupId>
  237
+        <artifactId>rack-test</artifactId>
  238
+        <version>0.5.6</version>
  239
+        <type>gem</type>
  240
+      </dependency>
  241
+      <dependency>
  242
+        <groupId>rubygems</groupId>
  243
+        <artifactId>tzinfo</artifactId>
  244
+        <version>0.3.23</version>
  245
+        <type>gem</type>
  246
+      </dependency>
  247
+      <dependency>
  248
+        <groupId>rubygems</groupId>
  249
+        <artifactId>mail</artifactId>
  250
+        <version>2.2.9</version>
  251
+        <type>gem</type>
  252
+      </dependency>
  253
+      <dependency>
  254
+        <groupId>rubygems</groupId>
  255
+        <artifactId>mime-types</artifactId>
  256
+        <version>1.16</version>
  257
+        <type>gem</type>
  258
+      </dependency>
  259
+      <dependency>
  260
+        <groupId>rubygems</groupId>
  261
+        <artifactId>treetop</artifactId>
  262
+        <version>1.4.8</version>
  263
+        <type>gem</type>
  264
+      </dependency>
  265
+      <dependency>
  266
+        <groupId>rubygems</groupId>
  267
+        <artifactId>polyglot</artifactId>
  268
+        <version>0.3.1</version>
  269
+        <type>gem</type>
  270
+      </dependency>
  271
+      <dependency>
  272
+        <groupId>rubygems</groupId>
  273
+        <artifactId>activerecord</artifactId>
  274
+        <version>3.0.0</version>
  275
+        <type>gem</type>
  276
+      </dependency>
  277
+      <dependency>
  278
+        <groupId>rubygems</groupId>
  279
+        <artifactId>arel</artifactId>
  280
+        <version>1.0.1</version>
  281
+        <type>gem</type>
  282
+      </dependency>
  283
+      <dependency>
  284
+        <groupId>rubygems</groupId>
  285
+        <artifactId>activerecord-jdbc-adapter</artifactId>
  286
+        <version>1.0.2</version>
  287
+        <type>gem</type>
  288
+      </dependency>
  289
+      <dependency>
  290
+        <groupId>rubygems</groupId>
  291
+        <artifactId>activeresource</artifactId>
  292
+        <version>3.0.0</version>
  293
+        <type>gem</type>
  294
+      </dependency>
  295
+      <dependency>
  296
+        <groupId>rubygems</groupId>
  297
+        <artifactId>enforce-ssl</artifactId>
  298
+        <version>0.1.0</version>
  299
+        <type>gem</type>
  300
+      </dependency>
  301
+      <dependency>
  302
+        <groupId>rubygems</groupId>
  303
+        <artifactId>jdbc-sqlite3</artifactId>
  304
+        <version>3.6.14.2.056</version>
  305
+        <type>gem</type>
  306
+      </dependency>
  307
+      <dependency>
  308
+        <groupId>rubygems</groupId>
  309
+        <artifactId>rails</artifactId>
  310
+        <version>3.0.0</version>
  311
+        <type>gem</type>
  312
+      </dependency>
  313
+      <dependency>
  314
+        <groupId>rubygems</groupId>
  315
+        <artifactId>bundler</artifactId>
  316
+        <version>[1.0.0, 1.0.99999]</version>
  317
+        <type>gem</type>
  318
+      </dependency>
  319
+      <dependency>
  320
+        <groupId>rubygems</groupId>
  321
+        <artifactId>railties</artifactId>
  322
+        <version>3.0.0</version>
  323
+        <type>gem</type>
  324
+      </dependency>
  325
+      <dependency>
  326
+        <groupId>rubygems</groupId>
  327
+        <artifactId>rake</artifactId>
  328
+        <version>0.8.7</version>
  329
+        <type>gem</type>
  330
+      </dependency>
  331
+      <dependency>
  332
+        <groupId>rubygems</groupId>
  333
+        <artifactId>thor</artifactId>
  334
+        <version>0.14.3</version>
  335
+        <type>gem</type>
  336
+      </dependency>
  337
+    </dependencies>
  338
+  </dependencyManagement>
  339
+  <properties>
  340
+    <gem.home>${project.build.directory}/rubygems</gem.home>
  341
+    <gem.path>${project.build.directory}/rubygems</gem.path>
  342
+    <jetty.version>7.2.2.v20101205</jetty.version>
  343
+    <jruby.plugins.version>0.25.0</jruby.plugins.version>
  344
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  345
+    <rails.env>development</rails.env>
  346
+  </properties>
  347
+  <build>
  348
+    <plugins>
  349
+      <plugin>
  350
+        <groupId>org.mortbay.jetty</groupId>
  351
+        <artifactId>jetty-maven-plugin</artifactId>
  352
+        <configuration>
  353
+          <stopKey>foo</stopKey>
  354
+          <stopPort>9999</stopPort>
  355
+        </configuration>
  356
+        <executions>
  357
+          <execution>
  358
+            <id>in_phase_pre_integration_test</id>
  359
+            <phase>pre-integration-test</phase>
  360
+            <goals>
  361
+              <goal>run</goal>
  362
+            </goals>
  363
+            <configuration>
  364
+              <daemon>true</daemon>
  365
+            </configuration>
  366
+          </execution>
  367
+          <execution>
  368
+            <id>in_phase_post_integration_test</id>
  369
+            <phase>post-integration-test</phase>
  370
+            <goals>
  371
+              <goal>stop</goal>
  372
+            </goals>
  373
+          </execution>
  374
+        </executions>
  375
+      </plugin>
  376
+      <plugin>
  377
+        <groupId>org.codehaus.mojo</groupId>
  378
+        <artifactId>selenium-maven-plugin</artifactId>
  379
+        <version>1.1</version>
  380
+        <executions>
  381
+          <execution>
  382
+            <id>in_phase_pre_integration_test</id>
  383
+            <phase>pre-integration-test</phase>
  384
+            <goals>
  385
+              <goal>start-server</goal>
  386
+            </goals>
  387
+            <configuration>
  388
+              <background>true</background>
  389
+              <firefoxProfileTemplate>${basedir}/src/test/resources/selenium</firefoxProfileTemplate>
  390
+            </configuration>
  391
+          </execution>
  392
+        </executions>
  393
+      </plugin>
  394
+      <plugin>
  395
+        <artifactId>maven-surefire-plugin</artifactId>
  396
+        <version>2.6</version>
  397
+        <configuration>
  398
+          <skip>true</skip>
  399
+        </configuration>
  400
+        <executions>
  401
+          <execution>
  402
+            <id>in_phase_integration_test</id>
  403
+            <phase>integration-test</phase>
  404
+            <goals>
  405
+              <goal>test</goal>
  406
+            </goals>
  407
+            <configuration>
  408
+              <skip>false</skip>
  409
+            </configuration>
  410
+          </execution>
  411
+        </executions>
  412
+      </plugin>
  413
+      <plugin>
  414
+        <groupId>de.saumya.mojo</groupId>
  415
+        <artifactId>gem-maven-plugin</artifactId>
  416
+        <version>${jruby.plugins.version}</version>
  417
+        <extensions>true</extensions>
  418
+        <executions>
  419
+          <execution>
  420
+            <id>in_phase_initialize</id>
  421
+            <phase>initialize</phase>
  422
+            <goals>
  423
+              <goal>execute_in_phase</goal>
  424
+            </goals>
  425
+            <configuration>
  426
+              <file>${basedir}/Mavenfile</file>
  427
+              <phase>initialize</phase>
  428
+            </configuration>
  429
+          </execution>
  430
+        </executions>
  431
+      </plugin>
  432
+      <plugin>
  433
+        <groupId>de.saumya.mojo</groupId>
  434
+        <artifactId>rails3-maven-plugin</artifactId>
  435
+        <version>${jruby.plugins.version}</version>
  436
+        <extensions>true</extensions>
  437
+        <executions>
  438
+          <execution>
  439
+            <id>initialize</id>
  440
+            <goals>
  441
+              <goal>initialize</goal>
  442
+            </goals>
  443
+          </execution>
  444
+        </executions>
  445
+      </plugin>
  446
+      <plugin>
  447
+        <artifactId>maven-war-plugin</artifactId>
  448
+        <version>2.1.1</version>
  449
+        <configuration>
  450
+          <webResources>
  451
+            <resource>
  452
+              <directory>public</directory>
  453
+            </resource>
  454
+            <resource>
  455
+              <directory>.</directory>
  456
+              <includes>
  457
+                <include>app/**</include>
  458
+                <include>config/**</include>
  459
+                <include>lib/**</include>
  460
+                <include>vendor/**</include>
  461
+                <include>Gemfile</include>
  462
+              </includes>
  463
+              <targetPath>WEB-INF</targetPath>
  464
+            </resource>
  465
+            <resource>
  466
+              <directory>${gem.path}</directory>
  467
+              <targetPath>WEB-INF/gems</targetPath>
  468
+            </resource>
  469
+          </webResources>
  470
+        </configuration>
  471
+      </plugin>
  472
+    </plugins>
  473
+  </build>
  474
+  <profiles>
  475
+    <profile>
  476
+      <id>development</id>
  477
+      <activation>
  478
+        <activeByDefault>true</activeByDefault>
  479
+      </activation>
  480
+    </profile>
  481
+    <profile>
  482
+      <id>test</id>
  483
+      <activation>
  484
+        <property>
  485
+          <name>rails.env</name>
  486
+          <value>test</value>
  487
+        </property>
  488
+      </activation>
  489
+    </profile>
  490
+    <profile>
  491
+      <id>production</id>
  492
+      <activation>
  493
+        <property>
  494
+          <name>rails.env</name>
  495
+          <value>production</value>
  496
+        </property>
  497
+      </activation>
  498
+      <properties>
  499
+        <gem.home>${project.build.directory}/rubygems-production</gem.home>
  500
+        <gem.path>${project.build.directory}/rubygems-production</gem.path>
  501
+      </properties>
  502
+    </profile>
  503
+    <profile>
  504
+      <id>war</id>
  505
+      <build>
  506
+        <plugins>
  507
+          <plugin>
  508
+            <groupId>org.mortbay.jetty</groupId>
  509
+            <artifactId>jetty-maven-plugin</artifactId>
  510
+            <version>${jetty.version}</version>
  511
+          </plugin>
  512
+        </plugins>
  513
+      </build>
  514
+    </profile>
  515
+    <profile>
  516
+      <id>run</id>
  517
+      <activation>
  518
+        <activeByDefault>true</activeByDefault>
  519
+      </activation>
  520
+      <build>
  521
+        <plugins>
  522
+          <plugin>
  523
+            <groupId>org.mortbay.jetty</groupId>
  524
+            <artifactId>jetty-maven-plugin</artifactId>
  525
+            <version>${jetty.version}</version>
  526
+            <configuration>
  527
+              <connectors>
  528
+		<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
  529
+		  <port>8080</port>
  530
+		</connector>
  531
+		<connector implementation="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
  532
+		  <port>8443</port>
  533
+		  <keystore>${project.basedir}/src/test/resources/server.keystore</keystore>
  534
+		  <keyPassword>123456</keyPassword>
  535
+		  <password>123456</password>
  536
+		</connector>
  537
+              </connectors>
  538
+              <webAppConfig>
  539
+                <overrideDescriptor>${project.build.directory}/jetty/override-${rails.env}-web.xml</overrideDescriptor>
  540
+              </webAppConfig>
  541
+            </configuration>
  542
+          </plugin>
  543
+        </plugins>
  544
+      </build>
  545
+    </profile>
  546
+  </profiles>
  547
+</project>

0 notes on commit 5d8bdc1

Please sign in to comment.
Something went wrong with that request. Please try again.