Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Immediate Build Failure on master after cloning repo #1

Closed
codelotus opened this issue Dec 18, 2012 · 4 comments
Closed

Immediate Build Failure on master after cloning repo #1

codelotus opened this issue Dec 18, 2012 · 4 comments
Labels

Comments

@codelotus
Copy link

After cloning the repo I cd'ed into the owf directory and ran "ant". Immediately the build failed.

$ git clone https://github.com/ozoneplatform/owf
$ cd owf
$ ant -version
Apache Ant(TM) version 1.8.4 compiled on September 18 2012
$ ant
Buildfile: /data/src/opensource/owf/build.xml
  [taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.

_init-ivy:
  [taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.

BUILD FAILED
/data/src/opensource/owf/build.xml:29: The following error occurred while executing this line:
Target "init-ivy" does not exist in the project "owf-server". 

Total time: 0 seconds
$
@tinaColemanNextCentury
Copy link
Contributor

Acknowledged, yes - we'll update the README.MD to reflect. We need to update the build scripts to pull from a Nexus repository, etc - just about to release OWF7, so not willing to make that change in our last week. Obviously priority item for after the release, however.

You have the honor of adding the first issue to our as yet under-the-radar outing...

@tinaColemanNextCentury
Copy link
Contributor

Codelotus - can you see if the new build instructions up on the wiki get you there? Note the requirements for download for the ant-contrib - that was your starting point from above. But double-checking to see we've got you in stronger state here.

Things done:

  • released OWF7 - making it then workable to mod the build afterwards....
  • expose Nexus repo with artifacts, rather than use ivy on SVN from owfgoss.org
  • add artifacts to Nexus, as needed
  • clean up guidance in docs previously distributed individually for OWF6 and 7 to give one unified view

@codelotus
Copy link
Author

After ensuring all of the require dependencies are installed:

$ java -version
java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-10M3909)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)

$ ant -version
Apache Ant(TM) version 1.8.4 compiled on September 18 2012

$ grails -version
Grails version: 2.2.0

$ groovy –version
Groovy Version: 2.0.5 JVM: 1.6.0_37 Vendor: Apple Inc. OS: Mac OS X

$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin10.8.0]

$ gem -v
1.8.24

$ sass -v
Sass 3.2.1 (Media Mark)

$ compass -v
Compass 0.12.2 (Alnilam)
Copyright (c) 2008-2013 Chris Eppstein
Released under the MIT License.
Compass is charityware.
Please make a tax deductable donation for a worthy cause: http://umdf.org/compass

Running "ant bundle" still fails.
However I took the following action in an attempt to successfully complete the build:

  1. copied ivy 2.2.0 jar into $ANT_HOME/lib

The build then failed with the following error:

     [exec]         ::::::::::::::::::::::::::::::::::::::::::::::
     [exec]         ::          UNRESOLVED DEPENDENCIES         ::
     [exec]         ::::::::::::::::::::::::::::::::::::::::::::::
     [exec]         :: com.oracle#ojdbc14;10.2.0.1.0: not found
     [exec]         :: org.grails.plugins#tomcat;1.3.7: not found
     [exec]         :: org.grails.plugins#hibernate;1.3.7: not found
     [exec]         :: org.grails.plugins#ozone-deploy;0.1: not found
     [exec]         ::::::::::::::::::::::::::::::::::::::::::::::

External locations unsuccessfully searched, by ivy, for these dependencies include:

  1. https://www.owfgoss.org/nexus/content/groups/public
  2. http://repo1.maven.org/maven2
  3. http://grails.org/plugins

I then removed the 3 grails plugins from [root]/application.properties, as outlined in section 3.2 Troubleshooting however, obviously, that did not resolve the com.oracle#ojdbc14 missing dependency issue.

Is it possible to upgrade to a version of the missing dependencies which may be found in a public repository?

@ghost
Copy link

ghost commented Jan 10, 2013

Codelotus - I experienced your noted dependencies issue and was able to get my build to succeed by downgrading my version of Grails to that specified in the Build Instructions Wiki page. Additionally your use of the newer Groovy 2 may be a factor.

Required versions:
Grails 1.3.7
Groovy 1.8.8

You will notice that the build will still include a warning about ojdbc not being resolved but will succeed nonetheless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants