What's Assets in the new Nexus 3
Asked Answered
E

3

9

In the new Nexus 3, under Browse, there are Assets and Components. What's the definition of the Assets?

I can't find it in the doc:http://books.sonatype.com/nexus-book/3.0/reference/index.html

Enroll answered 1/3, 2016 at 21:4 Comment(0)
C
14

A component in Nexus 3 is an installable unit which is delineated by it's coordinates (such as artifact ID + version number). In some repository formats there is one file per component, but in others there are multiple files per component. So the UI allows browsing repositories by either components or assets (files).

I'll submit an issue in our bug tracker to have the book provide an full explanation of components vs. assets.

Christiechristin answered 2/3, 2016 at 13:58 Comment(0)
R
4

Quoting from Nexus Book:

Component

  • Is a resource like a library or a framework that is used as part of your software application at run-time, integration or unit test execution time or required as part of your build process. It could be an entire application or a static resource like an image.

Assets

  • Assets are the material addition to all this metadata.

Example

For a typical JAR component in a Maven repository which is defined at least by the POM and the JAR files:

Components are -

example-project.pom.sha1
example-project.pom.md5
example-project.pom

example-project.jar.sha1
example-project.jar.md5
example-project.jar

example-project-sources.jar.sha1
example-project-sources.jar.md5
example-project-sources.jar

example-project-javadoc.jar.sha1
example-project-javadoc.jar.md5
example-project-javadoc.jar 

Assets are -

example-project.pom.sha1
example-project.pom.md5
example-project.pom

example-project.jar.sha1
example-project.jar.md5
example-project.jar

example-project-sources.jar.sha1
example-project-sources.jar.md5
example-project-sources.jar

example-project-javadoc.jar.sha1
example-project-javadoc.jar.md5
example-project-javadoc.jar

maven-metadata.xml
maven-metadata.xml.md5
maven-metadata.xml.sha1
Reaves answered 26/5, 2016 at 11:34 Comment(0)
B
1

This is explained in the concepts chapter of the Nexus Repository Manager 3 documentation. Basically assets are the actual binaries and other files associated to the component. A component can have one or multiple assets and is the overarching aggregation and container for metadata.

Bagby answered 2/3, 2016 at 17:41 Comment(4)
Manfred, there is no single word of "assets" mentioned in the link you given. I did search the whole document before I put up this question.Enroll
Well... that document has been updated since you last searched. I maintain that documentation and added the assets section a while ago and published it for you.Bagby
The link is brokenBloem
help.sonatype.com/repomanager3/repository-manager-concepts/… this is where the difference between Component and Asset is explainedWindage

© 2022 - 2024 — McMap. All rights reserved.