Tycho无法找到oracle数据库驱动程序包

时间:2016-02-26 11:46:08

标签: java eclipse oracle maven tycho

我观察到以下问题。我有一个RCP Eclipse应用程序。 Eclipse发布的是Mars。我想使用Tycho插件来构建这个应用程序。所有必需的bundle都安装在我的Eclipse发行版中。我可以使用Eclipse IDE构建和导出此应用程序(通过产品文件)。当我尝试使用maven构建应用程序时,我遇到了错误

 Cannot resolve project dependencies:                                                                                                         
   Software being installed: com.psl.atom.services 1.0.0.qualifier                                                                            
   Missing requirement: com.psl.atom.services 1.0.0.qualifier requires 'bundle oracle.database.driver.11 8.6.0' but it could not be found     

所以问题是maven无法找到oracle驱动程序包。如上所述,这个包安装在我的Eclipse中。用于将oracle包安装到Eclipse IDE的存储库包含在目标文件中。 有人可以帮我解决这个问题吗?我怎样才能正确获取Oracle捆绑包。由于许可证问题,此捆绑包存储在另一个存储库中,而不是存储在Maven Central中。 就像Eclipse说的那样,数据库工具是从

安装的
<repository location="http://download.oracle.com/otn_software/oepe/12.2.1.2/mars/repository" />

提前谢谢你 亚历山大

我的父母是

<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>xxx.xxx.xxx</groupId>
    <version>1.0.0</version>
    <artifactId>xxx.xxx.xxx.parent</artifactId>
    <packaging>pom</packaging>
    <properties>
        <tycho-version>0.23.1</tycho-version>
        <xtextVersion>2.9.1</xtextVersion>
        <project.build.sourceEncoding>windows-1251</project.build.sourceEncoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <xxx.xxx.xxx.services.version>1.0.0</xxx.xxx.xxx.services.version>
    </properties>
    <modules>
        <module>xxx.xxx.xxx</module>
        <module>xxx.xxx.xxx.ide</module>
        <module>xxx.xxx.xxx.ui</module>
        <module>xxx.xxx.xxx.target</module>
        <module>xxx.xxx.xxx.tests</module>
        <module>xxx.xxx.xxx.ui.tests</module>
        <module>xxx.xxx.xxx.services</module>
    </modules>
    <build>
        <plugins>
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-maven-plugin</artifactId>
                <version>${tycho-version}</version>
                <extensions>true</extensions>
            </plugin>
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>target-platform-configuration</artifactId>
                <version>${tycho-version}</version>
                <configuration>
                    <target>
                        <artifact>
                            <groupId>xxx.xxx.xxx</groupId>
                            <artifactId>xxx.xxx.xxx.target</artifactId>
                            <version>${project.version}</version>
                        </artifact>
                    </target>
                    <environments>
                        <environment>
                            <os>win32</os>
                            <ws>win32</ws>
                            <arch>x86_64</arch>
                        </environment>
                        <environment>
                            <os>win32</os>
                            <ws>win32</ws>
                            <arch>x86</arch>
                        </environment>
                    </environments>
                </configuration>
            </plugin>
        </plugins>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.eclipse.xtend</groupId>
                    <artifactId>xtend-maven-plugin</artifactId>
                    <version>${xtextVersion}</version>
                    <executions>
                        <execution>
                            <goals>
                                <goal>compile</goal>
                                <goal>testCompile</goal>
                            </goals>
                        </execution>
                    </executions>
                    <configuration>
                        <outputDirectory>${basedir}/xtend-gen</outputDirectory>
                        <testOutputDirectory>${basedir}/xtend-gen</testOutputDirectory>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-clean-plugin</artifactId>
                    <version>2.5</version>
                    <configuration>
                        <filesets>
                            <fileset>
                                <directory>${basedir}/xtend-gen</directory>
                                <includes>
                                    <include>**/*</include>
                                </includes>
                                <directory>${basedir}/xtend-gen</directory>
                                <includes>
                                    <include>**/*</include>
                                </includes>
                            </fileset>
                        </filesets>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.eclipse.m2e</groupId>
                    <artifactId>lifecycle-mapping</artifactId>
                    <version>1.0.0</version>
                    <configuration>
                        <lifecycleMappingMetadata>
                            <pluginExecutions>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>
                                        org.codehaus.mojo
                                    </groupId>
                                        <artifactId>
                                        build-helper-maven-plugin
                                    </artifactId>
                                        <versionRange>
                                        [1.9.1,)
                                    </versionRange>
                                        <goals>
                                            <goal>add-resource</goal>
                                            <goal>add-source</goal>
                                            <goal>add-test-resource</goal>
                                            <goal>add-test-source</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore>
                                        </ignore>
                                    </action>
                                </pluginExecution>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>
                                        org.eclipse.tycho
                                    </groupId>
                                        <artifactId>
                                        tycho-compiler-plugin
                                    </artifactId>
                                        <versionRange>
                                        [0.23.1,)
                                    </versionRange>
                                        <goals>
                                            <goal>compile</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore>
                                        </ignore>
                                    </action>
                                </pluginExecution>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>
                                        org.eclipse.tycho
                                    </groupId>
                                        <artifactId>
                                        tycho-packaging-plugin
                                    </artifactId>
                                        <versionRange>
                                        [0.23.1,)
                                    </versionRange>
                                        <goals>
                                            <goal>build-qualifier</goal>
                                            <goal>validate-id</goal>
                                            <goal>validate-version</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore>
                                        </ignore>
                                    </action>
                                </pluginExecution>
                            </pluginExecutions>
                        </lifecycleMappingMetadata>
                    </configuration>
                </plugin>
                <plugin>
                    <!-- 
                    Can be removed after first generator execution
                    https://bugs.eclipse.org/bugs/show_bug.cgi?id=480097
                -->
                    <groupId>org.eclipse.tycho</groupId>
                    <artifactId>tycho-compiler-plugin</artifactId>
                    <version>${tycho-version}</version>
                    <configuration>
                        <compilerArgument>-err:-forbidden</compilerArgument>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
    <dependencies>
    </dependencies>
</project>

我的目标文件是

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target name="com.psl.atom.target" sequenceNumber="1">
    <locations>
        <location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="false" type="InstallableUnit">
            <unit id="org.eclipse.jdt.feature.group" version="0.0.0" />
            <unit id="org.eclipse.platform.feature.group" version="0.0.0" />
            <unit id="org.eclipse.pde.feature.group" version="0.0.0" />
            <unit id="org.eclipse.draw2d.feature.group" version="0.0.0" />
            <unit id="org.eclipse.emf.sdk.feature.group" version="0.0.0" />
            <unit id="org.eclipse.xpand" version="0.0.0" />
            <unit id="org.eclipse.xtend" version="0.0.0" />
            <unit id="org.eclipse.xtend.typesystem.emf" version="0.0.0" />
            <repository location="http://download.eclipse.org/releases/mars/201506241002/" />
            <repository location="http://download.oracle.com/otn_software/oepe/mars" />
            <repository location="http://download.oracle.com/otn_software/oepe/12.2.1.2/mars/repository" />
            <repository location="http://download.oracle.com/otn_software/oepe/12.2.1.2/mars/repository/dependencies" />
        </location>
        <location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="false" type="InstallableUnit">
            <unit id="org.eclipse.emf.mwe2.launcher.feature.group" version="0.0.0" />
            <repository location="http://download.eclipse.org/modeling/emft/mwe/updates/releases/2.8.1/" />
        </location>
        <location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="false" type="InstallableUnit">
            <unit id="org.eclipse.xtext.sdk.feature.group" version="0.0.0" />
            <repository location="http://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.9.1/" />
        </location>
    </locations>
</target>

0 个答案:

没有答案