Grails

grails war --nojars does not provide means to copy dependencies

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.1.1
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

grails war --nojars option simply create the application WAR file with no dependencies. This simply does not work, because to deploy such WAR file user needs to make all of dependent jars to the application server (tomcat or glassfish or any other javaEE server). This is a serious limitation and for many production environment where multiple apps are hosted for a given grails version, a full blows grails WAR (which is ~ 22MB in size) is not desirable.

So I think here are the few things that should happen:

1. Define sub command of WAR or --nojars option further takes in path where the dependent jars should be copied.
2. By default the GORM layer/JPA is part of application plugin. --nojars should have option to bundle together all the application specific dependencies. Typically its not desirable to make app specific dependencies as part of the server class loader.

Activity

There are no comments yet on this issue.

People

Vote (5)
Watch (6)

Dates

  • Created:
    Updated:
    Last Reviewed: