archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Mylonas <ch...@opencsta.org>
Subject Re: Working through PacktPub book - 1.0-SNAPSHOT pom.xml file cannot be found
Date Mon, 31 Jan 2011 10:34:16 GMT
Hello Archiva Users,

... and thanks Deng, that was spot on.
I have re-uploaded it and it has generated one, however it doesn't work as
I'd expect.

The pom created by archiva isn't named communications-1.0-SNAPSHOT.pom -
it is named communications-1.0-<timestamp>.pom and as a result the next
maven snippet fails.


Downloading:
http://tour.opencsta.org:8080/archiva/repository/snapshots//org/opencsta/communications/1.0-SNAPSHOT/communications-1.0-SNAPSHOT.pom
[INFO] Unable to find resource
'org.opencsta:communications:pom:1.0-SNAPSHOT' in repository opencsta (
http://tour.opencsta.org:8080/archiva/repository/snapshots/)


The contents of the pom file generated (
http://tour.opencsta.org:8080/archiva/repository/snapshots/org/opencsta/communications/1.0-SNAPSHOT/communications-1.0-20110129.100552-2.pom)
looks correct.

<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.opencsta</groupId>
  <artifactId>communications</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>jar</packaging>
</project>


The meta data looks correct too, but somehow my maven config isn't working
still.

<metadata>
  <groupId>org.opencsta</groupId>
  <artifactId>communications</artifactId>
  <version>1.0-SNAPSHOT</version>
  <versioning>
    <snapshot>
      <buildNumber>2</buildNumber>
      <timestamp>20110129.100552</timestamp>
    </snapshot>
    <lastUpdated>20110129100552</lastUpdated>
  </versioning>
</metadata>


Should I just create a sym-link on the filesystem for
communications-1.0-SNAPSHOT.pom and manually make it a system administration
task when a new artifact is uploaded using the GUI?


Cheers
Chris




On Fri, Jan 28, 2011 at 4:15 PM, Deng Ching <oching@apache.org> wrote:

> Hi Chris,
>
> Archiva doesn't generate missing POMs in the repository (it only
> creates checksums and metadata files).
>
> May I ask how you deployed/uploaded the opencsta communications
> snapshot to the repository? If it was via Archiva's web upload form,
> you'd have to tick the "Generate Maven 2 POM" checkbox if no POM file
> is provided.
>
> Thanks,
> Deng
>
> On Fri, Jan 28, 2011 at 12:40 PM, Chris Mylonas <chris@opencsta.org>
> wrote:
> > Hello Archiva Users (I've since subscribed to the list and re-posting -
> > didn't seem to work the first time on the web interface),
> >
> > I've been working my way through the "Effective Implementation" Maven
> book
> > setting up my repository for the opencsta project for 2011.
> > I'm having trouble downloading the 1.0-SNAPSHOT of any version I've
> > uploaded.
> >
> > Here's some info in case anyone can shed any light.
> >
> > I'm using archiva-1.3.3 with tomcat-6.0.20
> >
> > The artifact I want to download is here:
> >
> http://tour.opencsta.org:8080/archiva/browse/org.opencsta/communications/1.0-SNAPSHOT
> >
> > My pom.xml defines the repository and the snippet archiva gives me at the
> > above link is included in the dependencies.
> >
> > <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>
> >  <groupId>org.opencsta</groupId>
> >  <artifactId>test</artifactId>
> >  <packaging>jar</packaging>
> >  <version>1.0-SNAPSHOT</version>
> >  <name>test</name>
> >  <repositories>
> >    <repository>
> >      <releases>
> >        <enabled>false</enabled>
> >        <updatePolicy>always</updatePolicy>
> >        <checksumPolicy>warn</checksumPolicy>
> >      </releases>
> >      <snapshots>
> >        <enabled>true</enabled>
> >        <updatePolicy>never</updatePolicy>
> >        <checksumPolicy>fail</checksumPolicy>
> >      </snapshots>
> >      <id>opencsta</id>
> >      <name>Open CSTA SNAPSHOTS</name>
> >      <url>http://tour.opencsta.org:8080/archiva/repository/snapshots
> </url>
> >      <layout>default</layout>
> >    </repository>
> >  </repositories>
> >
> >  <dependencies>
> >    <dependency>
> >      <groupId>org.opencsta</groupId>
> >      <artifactId>communications</artifactId>
> >      <version>1.0-SNAPSHOT</version>
> >    </dependency>
> >  </dependencies>
> > </project>
> >
> > But I'm getting this from the mvn command
> >
> > Downloading:
> >
> http://tour.opencsta.org:8080/archiva/repository/snapshots/org/opencsta/communications/1.0-SNAPSHOT/communications-1.0-SNAPSHOT.pom
> > [INFO] Unable to find resource
> > 'org.opencsta:communications:pom:1.0-SNAPSHOT' in repository opencsta (
> > http://tour.opencsta.org:8080/archiva/repository/snapshots)
> >
> > The file communications-1.0-SNAPSHOT.
> > pom does not exist which I thought archiva would have made automatically.
> > Here is the listing of that directory, and it's got the timestamped
> version
> > of the jar file:
> >
> http://tour.opencsta.org:8080/archiva/repository/snapshots/org/opencsta/communications/1.0-SNAPSHOT/
> >
> > Any help would be greatly appreciated.
> >
> > Cheers
> > Chris
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message