0

When I run mvn clean deploy on my project I get an error

Also my project in eclipse displays the following errors which I don't know if they are related to my current problem.

Project configuration not up-to-date with pom.xml plugin configuration not covered by lifecycle configuration

In addition my eclipse doesn't seems to compile the files correctly. My SpringBoot java files aren't being compiled as java files. I can tell because if I deliberately induce syntax errors, there isn't a compilation error. This is all run on eclipse EE and is part of a maven project so I don't even know if a source folder is needed.

Also I'm displaying my main pom.xml file below and it has compilation errors on "pom" and both "&ndash"

I've tried the following solutions

Eclipse Blue, Maven: Project configuration is not up-to-date with pom.xml

Failed to resolve version for org.apache.maven.archetypes

repository element was not specified in the POM inside distributionManagement element or in -DaltDep loymentRepository=id::layout::url parameter

<?xml version="1.0" encoding="UTF-8"?>
<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>com.fanniemae.dfc</groupId>
<artifactId>dfc_app</artifactId>
<packaging>pom</packaging>
<version>0.0.1-SNAPSHOT</version>
<modules>
    <module>dfc_angular</module>
    <module>dfc_springBoot</module>
</modules>

<!--<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.5.3RELEASE</version>
    <relativePath/> &lt;!&ndash; lookup parent from repository 
&ndash;&gt;
</parent>-->

</project>

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project dfc_app: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter

Ambitious Intern
  • 311
  • 1
  • 3
  • 13

1 Answers1

4

mvn deploy will deploy the produced artifact to a Maven Repository.

To do so it needs the configuration to which repository it must be deployed and this is missing.

But I assume that you don't want to deploy it to a repository but just build it.

That's mvn install This will install it in your local repository.

Maybe you should start with reading the docs: https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html

Simon Martinelli
  • 34,053
  • 5
  • 48
  • 82