[infinispan-issues] [JBoss JIRA] (ISPN-4794) Ant errors in some modules with partial builds (mvn -am -pl)

Dan Berindei (JIRA) issues at jboss.org
Wed Oct 1 07:57:03 EDT 2014


Dan Berindei created ISPN-4794:
----------------------------------

             Summary: Ant errors in some modules with partial builds (mvn -am -pl)
                 Key: ISPN-4794
                 URL: https://issues.jboss.org/browse/ISPN-4794
             Project: Infinispan
          Issue Type: Bug
          Components: Build process
    Affects Versions: 7.0.0.Beta2
            Reporter: Dan Berindei
            Assignee: Mircea Markus
             Fix For: 7.0.0.CR1


I often want to run the tests in a particular module, so I run a command similar to this to build that module and its dependencies:

{{mvn clean && mvn install -DskipTests -am -pl integrationtests/as-integration-client}}

That doesn't work, and I get an Ant error message:

{noformat}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (generate-distros-and-configs) on project infinispan-as-module-client-integrationtests: An Ant BuildException has occured: The following error occurred while executing this line:
[ERROR] /home/dan/Work/logs/infinispan/integrationtests/as-integration-client/build.xml:16: /home/dan/Work/logs/infinispan/server/integration/build/target/infinispan-server-7.0.0-SNAPSHOT does not exist.
[ERROR] around Ant part ...<ant antfile="build.xml" target="create_distro"/>... @ 4:52 in /home/dan/Work/logs/infinispan/integrationtests/as-integration-client/target/antrun/build-main.xml
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (generate-distros-and-configs) on project infinispan-as-module-client-integrationtests: An Ant BuildException has occured: The following error occurred while executing this line:
/home/dan/Work/logs/infinispan/integrationtests/as-integration-client/build.xml:16: /home/dan/Work/logs/infinispan/server/integration/build/target/infinispan-server-7.0.0-SNAPSHOT does not exist.
around Ant part ...<ant antfile="build.xml" target="create_distro"/>... @ 4:52 in /home/dan/Work/logs/infinispan/integrationtests/as-integration-client/target/antrun/build-main.xml
{noformat}

Running {{mvn clean && mvn install -DskipTests}} works fine, so there must be some bad interaction between the Ant build scripts and the partial build system in Maven.



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the infinispan-issues mailing list