On Mon, Jul 7, 2014 at 12:56 PM, Jmeas Apache <[email protected]> wrote:
> Ah, okay. Chris, can you give more details on the git solution? What do you > do after installing git on the box? I would guess that you check out some > other branch? If so, which branch? My branch is a fork of Matt's recent > work to update the Angular branch with the additions to Master, as you can > see from the Git logs: > > https://github.com/jmeas/rave/commits/ng-vagrant > > Are you saying that the angular branch that Matt did work on is not the > correct branch? > The angular branch should be correct. There should not be any git dependency. I grepped the code and 0.23-ANGULAR-SNAPSHOT does not appear anywhere. If I had to venture a guess, it is that you are not building from the root as the first action. I do agree that having a Vagrant box that builds and runs Rave for UI developers is very valuable. That way they can simply vagrant up and start working with js & html fragments. Ideally, these would be file watched and automatically copied to the running tomcat directory for immediate feedback. To accomplish this, I believe the actions should be: 1) bootstrap the VM 2) setup profile & environment variables 3) install Tomcat 4) install database 5) install maven 6) cd to mounted location 7) execute mvn clean install 8) copy rave-portal and rave-shindig artifacts to tomcat as portal.war and ROOT.war respectively 9) start tomcat 10) Place a vagrant rsync file watcher on rave-portal-resources/src/main/webapp and rsync to $TOMCAT_HOME/webapps/portal/ There are some other configuration elements that we can iterate on, like selecting mongo instead of SQL and externalizing the config, but that does not need to happen for a first patch. > > > > > On Mon, Jul 7, 2014 at 12:40 PM, Chris Geer <[email protected]> wrote: > > > Ok, maybe I misunderstood what you were doing. If you are running mvn > > inside the Vagrant box it should be working. I'd try the git solution. I > > noticed from your error message it was looking for " > > org.apache.rave:rave-portal:war:0.23-ANGULAR-SNAPSHOT" but the branch you > > have is 0.24-ANGULAR-SNAPSHOT. That is the same problem I had before > > installing git. > > > > Chris > > > > > > On Mon, Jul 7, 2014 at 8:51 AM, Jmeas Apache <[email protected]> > > wrote: > > > > > Thanks for the quick reply, Chris. > > > > > > > > > > > > *The way maven works is ifyou've built it locally it will pull the > > > artifacts from there instead ofdownloading them (which is required if > you > > > are making changes). * > > > > > > Makes sense. > > > > > > > > > > > > *The problemyou are running into is that you aren't building them on > your > > > vagrant boxso it can't find the files.* > > > > > > Just to clarify, by 'building them' you mean running the command mvn > > > install? > > > I don't have Maven on my local box, so it's only possible that I build > it > > > on the box itself. The mapped directory, however, means that it gets > > built > > > locally as well. I'm just deferring to the box to actually use Maven to > > do > > > it. > > > > > > If all of this is true, then I'm confused as to why it's acting as if > I'm > > > not building it on the box and attempting to outsource the files. > > > > > > Any thoughts? > > > > > > > > > On Mon, Jul 7, 2014 at 11:28 AM, Chris Geer <[email protected]> > > wrote: > > > > > > > The issue you are having is what I mentioned in the other thread. I > > don't > > > > believe we have a CI build of the angular branch so there are no > > nightly > > > > builds to download, you have to build it locally. The way maven works > > is > > > if > > > > you've built it locally it will pull the artifacts from there instead > > of > > > > downloading them (which is required if you are making changes). The > > > problem > > > > you are running into is that you aren't building them on your vagrant > > box > > > > so it can't find the files. > > > > > > > > > > > > On Mon, Jul 7, 2014 at 8:19 AM, Jmeas Apache <[email protected] > > > > > > wrote: > > > > > > > > > Matt Franklin / Chris Geer, would either of you be available to > spend > > > an > > > > > hour or two today or tomorrow helping Carl and I get set up? It > > sounds > > > > like > > > > > both of you have the knowledge we need to complete the Vagrant > > > > > configuration, but alone we're kind of stagnating here given our > > > > > inexperience with a Java build stack. > > > > > > > > > > We're meant to be investing all of our time on Rave, but this > > blocking > > > > > issue has all but put us to a standstill. If we could knock this > out > > > then > > > > > things would be able to move along at a much quicker pace, and > start > > > work > > > > > on getting this Angular branch into shape. > > > > > > > > > > Any avenue that works for you would work for us; IRC, Google > > > > > Hangouts...just let us know. We'd really appreciate it. > > > > > > > > > > > > > > > On Thu, Jul 3, 2014 at 4:17 PM, Carl Danley <[email protected]> > wrote: > > > > > > > > > > > Ansible is a dependency that helps aid in the Vagrant > provisioning: > > > > > > http://www.ansible.com/home. It’s an alternative to Chef and > > Puppet > > > > that > > > > > > gives us full control over what’s going on inside of the Vagrant > > box. > > > > > > > > > > > > On July 3, 2014 at 4:13:01 PM, Chris Geer ([email protected] > ) > > > > wrote: > > > > > > > > > > > > I went to test this but go stuck on needing Ansible. What is > > Ansible > > > > > needed > > > > > > for? > > > > > > > > > > > > Chris > > > > > > > > > > > > > > > > > > On Thu, Jul 3, 2014 at 12:19 PM, Jmeas Apache < > > > [email protected]> > > > > > > wrote: > > > > > > > > > > > > > Interesting, Matt. Would you care to try if it works for you on > > the > > > > > > Vagrant > > > > > > > box? > > > > > > > > > > > > > > Here's an updated branch: > > > > > > > > > > > > > > https://github.com/jmeas/rave/tree/ng-vagrant > > > > > > > > > > > > > > The installation instructions are on the README (two steps: > > vagrant > > > > up > > > > > > and > > > > > > > then cargo:run from the box) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Thu, Jul 3, 2014 at 2:39 PM, Matt Franklin < > > > > > [email protected]> > > > > > > > wrote: > > > > > > > > > > > > > > > I am able to run cargo:run under rave-portal on the Angular > > > branch > > > > > > AFTER > > > > > > > > building the whole tree from root first. Maven will install > the > > > > built > > > > > > > > files to your local maven repo during the install phase, > which > > > will > > > > > > make > > > > > > > > them available when you run cargo:run from rave-portal later > > > > > > > > > > > > > > > > > > > > > > > > On Thu, Jul 3, 2014 at 2:26 PM, Jmeas Apache < > > > > [email protected] > > > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > I'm glad you asked that Matt – no, I wasn't installing from > > the > > > > > root. > > > > > > > Our > > > > > > > > > Vagrant configuration had a mistake in it where we were mvn > > > > > > installing > > > > > > > > from > > > > > > > > > the /rave/rave-portal directory. Apparently we had > conflated > > > the > > > > > > > > > instructions cargo:run task with the initial install > > > > instructions. > > > > > > > > > > > > > > > > > > So I went ahead and corrected that, then ran mvn install. I > > was > > > > > able > > > > > > to > > > > > > > > see > > > > > > > > > the test errors you mentioned, so when I ran the command > with > > > the > > > > > > flags > > > > > > > > you > > > > > > > > > suggested things seemed to install just fine. So that's a > > > start. > > > > > > > > > > > > > > > > > > Next, I ssh'd onto the box and tried to run mvn cargo:run > > from > > > > the > > > > > > > > > rave/rave-portal directory. I got the dependency error once > > > > more. I > > > > > > > added > > > > > > > > > the flags to the command to see if that would help...nope, > > > still > > > > > got > > > > > > > it. > > > > > > > > > > > > > > > > > > I've reset the repository and Vagrantbox with each of these > > > > > attempts > > > > > > to > > > > > > > > > ensure that the issue wasn't caused by previous attempts. > > > > > > > > > > > > > > > > > > Are you able to cargo:run, Matt Franklin? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Thu, Jul 3, 2014 at 1:07 PM, Matt Franklin < > > > > > > > [email protected]> > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > Did you build the whole project first, starting at the > root > > > > > > > directory? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Thu, Jul 3, 2014 at 1:06 PM, Jmeas Apache < > > > > > > [email protected] > > > > > > > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > Also, to clarify, even skipping the tests with mvn > > > > > > -DskipTests=true > > > > > > > > > > > -DskipIntegrationTests=true clean install throws the > > error. > > > > > > > > > > > > > > > > > > > > > > It's a slightly different file since the rebase, but it > > > seems > > > > > > > > related: > > > > > > > > > > > > > > > > > > > > > > Downloading: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > http://repository.apache.org/snapshots/org/apache/rave/rave-demo-gadgets/0.24-ANGULAR-SNAPSHOT/rave-demo-gadgets-0.24-ANGULAR-SNAPSHOT.war > > > > > > > > > > > > > > > > > > > > > > [INFO] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > > > > > > > > > > > > > [INFO] BUILD FAILURE > > > > > > > > > > > > > > > > > > > > > > [INFO] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > > > > > > > > > > > > > [INFO] Total time: 1:27.141s > > > > > > > > > > > > > > > > > > > > > > [INFO] Finished at: Thu Jul 03 17:03:48 UTC 2014 > > > > > > > > > > > > > > > > > > > > > > [INFO] Final Memory: 10M/247M > > > > > > > > > > > > > > > > > > > > > > [INFO] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > > > > > > > > > > > > > [ERROR] Failed to execute goal on project rave-portal: > > > Could > > > > > not > > > > > > > > > resolve > > > > > > > > > > > dependencies for project > > > > > > > > > > > org.apache.rave:rave-portal:war:0.24-ANGULAR-SNAPSHOT: > > The > > > > > > > following > > > > > > > > > > > artifacts could not be resolved: > > > > > > > > > > > > > > > > > > org.apache.rave:rave-portal-dependencies:pom:0.24-ANGULAR-SNAPSHOT, > > > > > > > > > > > > > > > > org.apache.rave:rave-portal-resources:war:0.24-ANGULAR-SNAPSHOT, > > > > > > > > > > > org.apache.rave:rave-shindig:war:0.24-ANGULAR-SNAPSHOT, > > > > > > > > > > > > > > org.apache.rave:rave-demo-gadgets:war:0.24-ANGULAR-SNAPSHOT: > > > > > > > Failure > > > > > > > > to > > > > > > > > > > > find > > > > > > > > > > > org.apache.rave:rave-portal-dependencies:pom:0.24-ANGULAR-SNAPSHOT > > > > > > > > > > in > > > > > > > > > > > http://repository.apache.org/snapshots was cached in > the > > > > local > > > > > > > > > > repository, > > > > > > > > > > > resolution will not be reattempted until the update > > > interval > > > > of > > > > > > > > > > > apache.snapshots has elapsed or updates are forced -> > > [Help > > > > 1] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Thu, Jul 3, 2014 at 12:59 PM, Jmeas Apache < > > > > > > > > [email protected]> > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > Thanks for doing all of that work, Matt! Rebasing > that > > > must > > > > > > have > > > > > > > > been > > > > > > > > > > no > > > > > > > > > > > > easy task. It's much appreciated. > > > > > > > > > > > > > > > > > > > > > > > > Unfortunately, Carl and I are both still getting the > > same > > > > > error > > > > > > > due > > > > > > > > > to > > > > > > > > > > > the > > > > > > > > > > > > missing dependency. You were able to run a clean mvn > > > > install > > > > > > > > without > > > > > > > > > > > > issue? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Thu, Jul 3, 2014 at 12:45 PM, Matt Franklin < > > > > > > > > > > [email protected] > > > > > > > > > > > > > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > >> Took longer than expected, but I have it merged. > There > > > are > > > > > > test > > > > > > > > > > errors > > > > > > > > > > > >> when running some of the javascript tests, so those > > will > > > > > still > > > > > > > > need > > > > > > > > > to > > > > > > > > > > > be > > > > > > > > > > > >> resolved. You can build with mvn -DskipTests=true > > > > > > > > > > > >> -DskipIntegrationTests=true clean install to finish > > > > testing > > > > > > your > > > > > > > > > > patch. > > > > > > > > > > > >> We > > > > > > > > > > > >> need to create new issues to resolve the tests. > > > > > > > > > > > >> > > > > > > > > > > > >> > > > > > > > > > > > >> On Wed, Jul 2, 2014 at 1:18 PM, Matt Franklin < > > > > > > > > > > [email protected] > > > > > > > > > > > > > > > > > > > > > > > >> wrote: > > > > > > > > > > > >> > > > > > > > > > > > >> > On Wed, Jul 2, 2014 at 11:02 AM, Jmeas Apache < > > > > > > > > > > [email protected] > > > > > > > > > > > > > > > > > > > > > > > >> > wrote: > > > > > > > > > > > >> > > > > > > > > > > > > >> >> Matt, I appreciate the quick response! > > > > > > > > > > > >> >> > > > > > > > > > > > >> >> I took a look at rebasing and it seems like there > > are > > > > > > quite a > > > > > > > > > large > > > > > > > > > > > >> number > > > > > > > > > > > >> >> of merge conflicts. I began the process of > > resolving > > > > them > > > > > > but > > > > > > > > > > quickly > > > > > > > > > > > >> >> realized my inexperience was leading me to do > > little > > > > more > > > > > > > than > > > > > > > > > > > >> guessing at > > > > > > > > > > > >> >> resolutions. I think someone with more experience > > on > > > > the > > > > > > > > project > > > > > > > > > > > could > > > > > > > > > > > >> be > > > > > > > > > > > >> >> a > > > > > > > > > > > >> >> big help here. > > > > > > > > > > > >> >> > > > > > > > > > > > >> > > > > > > > > > > > > >> > I can try to update that branch later today. > > > > > > > > > > > >> > > > > > > > > > > > > >> > > > > > > > > > > > > >> >> > > > > > > > > > > > >> >> Would you, or anyone else, have time this > afternoon > > > to > > > > > > spend > > > > > > > an > > > > > > > > > > hour > > > > > > > > > > > or > > > > > > > > > > > >> >> two > > > > > > > > > > > >> >> working with Carl and I to rebase the project? It > > > would > > > > > be > > > > > > > > > > immensely > > > > > > > > > > > >> >> useful > > > > > > > > > > > >> >> for us to get started on work if we could get > > > together > > > > – > > > > > > > maybe > > > > > > > > > over > > > > > > > > > > > >> Google > > > > > > > > > > > >> >> hangouts? > > > > > > > > > > > >> >> > > > > > > > > > > > >> >> > > > > > > > > > > > >> >> On Wed, Jul 2, 2014 at 10:28 AM, Matt Franklin < > > > > > > > > > > > >> [email protected]> > > > > > > > > > > > >> >> wrote: > > > > > > > > > > > >> >> > > > > > > > > > > > >> >> > Master has not been merged into that branch in > a > > > very > > > > > > long > > > > > > > > > time. > > > > > > > > > > > Did > > > > > > > > > > > >> >> you > > > > > > > > > > > >> >> > try that first? > > > > > > > > > > > >> >> > > > > > > > > > > > > >> >> > > > > > > > > > > > > >> >> > On Wed, Jul 2, 2014 at 10:17 AM, Jmeas Apache < > > > > > > > > > > > >> [email protected]> > > > > > > > > > > > >> >> > wrote: > > > > > > > > > > > >> >> > > > > > > > > > > > > >> >> > > I'm attempting to set up the Angular branch > of > > > the > > > > > > > > > application > > > > > > > > > > > on a > > > > > > > > > > > >> >> > Vagrant > > > > > > > > > > > >> >> > > box (branch available here < > > > > > > > > > > > https://github.com/apache/rave/pull/2 > > > > > > > > > > > >> >). > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > The non-Angular branch works just fine with > the > > > > box: > > > > > > all > > > > > > > of > > > > > > > > > the > > > > > > > > > > > >> >> > > dependencies resolve and I can get the app up > > and > > > > > > > running. > > > > > > > > > But > > > > > > > > > > I > > > > > > > > > > > >> keep > > > > > > > > > > > >> >> > > running into the following error when mvn > > > > installing > > > > > on > > > > > > > the > > > > > > > > > > > Angular > > > > > > > > > > > >> >> > branch: > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > Downloading: > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > > > > > > > > > > > >> >> > > > > > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > http://repository.apache.org/snapshots/org/apache/rave/rave-shindig/0.23-ANGULAR-SNAPSHOT/rave-shindig-0.23-ANGULAR-SNAPSHOT.war > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > [INFO] > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > > > > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > [INFO] BUILD FAILURE > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > [INFO] > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > > > > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > [INFO] Total time: 16.525s > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > [INFO] Finished at: Wed Jul 02 14:08:35 UTC > > 2014 > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > [INFO] Final Memory: 10M/247M > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > [INFO] > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > > > > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > [ERROR] Failed to execute goal on project > > > > > rave-portal: > > > > > > > > Could > > > > > > > > > > not > > > > > > > > > > > >> >> resolve > > > > > > > > > > > >> >> > > dependencies for project > > > > > > > > > > > >> >> > > > > > > > org.apache.rave:rave-portal:war:0.23-ANGULAR-SNAPSHOT: > > > > > > > The > > > > > > > > > > > >> following > > > > > > > > > > > >> >> > > artifacts could not be resolved: > > > > > > > > > > > >> >> > > > > > > > > > > > > > > > > > > > > org.apache.rave:rave-portal-dependencies:pom:0.23-ANGULAR-SNAPSHOT, > > > > > > > > > > > >> >> > > > > > > > > > > > > > > > > org.apache.rave:rave-portal-resources:war:0.23-ANGULAR-SNAPSHOT, > > > > > > > > > > > >> >> > > > > > > > org.apache.rave:rave-shindig:war:0.23-ANGULAR-SNAPSHOT, > > > > > > > > > > > >> >> > > > > > > > > > > org.apache.rave:rave-demo-gadgets:war:0.23-ANGULAR-SNAPSHOT: > > > > > > > > > > > >> Failure > > > > > > > > > > > >> >> to > > > > > > > > > > > >> >> > > find > > > > > > > > > > > >> >> > > > > > > > > > > > > > org.apache.rave:rave-portal-dependencies:pom:0.23-ANGULAR-SNAPSHOT > > > > > > > > > > > >> >> > in > > > > > > > > > > > >> >> > > http://repository.apache.org/snapshots was > > > cached > > > > in > > > > > > the > > > > > > > > > local > > > > > > > > > > > >> >> > repository, > > > > > > > > > > > >> >> > > resolution will not be reattempted until the > > > update > > > > > > > > interval > > > > > > > > > of > > > > > > > > > > > >> >> > > apache.snapshots has elapsed or updates are > > > forced > > > > -> > > > > > > > [Help > > > > > > > > > 1] > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > It seems to be caused by the fact that this > > file > > > > > > doesn't > > > > > > > > > exist. > > > > > > > > > > > >> >> > > < > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > > > > > > > > > > > >> >> > > > > > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > http://repository.apache.org/snapshots/org/apache/rave/rave-demo-gadgets/0.23-ANGULAR-SNAPSHOT/rave-demo-gadgets-0.23-ANGULAR-SNAPSHOT.war > > > > > > > > > > > >> >> > > > > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > Are there any thoughts on how I should > proceed? > > > > This > > > > > is > > > > > > > > > > > >> unfortunately > > > > > > > > > > > >> >> > > blocking, and I believe Carl is experiencing > > the > > > > same > > > > > > > > issue. > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > Some machine details: > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > 64-bit Ubuntu 12.04 (hashicorp/precise64) > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > Maven 3.1.1 > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > Java 1.7.0_60 > > > > > > > > > > > >> >> > > > > > > > > > > > > > >> >> > > > > > > > > > > > > >> >> > > > > > > > > > > > >> > > > > > > > > > > > > >> > > > > > > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
