Gradle에서는 하나의 Source 디렉터리만 지원을 해줍니다.( src/main/java ) SourceSets은 이러한 제약사항을 지원하기 위해 사용이 됩니다. SourceSets은 Java 소스와 리소스 파일의 논리적인 그룹을 나타내줍니다. 하나 이상의 Source 디렉터리를 Gradle에서 처리를 하기 위해서 SourceSets에 Source 디렉터리를 등록해 주면 됩니다. java plugin 에 SourceSets 이 등록되어 있고, main이라는 entry name이 default로 등록되어 있습니다. 아래와 같이 SourceSets에 source 디렉터리를 등록 할 수 있습니다. sourceSets { main { java { srcDir 'src/main/java2' } } } 그리고,..
gradle 에 plugin 을 적용하는 방법은 아래의 2가지 방법이 있습니다. 그럼 2가지의 차이점이 뭐냐면,, 없습니다. 그냥 1번 방법이 먼저 나오고, 나중에 2번 방법이 추가 되었습니다. 결론은 아무거나 사용해도 됩니다. apply plugin apply plugin: 'java' plugins task plugins { id 'java' id 'xxx' version 'x.x.x' } 참조 https://stackoverflow.com/questions/32352816/what-the-difference-in-applying-gradle-plugin
download failed: javax.media#jai\_core;1.1.3!jai\_core.jar maven central repository 에서 jai_core.jar 파일을 찾지 못하여 발생하는 에러이다. https://repo1.maven.org/maven2/javax/media/jai_core/1.1.3/ repository 에 가보면, jar 파일이 없는 것을 알수 있다. http://download.osgeo.org/webdav/geotools repository 를 추가하면, jar 를 받을 수 있다. repositories { maven { url "http://download.osgeo.org/webdav/geotools/" } mavenCentral() }
APM 동작을 안하거나, APM 에서 service 를 못찾거나, APM 에서 Configuration 생성 시에 에러가 나거나 하는 경우가 있으면, apm 관련 에러 index 에서 ES 의 index가 block이 됐다거나 read-only, allow delete (api) 의 메시지를 보게 되면 아래와 같이... index \[.kibana\_1\] blocked by: \[forbidden/12/index read-only / allow delete (api)\]; 일일히 찾아서 설정을 변경해줘도 좋지만, 그냥 모든 인덱스 설정을 변경해줘도 된다. curl -XPUT localhost:9200/_all/_settings -H 'Content-Type: application/json' -d '{"..
Load Kibana 수행 시, 아래와 같이 에러가 나는 경우가 있다. unable to add 1 of 1 kibana objects, error: index [.kibana_1] blocked by: [forbidden/12/index read-only / allow delete (api)]; .kibana_1 인덱스가 block 이 되어 에러가 난 경우다. 아래 명령어를 통해 ES의 .kibana_1 인덱스의 설정을 변경해주자. curl -XPUT localhost:9200/.kibana_1/_settings -H 'Content-Type: application/json' -d '{"index":{"blocks":{"read_only_allow_delete":false}}}' 그러면, Load ki..
변경 사항이 대용량 인 경우, push 할 때 아래와 같이 에러가 나는 경우가 있다. error: unable to rewind rpc post data - try increasing http.postBuffer error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60 fatal: the remote end hung up unexpectedly fatal: the remote end hung up unexpectedly Everything up-to-date Completed with errors, see above 이는 대부분 Git 의 buffer 가 작아서 그렇다. 아래와 같이 Git의 postBuffer 를 늘려주면 해결이..
- Total
- Today
- Yesterday
- Size
- error
- gradle
- Container
- Git
- scala
- Index
- Log
- AWS
- apm
- SpringBoot
- maven
- spring
- JPA
- Filter
- Spark
- Postman
- mac
- plugin
- JSON
- tomcat
- install
- intellij
- docker
- elasticsearch
- spring boot
- Java
- logstash
- Linux
- Kibana
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |