English 中文(简体)
多种模块组合项目问题
原标题:Multi module maven-soapUI project issue

我正在使用“幻灯片”构造一个多功能玉米-SapUi项目。 我有几个儿童ven项目,每个项目都有自己的项目xml和pom.xml文档。 当我单独管理每个儿童项目时,它会进行罚款。 但是,当我管理母项目时,它看着母体目录中的xml项目档案,而不是儿童目录,因此失败了,是否有解决办法?

Child POM

    <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>

   <parent>
         <groupId>com.project</groupId>
         <artifactId>project-test</artifactId>
         <version>1.0-SNAPSHOT</version>
         <relativePath>../pom.xml</relativePath>
   </parent>

   <name>submodule SoapUI tests</name>
   <groupId>com.prject</groupId>
   <artifactId>project-submodule-test</artifactId>
   <version>1.0-SNAPSHOT</version>
   <packaging>jar</packaging>
   <description>Submodule SoapUI tests</description>    
   <pluginRepositories>   
        <pluginRepository>      
            <id>eviwarePluginRepository</id>      
            <url>http://www.eviware.com/repository/maven2/</url>   
        </pluginRepository>
   </pluginRepositories> 
   <build>
      <plugins> 
         <plugin>
            <groupId>eviware</groupId>
            <artifactId>maven-soapui-pro-plugin</artifactId>
            <version>4.5.0</version>
            <dependencies>
            <dependency>
                <groupId>com.microsoft.sqlserver</groupId>               
                <artifactId>sqljdbc4</artifactId>               
                <version>3.0</version>   
            </dependency>
          </dependencies>
        <executions>
               <execution>
                  <id>soapUI</id>
                  <goals>
                     <goal>test</goal> 
                  </goals>
                  <phase>test</phase>           
               </execution>
            </executions>                       
            <configuration>
               <projectFile>submodule.xml</projectFile>
               <outputFolder>Reports</outputFolder>
               <junitReport>true</junitReport>
               <printReport>false</printReport>
               <projectProperties/>
            </configuration>
         </plugin>   
      </plugins>
   </build>          
</project>

父母

    <?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.project</groupId>
    <artifactId>project-test</artifactId>
    <packaging>pom</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>SoapUI tests</name>

    <modules>
            <module>submodule</module>
    </modules>
</project>
最佳回答

儿童 p的微小变化对此作了规定。

更改项目档案

<projectFile>submodule.xml</projectFile>

页: 1

<projectFile>{basedir}/submodule.xml</projectFile>

如果有人来到这里寻求类似的解决办法......

问题回答

暂无回答




相关问题
Derby gets stuck closing?

I ve got unit tests (in maven) that use derby. At the end of the test run, there is a very long pause, with these log messages before the pause. INFO: Closing Hibernate SessionFactory Nov 16, 2009 8:...

Execute goal on parent after children complete

I have a multi-module maven project (several levels of nesting). Normally, when I execute a maven build (like mvn install or whatever), maven will run all the goals for the parent project before ...

Including dependencies in a jar with Maven

Is there a way to force maven(2.0.9) to include all the dependencies in a single jar file? I have a project the builds into a single jar file. I want the classes from dependencies to be copied into ...

Java Equivalent of distcc

Distcc makes it easy to distribute a C or C++ compile job across a number of machines, and is a godsend for working with large, frequently-built codebases. An increasing number of our large projects ...

Maven Assembly Problem

I have a maven multiple-module project, which is giving me headaches in the assembly:assembly phase. I have a module which has an assembly defined in it which works fine when I invoke mvn assembly:...

热门标签