File tree Expand file tree Collapse file tree 4 files changed +33
-69
lines changed Expand file tree Collapse file tree 4 files changed +33
-69
lines changed Original file line number Diff line number Diff line change 10
10
11
11
* See: https://www.gwtproject.org/makinggwtbetter.html#webpage
12
12
13
+ ## Requirements
14
+ [ Apache Maven] ( http://maven.apache.org ) 3.8 or greater, and JDK 11+ in order to run.
15
+
13
16
## Building
14
17
15
18
If you have Grunt installed :
16
19
* build the assets using Grunt: ` grunt `
17
20
* then run: ` mvn clean install `
18
- * after that you will find the generated documentation in ` target/generated-site/ ` .
21
+ * after that you will find the generated documentation in ` content/ target/generated-site/` .
19
22
20
23
If you don't have Grunt installer :
21
24
* build the assets using Maven and Grunt plugin: ` mvn clean install -Pgrunt `
22
- * after that you will find the generated documentation in ` target/generated-site/ ` .
25
+ * after that you will find the generated documentation in ` content/ target/generated-site/` .
23
26
24
27
### Running locally
25
28
Run the site locally for easy visual testing
26
29
27
30
Run without server:
28
- * Change to the ` target/generated-site ` folder.
31
+ * Change to the ` content/ target/generated-site` folder.
29
32
* Open the ` index.html ` file in your browser.
30
33
31
34
Run with Maven:
32
- * Run: ` mvn jetty:run `
35
+ * Run: ` mvn -pl content jetty:run `
33
36
* Open URL ` http://localhost:9999 ` in your browser.
37
+
38
+ # gwt-site-webapp
39
+
40
+
Original file line number Diff line number Diff line change 113
113
<outputDirectory >${project.build.directory} /generated-site/javadoc/latest</outputDirectory >
114
114
</configuration >
115
115
</execution >
116
+ <execution >
117
+ <id >unpack-dependencies</id >
118
+ <phase >prepare-package</phase >
119
+ <goals >
120
+ <goal >unpack-dependencies</goal >
121
+ </goals >
122
+ <configuration >
123
+ <includeGroupIds >org.gwtproject.site</includeGroupIds >
124
+ <includeArtifactIds >gwt-site-webapp</includeArtifactIds >
125
+ <excludeTransitive >true</excludeTransitive >
126
+ <outputDirectory >${project.build.directory} /generated-site/</outputDirectory >
127
+ </configuration >
128
+ </execution >
116
129
</executions >
117
130
</plugin >
118
131
<plugin >
175
188
<artifactId >commons-io</artifactId >
176
189
<version >2.7</version >
177
190
</dependency >
191
+ <dependency >
192
+ <groupId >org.gwtproject.site</groupId >
193
+ <artifactId >gwt-site-webapp</artifactId >
194
+ <version >${project.version} </version >
195
+ <type >war</type >
196
+ <!-- <classifier>compiled-js</classifier> -->
197
+ </dependency >
178
198
</dependencies >
179
-
180
199
<profiles >
181
200
<profile >
182
201
<id >grunt</id >
Original file line number Diff line number Diff line change 62
62
<directory >${basedir} /src/test/java</directory >
63
63
</testResource >
64
64
</testResources >
65
-
65
+ < finalName >compiled-js</ finalName >
66
66
<plugins >
67
67
<plugin >
68
68
<groupId >org.apache.maven.plugins</groupId >
133
133
</plugin >
134
134
</plugins >
135
135
</build >
136
- <profiles >
137
- <profile >
138
- <!--
139
- Generates a full working site for testing, by unpacking the
140
- markdown along with this project's own output.
141
- -->
142
- <id >full-site</id >
143
- <dependencies >
144
- <dependency >
145
- <groupId >com.google.gwt.site</groupId >
146
- <artifactId >gwt-site</artifactId >
147
- <version >${project.version} </version >
148
- <type >zip</type >
149
- <classifier >generated-site</classifier >
150
- </dependency >
151
- </dependencies >
152
- <build >
153
- <plugins >
154
- <plugin >
155
- <artifactId >maven-dependency-plugin</artifactId >
156
- <executions >
157
- <execution >
158
- <id >unpack-dependencies</id >
159
- <phase >prepare-package</phase >
160
- <goals >
161
- <goal >unpack-dependencies</goal >
162
- </goals >
163
- <configuration >
164
- <includeGroupIds >com.google.gwt.site</includeGroupIds >
165
- <includeArtifactIds >gwt-site</includeArtifactIds >
166
- <excludeTransitive >true</excludeTransitive >
167
- <outputDirectory >${project.build.directory} /www/</outputDirectory >
168
- </configuration >
169
- </execution >
170
- </executions >
171
- </plugin >
172
- <plugin >
173
- <artifactId >maven-resources-plugin</artifactId >
174
- <executions >
175
- <execution >
176
- <!-- Along with the dependency:unpack-dependencies, this generates a complete site to test with -->
177
- <id >copy-www-resources</id >
178
- <phase >prepare-package</phase >
179
- <goals >
180
- <goal >copy-resources</goal >
181
- </goals >
182
- <configuration >
183
- <outputDirectory >${project.build.directory} /www/</outputDirectory >
184
- <resources >
185
- <resource >
186
- <directory >${project.build.directory} /${project.build.finalName} /</directory >
187
- </resource >
188
- </resources >
189
- </configuration >
190
- </execution >
191
- </executions >
192
- </plugin >
193
- </plugins >
194
- </build >
195
- </profile >
196
- </profiles >
197
136
</project >
Original file line number Diff line number Diff line change 8
8
<entry-point class =" com.google.gwt.site.webapp.client.GWTProjectEntryPoint" />
9
9
<add-linker name =" xsiframe" />
10
10
<set-property name =" compiler.useSourceMaps" value =" true" />
11
- <!-- change to localhost for development -->
12
11
<set-configuration-property name =" includeSourceMapUrl"
13
- value =" https://www.gwtproject.org /src/__HASH___sourceMap__FRAGMENT__.json" />
12
+ value =" /src/__HASH___sourceMap__FRAGMENT__.json" />
14
13
15
14
<set-configuration-property name =" installCode" value =" false" />
16
15
<!-- remove after fix to issue 8630 lands -->
You can’t perform that action at this time.
0 commit comments