Hi Jess,

We use the snapshot version of the jar file during the development cycle.  Yes, 
we will eventually use the released version (in the case when we release 
Casablanca, we will release network-discovery-api-1.3.0.jar).

I believe the problem I saw was related to the timing between filename 
generation for the jar file and generation of the maven-metadata.xml file.

The workaround for me was to run the build until the two line up again.  And 
this could also be a side effect when Jenkins gets really busy.  

Thanks,
Prudence

-----Original Message-----
From: Jessica Wagantall via RT <onap-helpd...@rt.linuxfoundation.org> 
Sent: Tuesday, September 25, 2018 9:12 PM
To: Prudence Au <prudence...@amdocs.com>
Cc: onap-discuss@lists.onap.org
Subject: [ONAP Helpdesk #61153] Could not find artifact due to file name 
mismatched

Prudence, 

I need to confirm some information with you. 

Is it expected that the name be "network-discovery-api-1.3.0.jar" ?

Also, why are we depending on snapshots? We should not have any snapshot 
dependencies but rather release the snapshot and then move the dependency to 
the releases version:
https://wiki.onap.org/display/DW/Release+Versioning+Strategy#ReleaseVersioningStrategy-Whatarethe2bigissuestoaddress?

Part of this dependency on releases is to encourage teams to make releases more 
often. 
Please let me know in case you would like me to make a release of the needed 
artifacts. 

That might be the fastest way to resolve this issue. 

Thanks!
Jess

On Tue Sep 25 20:57:43 2018, jwagantall wrote:
> Hi Prudence
> 
> Sorry I havent responded,
> I am looking into this today
> 
> Thanks!
> Jess
> 
> On Thu Sep 20 11:26:20 2018, prudence...@amdocs.com wrote:
> > Hi ONAP helpdesk,
> >
> > Just came across the issue this morning.
> >
> > I was trying to build pomba-network-discovery-context builder which 
> > depends on pomba:network-discovery-api.  In my pom file, I refer to 
> > its SNAPSHOT version:
> >
> > <dependency>
> > <groupId>org.onap.sdnc.apps.pomba</groupId>
> >        <artifactId>network-discovery-api</artifactId>
> >        <version>1.3.0-SNAPSHOT</version> </dependency>
> >
> > I received the following error when I run the build locally:
> >
> > [INFO]
> > --------------------------------------------------------------------
> > ----
> > [INFO] BUILD FAILURE
> > [INFO]
> > --------------------------------------------------------------------
> > ----
> > [INFO] Total time: 13.832 s
> > [INFO] Finished at: 2018-09-20T10:47:21-04:00 [INFO] Final Memory: 
> > 23M/222M [INFO]
> > --------------------------------------------------------------------
> > ---- [ERROR] Failed to execute goal on project 
> > pomba-network-discovery-
> > context-builder: Could not resolve dependencies for project
> > org.onap.logging-analytics.pomba:pomba-network-discovery-context-
> > builder:jar:1.3.0-SNAPSHOT: Could not find artifact
> > org.onap.sdnc.apps.pomba:network-discovery-api:jar:1.3.0-
> > 20180920.133639-71 in openecomp-snapshot
> > (https://nexus.onap.org/content/repositories/snapshots/) -> [Help 1]
> >
> > Then I went to 
> > https://nexus.onap.org/content/repositories/snapshots/
> > and checked maven-metadata.xml,
> >
> > <?xml version="1.0" encoding="UTF-8"?> <metadata 
> > modelVersion="1.1.0">
> >    <groupId>org.onap.sdnc.apps.pomba</groupId>
> >    <artifactId>network-discovery-api</artifactId>
> >   <version>1.3.0-SNAPSHOT</version>
> >    <versioning>
> >       <snapshot>
> >          <timestamp>20180920.133639</timestamp>
> >          <buildNumber>71</buildNumber>
> >       </snapshot>
> >       <lastUpdated>20180920133639</lastUpdated>
> >       <snapshotVersions>
> >          <snapshotVersion>
> >             <extension>jar</extension>
> >             <value>1.3.0-20180920.133639-71</value>
> >             <updated>20180920133639</updated>
> >          </snapshotVersion>
> >          <snapshotVersion>
> >             <extension>pom</extension>
> >             <value>1.3.0-20180920.133639-71</value>
> >             <updated>20180920133639</updated>
> >          </snapshotVersion>
> >       </snapshotVersions>
> >    </versioning>
> > </metadata>
> >
> > However, the version which was built is actually network-discovery-
> > api-1.3.0-20180920.133635-
> > 71.jar<https://nexus.onap.org/content/repositories/snapshots/org/ona
> > p/sdnc/apps/pomba/network-
> > discovery-api/1.3.0-SNAPSHOT/network-discovery-api-1.3.0-
> > 20180920.133635-71.jar>
> > [cid:image001.png@01D450D4.DEF19490]
> > Can you please have a look?
> >
> > Thanks in advance.
> >
> > Cheers,
> > Prudence
> > “Amdocs’ email platform is based on a third-party, worldwide, cloud- 
> > based system. Any emails sent to Amdocs will be processed and stored 
> > using such system and are accessible by third party providers of 
> > such system on a limited basis. Your sending of emails to Amdocs 
> > evidences your consent to the use of such system and such 
> > processing, storing and access”.



“Amdocs’ email platform is based on a third-party, worldwide, cloud-based 
system. Any emails sent to Amdocs will be processed and stored using such 
system and are accessible by third party providers of such system on a limited 
basis. Your sending of emails to Amdocs evidences your consent to the use of 
such system and such processing, storing and access”.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12678): https://lists.onap.org/g/onap-discuss/message/12678
Mute This Topic: https://lists.onap.org/mt/26280601/21656
Group Owner: onap-discuss+ow...@lists.onap.org
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to