java - Issue with deploying maven -


i have following pom.xml:

<?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.eternity</groupid> <artifactid>eternity</artifactid> <version>0.0.1-snapshot</version>  <parent>     <groupid>org.springframework.boot</groupid>     <artifactid>spring-boot-starter-parent</artifactid>     <version>1.3.0.release</version>     <relativepath/> </parent>  <properties>     <!-- common build properties -->     <project.build.sourceencoding>utf-8</project.build.sourceencoding>     <java.version>1.8</java.version>      <!-- artifacts versioning properties -->     <lombok.version>1.16.6</lombok.version>     <postgresql.version>9.4-1201-jdbc41</postgresql.version>     <swagger-mvc.version>2.0.1</swagger-mvc.version>     <jackson-datatype.version>2.6.4</jackson-datatype.version>     <guava.version>19.0</guava.version>     <commons.lang3.version>3.4</commons.lang3.version>     <querydsl.version>3.7.1</querydsl.version>  </properties>  <distributionmanagement>  </distributionmanagement>  <dependencymanagement>     <dependencies>         <!-- common dependencies -->         <dependency>             <groupid>org.projectlombok</groupid>             <artifactid>lombok</artifactid>             <version>${lombok.version}</version>             <scope>provided</scope>         </dependency>         <dependency>             <groupid>io.springfox</groupid>             <artifactid>springfox-swagger2</artifactid>             <version>${swagger-mvc.version}</version>         </dependency>         <dependency>             <groupid>com.fasterxml.jackson.datatype</groupid>             <artifactid>jackson-datatype-jsr310</artifactid>             <version>${jackson-datatype.version}</version>         </dependency>         <dependency>             <groupid>com.fasterxml.jackson.datatype</groupid>             <artifactid>jackson-datatype-guava</artifactid>             <version>${jackson-datatype.version}</version>         </dependency>         <dependency>             <groupid>com.google.guava</groupid>             <artifactid>guava</artifactid>             <version>${guava.version}</version>         </dependency>         <dependency>             <groupid>org.apache.commons</groupid>             <artifactid>commons-lang3</artifactid>             <version>${commons.lang3.version}</version>         </dependency>          <!-- persistence dependencies -->         <dependency>             <groupid>org.postgresql</groupid>             <artifactid>postgresql</artifactid>             <version>${postgresql.version}</version>         </dependency>          <dependency>             <groupid>com.sun.mail</groupid>             <artifactid>javax.mail</artifactid>             <version>1.5.2</version>         </dependency>     </dependencies> </dependencymanagement>  <dependencies>      <!-- common dependencies -->     <dependency>         <groupid>org.projectlombok</groupid>         <artifactid>lombok</artifactid>     </dependency>     <dependency>         <groupid>io.springfox</groupid>         <artifactid>springfox-swagger2</artifactid>     </dependency>     <dependency>         <groupid>com.fasterxml.jackson.datatype</groupid>         <artifactid>jackson-datatype-jsr310</artifactid>     </dependency>     <dependency>         <groupid>com.fasterxml.jackson.datatype</groupid>         <artifactid>jackson-datatype-guava</artifactid>     </dependency>     <dependency>         <groupid>com.google.guava</groupid>         <artifactid>guava</artifactid>     </dependency>     <dependency>         <groupid>org.apache.commons</groupid>         <artifactid>commons-lang3</artifactid>     </dependency>     <dependency>         <groupid>com.mysema.querydsl</groupid>         <artifactid>querydsl-jpa</artifactid>         <version>${querydsl.version}</version>     </dependency>      <!-- persistence dependencies -->     <dependency>         <groupid>org.postgresql</groupid>         <artifactid>postgresql</artifactid>     </dependency>     <dependency>         <groupid>org.apache.poi</groupid>         <artifactid>poi-ooxml</artifactid>         <version>3.14</version>     </dependency>      <!-- spring dependencies -->     <dependency>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-starter-data-jpa</artifactid>     </dependency>     <dependency>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-starter-data-rest</artifactid>     </dependency>     <dependency>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-starter-web</artifactid>     </dependency>     <dependency>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-starter-security</artifactid>     </dependency>     <dependency>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-starter-websocket</artifactid>     </dependency>     <dependency>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-devtools</artifactid>         <optional>true</optional>     </dependency>     <dependency>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-starter-mail</artifactid>         <exclusions>             <exclusion>                 <groupid>org.freemarker</groupid>                 <artifactid>freemarker</artifactid>             </exclusion>         </exclusions>     </dependency>     <!-- apache poi dependencies-->     <dependency>         <groupid>org.apache.poi</groupid>         <artifactid>poi</artifactid>         <version>3.14</version>     </dependency>      <!-- test -->     <dependency>         <groupid>junit</groupid>         <artifactid>junit</artifactid>         <version>4.12</version>     </dependency>     <dependency>         <groupid>org.springframework.boot</groupid>         <artifactid>spring-boot-starter-test</artifactid>         <scope>test</scope>     </dependency>      <dependency>         <groupid>com.sun.mail</groupid>         <artifactid>javax.mail</artifactid>         <version>1.5.2</version>     </dependency>  </dependencies>  <build>     <resources>         <resource>             <directory>${basedir}/src/main/resources</directory>         </resource>     </resources> </build>  <profiles>      <!-- default portal application maven profile -->     <profile>         <id>default</id>         <activation>             <activebydefault>true</activebydefault>         </activation>         <build>             <plugins>                 <plugin>                     <groupid>org.springframework.boot</groupid>                     <artifactid>spring-boot-maven-plugin</artifactid>                 </plugin>                 <plugin>                     <groupid>com.mysema.maven</groupid>                     <artifactid>apt-maven-plugin</artifactid>                     <version>1.1.3</version>                     <executions>                         <execution>                             <goals>                                 <goal>process</goal>                             </goals>                             <configuration>                                 <outputdirectory>target/generated-sources/apt</outputdirectory>                                 <processor>com.mysema.query.apt.jpa.jpaannotationprocessor</processor>                             </configuration>                         </execution>                     </executions>                     <dependencies>                         <dependency>                             <groupid>com.mysema.querydsl</groupid>                             <artifactid>querydsl-apt</artifactid>                             <version>${querydsl.version}</version>                         </dependency>                     </dependencies>                 </plugin>             </plugins>         </build>     </profile> </profiles> 

and when trying deploy, following error:

> [info] build failure [info] > ------------------------------------------------------------------------ [info] total time: 20.148s [info] finished at: wed sep 07 17:45:33 > cest 2016 [info] final memory: 55m/516m [info] > ------------------------------------------------------------------------ [error] failed execute goal > org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy > (default-deploy) on project eternity: deployment failed: repository > element not specified in pom inside distributionmanagement > element or in -daltdeploymentrepository=id::layout::url parameter -> > [help 1] 

can tell me doing wrong?

see usage of deploy plugin. need specify remote repository under distribution management section of pom. tell maven artifact needs deployed:

  <distributionmanagement>     <repository>       <id>internal.repo</id>       <name>myco internal repository</name>       <url>host company repository</url>     </repository>   </distributionmanagement> 

Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -