I'm trying to download the source code from a .jar file. I know about mvn dependency:sources but I don't have access to the jar's pom.xml file to run that command.
What I am trying to accomplish: I have two separate projects (Project_1 and Project_2). Project_1 has a dependency on Project_2 in which a version of Project_2 is downloaded from Nexus. I am adding
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
into the Project_2 pom file. How then will I be able to download the source jar file to Project_1 if all I have is the dependency to Project_2? I have no access from Project_1 to the Project_2 pom to run the command.