powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Java [игнор отключен] [закрыт для гостей] / В чём преимущество MAVEN проектов???
25 сообщений из 131, страница 3 из 6
В чём преимущество MAVEN проектов???
    #39372012
Фотография SQL2008
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
rema174SQL2008,

ну вот зачем ты взял этот бут, тебе тут насоветуют, - шаг в лево-вправо и ты запутаешся, начал бы просто с mvc
В чём я должен тут запутаться????
The steps in this section walk you through creating a very simple web application.
Две странички и контроллер???
Проще только изучение включения и выключения компьютера. Предлагаете начать с него?
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372017
забыл ник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
SQL2008, мавен инструмент неидеальный, в него надо окунуться и это некоторое время больно. Когда проект пишется в одной IDE и одним человеком, то преимущества неочевидны, но когда команда из 20 человек, у всех разные IDE + различные серваки, в том числе CI, и проект можно собрать без головняка на любой тачке за 5 минут,то начинаешь ценить :) Все это прошли)
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372029
Фотография Petro123
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
SQL2008,
там рядом для новичков - Build with your IDE
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372037
Фотография SQL2008
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Petro123SQL2008,
там рядом для новичков - Build with your IDE
Делал в NetBeans - не работает!
Поэтому и решил реализовать как описано.
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372055
mad_nazgul
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
SQL2008Petro123SQL2008,
там рядом для новичков - Build with your IDE
Делал в NetBeans - не работает!
Поэтому и решил реализовать как описано.

Для maven даже IDE не нужен.
Есть maven archetype, которые создают "рыбу" приложения.

А так.
С maven удобнее всего работать в Intellij IDEA, т.к. она показывает ошибки в pom.xml и не разрешенные зависимости.
В NetBeans и Eclipse с maven работать не так удобно.
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372079
Фотография Petro123
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
mad_nazgulДля maven даже IDE не нужен.
вот пониже фраза мне больше нравится)
mad_nazgulудобнее всего работать в Intellij IDEA, т.к. она показывает ошибки
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372081
Фотография Petro123
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
mad_nazgul,
а почему на сайте в NetBeans примеры?
Дурдом))
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372093
rema174
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
SQL2008rema174SQL2008,

ну вот зачем ты взял этот бут, тебе тут насоветуют, - шаг в лево-вправо и ты запутаешся, начал бы просто с mvc
В чём я должен тут запутаться????
The steps in this section walk you through creating a very simple web application.
Две странички и контроллер???
Проще только изучение включения и выключения компьютера. Предлагаете начать с него?

хлозин — барин ...
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372095
lleming
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Petro123mad_nazgulДля maven даже IDE не нужен.
вот пониже фраза мне больше нравится)
mad_nazgulудобнее всего работать в Intellij IDEA, т.к. она показывает ошибки

Вам видно какое противоречие ?
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372100
Фотография Petro123
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
llemingВам видно какое противоречие ?
видно.
Я на иклипсе без мавена))
Всё через меню.
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372103
Фотография SQL2008
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
maytonПриведи пример твоего Хело-Ворда который не собрался.
И я и другие присутствующие покажут чего надо допилить
чтоб собрался.
Вернемся к теме. Вопрос простой - что нужно допилить, чтобы заработало?

The web application includes two simple views: a home page and a "Hello World" page. The home page is defined in the following Thymeleaf template:

src/main/resources/templates/home.html
Код: html
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
    <head>
        <title>Spring Security Example</title>
    </head>
    <body>
        <h1>Welcome!</h1>

        <p>Click <a th:href="@{/hello}">here</a> to see a greeting.</p>
    </body>
</html>



As you can see, this simple view includes a link to the page "/hello". That is defined in the following Thymeleaf template:

src/main/resources/templates/hello.html
Код: html
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
    <head>
        <title>Hello World!</title>
    </head>
    <body>
        <h1>Hello world!</h1>
    </body>
</html> 



The web application is based on Spring MVC. Thus you need to configure Spring MVC and set up view controllers to expose these templates. Here’s a configuration class for configuring Spring MVC in the application.

src/main/java/hello/MvcConfig.java
Код: java
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
package hello;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
public class MvcConfig extends WebMvcConfigurerAdapter {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/home").setViewName("home");
        registry.addViewController("/").setViewName("home");
        registry.addViewController("/hello").setViewName("hello");
        // временно исключил, так как его пока нет! - registry.addViewController("/login").setViewName("login");
    }
}
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372106
13-й Пилигрим
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
SQL2008maytonпропущено...

Приведи пример твоего Хело-Ворда который не собрался.
И я и другие присутствующие покажут чего надо допилить
чтоб собрался.
Вот хорошее предложение!
Итак взял готовый пример .
Использовал все, что предписано
What you’ll needAbout 15 minutes

A favorite text editor or IDE

JDK 1.8 or later

Gradle 2.3+ or Maven 3.0+

You can also import the code from this guide as well as view the web page directly into Spring Tool Suite (STS) and work your way through it from there.

импортировал проект через
с GitHubgit clone https://github.com/spring-guides/gs-securing-web.git

Все замечательно отработало.
Но при попытке запустить проект получил ошибку на
Код: java
1.
2.
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;



Что значит запустить?
Скомпилировать? Собрать?
Код: powershell
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
107.
108.
109.
110.
111.
112.
113.
114.
115.
116.
117.
118.
119.
120.
121.
122.
123.
124.
125.
126.
127.
128.
129.
130.
131.
132.
133.
134.
135.
136.
137.
138.
139.
140.
141.
142.
143.
144.
145.
UserName@HostName D:\Work\TestProjects\gs-securing-web\complete> mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gs-securing-web 0.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ gs-securing-web ---
[INFO] Deleting D:\Work\TestProjects\gs-securing-web\complete\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ gs-securing-web ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ gs-securing-web ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to D:\Work\TestProjects\gs-securing-web\complete\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ gs-securing-web ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\Work\TestProjects\gs-securing-web\complete\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ gs-securing-web ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to D:\Work\TestProjects\gs-securing-web\complete\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ gs-securing-web ---
[INFO] Surefire report directory: D:\Work\TestProjects\gs-securing-web\complete\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
17:12:17.901 [main] DEBUG org.springframework.test.context.junit4.SpringJUnit4ClassRunner - SpringJUnit4ClassRunner constructor called with [class hello.ApplicationTests]
17:12:17.906 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
17:12:17.914 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating BootstrapContext using constructor [public org.springframework.test.context.support.DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)]
17:12:17.938 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [hello.ApplicationTests] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
17:12:17.950 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [hello.ApplicationTests], using SpringBootContextLoader
17:12:17.953 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [hello.ApplicationTests]: class path resource [hello/ApplicationTests-context.xml] does not exist
17:12:17.954 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [hello.ApplicationTests]: class path resource [hello/ApplicationTestsContext.groovy] does not exist
17:12:17.954 [main] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [hello.ApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
17:12:17.954 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [hello.ApplicationTests]: ApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
17:12:17.996 [main] DEBUG org.springframework.test.context.support.ActiveProfilesUtils - Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [hello.ApplicationTests]

17:12:18.032 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding [systemProperties] PropertySource with lowest search precedence
17:12:18.032 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence
17:12:18.033 [main] DEBUG org.springframework.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
17:12:18.041 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver - Resolved classpath location [hello/] to resources  [file:/D:/Work/TestProjects/gs-securing-web/complete/target/test-classes/hello/], URL [file:/D:/Work/TestProjects/gs-securing-web/complete/target/classes/hello/]]
17:12:18.041 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver - Looking for matching resources in directory tree [D:\Work\TestProjects\gs-securing-web\complete\target\test-classes\hello]
17:12:18.041 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver - Searching directory [D:\Work\TestProjects\gs-securing-web\complete\target\test-classes\hello] for files matching pattern [D:/Work/TestProjects/gs-securing-web/complete/target/test-classes/hello/*.class]
17:12:18.044 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver - Looking for matching resources in directory tree [D:\Work\TestProjects\gs-securing-web\complete\target\classes\hello]
17:12:18.044 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver - Searching directory [D:\Work\TestProjects\gs-securing-web\complete\target\classes\hello] for files matching pattern [D:/Work/TestProjects/gs-securing-web/complete/target/classes/hello/*.class]
17:12:18.045 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver - Resolved location pattern [classpath*:hello/*.class] to resources [file [D:\Work\TestProjects\gs-securing-web\complete\target\test-classes\hello\ApplicationTests.class], file [D:\Work\TestProjects\gs-securing-web\complete\target\classes\hello\Application.class], file [D:\Work\TestProjects\gs-securing-web\complete\target\classes\hello\MvcConfig.class], file [D:\Work\TestProjects\gs-securing-web\complete\target\classes\hello\WebSecurityConfig.class]]
17:12:18.076 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [D:\Work\TestProjects\gs-securing-web\complete\target\classes\hello\Application.class]

17:12:18.081 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration hello.Application for test class hello.ApplicationTests
17:12:18.084 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [hello.ApplicationTests]: using defaults.
17:12:18.087 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener]
17:12:18.101 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Could not instantiate TestExecutionListener [org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [org/springframework/transaction/interceptor/TransactionAttribute]
17:12:18.101 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Could not instantiate TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [org/springframework/transaction/interceptor/TransactionAttributeSource]
17:12:18.102 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@240237d2, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@25a65b77, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@2ed0fbae, org.springframework.test.context.support.DirtiesContextTestExecutionListener@212bf671, org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener@14a2f921, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@3c87521, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@2aece37d, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@548a102f, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@5762806e, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@17c386de, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@5af97850]
17:12:18.104 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [hello.ApplicationTests]
17:12:18.105 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [hello.ApplicationTests]
Running hello.ApplicationTests
17:12:18.108 [main] DEBUG org.springframework.test.context.junit4.SpringJUnit4ClassRunner - SpringJUnit4ClassRunner constructor called with [class hello.ApplicationTests]
17:12:18.108 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
17:12:18.108 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating BootstrapContext using constructor [public org.springframework.test.context.support.DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)]
17:12:18.108 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [hello.ApplicationTests] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
17:12:18.109 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [hello.ApplicationTests], using SpringBootContextLoader
17:12:18.110 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [hello.ApplicationTests]: class path resource [hello/ApplicationTests-context.xml] does not exist
17:12:18.110 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [hello.ApplicationTests]: class path resource [hello/ApplicationTestsContext.groovy] does not exist
17:12:18.110 [main] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [hello.ApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
17:12:18.110 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [hello.ApplicationTests]: ApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
17:12:18.116 [main] DEBUG org.springframework.test.context.support.ActiveProfilesUtils - Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [hello.ApplicationTests]

17:12:18.117 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding [systemProperties] PropertySource with lowest search precedence
17:12:18.117 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence
17:12:18.117 [main] DEBUG org.springframework.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
17:12:18.117 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration hello.Application for test class hello.ApplicationTests
17:12:18.119 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [hello.ApplicationTests]: using defaults.
17:12:18.121 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener]
17:12:18.125 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Could not instantiate TestExecutionListener [org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [org/springframework/transaction/interceptor/TransactionAttribute]
17:12:18.126 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Could not instantiate TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [org/springframework/transaction/interceptor/TransactionAttributeSource]
17:12:18.126 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@10db82ae, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@501edcf1, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@78b729e6, org.springframework.test.context.support.DirtiesContextTestExecutionListener@6b4a4e18, org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener@27c86f2d, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@197d671, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@402e37bc, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@79ad8b2f, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@1df82230, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@22635ba0, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@13c10b87]
17:12:18.127 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [hello.ApplicationTests]
17:12:18.127 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [hello.ApplicationTests]
17:12:18.128 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [hello.ApplicationTests]
17:12:18.128 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [hello.ApplicationTests]
17:12:18.131 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@43ee72e6 testClass = ApplicationTests, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@23529fee testClass = ApplicationTests, locations = '{}', classes = '{class hello.Application}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.context.ImportsContextCustomizer@a20f2644, org.springframework.boot.test.context.SpringBootTestContextCustomizer@22a67b4, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@3224f60b, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@e7e8512, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@1d29cf23], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]]], class annotated with @DirtiesContext [false] with mode [null].
17:12:18.132 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [hello.ApplicationTests]
17:12:18.132 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [hello.ApplicationTests]
17:12:18.157 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding [systemProperties] PropertySource with lowest search precedence
17:12:18.157 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence
17:12:18.158 [main] DEBUG org.springframework.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
17:12:18.161 [main] DEBUG org.springframework.test.context.support.TestPropertySourceUtils - Adding inlined properties to environment: {spring.jmx.enabled=false, org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true, server.port=-1}
17:12:18.161 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding [Inlined Test Properties] PropertySource with highest search precedence

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.4.2.RELEASE)

2016-12-21 17:12:18.498  INFO 9876 --- [           main] hello.ApplicationTests                   : Starting ApplicationTests on HOSTNAME with PID 9876 (started by UserName in D:\Work\TestProjects\gs-securing-web\complete)
2016-12-21 17:12:18.498  INFO 9876 --- [           main] hello.ApplicationTests                   : No active profile set, falling back to default profiles: default
2016-12-21 17:12:18.663  INFO 9876 --- [           main] o.s.w.c.s.GenericWebApplicationContext   : Refreshing org.springframework.web.context.support.GenericWebApplicationContext@6f01b95f: startup date [Wed Dec 21 17:12:18 SAMT 2016]; root of context hierarchy
2016-12-21 17:12:20.122  INFO 9876 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: org.springframework.security.web.util.matcher.AnyRequestMatcher@1, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@7dff6d05, org.springframework.security.web.context.SecurityContextPersistenceFilter@4a7a965d, org.springframework.security.web.header.HeaderWriterFilter@573284a5, org.springframework.security.web.csrf.CsrfFilter@33364212, org.springframework.security.web.authentication.logout.LogoutFilter@128c502c, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@4f67e3df, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@64a9d48c, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@99407c2, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@45d64d27, org.springframework.security.web.session.SessionManagementFilter@23f72d88, org.springframework.security.web.access.ExceptionTranslationFilter@6601cc93, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@19b047fe]
2016-12-21 17:12:20.371  INFO 9876 --- [           main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring FrameworkServlet ''
2016-12-21 17:12:20.371  INFO 9876 --- [           main] o.s.t.web.servlet.TestDispatcherServlet  : FrameworkServlet '': initialization started
2016-12-21 17:12:20.422  INFO 9876 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2016-12-21 17:12:20.424  INFO 9876 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2016-12-21 17:12:20.440  INFO 9876 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/home] onto handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2016-12-21 17:12:20.441  INFO 9876 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Root mapping to handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2016-12-21 17:12:20.442  INFO 9876 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/hello] onto handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2016-12-21 17:12:20.442  INFO 9876 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/login] onto handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2016-12-21 17:12:20.457  INFO 9876 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2016-12-21 17:12:20.457  INFO 9876 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2016-12-21 17:12:20.478  INFO 9876 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2016-12-21 17:12:20.540  INFO 9876 --- [           main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.web.context.support.GenericWebApplicationContext@6f01b95f: startup date [Wed Dec 21 17:12:18 SAMT 2016]; root of context hierarchy
2016-12-21 17:12:20.871  INFO 9876 --- [           main] o.s.t.web.servlet.TestDispatcherServlet  : FrameworkServlet '': initialization completed in 500 ms
2016-12-21 17:12:21.030  INFO 9876 --- [           main] hello.ApplicationTests                   : Started ApplicationTests in 2.86 seconds (JVM running for 3.441)
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.352 sec - in hello.ApplicationTests
2016-12-21 17:12:21.463  INFO 9876 --- [       Thread-1] o.s.w.c.s.GenericWebApplicationContext   : Closing org.springframework.web.context.support.GenericWebApplicationContext@6f01b95f: startup date [Wed Dec 21 17:12:18 SAMT 2016]; root of context hierarchy

Results :

Tests run: 5, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ gs-securing-web ---
[INFO] Building jar: D:\Work\TestProjects\gs-securing-web\complete\target\gs-securing-web-0.1.0.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:1.4.2.RELEASE:repackage (default) @ gs-securing-web ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.889 s
[INFO] Finished at: 2016-12-21T17:12:22+04:00
[INFO] Final Memory: 30M/310M
[INFO] ------------------------------------------------------------------------

UserName@HostName D:\Work\TestProjects\gs-securing-web\complete
>



Запустить Jar?
Код: powershell
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
UserName@HostName D:\Work\TestProjects\gs-securing-web\complete> java -jar target/gs-securing-web-0.1.0.jar

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.4.2.RELEASE)

2016-12-21 17:16:53.730  INFO 9604 --- [           main] hello.Application                        : Starting Application v0.1.0 on HOSTNAME with PID 9604 (D:\Work\TestProjects\gs-securing-web\complete\target\gs-securing-web-0.1.0.jar started by UserName in D:\Work\TestProjects\gs-securing-web\complete)
2016-12-21 17:16:53.776  INFO 9604 --- [           main] hello.Application                        : No active profile set, falling back to default profiles: default
2016-12-21 17:16:54.153  INFO 9604 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5a2e4553: startup date [Wed Dec 21 17:16:54 SAMT 2016]; root of context hierarchy
2016-12-21 17:16:55.778  INFO 9604 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2016-12-21 17:16:55.791  INFO 9604 --- [           main] o.apache.catalina.core.StandardService   : Starting service Tomcat
2016-12-21 17:16:55.793  INFO 9604 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.5.6
2016-12-21 17:16:55.888  INFO 9604 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2016-12-21 17:16:55.888  INFO 9604 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 1738 ms
2016-12-21 17:16:56.094  INFO 9604 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'characterEncodingFilter' to: [/*]
2016-12-21 17:16:56.095  INFO 9604 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2016-12-21 17:16:56.095  INFO 9604 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2016-12-21 17:16:56.095  INFO 9604 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'requestContextFilter' to: [/*]
2016-12-21 17:16:56.097  INFO 9604 --- [ost-startStop-1] .s.DelegatingFilterProxyRegistrationBean : Mapping filter: 'springSecurityFilterChain' to: [/*]
2016-12-21 17:16:56.097  INFO 9604 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean  : Mapping servlet: 'dispatcherServlet' to [/]
2016-12-21 17:16:56.591  INFO 9604 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: org.springframework.security.web.util.matcher.AnyRequestMatcher@1, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@318ba8c8, org.springframework.security.web.context.SecurityContextPersistenceFilter@3c72f59f, org.springframework.security.web.header.HeaderWriterFilter@37918c79, org.springframework.security.web.csrf.CsrfFilter@2805c96b, org.springframework.security.web.authentication.logout.LogoutFilter@3901d134, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@25d250c6, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@222114ba, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@3d121db3, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@6dbb137d, org.springframework.security.web.session.SessionManagementFilter@233fe9b6, org.springframework.security.web.access.ExceptionTranslationFilter@5db250b4, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@33afa13b]
2016-12-21 17:16:56.683  INFO 9604 --- [           main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5a2e4553: startup date [Wed Dec 21 17:16:54 SAMT 2016]; root of context hierarchy
2016-12-21 17:16:56.781  INFO 9604 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2016-12-21 17:16:56.782  INFO 9604 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2016-12-21 17:16:56.794  INFO 9604 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/home] onto handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2016-12-21 17:16:56.794  INFO 9604 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Root mapping to handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2016-12-21 17:16:56.795  INFO 9604 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/hello] onto handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2016-12-21 17:16:56.795  INFO 9604 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/login] onto handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2016-12-21 17:16:56.808  INFO 9604 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2016-12-21 17:16:56.808  INFO 9604 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2016-12-21 17:16:56.851  INFO 9604 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2016-12-21 17:16:57.270  INFO 9604 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
2016-12-21 17:16:57.332  INFO 9604 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http)
2016-12-21 17:16:57.337  INFO 9604 --- [           main] hello.Application                        : Started Application in 4.226 seconds (JVM running for 4.679)
2016-12-21 17:17:07.992  INFO 9604 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring FrameworkServlet 'dispatcherServlet'
2016-12-21 17:17:07.992  INFO 9604 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization started
2016-12-21 17:17:08.011  INFO 9604 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization completed in 19 ms

...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372119
Фотография SQL2008
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Project build error: Non-resolvable parent POM for org.springframework:gs-securing-web:0.1.0: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.4.2.RELEASE from https://repo.spring.io/libs-release was cached in the local repository, resolution will not be reattempted until the update interval of spring-releases has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.4.2.RELEASE from/to spring-releases ( https://repo.spring.io/libs-release): connect timed out and 'parent.relativePath' points at wrong local POM
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372125
Фотография SQL2008
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Проект честно заимпортил через "Import Spring Getting Started Content" ни запятой не поменял.
Что подкрутить? Где подпилить чтобы заработало?
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372127
13-й Пилигрим
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
SQL2008, забудь пока про IDE. Через командную строку maven'ом собирается?
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372139
Фотография SQL2008
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
13-й Пилигрим Через командную строку maven'ом собирается?
Смысл этого выражения мне понятен весьма смутно...
Скажите где и какой набор команд ввести?
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372151
guest2
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
В корневой директории проекта
Код: plaintext
mvn clean package
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372162
13-й Пилигрим
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
SQL200813-й Пилигрим Через командную строку maven'ом собирается?
Смысл этого выражения мне понятен весьма смутно...
Эээ... Все настолько плохо? Может, перед тем как бочку катить стоило разобраться? Почитать хотя бы
Maven in 5 Minutes и/или Maven Getting Started Guide

SQL2008Скажите где и какой набор команд ввести?
guest2В корневой директории проекта
Код: plaintext
mvn clean package

Уточнение: {SomeDirectory}\gs-securing-web\complete\
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372207
Фотография SQL2008
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
13-й Пилигрим Может, перед тем как бочку катить стоило разобраться?

В Microsoft Visual Studio я так же понятия не имею как запустить компилляцию проекта на С++ из командной строки с указанием всех опций.
А их там на порядок больше чем в Java.
Между тем 95% примеров из интернета запускаются и компилируются сразу и без проблем!

Это не в защиту Микрософта и не в поругание Java!

Если для того, чтобы пользоваться микроволновкой мне нужно знать теорию электромагнитных волн, теорему Максвелла и уметь напильником менять частоту магнетрона, то это хреновая микроволновка, кто бы и что бы мне не говорил.
Я должен выбрать программу готовки (читай компилляции), загрузить продукты, задать время и получить готовый продукт.
А не непонятные сообщения на дисплее о том, что резонанс третьего контура возбуждения не выходит на пик, потому-что конденсатор генератора имеет повышенные потери, вследствие устаревания (читай - старая версия зависимостей) на частотах свыше 3 гигагерц!
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372217
y.dev.net
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
SQL2008В Microsoft Visual Studio я так же понятия не имею как запустить компилляцию проекта на С++ из командной строки с указанием всех опций.
...
Если для того, чтобы пользоваться микроволновкой мне нужно знать теорию электромагнитных волн, теорему Максвелла и уметь напильником менять частоту магнетрона, то это хреновая микроволновка, кто бы и что бы мне не говорил.


Как сейчас изучающий Java, скажу - может быть, тогда и продолжать пользоваться VS? Как вы вообще собираетесь пользоваться maven-ом, не прочитав даже базовые вещи про него? Бесполезно тут пенять на то, что в VS вам ничего для компиляции примитивного С++ проекта (якобы) не знать не надо, а вот в мавене - надо. Кстати, если проект на С++ примитивный (mvc-приложение с кучей зависимостей, говорите, у вас сходу в мавене не завелось?), то даже в студии вам придется частенько повозиться с настройками для того, чтобы его тупо скомпилировать. Ну да, там типа будет графический интерфейс, но понимать, что делаешь все равно нужно будет.
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372248
Фотография Petro123
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
SQL2008Я должен выбрать программу готовки (читай компилляции),
уже говорилось.
Также как и админ Оракла супротив админа MS SQL Server исторически конфигурирует без IDE,
также и в Java _исторически_ программируют с минимумом IDE.
Ты не знал? В вашем NET ситуация прямо противоположная.
В защиту Java скажу, что Hello world можно делать в IDE.
Но ты же не захотел. Начал обсирать командную строку)).
...
Есть ещё аннотации в XML и прямо в коде.
Есть конфиги из "командной строки".
Много чего.
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372250
y.dev.net
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
BlazkowiczMaven, безусловно, говно. Но совершенно не по причинам указанным в этой теме.

Расскажите плз, почему он гавно? :)

Сам только с ним повозился. Лично по моему опыту новичка, мавен мне не понравился тем, что он жестко определяет lifecycle моего проекта, причем именно что довольно жестко. И если мне нужно выполнять в рамках lifecycle кастомные goals, или определить свой lifecycle, скажем, мне нужно писать довольно неочевидные плагины. Причем, я когда делал этот плагин с кастомным lifecyscle-ом, я делал это тупо по примерам из исходников (разбираясь уже в плексусе, вынудили) - т.к. документирована эта часть очень и очень слабо, сайт с туториалами/документацией наполовину неконсистентен, наполовину лежит и такое прочее.

Это, кстати, на заметку ТС - шаг влево, шаг вправо, все равно придется разбираться с мавеном подробно.
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372251
Фотография Petro123
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
SQL2008,
не нравится мавен - задай новый топик: "Hello World spring + IDE"
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372273
Фотография Blazkowicz
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
y.dev.netРасскажите плз, почему он гавно? :)

Сам только с ним повозился. Лично по моему опыту новичка, мавен мне не понравился тем, что он жестко определяет lifecycle моего проекта, причем именно что довольно жестко. И если мне нужно выполнять в рамках lifecycle кастомные goals, или определить свой lifecycle, скажем, мне нужно писать довольно неочевидные плагины. Причем, я когда делал этот плагин с кастомным lifecyscle-ом, я делал это тупо по примерам из исходников (разбираясь уже в плексусе, вынудили) - т.к. документирована эта часть очень и очень слабо, сайт с туториалами/документацией наполовину неконсистентен, наполовину лежит и такое прочее.

Это, кстати, на заметку ТС - шаг влево, шаг вправо, все равно придется разбираться с мавеном подробно.
Сам спросил, сам ответил. :)
Потому и говно, что шаг влево\шаг вправо и начинается куча геморроя и XML программирования.
То что maven делает по-умолчанию, он делает хорошо. Но если начинаются изыски, то лучше их делать без мавена.
Ну, и по мелочи там косяков масса. Меня вот, например, версионность бесит. Куча модулей в проекте. Мавен предлагет отдельно для каждого модуля версию вести? Можно через переменные извернуться. Но с ними другие ошибки вылазят.
...
Рейтинг: 0 / 0
В чём преимущество MAVEN проектов???
    #39372282
y.dev.net
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
BlazkowiczТо что maven делает по-умолчанию, он делает хорошо. Но если начинаются изыски, то лучше их делать без мавена.

Спасибо!

По выделенному такой вопрос - а какие практики без мавена для кастомных тасков? Я приведу свой пример (дилетантский, конечно - но это так, щупаю просто). Мне нужно было автоматически генерировать миграции по JPA-сущностям, в т.ч. "начальную" схему (initial). Для этого я взял liquidbase, через hsqldb генерировал слепок, затем по нему сверялся с текущим состоянием девелоперской базы в PostreSQL, генерировал diff (тут вылезли сразу косяки liquibase, к слову). Ну и нужно было отдельно генерировать diff, отдельно его накатывать, еще что-то отдельно. Что в дефолтном lifecycle-е мавена никак не делается плюс-минус элегантно (ну опять же надо учитывать, что я в принципе новичок во всём этом). И пришлось мне писать свой лайфцайкл на эту всю фигню, плагины, mojo-классы и прочее.

Подскажите плз, вот какие вообще практики для таких вещей без мавена? Тулзу свою делать? Или эти вещи как-то по другому делаются? Какие вообще типичные сценарии, где мавен неудобен и как они обходятся без мавена наиболее по уму?
...
Рейтинг: 0 / 0
25 сообщений из 131, страница 3 из 6
Форумы / Java [игнор отключен] [закрыт для гостей] / В чём преимущество MAVEN проектов???
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]