Hello guys,

I'm trying to do a simple thing here. From inside a pom.xml call an external ant.

When an ant run, it appears a message indicating it couldn't find javac.

The message is:
Embedded error: The following error occurred while executing this line: "path"\build.xml:85: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK

In the pom.xml file, I have the calling like that:

<build>
    <plugins>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>generate-sources</phase>
            <configuration>
              <tasks>
                <ant inheritAll="false" dir="iada/iuda" target="all"/>
<ant inheritAll="false" dir="iada/blabla" antfile="build-outer-orig.xml" target="deploy"/>
                                
               </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

Someone have any idea about it? Shouldn't be simple to call an external ant?

If anyone could help me, I would really appreciate.

Best Regards,
--
Giovani Facchini          [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to