Java Mailing List Archive

http://www.java2.5341.com/

Home » Maven Users List »

How to install a source jar with classifier?

Rice Yeh

2008-11-10

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,
I have a artifact with classifer. I want to install source jar with
classifier also. Although I can generate the source jar with classifier. But
I find the source jar installed in local repository is still without
classifier as shown in the following:

<!-- configure plugin to generate classifier -->
       <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-source-plugin</artifactId>
          <configuration>
            <finalName>${project.build.finalName}-jdk15</finalName>
          </configuration>
       </plugin>

* installation still install as-measurement-1.0
.0-SNAPSHOT-jdk15-sources.jar to as-measurement-1.0.0-SNAPSHOT-sources.jar

[INFO] Installing
C:\projects\xsf\jdk15\as-measurement\target\as-measurement-1.0
.0-SNAPSHOT-jdk15-sources.jar to C:\Documents and
Settings\riceyeh\.m2\repositor
y\as\as-measurement\1.0.0-SNAPSHOT\as-measurement-1.0.0-SNAPSHOT-sources.jar


Regards,
Rice
©2008 java2.5341.com - Jax Systems, LLC, U.S.A.