Hello,
i have the following problem: If i call mvn clean process-resources
and then ant directly on my build.xml, then the build is successful.
If i want to execute the antrun-plugin, with mvn compile, then the
build fails with the message

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.6:run (compile) on pro
ject infopool: An Ant BuildException has occured: The following error
occurred while executing this
line:
[ERROR] E:\Softwareentwicklung\Git_Repositories\project\build.xml:120:
The following error occu
rred while executing this line:
[ERROR] E:\Softwareentwicklung\Git_Repositories\project\modules_artifact.xml:12:
The following
error occurred while executing this line:
[ERROR] E:\Softwareentwicklung\Git_Repositories\project\buildAndRelease.xml:21:
The following e
rror occurred while executing this line:
[ERROR] E:\Softwareentwicklung\Git_Repositories\project\buildAndRelease.xml:193:
Unable to find
 a javac compiler;
[ERROR] com.sun.tools.javac.Main is not on the classpath.
[ERROR] Perhaps JAVA_HOME does not point to the JDK.
[ERROR] It is currently set to "C:\Programme\Java\jdk1.5.0_22\jre"

echo %JAVA_HOME% gives me C:\Programme\Java\jdk1.5.0_22, which is the
correct path. So where does this "jre" come from?

My pom.xml:

<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>
        <parent>
                <groupId>de.company</groupId>
                <artifactId>parent</artifactId>
                <version>50-SNAPSHOT</version>
        </parent>
        <groupId>de.company</groupId>
        <artifactId>artifact</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <packaging>jar</packaging>

        <name>infopool</name>

        <properties>
                
<project.build.sourceEncoding>Cp1252</project.build.sourceEncoding>
        </properties>

        <dependencies>
                <dependency>
                        <groupId>de.company</groupId>
                        <artifactId>protokoll</artifactId>
                        <version>2.0.0-SNAPSHOT</version>
                </dependency>
                <dependency>
                        <groupId>de.company</groupId>
                        <artifactId>tracking</artifactId>
                        <version>2.0.0-SNAPSHOT</version>
                </dependency>           
                <dependency>
                        <groupId>de.company</groupId>
                        <artifactId>trackingimpl</artifactId>
                        <version>2.0.0-SNAPSHOT</version>
                </dependency>   
                <dependency>
                        <groupId>de.company</groupId>
                        <artifactId>protokollauftrag</artifactId>
                        <version>2.0.0-SNAPSHOT</version>
                </dependency>
        </dependencies>

        <build>
                <plugins>
                        <plugin>
                                <artifactId>maven-dependency-plugin</artifactId>
                                <version>2.2</version>
                                <executions>
                                        <execution>
                                                <id>copydeps</id>
                                                <phase>process-resources</phase>
                                                <goals>
                                                        
<goal>copy-dependencies</goal>
                                                </goals>
                                                <inherited>false</inherited>
                                                <configuration>
                                                        
<outputDirectory>${project.build.directory}/lib</outputDirectory>
                                                        
<overWriteReleases>true</overWriteReleases>
                                                        
<overWriteSnapshots>true</overWriteSnapshots>
                                                        
<overWriteIfNewer>true</overWriteIfNewer>
                                                        
<stripVersion>true</stripVersion>
                                                        
<prependGroupId>true</prependGroupId>
                                                        
<includeGroupIds>de.company</includeGroupIds>
                                                        
<excludeArtifactIds>loggingapi,hibernate</excludeArtifactIds>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>
                        <plugin>
                                <artifactId>maven-antrun-plugin</artifactId>
                                <version>1.6</version>
                                <executions>
                                        <execution>
                                                <id>compile</id>
                                                <phase>compile</phase>
                                                <goals>
                                                        <goal>run</goal>
                                                </goals>
                                                <inherited>false</inherited>
                                                <configuration>
                                                        <target>
                                                                <ant 
antfile="build.xml" />
                                                        </target>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>
                </plugins>
        </build>
</project>


Regards,
Manuel

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to