Форум русскоязычного сообщества Ubuntu


Хотите сделать посильный вклад в развитие Ubuntu и русскоязычного сообщества?
Помогите нам с документацией!

Автор Тема: добавление Spring в проект  (Прочитано 1266 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн PIKOS

  • Автор темы
  • Новичок
  • *
  • Сообщений: 16
    • Просмотр профиля
добавление Spring в проект
« : 26 Марта 2014, 20:03:30 »
скачал Spring с Git. Распаковал. А там структура другая какая-то) Как мне подключить его к проекту?

root@vps:/opt/spring# cd spring-framework && ls
CONTRIBUTING-DOCUMENTATION.adoc  gradlew.bat              spring-beans-groovy       spring-jdbc            spring-web
CONTRIBUTING.md                  import-into-eclipse.bat  spring-context            spring-jms             spring-webmvc
README.md                        import-into-eclipse.sh   spring-context-support    spring-messaging       spring-webmvc-portlet
build.gradle                     import-into-idea.md      spring-core               spring-orm             spring-webmvc-tiles3
buildSrc                         settings.gradle          spring-expression         spring-orm-hibernate4  spring-websocket
gradle                           spring-aop               spring-framework-bom      spring-oxm             src
gradle.properties                spring-aspects           spring-instrument         spring-test
gradlew                          spring-beans             spring-instrument-tomcat  spring-tx

Оффлайн peregrine

  • FSM
  • СуперМодератор
  • Старожил
  • *
  • Сообщений: 7203
  • Gentoo x64 Ubuntu 16.04.1 x64
    • Просмотр профиля
Re: добавление Spring в проект
« Ответ #1 : 26 Марта 2014, 20:05:25 »
PIKOS,
README.md читали?

Оффлайн PIKOS

  • Автор темы
  • Новичок
  • *
  • Сообщений: 16
    • Просмотр профиля
Re: добавление Spring в проект
« Ответ #2 : 26 Марта 2014, 21:58:25 »
PIKOS,
README.md читали?
Ошибка. И хотелось бы не всё подряд устанавливать, а только определенные пакеты включить в проект
root@vps-1028541:/opt/spring/spring-framework# ./gradlew install
Downloading http://services.gradle.org/distributions/gradle-1.11-bin.zip
................

...

Download http://repo.spring.io/milestone/org/aspectj/aspectjrt/1.8.0.M1/aspectjrt-1.8.0.M1.jar
:spring-aspects:compileJava FAILED

FAILURE: Build failed with an exception.

* Where:
Script '/opt/spring/spring-framework/spring-aspects/aspects.gradle' line: 37

* What went wrong:
Execution failed for task ':spring-aspects:compileJava'.
> compile errors: 137

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 11 mins 18.235 secs

FAILURE: Build failed with an exception.

* What went wrong:
Process 'Gradle Worker 1' finished with non-zero exit value 137

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
root@vps:/opt/spring/spring-framework#

Оффлайн peregrine

  • FSM
  • СуперМодератор
  • Старожил
  • *
  • Сообщений: 7203
  • Gentoo x64 Ubuntu 16.04.1 x64
    • Просмотр профиля
Re: добавление Spring в проект
« Ответ #3 : 26 Марта 2014, 22:46:50 »
PIKOS, что за ошибка? Не понял? Открыть файл READMI.md при помощи текстового редактора и почитать, что разработчики пишут о пакете (на английском скорее всего, но если Вы разработчик, то должны на нём свободно читать).

Оффлайн PIKOS

  • Автор темы
  • Новичок
  • *
  • Сообщений: 16
    • Просмотр профиля
Re: добавление Spring в проект
« Ответ #4 : 27 Марта 2014, 07:47:01 »
PIKOS, что за ошибка? Не понял? Открыть файл READMI.md при помощи текстового редактора и почитать, что разработчики пишут о пакете (на английском скорее всего, но если Вы разработчик, то должны на нём свободно читать).
Да прочел я. там нет ничего про установку отдельных пакетов. Только установка всего сразу, а она вызывает эту ошибку.
Вот содержимое Файла:
Цитировать

### Prerequisites

[Git][] and [OpenJDK 8 early access build 100 or later][JDK8 build]

Be sure that your `JAVA_HOME` environment variable points to the `jdk1.8.0` folder
extracted from the JDK download.

### Check out sources
`git clone git@github.com:spring-projects/spring-framework.git`

### Import sources into your IDE
Run `./import-into-eclipse.sh` or read `import-into-idea.md` as appropriate.
> **Note:** Per the prerequisites above, ensure that you have JDK 8 configured properly in your IDE.

### Install all spring-\* jars into your local Maven cache
`./gradlew install`

### Compile and test; build all jars, distribution zips, and docs
`./gradlew build`

... and discover more commands with `./gradlew tasks`. See also the [Gradle
build and release FAQ][].

## Contributing
[Pull requests][] are welcome; see the [contributor guidelines][] for details.

## Staying in Touch
Follow [@SpringCentral][] as well as [@SpringFramework][] and its [team members][]
on Twitter. In-depth articles can be found at [The Spring Blog][], and releases
are announced via our [news feed][].

## License
The Spring Framework is released under version 2.0 of the [Apache License][].


 

Страница сгенерирована за 0.055 секунд. Запросов: 25.