-
Notifications
You must be signed in to change notification settings - Fork 34
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 and test tools.jar in Windows environments #257
Labels
Milestone
Comments
Also found some discussion here: This is hard to resolve on a Mac system b/c tools.jar is already on the class path on the Mac system. |
Merged a PR that may fix this issue: |
@eeverman I'm taking a peek at this. I can reproduce this issue on Windows 10.
|
Thank you the feedback! I was pretty sure there would be issues building from windows. Now how to fix the issue??
I’ll be in Madison next week, maybe we can try some fixes on that.
Thank you so much for taking a look at this!
—ee
. . . .
Sent from my mobile
Sorry if message is short
Or is quite not right
. . . .
… On Jan 25, 2018, at 8:49 AM, Carl Schroedl ***@***.***> wrote:
@eeverman I'm taking a peek at this. I can reproduce this issue on Windows 10.
[WARNING] Missing POM for jdk.tools:jdk.tools:jar:sources:jdk1.8.0
Downloading from repo1-maven: http://repo1.maven.org/maven/jdk/tools/jdk.tools/jdk1.8.0/jdk.tools-jdk1.8.0-sources.jar
Downloading from central: https://repo.maven.apache.org/maven2/jdk/tools/jdk.tools/jdk1.8.0/jdk.tools-jdk1.8.0-sources.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] AndHow Parent Project .............................. SUCCESS [ 1.047 s]
[INFO] AndHow Core ........................................ SUCCESS [ 50.674 s]
[INFO] AndHow Annotation Processor Test Harness ........... SUCCESS [ 1.338 s]
[INFO] AndHow Test Harness ................................ SUCCESS [ 0.594 s]
[INFO] AndHow Annotation Processor ........................ SUCCESS [ 38.460 s]
[INFO] andhow ............................................. FAILURE [02:05 min]
[INFO] AndHow System Tests ................................ SKIPPED
[INFO] AndHow Annotation Processor Tests .................. SKIPPED
[INFO] andhow-simulated-app-tests ......................... SKIPPED
[INFO] andhow-multimodule-dataprocess ..................... SKIPPED
[INFO] andhow-default-behavior-dep1 ....................... SKIPPED
[INFO] andhow-default-behavior-dep2 ....................... SKIPPED
[INFO] andhow-default-behavior-test ....................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:37 min
[INFO] Finished at: 2018-01-25T08:46:23-06:00
[INFO] Final Memory: 35M/449M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.4:jar (javadoc-jar) on project andhow: MavenReportException: Error while generating Javadoc: Failed to resolve one or more javadoc source/resource artifacts:
[ERROR]
[ERROR] Missing:
[ERROR] ----------
[ERROR] 1) jdk.tools:jdk.tools:jar:sources:jdk1.8.0
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=jdk.tools -DartifactId=jdk.tools -Dversion=jdk1.8.0 -Dclassifier=sources -Dpackaging=jar -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=jdk.tools -DartifactId=jdk.tools -Dversion=jdk1.8.0 -Dclassifier=sources -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR] Path to dependency:
[ERROR] 1) org.yarnandtail:andhow:jar:0.4.1-SNAPSHOT
[ERROR] 2) jdk.tools:jdk.tools:jar:sources:jdk1.8.0
[ERROR]
[ERROR] ----------
[ERROR] 1 required artifact is missing.
[ERROR]
[ERROR] for artifact:
[ERROR] org.yarnandtail:andhow:jar:0.4.1-SNAPSHOT
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] repo1-maven (http://repo1.maven.org/maven/, releases=true, snapshots=true),
[ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :andhow
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tools.jar is on the class path of the OS X installation, but it is not in the Windows environment and a few others:
http://maven.apache.org/general.html#tools-jar-dependency
There is some question as to how this will be handled in Java9, but that will be a separate task.
The text was updated successfully, but these errors were encountered: