maven

package
v0.0.0-...-fddc5ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	/* pom.xml
	<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/xsd/maven-4.0.0.xsd">

	  <modelVersion>4.0.0</modelVersion>
	  <groupId>io.aquasecurity</groupId>
	  <artifactId>trivy</artifactId>
	  <version>1.0</version>
	  <packaging>jar</packaging>

	  <dependencies>
	    <dependency>
	      <groupId>org.springframework</groupId>
	      <artifactId>spring-core</artifactId>
	      <version>[5.0.1.RELEASE]</version>
	    </dependency>
	  </dependencies>
	</project>
	*/
	// mvn dependency:list -DoutputFile=dependency.txt
	/*
		cat dependency.txt | grep -v "^\s*$" | grep -v "The following files have been resolved" | \
			awk '
			  {
			    cnt=split($1, path, ":")
			    if(cnt == 5){
			      print "{\"" path[1] ":" path[2] "\", \"" path[4] "\"},"
			    }
			    if(cnt == 6){
			      print "{\"" path[1] ":" path[2] "\", \"" path[5] "\"},"
			    }
			  }
			'
	*/
	MavenNormal = []types.Library{
		{"org.springframework:spring-jcl", "5.0.1.RELEASE"},
		{"org.springframework:spring-core", "5.0.1.RELEASE"},
	}

	// git clone https://github.com/apache/hadoop.git
	// git checkout fdd20a3cf4cd9073f443b2bf07eef14f454d4c33
	// cd hadoop/hadoop-hdfs-project/hadoop-hdfs-nfs/
	// mvn dependency:list -DoutputFile=dependency.txt
	/*
		cat dependency.txt | grep -v "^\s*$" | grep -v "The following files have been resolved" | \
			awk '
			  {
			    cnt=split($1, path, ":")
			    if(cnt == 5){
			      print "{\"" path[1] ":" path[2] "\", \"" path[4] "\"},"
			    }
			    if(cnt == 6){
			      print "{\"" path[1] ":" path[2] "\", \"" path[5] "\"},"
			    }
			  }
			'
	*/
	MavenHadoopHDFS = []types.Library{}/* 111 elements not displayed */

	// git clone https://github.com/apache/hadoop.git
	// git checkout fdd20a3cf4cd9073f443b2bf07eef14f454d4c33
	// cd hadoop/hadoop-cloud-storage-project
	// mvn dependency:list -DoutputFile=dependency.txt
	/*
		cat dependency.txt | grep -v "^\s*$" | grep -v "The following files have been resolved" | \
			awk '
			  {
			    cnt=split($1, path, ":")
			    if(cnt == 5){
			      print "{\"" path[1] ":" path[2] "\", \"" path[4] "\"},"
			    }
			    if(cnt == 6){
			      print "{\"" path[1] ":" path[2] "\", \"" path[5] "\"},"
			    }
			  }
			'
	*/
	MavenHadoopCloudStorage = []types.Library{}/* 105 elements not displayed */

	MavenNone = []types.Library{}

	MavenClassifier = []types.Library{
		{"org.springframework:spring-jcl", "5.0.1.RELEASE"},
		{"org.springframework:spring-core", "5.0.1.RELEASE"},
	}
)

Functions

func Parse

func Parse(r io.Reader) ([]types.Library, error)

Types

type Artifact

type Artifact struct {
	GroupID    string
	ArtifactID string
	Type       string
	Classifier string
	Version    string
	Scope      string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL