hibernate3-maven-plugin을 사용하여 새로운 데이터베이스에 데이터베이스 스키마를 생성하는 데 사용할 수있는 SQL 스크립트를 자동으로 생성했습니다. hbm2ddl 도구를 통해이 작업을 수행합니다. 필자는 SQL을 파일에 작성하도록 지시했을 때 SQL의 50 페이지로 된 내 maven 빌드를 어수선하게 만들지 않을 것이라고 생각했습니다. 어쨌든 콘솔에 쓰는 것을 멈추고 파일에만 쓰도록 하시겠습니까? 답변을 찾을 수 없습니다!hibernate3-maven-plugin HBM2DDL을 콘솔에서 출력하지 못하게하는 방법
0
A
답변
2
이 플러그인에 대한 설정이 추가 :
<componentProperties>
...
<console>false</console>
...
</componentProperties>
0
<plugin>
<!-- run "mvn hibernate3:hbm2ddl" to generate a schema -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>hibernate3-maven-plugin</artifactId>
<version>3.0</version>
<executions>
<execution>
<id>create-schema</id>
<phase>process-test-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<hibernatetool>
<classpath>
<path location="${project.build.directory}/classes" />
<path location="${project.basedir}/src/main/resources" />
</classpath>
<configuration configurationfile="${project.basedir}/src/main/resources/hibernate.cfg.xml"></configuration>
<hbm2ddl create="true" export="false" console="false" destdir="${project.basedir}/target" drop="true" outputfilename="mysql.sql" format="true" />
</hibernatetool>
</configuration>
</execution>
</executions>
</plugin>
는 "콘솔"라는 속성이있다, 당신은 단지 "거짓"
로 설정해야합니다관련 문제
- 1. 이상한 출력하지
- 2. Windows 콘솔에서 PHP 오류 디버그
- 3. Windows 콘솔에서 LOCALE을 설정하는 방법
- 4. 별도의 콘솔에서 추적을 보는 방법
- 5. 이클립스에서, 콘솔에서 함수를 읽는 방법?
- 6. GDB가 "step into"할 때 함수 매개 변수 값을 출력하지 못하게하는 방법은 무엇입니까?
- 7. Cocoa/iPhone : ibtool이 xib 파일에 지역화 할 수없는 문자열을 출력하지 못하게하는 방법은 무엇입니까?
- 8. FirePHP에서 아무것도 출력하지 않습니다.
- 9. AudioQueue가 소리를 출력하지 않습니다.
- 10. Ruby가 실시간으로 출력하지 않습니다.
- 11. 프롤로그가 문을 출력하지 않음
- 12. json 출력하지 않음
- 13. PHP가 오류를 출력하지 않습니까?
- 14. SVN이 이미 저장소에있는 디렉토리를 업데이트하지 못하게하는 방법
- 15. CSS로 특정 텍스트를 선택하지 못하게하는 방법
- 16. C# 사용자가 만든 프로그램을 사용하지 못하게하는 방법
- 17. sitemesh가 textarea에서 html을 구문 분석하지 못하게하는 방법
- 18. 내 ExtJS 패널 자체를 복제하지 못하게하는 방법
- 19. 누군가가 포럼 댓글에 HTML을 던지지 못하게하는 방법
- 20. 서비스가 특정 시간에 메시지를 수신하지 못하게하는 방법
- 21. Wordpress에서 게시물을 html로 인코딩하지 못하게하는 방법
- 22. 버튼이있는 JQuery 아코디언 - 열지 못하게하는 방법?
- 23. 브라우저가 스크롤 이벤트에 응답하지 못하게하는 방법
- 24. 모바일 브라우저가 이미지를 다운로드하고 표시하지 못하게하는 방법
- 25. 저장 후 jqGrid가 행을 복원하지 못하게하는 방법
- 26. IE 필터가 백그라운드 이미지를 덮지 못하게하는 방법
- 27. Vim이 절대 이스케이프 코드를 삽입하지 못하게하는 방법
- 28. 명령/스크립트가 글로벌 환경을 변경하지 못하게하는 방법
- 29. 브라우저 창에서 div의 너비를 변경하지 못하게하는 방법
- 30. mail()이 확인을 기다리지 못하게하는 방법 (true)