Sure. Please see the attached pom file.
I do have a parent defined but it's there just to define release
profiles as well as version information. No additional configuration
(for the maven-jar-plugin) is in the parent pom.
On 5/3/2010 7:53 PM, Marshall Schor wrote:
it looks like your jar file has no classifier. A plain jar file is
being uploaded. Can you post the part of the POM where you are defining
the classifier artifact, and attaching it?
-Marshall
On 5/3/2010 7:09 PM, Michael Delaney wrote:
All,
I have a simple maven project that generates a jar file; with the
classifier 'config'. When I call the 'deploy' phase, the pom file is
uploaded with unique identifier (as expected) but the jar file is not
(see examples below); the maven metadata is updated with the timestamp
as well. When I put a dependency on the jar file, Maven can not
resolve the artifact because it's looking for the jar file with the
timestamp (as denoted by the maven-metadata file).
Has anyone else seen this issue? I'm using Maven 2.2.1 on Solaris.
[Example]
-rw-r--r-- 1 archiva archiva 382 May 3 18:47 maven-metadata.xml
-rw-r--r-- 1 archiva archiva 52 May 3 18:47
maven-metadata.xml.md5
-rw-r--r-- 1 archiva archiva 60 May 3 18:47
maven-metadata.xml.sha1
-rw-r--r-- 1 archiva archiva 1106 May 3 18:45
myApplication-1.0.0-20100503.224504-1.pom
-rw-r--r-- 1 archiva archiva 32 May 3 18:45
myApplication-1.0.0-20100503.224504-1.pom.md5
-rw-r--r-- 1 archiva archiva 40 May 3 18:45
myApplication-1.0.0-20100503.224504-1.pom.sha1
-rw-r--r-- 1 archiva archiva 1106 May 3 18:45
myApplication-1.0.0-20100503.224537-2.pom
-rw-r--r-- 1 archiva archiva 32 May 3 18:45
myApplication-1.0.0-20100503.224537-2.pom.md5
-rw-r--r-- 1 archiva archiva 40 May 3 18:45
myApplication-1.0.0-20100503.224537-2.pom.sha1
-rw-r--r-- 1 archiva archiva 4080 May 3 18:47
myApplication-1.0.0-20100503.224708-3.jar
-rw-r--r-- 1 archiva archiva 32 May 3 18:47
myApplication-1.0.0-20100503.224708-3.jar.md5
-rw-r--r-- 1 archiva archiva 40 May 3 18:47
myApplication-1.0.0-20100503.224708-3.jar.sha1
-rw-r--r-- 1 archiva archiva 757 May 3 18:47
myApplication-1.0.0-20100503.224708-3.pom
-rw-r--r-- 1 archiva archiva 32 May 3 18:47
myApplication-1.0.0-20100503.224708-3.pom.md5
-rw-r--r-- 1 archiva archiva 40 May 3 18:47
myApplication-1.0.0-20100503.224708-3.pom.sha1
-rw-r--r-- 1 archiva archiva 4157 May 3 18:45
myApplication-1.0.0-SNAPSHOT-config.jar
-rw-r--r-- 1 archiva archiva 32 May 3 18:45
myApplication-1.0.0-SNAPSHOT-config.jar.md5
-rw-r--r-- 1 archiva archiva 40 May 3 18:45
myApplication-1.0.0-SNAPSHOT-config.jar.sha1
[maven-metadata.xml]
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>com.mycompany</groupId>
<artifactId>myApplication</artifactId>
<version>1.0.0-SNAPSHOT</version>
<versioning>
<snapshot>
<buildNumber>3</buildNumber>
<timestamp>20100503.224708</timestamp>
</snapshot>
<lastUpdated>20100503224708</lastUpdated>
</versioning>
</metadata>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.mycompany</groupId>
<artifactId>parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<groupId>com.mycompany.config</groupId>
<artifactId>myApplication</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>myApplication configuration</name>
<description>Holds all configuration for the myApplication</description>
<url>TODO</url>
<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.2</version>
<configuration>
<classifier>config</classifier>
</configuration>
</plugin>
</plugins>
</build>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org