You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Sylwester Lachiewicz (Jira)" <ji...@apache.org> on 2021/06/04 08:17:00 UTC

[jira] [Commented] (MNGSITE-424) How to replace system dependencies

    [ https://issues.apache.org/jira/browse/MNGSITE-424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17357160#comment-17357160 ] 

Sylwester Lachiewicz commented on MNGSITE-424:
----------------------------------------------

{quote}We need to point at the java.base subdirectory because Maven appears to assume that package foo.bar is located in foo/bar and not java.base/foo/bar when translating excludePackageNames into filenames to pass to javadoc. (Note that manually passing -exclude to javadoc appears to possibly not work at all for java.* types??) Also, referring only to java.base avoids a lot of other sources. -->
 <sourcepath>${project.build.sourceDirectory}:${project.build.directory}/jdk-sources/java.base</sourcepath>


{quote}

> How to replace system dependencies
> ----------------------------------
>
>                 Key: MNGSITE-424
>                 URL: https://issues.apache.org/jira/browse/MNGSITE-424
>             Project: Maven Project Web Site
>          Issue Type: Bug
>            Reporter: Elliotte Rusty Harold
>            Priority: Major
>              Labels: close-pending
>
> https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html says that system dependencies are deprecated. However it fails to suggest what developers should do instead.
> There is an alternative for private jars not published to the Maven repos but it isn't documented anywhere. We should document it.  See https://stackoverflow.com/questions/4955635/how-to-add-local-jar-files-to-a-maven-project
> I'm not sure what to do for dependencies that are expected to be in the JDK, e.g. srczip as used in Guava. Any suggestions? 
> some context: https://github.com/GoogleCloudPlatform/cloud-opensource-java/pull/1539/
> https://search.maven.org/artifact/com.google.guava/guava/29.0-android/bundle



--
This message was sent by Atlassian Jira
(v8.3.4#803005)