나는 circumflex orm을 배우고 처음으로 아이디어가있는 maven을 사용하고 있습니다. 나는 src
에 내 소스가 build
디렉토리로 컴파일 될 것으로 예상했다. 그러나 그것은 일어나지 않습니다. 내가 ${basedir}/src
또는 ${project.basedir}/build
같은 sourceDirectory
및 outputDirectory
를 지정하는 경우, 그리고 같은 폴더가 존재하지 않음을 인 IntelliJ 아이디어의 검사를받을 (원문를!)intellij 아이디어에서 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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>C2Probe</groupId>
<artifactId>C2Probe</artifactId>
<version>1.0</version>
<build>
<sourceDirectory>src</sourceDirectory>
<outputDirectory>build</outputDirectory>
<plugins>
<plugin>
<groupId>ru.circumflex</groupId>
<artifactId>maven-cx-plugin</artifactId>
<version>${cx.version}</version>
<executions>
<execution>
<id>configure</id>
<phase>compile</phase>
<goals>
<goal>cfg</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<cx.version>1.1</cx.version>
<orm.connection.driver>org.postgresql.Driver</orm.connection.driver>
<orm.connection.url>jdbc:postgresql:mydb</orm.connection.url>
<orm.connection.username>myuser</orm.connection.username>
<orm.connection.password>mypass</orm.connection.password>
</properties>
<dependencies>
<dependency>
<groupId>ru.circumflex</groupId>
<artifactId>circumflex-orm</artifactId>
<version>${cx.version}</version>
</dependency>
</dependencies>
</project>
내 소스를 컴파일하려면 어떻게해야합니까?
이제 [scala-maven-plugin] (https://github.com/davidB/scala-maven-plugin)을 사용해야합니다. – schmmd