-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add profile for skipping test compilation/resolution #713
Comments
Bumping this as I still can't locally |
Fascinating! Totally missed this the first time around. I typically just run with |
hm |
OK I figured out the issue: If you change the Maybe this is specific to my workflow, but what I'm trying to do seems pretty reasonable and I don't see any way to work around it; it seems like a weird bootstrapping problem: I can only More about my use case: The other workaround is just to keep |
If you look in the Sonatype snapshots repository you will see timestamped snapshot builds, e.g. Another workaround is to tell Pageant to use offline mode |
I'm going to close this as won't fix for now. Please reopen if this is still a pain point, @ryan-williams. |
Would it be feasible to support a Maven profile that removes or omits test dependencies? I want to be able to build/install ADAM without resolving/building/installing the tests (while developing/iterating).
I have a workflow where I am
mvn install
ing custom versions of ADAM (version "numbers" are actuallygit
commit SHAs, using the codehausversions-maven-plugin
) in my local Maven cache and then depending on them in my Pageant POM.I have patches to both ADAM and Spark that I need to use and this seems like the best way to do it.
I'm interested in maximally streamlining the process of building/installing ADAM when I make changes to ADAM, so that I can link against the newly-built version in other projects.
Right now, I run
mvn install -DskipTests
to install custom ADAM jars in my local Maven cache.install-sha
script in my fork, which uses-Plocal
profile that cuts out thedistribution
module and thejavadoc
plugin because I don't care about those).While this skips running of tests, it still resolves, compiles, and installs the tests / test JARs. This makes my process take noticeably longer, and feels wasteful/wrong on principle.
Attempting to skip compiling (and installing) the tests:
results in errors like:
…because
adam-apis
depends onadam-core
's tests JAR, even when it won't build/use any tests.I was able to work-around this in Pageant:
default
profile, andno-tests
profile has empty<dependencies/>
, effectively excluding the test dependencies.I tried to do a similar thing in ADAM but dealing with the
<module>
s took me out of my Maven depth quickly; I don't really understand how the<version>
-less dependency declarations in the modules' POMs relate to their corresponding definitions in the parent POM.Anyone have thoughts on how this could be done, and whether it should?
The text was updated successfully, but these errors were encountered: