Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Cannot create Java function - Maven compilation error #1235

Open
vvijayv opened this issue Jun 10, 2021 · 0 comments
Open

Cannot create Java function - Maven compilation error #1235

vvijayv opened this issue Jun 10, 2021 · 0 comments

Comments

@vvijayv
Copy link

vvijayv commented Jun 10, 2021

Is this a BUG REPORT or FEATURE REQUEST?: BUG REPORT

What happened:
The maven could not download the Kubless dependencies when parent and dependency are added to the 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>
  <name>fk</name>
  <artifactId>kubeless-http-func</artifactId>
  <version>1.0-SNAPSHOT</version>
  <dependencies>
    <dependency>
      <groupId>joda-time</groupId>
      <artifactId>joda-time</artifactId>
      <version>2.9.2</version>
    </dependency>
    <dependency>
      <groupId>io.kubeless</groupId>
      <artifactId>params</artifactId>
      <version>1.0-SNAPSHOT</version>
    </dependency>
  </dependencies>
  <parent>
    <groupId>io.kubeless</groupId>
    <artifactId>kubeless</artifactId>
    <version>1.0-SNAPSHOT</version>
  </parent>
</project>

Maven error

{
	"resource": "~/kubeless-http-func/pom.xml",
	"owner": "_generated_diagnostic_collection_name_#5",
	"code": "0",
	"severity": 8,
	"message": "Missing artifact io.kubeless:params:jar:1.0-SNAPSHOT",
	"source": "Java",
	"startLineNumber": 16,
	"startColumn": 6,
	"endLineNumber": 16,
	"endColumn": 17
}

What you expected to happen:
The project should have compiled

How to reproduce it (as minimally and precisely as possible):
Create a maven project using the below command, compilation fails.
mvn archetype:generate -DgroupId=kubelessfuncs -DartifactId=kubeless-http-func -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=true
then
mvn clean package

Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version): Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.1", GitCommit:"5e58841cce77d4bc13713ad2b91fa0d961e69192", GitTreeState:"clean", BuildDate:"2021-05-12T14:11:29Z", GoVersion:"go1.16.3", Compiler:"gc", Platform:"darwin/amd64"}
    Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.6+k3s1", GitCommit:"8d0432824a9fd9474b67138b7630c33f285d332f", GitTreeState:"clean", BuildDate:"2021-04-16T19:04:44Z", GoVersion:"go1.15.10", Compiler:"gc", Platform:"linux/amd64"}
  • Kubeless version (use kubeless version): Kubeless version: v1.0.8
  • Cloud provider or physical cluster: It was deployed in K3S
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant