Only releases can be uploaded to the central repository, that means files that won't change and that only depend on other files already released and available in the repository.
There are some requirements for the minimal information in the POMs that are in the central repository. The updated list of requirements can be found here.
Well, your case is on top of guide central repository upload. No. It's against basic requirements.
You can upload tools.jar
to Maven Central if you're the owner or the license let's you do that.
According to Maven Apache you can add tools.jar
to the pom.xml
in a following way:
<profiles>
<profile>
<id>default-tools.jar</id>
<activation>
<property>
<name>java.vendor</name>
<value>Sun Microsystems Inc.</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.4.2</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
</dependencies>
</profile>
</profiles>
This still means, that the tools.jar
isn't available in Maven Central and it looks like it'll never be there.