chang compile to use war instead compile