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

Add and test tools.jar in Windows environments #257

Closed
eeverman opened this issue Oct 30, 2017 · 4 comments
Closed

Add and test tools.jar in Windows environments #257

eeverman opened this issue Oct 30, 2017 · 4 comments

Comments

@eeverman
Copy link
Owner

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.

@eeverman eeverman added this to the 0.4 milestone Oct 30, 2017
@eeverman
Copy link
Owner Author

eeverman commented Dec 9, 2017

Also found some discussion here:
https://stackoverflow.com/questions/3080437/jdk-tools-jar-as-maven-dependency

This is hard to resolve on a Mac system b/c tools.jar is already on the class path on the Mac system.

@eeverman
Copy link
Owner Author

eeverman commented Dec 9, 2017

Merged a PR that may fix this issue:
#296

@eeverman eeverman modified the milestones: 0.4, 0.4.1 Dec 29, 2017
@carlschroedl
Copy link
Contributor

carlschroedl commented Jan 25, 2018

@eeverman I'm taking a peek at this. I can reproduce this issue on Windows 10.

$ mvn install
...
[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

@eeverman
Copy link
Owner Author

eeverman commented Jan 25, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants