java - Jenkins Project Can't Find Packages; build-project target fails -


my project compiles , runs on local machine, on jenkins build-project target fails compile due being unable find packages. can see jars think need in ./bin/ folder, anticipate there classpaths or build-project target causing issue.

build.xml -> build-project:

<target depends="init" name="build-project">     <echo message="${ant.project.name}: ${ant.file}" />     <javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}">         <src path="src" />         <classpath refid="sierramadretestscripts.classpath" />     </javac> </target> 

error message excerpt on jenkins:

build-project:  [echo] sierramadretestscripts: /data/builds/jenkins/workspace/build.xml [javac] compiling 1 source file /data/builds/jenkins/workspace/bin [javac] /data/builds/jenkins/workspace/src/testscripts/translatorworkflow.java:3: error: package org.junit not exist [javac] import static org.junit.assert.fail; [javac]                        ^ 

i can post full build.xml, ivy.xml, ivysettings.xml, or whatever else necessary diagnose problem. sorry if basic; ivy still rather arcane me. i'm running local project within eclipse.

the root cause of problem outlined in following question:

running ant build gives "package org.junit not exist"

in short ides eclipse automatically put junit in classpath..... ivy designed solve problem , used can used manage aspects of project's classpaths.

without access build logic must guess, looks you're building both code , tests using single javac? have classpath called "sierramadretestscripts.classpath", next question how created , managed. question implies ivy somehow involved :-)


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -