3
기존 Grails 프로젝트를위한 Grails와 Maven 통합을 만들려고합니다. 그러나 지금 또한 메이븐 POM 파일에 정의 할 필요가있는 받는다는 통합이 Grails의 2.1.0 및 플러그인 종속성으로 재 작업 한 내 pom.xml 파일Grails와 Maven 통합
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.samples</groupId>
<artifactId>Co-optimum</artifactId>
<packaging>war</packaging>
<name>Co-optimum</name>
<properties>
<sourceComplianceLevel>1.6</sourceComplianceLevel>
</properties>
<version>0.1</version>
<dependencies>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.5.8</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.5.8</version>
<scope>runtime</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.grails</groupId>
<artifactId>grails-maven-plugin</artifactId>
<version>1.3.7</version>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>clean</goal>
<goal>config-directories</goal>
<goal>maven-compile</goal>
<goal>maven-test</goal>
<goal>maven-war</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
가 응답을 유 감사합니다 나는이 – NARENDRA
org.codehaus.groovy.grails.exceptions.NewInstanceCreationException을 다할 것입니다 : [HibernateGrailsPlugin] 클래스의 새 인스턴스를 만들 수 없습니다! – NARENDRA
또한 pom 의존성에 Hibernate 플러그인을 추가해야합니다. org.grails.plugins {grails.version} 런타임 $ 최대 절전 모드 우편 –
Ruben