使用密钥切换到flyway企业版(试用版)后,任何以前的版本都会遇到以下错误。以前的社区版本(在// project / plugin / groupid中删除.enterprise)运行良好。 我切换到(试用)企业,因为社区版本不再支持Oracle 11.x。
[ERROR] No plugin found for prefix 'flyway' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\uidt6762\.m2\repository), flyway-repo (https://repo.flywaydb.org/repo), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
settings.xml
<server>
<id>flyway-repo</id>
<username>FL... mylicensekey</username>
<password>flyway</password>
</server>
pom.xml
<properties>
<flyway.version>6.1.0</flyway.version>
<database.url>jdbc:oracle:thin:@localhost:1521:orcl</database.url>
<database.user>ar_devl</database.user>
<database.password>AraDevlMis159</database.password>
</properties>
<repositories>
<repository>
<id>flyway-repo</id>
<url>https://repo.flywaydb.org/repo</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>flyway-repo</id>
<url>https://repo.flywaydb.org/repo</url>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
<version>${flyway.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.osgi/org.osgi.core -->
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<version>4.3.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc8</artifactId>
<version>12.2.0.1.0</version>
<!-- Oracle JDBC driver not in maven repository; keep it local in the
project -->
<scope>system</scope>
<systemPath>${project.basedir}/lib/ojdbc8.jar</systemPath>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.flywaydb.enterprise</groupId>
<artifactId>flyway-maven-plugin</artifactId>
<version>${flyway.version}</version>
<configuration>
<sqlMigrationSeparator>__</sqlMigrationSeparator>
<locations>
<location>filesystem:src/main/resources/flyway/migrations</location>
<location>classpath:com/vitesco/air</location>
</locations>
<url>${database.url}</url>
<user>${database.user}</user>
<password>${database.password}</password>
</configuration>
<dependencies>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc8</artifactId>
<version>12.2.0.1.0</version>
<!-- Oracle JDBC driver not in maven repository; keep it local in the
project -->
<scope>system</scope>
<systemPath>${project.basedir}/lib/ojdbc8.jar</systemPath>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>