-
Notifications
You must be signed in to change notification settings - Fork 49
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
run cobertura #1235
run cobertura #1235
Conversation
I think this build error is happening because you're not explicitly specifying configuring the version of the |
seems possible, but the pom.xml does specify version 2.7 of the plugin, so I'm not clear on why it's trying to load a snapshot in the first place. |
script: mvn -Ptravis --fail-at-end verify ${ECLIPSE_TARGET:+-Declipse.target=${ECLIPSE_TARGET}} | ||
script: | ||
- mvn -Ptravis --fail-at-end verify ${ECLIPSE_TARGET:+-Declipse.target=${ECLIPSE_TARGET}} | ||
- mvn cobertura:cobertura |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah! The problem is that verify
doesn't install the built results. Since you have cobertura:cobertura
call in a separate step, it doesn't have the previously-built artifacts in its reactor and so cobertura
attempts to resolve the artifacts.
We could have Travis do a mvn install
rather than a mvn verify
, but then our built artifacts will be cached by Travis, which is not a good thing.
But combining these into one line should work.
[INFO] gcp-eclipse-mars ................................... SUCCESS [ 0.012 s] |
That's happening because we're running |
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce (default) on project verify-feature-completeness: Execution default of goal org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce failed: org.apache.maven.shared.dependency.graph.DependencyGraphBuilderException: Could not resolve following dependencies: [com.google.cloud.tools.eclipse:ide-target-platform.repo:zip:0.1.0-SNAPSHOT (compile), com.google.cloud.tools.eclipse:google-cloud-plugin-eclipse.repo:zip:0.1.0-SNAPSHOT (compile)]: Could not resolve dependencies for project com.google.cloud.tools.eclipse:verify-feature-completeness:pom:0.1.0-SNAPSHOT: The following artifacts could not be resolved: com.google.cloud.tools.eclipse:ide-target-platform.repo:zip:0.1.0-SNAPSHOT, com.google.cloud.tools.eclipse:google-cloud-plugin-eclipse.repo:zip:0.1.0-SNAPSHOT: Failure to find com.google.cloud.tools.eclipse:ide-target-platform.repo:zip:0.1.0-SNAPSHOT in https://oss.sonatype.org/content/repositories/snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-snapshots has elapsed or updates are forced -> [Help 1] |
Hmm, that looks like it's because of the |
Ah, |
Hmm nope, that's not it: Update: My mistake: both |
I'm not sure Tycho really supports using Cobertura. I found a blog post by David Carver describing his efforts (which looks grotty), and a follow-on comment where he suggests using JaCoCo instead. |
Closing as we're using JaCoCo instead. |
No description provided.