[ 
https://issues.apache.org/jira/browse/HTRACE-246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14746837#comment-14746837
 ] 

Hudson commented on HTRACE-246:
-------------------------------

FAILURE: Integrated in HTrace-Master #79 (See 
[https://builds.apache.org/job/HTrace-Master/79/])
HTRACE-246. HTrace WebApp not properly defined and therefore not packaged into 
.war (Lewis John McGibbney via iwasakims) (iwasakims: rev 
05ce37fbc7b27183da3592e3e57e9d06ed09db7a)
* htrace-webapp/src/main/webapp/app/span.js
* htrace-webapp/src/main/web/lib/underscore-1.7.0.js
* htrace-webapp/src/main/webapp/app/tree.js
* htrace-webapp/src/main/webapp/app/search_result.js
* htrace-webapp/src/main/webapp/lib/bootstrap-3.3.1/css/bootstrap-theme.css
* htrace-webapp/src/main/web/app/time_cursor.js
* htrace-webapp/src/main/web/app/string.js
* htrace-webapp/src/main/webapp/app/time_cursor.js
* htrace-webapp/src/main/webapp/lib/bootstrap-3.3.1/css/bootstrap.css.map
* htrace-webapp/src/main/webapp/lib/bootstrap-3.3.1/js/bootstrap.min.js
* htrace-webapp/src/main/web/lib/bootstrap-3.3.1/js/bootstrap.js
* htrace-webapp/src/main/web/app/span_group_widget.js
* htrace-webapp/src/main/webapp/lib/bootstrap-3.3.1/js/bootstrap.js
* htrace-webapp/src/main/webapp/app/span_group_widget.js
* htrace-webapp/src/main/web/app/modal.js
* htrace-webapp/src/main/webapp/app/search_view.js
* htrace-webapp/src/main/web/app/tree.js
* htrace-webapp/src/main/webapp/lib/moment-2.10.3.js
* htrace-webapp/src/main/webapp/index.html
* htrace-webapp/src/main/web/lib/moment-2.10.3.js
* htrace-webapp/src/main/webapp/app/router.js
* htrace-webapp/src/main/webapp/app/predicate_view.js
* htrace-webapp/src/main/webapp/app/predicate.js
* htrace-webapp/src/main/web/app/span_widget.js
* htrace-webapp/src/main/web/image/owl.png
* htrace-webapp/src/main/web/app/predicate_view.js
* htrace-webapp/src/main/webapp/lib/jquery-2.1.4.js
* htrace-webapp/src/main/web/lib/bootstrap-3.3.1/js/npm.js
* htrace-webapp/src/main/webapp/app/search_results_view.js
* htrace-webapp/src/main/webapp/lib/bootstrap-3.3.1/css/bootstrap.css
* htrace-webapp/src/main/webapp/image/owl.png
* htrace-webapp/src/main/web/lib/bootstrap-3.3.1/css/bootstrap.css.map
* htrace-webapp/src/main/web/app/search_results.js
* htrace-webapp/src/main/web/app/search_results_view.js
* htrace-webapp/src/main/webapp/WEB-INF/web.xml
* htrace-webapp/src/main/webapp/lib/bootstrap-3.3.1/js/npm.js
* htrace-webapp/src/main/web/app/server_info.js
* htrace-webapp/src/main/webapp/app/query_results.js
* htrace-webapp/src/main/web/lib/bootstrap-3.3.1/js/bootstrap.min.js
* htrace-webapp/src/main/web/app/span_details_view.js
* htrace-webapp/src/main/web/lib/jquery-2.1.4.js
* htrace-webapp/src/main/webapp/app/string.js
* htrace-webapp/src/main/web/app/predicate.js
* htrace-webapp/src/main/webapp/lib/bootstrap-3.3.1/css/bootstrap-theme.css.map
* htrace-webapp/src/main/web/app/widget_manager.js
* htrace-webapp/src/main/webapp/app/server_info.js
* htrace-htraced/go/gobuild.sh
* htrace-webapp/src/main/web/app/about_view.js
* htrace-webapp/src/main/webapp/app/span_details_view.js
* htrace-webapp/src/main/web/app/span.js
* htrace-webapp/src/main/web/lib/backbone-1.1.2.js
* htrace-webapp/src/main/webapp/app/partition_widget.js
* htrace-webapp/src/main/web/index.html
* htrace-webapp/src/main/web/lib/bootstrap-3.3.1/css/bootstrap-theme.css.map
* htrace-webapp/src/main/web/lib/bootstrap-3.3.1/css/bootstrap-theme.min.css
* htrace-webapp/src/main/webapp/custom.css
* htrace-webapp/src/main/webapp/app/modal.js
* htrace-webapp/src/main/webapp/lib/backbone-1.1.2.js
* htrace-webapp/src/main/web/lib/bootstrap-3.3.1/css/bootstrap.css
* htrace-webapp/src/main/web/app/search_result.js
* htrace-webapp/src/main/web/lib/bootstrap-3.3.1/css/bootstrap-theme.css
* htrace-webapp/src/main/webapp/app/widget_manager.js
* htrace-webapp/src/main/web/lib/bootstrap-3.3.1/css/bootstrap.min.css
* htrace-webapp/src/main/webapp/lib/underscore-1.7.0.js
* htrace-webapp/src/main/web/app/triangle_button.js
* htrace-webapp/src/main/webapp/lib/bootstrap-3.3.1/css/bootstrap.min.css
* htrace-webapp/src/main/webapp/lib/bootstrap-3.3.1/css/bootstrap-theme.min.css
* htrace-webapp/src/main/webapp/app/span_widget.js
* htrace-webapp/src/main/webapp/app/about_view.js
* htrace-webapp/src/main/webapp/app/search_results.js
* htrace-webapp/src/main/web/app/router.js
* htrace-webapp/pom.xml
* htrace-webapp/src/main/webapp/app/triangle_button.js
* htrace-webapp/src/main/web/app/search_view.js
* htrace-webapp/src/main/web/app/partition_widget.js
* htrace-webapp/src/main/web/app/query_results.js
* htrace-webapp/src/main/web/WEB-INF/web.xml
* htrace-webapp/src/main/web/custom.css


> HTrace WebApp not properly defined and therefore not packaged into .war
> -----------------------------------------------------------------------
>
>                 Key: HTRACE-246
>                 URL: https://issues.apache.org/jira/browse/HTRACE-246
>             Project: HTrace
>          Issue Type: Bug
>          Components: build, ui
>    Affects Versions: 4.0
>            Reporter: Lewis John McGibbney
>            Assignee: Lewis John McGibbney
>            Priority: Critical
>             Fix For: 4.1
>
>         Attachments: HTRACE-246.addendum.001.patch, HTRACE-246.patch
>
>
> Right now when I build HTrace from source (master branch) I the following
> {code}
> lmcgibbn@LMC-032857 /usr/local/incubator-htrace/htrace-webapp(HTRACE-241) $ 
> mvn package
> [INFO] Scanning for projects...
> [WARNING]
> [WARNING] Some problems were encountered while building the effective model 
> for org.apache.htrace:htrace-webapp:war:4.1.0-incubating-SNAPSHOT
> [WARNING] 'build.plugins.plugin.version' for 
> org.apache.maven.plugins:maven-war-plugin is missing. @ 
> org.apache.htrace:htrace-webapp:[unknown-version], 
> /usr/local/incubator-htrace/htrace-webapp/pom.xml, line 31, column 15
> [WARNING]
> [WARNING] It is highly recommended to fix these problems because they 
> threaten the stability of your build.
> [WARNING]
> [WARNING] For this reason, future Maven versions might no longer support 
> building such malformed projects.
> [WARNING]
> [INFO]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building htrace-webapp 4.1.0-incubating-SNAPSHOT
> [INFO] 
> ------------------------------------------------------------------------
> Downloading: 
> http://repository.apache.org/snapshots/org/apache/htrace/htrace-core/4.1.0-incubating-SNAPSHOT/maven-metadata.xml
> Downloading: 
> http://repository.apache.org/snapshots/org/apache/htrace/htrace/4.1.0-incubating-SNAPSHOT/maven-metadata.xml
> [INFO]
> [INFO] --- maven-war-plugin:2.2:war (default-cli) @ htrace-webapp ---
> [INFO] Packaging webapp
> [INFO] Assembling webapp [htrace-webapp] in 
> [/usr/local/incubator-htrace/htrace-webapp/target/htrace-webapp-4.1.0-incubating-SNAPSHOT]
> [INFO] Processing war project
> [INFO] Webapp assembled in [26 msecs]
> [INFO] Building war: 
> /usr/local/incubator-htrace/htrace-webapp/target/htrace-webapp-4.1.0-incubating-SNAPSHOT.war
> [INFO] WEB-INF/web.xml already added, skipping
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 1.611 s
> [INFO] Finished at: 2015-09-14T21:34:39-07:00
> [INFO] Final Memory: 10M/245M
> [INFO] 
> ------------------------------------------------------------------------
> {code}
> This is not OK as the webapp directory structure does NOT follow the Maven 
> war plugin artifact structure of convention over configuration.
> Currently the structure in webapp directory nesting in htrace is as follows.
> {code}
> lmcgibbn@LMC-032857 /usr/local/incubator-htrace/htrace-webapp/src(HTRACE-241) 
> $ tree
> .
> └── main
>     └── web
>         ├── WEB-INF
>         │   └── ...
> 9 directories, 38 files
> {code}
> Instead of
> {code}
> lmcgibbn@LMC-032857 /usr/local/incubator-htrace/htrace-webapp/src(HTRACE-241) 
> $ tree
> .
> └── main
>     └── webapp
>         ├── WEB-INF
>         │   └── ...
> 9 directories, 38 files
> {code}
> Notice the difference in _web_ Vs. _webapp_
> I've got a patch (which i will upload in a minute) which fixes this. This 
> then results in the following build output.
> {code}
> lmcgibbn@LMC-032857 /usr/local/incubator-htrace/htrace-webapp(HTRACE-241) $ 
> mvn package
> [INFO] Scanning for projects...
> [WARNING]
> [WARNING] Some problems were encountered while building the effective model 
> for org.apache.htrace:htrace-webapp:war:4.1.0-incubating-SNAPSHOT
> [WARNING] 'build.plugins.plugin.version' for 
> org.apache.maven.plugins:maven-war-plugin is missing. @ 
> org.apache.htrace:htrace-webapp:[unknown-version], 
> /usr/local/incubator-htrace/htrace-webapp/pom.xml, line 31, column 15
> [WARNING]
> [WARNING] It is highly recommended to fix these problems because they 
> threaten the stability of your build.
> [WARNING]
> [WARNING] For this reason, future Maven versions might no longer support 
> building such malformed projects.
> [WARNING]
> [INFO]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building htrace-webapp 4.1.0-incubating-SNAPSHOT
> [INFO] 
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.4:process (default) @ 
> htrace-webapp ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
> htrace-webapp ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory 
> /usr/local/incubator-htrace/htrace-webapp/src/main/resources
> [INFO] Copying 3 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ 
> htrace-webapp ---
> [INFO] No sources to compile
> [INFO]
> [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
> htrace-webapp ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory 
> /usr/local/incubator-htrace/htrace-webapp/src/test/resources
> [INFO] Copying 3 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ 
> htrace-webapp ---
> [INFO] No sources to compile
> [INFO]
> [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ htrace-webapp 
> ---
> [INFO]
> [INFO] --- maven-war-plugin:2.2:war (default-war) @ htrace-webapp ---
> [INFO] Packaging webapp
> [INFO] Assembling webapp [htrace-webapp] in 
> [/usr/local/incubator-htrace/htrace-webapp/target/htrace-webapp-4.1.0-incubating-SNAPSHOT]
> [INFO] Processing war project
> [INFO] Copying webapp resources 
> [/usr/local/incubator-htrace/htrace-webapp/src/main/webapp]
> [INFO] Webapp assembled in [61 msecs]
> [INFO] Building war: 
> /usr/local/incubator-htrace/htrace-webapp/target/htrace-webapp-4.1.0-incubating-SNAPSHOT.war
> [INFO] WEB-INF/web.xml already added, skipping
> [INFO]
> [INFO] --- maven-source-plugin:2.1.2:jar-no-fork (attach-sources) @ 
> htrace-webapp ---
> [INFO] META-INF already added, skipping
> [INFO] META-INF/DEPENDENCIES already added, skipping
> [INFO] META-INF/LICENSE already added, skipping
> [INFO] META-INF/NOTICE already added, skipping
> [INFO] Building jar: 
> /usr/local/incubator-htrace/htrace-webapp/target/htrace-webapp-4.1.0-incubating-SNAPSHOT-sources.jar
> [INFO] META-INF already added, skipping
> [INFO] META-INF/DEPENDENCIES already added, skipping
> [INFO] META-INF/LICENSE already added, skipping
> [INFO] META-INF/NOTICE already added, skipping
> [INFO]
> [INFO] --- maven-javadoc-plugin:2.8.1:jar (attach-javadocs) @ htrace-webapp 
> ---
> [INFO] Building jar: 
> /usr/local/incubator-htrace/htrace-webapp/target/htrace-webapp-4.1.0-incubating-SNAPSHOT-javadoc.jar
> [INFO]
> [INFO] --- apache-rat-plugin:0.11:check (default) @ htrace-webapp ---
> [INFO] 51 implicit excludes (use -debug for more details).
> [INFO] Exclude: **/.settings/**
> [INFO] Exclude: **/dependency-reduced-pom.xml
> [INFO] Exclude: **/generated/**
> [INFO] Exclude: */.settings/*
> [INFO] Exclude: */generated/*
> [INFO] Exclude: .git/**
> [INFO] Exclude: **/README.md
> [INFO] Exclude: **/go/bin/*
> [INFO] Exclude: **/go/pkg/*
> [INFO] Exclude: style.txt
> [INFO] Exclude: **/bootstrap-3.3.1/**
> [INFO] Exclude: **/web/lib/**
> [INFO] Exclude: **/*.min.js
> [INFO] Exclude: **/d3.min.js
> [INFO] Exclude: **/backbone-*.js
> [INFO] Exclude: **/jquery-*.js
> [INFO] Exclude: **/moment-*.js
> [INFO] Exclude: **/underscore-*.js
> [INFO] Exclude: **/build/src/**
> [INFO] Exclude: **/build/pkg/**
> [INFO] Exclude: **/Godeps/**
> [INFO] 26 resources included (use -debug for more details)
> Warning:  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 
> 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not 
> recognized.
> Compiler warnings:
>   WARNING:  'org.apache.xerces.jaxp.SAXParserImpl: Property 
> 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.'
> Warning:  org.apache.xerces.parsers.SAXParser: Feature 
> 'http://javax.xml.XMLConstants/feature/secure-processing' is not recognized.
> Warning:  org.apache.xerces.parsers.SAXParser: Property 
> 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
> Warning:  org.apache.xerces.parsers.SAXParser: Property 
> 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not 
> recognized.
> [INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0 generated: 0 
> approved: 25 licence.
> [INFO]
> [INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @ 
> htrace-webapp ---
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 4.176 s
> [INFO] Finished at: 2015-09-14T21:36:49-07:00
> [INFO] Final Memory: 26M/447M
> [INFO] 
> ------------------------------------------------------------------------
> {code}
> When I deploy the new artifact into Apache Tomcat I can now see the UI. There 
> are issues with the UI which I am going to log in a separate issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to