Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>Compile error when compiling the test code (...)</p> </blockquote> <p>Then <code>JournalMonitor</code> is neither provided by <code>com.mycompany.maven.testapp:domain:1.0:jar</code> nor by the current project. It might help to clarify what artifact is providing this class. Please explain also how you "obtain" the <code>domain</code> artifact. And keep in mind that artifacts with a fixed version like <code>1.0</code> are downloaded only once (vs <code>-SNAPSHOT</code> artifacts) so <strong>make sure</strong> that the version you have in your local repository does contain the required stuff.</p> <blockquote> <p>My test code also depends on the fooBar.jar.</p> </blockquote> <p>What is <code>fooBar.jar</code>? Where is it declared? The POM snippet you posted doesn't reflect that. What does it have to do with the current problem anyway? </p> <blockquote> <p>So with the above dependency, I can compile my main source code but not the test code. When I use test, I can compile test source but not the main application source.</p> </blockquote> <p>Do you mean when changing the dependency scope to <code>test</code>? This is very weird, <code>compile</code> scoped dependencies (the default scope) are on the test classpath (see <a href="http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope" rel="nofollow">Dependency Scope</a>).</p> <blockquote> <p>Any ideas how one can do this?</p> </blockquote> <p>You shouldn't have to do anything special for this use case. There is something else.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload