Have a base build in Vagrant with Oracle Java 7 pre-installed. (I created a
wrapper cookbook for the community Java cookbook and successfully used
attributes to override the OpenJDK 6 default.)
Using the community Ant recipe. It specifies a Java dependency. Because of
this, Berkshelf additionally installs OpenJDK 7 which causes build
confusion.
I created a wrapper cookbook for Ant and specified the Oracle attributes in
it hoping that transitive Java install would take these attributes, but no
dice.
Lots of Googling before I turned here. The Java cookbook suggests that
consuming cookbooks allow for such an override but the Ant cookbook doesn’t
seem to allow it.
Am I overlooking some aspect of how to correctly configure metadata and the
Berksfile? It’s not a simple semver revision level problem.
At this point it seems I need to just install Ant with shell exec.
This is with Vagrant Berkshelf plugin driven by a Vagrantfile, not a ChefDK
kitchen.yml.
That cookbook needs to be rewritten with LWRPs, instead of recipes, to
avoid this kind of problems.
I ended up creating my own java cookbook.
On Fri, Feb 13, 2015 at 9:42 AM, Charles Betz char@erp4it.com wrote:
Have a base build in Vagrant with Oracle Java 7 pre-installed. (I created
a wrapper cookbook for the community Java cookbook and successfully used
attributes to override the OpenJDK 6 default.)
Using the community Ant recipe. It specifies a Java dependency. Because of
this, Berkshelf additionally installs OpenJDK 7 which causes build
confusion.
I created a wrapper cookbook for Ant and specified the Oracle attributes
in it hoping that transitive Java install would take these attributes, but
no dice.
Lots of Googling before I turned here. The Java cookbook suggests that
consuming cookbooks allow for such an override but the Ant cookbook doesn't
seem to allow it.
Am I overlooking some aspect of how to correctly configure metadata and
the Berksfile? It's not a simple semver revision level problem.
At this point it seems I need to just install Ant with shell exec.
This is with Vagrant Berkshelf plugin driven by a Vagrantfile, not a
ChefDK kitchen.yml.
That cookbook needs to be rewritten with LWRPs, instead of recipes, to
avoid this kind of problems.
I ended up creating my own java cookbook.
On Fri, Feb 13, 2015 at 9:42 AM, Charles Betz char@erp4it.com wrote:
Have a base build in Vagrant with Oracle Java 7 pre-installed. (I created
a wrapper cookbook for the community Java cookbook and successfully used
attributes to override the OpenJDK 6 default.)
Using the community Ant recipe. It specifies a Java dependency. Because
of this, Berkshelf additionally installs OpenJDK 7 which causes build
confusion.
I created a wrapper cookbook for Ant and specified the Oracle attributes
in it hoping that transitive Java install would take these attributes, but
no dice.
Lots of Googling before I turned here. The Java cookbook suggests that
consuming cookbooks allow for such an override but the Ant cookbook doesn't
seem to allow it.
Am I overlooking some aspect of how to correctly configure metadata and
the Berksfile? It's not a simple semver revision level problem.
At this point it seems I need to just install Ant with shell exec.
This is with Vagrant Berkshelf plugin driven by a Vagrantfile, not a
ChefDK kitchen.yml.
That cookbook needs to be rewritten with LWRPs, instead of recipes, to
avoid this kind of problems.
I ended up creating my own java cookbook.
On Fri, Feb 13, 2015 at 9:42 AM, Charles Betz char@erp4it.com wrote:
Have a base build in Vagrant with Oracle Java 7 pre-installed. (I
created a wrapper cookbook for the community Java cookbook and successfully
used attributes to override the OpenJDK 6 default.)
Using the community Ant recipe. It specifies a Java dependency. Because
of this, Berkshelf additionally installs OpenJDK 7 which causes build
confusion.
I created a wrapper cookbook for Ant and specified the Oracle attributes
in it hoping that transitive Java install would take these attributes, but
no dice.
Lots of Googling before I turned here. The Java cookbook suggests that
consuming cookbooks allow for such an override but the Ant cookbook doesn't
seem to allow it.
Am I overlooking some aspect of how to correctly configure metadata and
the Berksfile? It's not a simple semver revision level problem.
At this point it seems I need to just install Ant with shell exec.
This is with Vagrant Berkshelf plugin driven by a Vagrantfile, not a
ChefDK kitchen.yml.