maven build failing on slave

6 views
Skip to first unread message

Eric Wood

unread,
Jul 13, 2015, 10:15:22 AM7/13/15
to Jenkinsci-users
I have a Maven build that runs fine on the master, but when it runs on the slave it fails.  The pom.xml that drives the maven build has a custom execution statement that appears to use a property setting in the same file.  The file has the following. Is it possible that the slave is not passing ${basedir} properly?



    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-install-plugin</artifactId>
                <version>2.5.2</version>
                <executions>
                    <execution>
                        <id>install-obsidian.jar</id>
                        <goals>
                            <goal>install-file</goal>
                        </goals>
                        <phase>validate</phase>
                        <configuration>
                            <groupId>company</groupId>
                            <artifactId>obsidian</artifactId>
                            <version>1.0</version>
                            <packaging>jar</packaging>
                            <file>${obsidian.path}/obsidian.jar</file>
                            <generatePom>true</generatePom>
                        </configuration>
                    </execution>
                   
 
     <properties>
        <obsidian.jar.path>${basedir}/src/main/lib</obsidian.jar.path>
        <obsidian.war.path>${basedir}</obsidian.war.path>
        <powermock.version>1.6.2</powermock.version>

    </properties>

 
 
Reply all
Reply to author
Forward
0 new messages