Discussion:
Using Grails 2.3 offline
Vimm
2014-05-01 15:31:44 UTC
Permalink
I'm developing a Grails application on a machine with no internet access. I
currently use Grails 2.2 and would like to try 2.3 but I can't get anything
to compile. For example, if I try the Getting Started
<http://grails.org/doc/latest/guide/gettingStarted.html#creatingAnApplication>
example I get the following...

grails create-app helloworld
| Created Grails Application at C:\helloworld

cd helloworld
grails
| Downloading:org/grails/plugins/tomcat/7.0.52.1/tomcat-7.0.52.1.pom
| Error Resolve error obtaining dependencies: Failed to read artifact
descriptor for xalan:serializer:jar:2.7.1 (Use --stacktrace to see the full
trace)
| Error Required Grails build dependencies were not found. This is normally
due to internet connectivity issues (such as a misconfigured proxy) or
missing repositories in grails-app/conf/BuildConfig.groovy. Please verify
your configuration to continue.


How can I use Grails 2.3 offline?



--
View this message in context: http://grails.1312388.n4.nabble.com/Using-Grails-2-3-offline-tp4656523.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Ales Bukovsky
2014-05-01 23:55:19 UTC
Permalink
I think in order for --offline flag to work you need to have required
dependencies available locally in the cache already. That means you need to
run the application at least once with network access. Or, in theory, any
application on the same version as long as it has the same dependencies.

Regards

~A
Post by Vimm
I'm developing a Grails application on a machine with no internet access.
I
currently use Grails 2.2 and would like to try 2.3 but I can't get anything
to compile. For example, if I try the Getting Started
<
http://grails.org/doc/latest/guide/gettingStarted.html#creatingAnApplication
example I get the following...
grails create-app helloworld
| Created Grails Application at C:\helloworld
cd helloworld
grails
| Downloading:org/grails/plugins/tomcat/7.0.52.1/tomcat-7.0.52.1.pom
| Error Resolve error obtaining dependencies: Failed to read artifact
descriptor for xalan:serializer:jar:2.7.1 (Use --stacktrace to see the full
trace)
| Error Required Grails build dependencies were not found. This is normally
due to internet connectivity issues (such as a misconfigured proxy) or
missing repositories in grails-app/conf/BuildConfig.groovy. Please verify
your configuration to continue.
How can I use Grails 2.3 offline?
--
http://grails.1312388.n4.nabble.com/Using-Grails-2-3-offline-tp4656523.html
Sent from the Grails - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
Andy Ennamorato
2014-05-02 04:07:45 UTC
Permalink
Never did 2.3 but we used our own repo (Artifactory) in an "offline" environment with grails. You can see my adventures in earlier posts: http://grails.1312388.n4.nabble.com/Using-plugins-via-mvn-in-offline-environment-w-2-1-1-td4636731.html

So, if you can also run your own repo on that or another LAN machine, you can just load that repo with the grails deps (again, assuming that still works in 2.3). We used to run grails while online to load up Artifactory, then expert the deps into the offline one, etc.

Andy

Sent from my iPhone
I think in order for --offline flag to work you need to have required dependencies available locally in the cache already. That means you need to run the application at least once with network access. Or, in theory, any application on the same version as long as it has the same dependencies.
Regards
~A
Post by Vimm
I'm developing a Grails application on a machine with no internet access. I
currently use Grails 2.2 and would like to try 2.3 but I can't get anything
to compile. For example, if I try the Getting Started
<http://grails.org/doc/latest/guide/gettingStarted.html#creatingAnApplication>
example I get the following...
grails create-app helloworld
| Created Grails Application at C:\helloworld
cd helloworld
grails
| Downloading:org/grails/plugins/tomcat/7.0.52.1/tomcat-7.0.52.1.pom
| Error Resolve error obtaining dependencies: Failed to read artifact
descriptor for xalan:serializer:jar:2.7.1 (Use --stacktrace to see the full
trace)
| Error Required Grails build dependencies were not found. This is normally
due to internet connectivity issues (such as a misconfigured proxy) or
missing repositories in grails-app/conf/BuildConfig.groovy. Please verify
your configuration to continue.
How can I use Grails 2.3 offline?
--
View this message in context: http://grails.1312388.n4.nabble.com/Using-Grails-2-3-offline-tp4656523.html
Sent from the Grails - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
graham
2014-05-02 23:19:23 UTC
Permalink
Post by Ales Bukovsky
I think in order for --offline flag to work you need to have required
dependencies available locally in the cache already. That means you need to
run the application at least once with network access.
It's certainly true that for new versions of Grails, while there are some
dependencies that are the same as the previous version there are quite a few
that are new - and you do need them because Grails won't work without them.
Whenever I take a new version of Grails I know that the first use will take
some time - because we're not in an area with high speed broadband coverage
- while it is updating the libraries etc.

graham




--
View this message in context: http://grails.1312388.n4.nabble.com/Using-Grails-2-3-offline-tp4656523p4656570.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Vimm
2014-05-21 19:57:24 UTC
Permalink
Thanks for the feedback. Sounds like my best bet is to upgrade to 2.3 on an
internet machine and then copy the local maven cache to the offline
machines. The Artifactory suggestion could be handy if the project grows.



--
View this message in context: http://grails.1312388.n4.nabble.com/Using-Grails-2-3-offline-tp4656523p4656973.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Continue reading on narkive:
Loading...