Skip to content
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

Building driver jars without running the tests #460

Closed
michaelpq opened this issue Dec 21, 2015 · 6 comments
Closed

Building driver jars without running the tests #460

michaelpq opened this issue Dec 21, 2015 · 6 comments

Comments

@michaelpq
Copy link
Contributor

@michaelpq michaelpq commented Dec 21, 2015

I have just given a shot to the new maven build and it seems that the regression tests are run all the time even by using "package" or just "package -P release-artifacts".
I am missing something, or is there no way to build only the jar files without running the tests?

@vlsi
Copy link
Member

@vlsi vlsi commented Dec 21, 2015

You need mvn package -DskipTests -P release-artifacts to get that

@vlsi vlsi closed this in 823e124 Dec 21, 2015
@michaelpq
Copy link
Contributor Author

@michaelpq michaelpq commented Dec 21, 2015

Thanks! I'll make note of that. This still compiles the test jars though, right?

@vlsi
Copy link
Member

@vlsi vlsi commented Dec 21, 2015

I do not think current build procedure builds test jars.
Why do you need them?

-DskipTests skips just execution. Test classes are still compiled under pgdbc/target/test-classes

@michaelpq
Copy link
Contributor Author

@michaelpq michaelpq commented Dec 21, 2015

OK cool. I work with some folks that like having the compiled test jars and run the tests by themselves. That's quite particular I agree.

@vlsi
Copy link
Member

@vlsi vlsi commented Dec 21, 2015

Just in case: mvn jar:test-jar builds a test jar

@michaelpq
Copy link
Contributor Author

@michaelpq michaelpq commented Dec 21, 2015

Thanks, I'll give it a try.

whitingjr added a commit to whitingjr/pgjdbc that referenced this issue Jan 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants