java - The POM for <some_project> is missing, no dependency information available -


what doing?

i have created maven project, bundle external jars

project/pom.xml        /bin            /safebrowsing2_2.11-0.2.5.jar            /scala-http-client_2.11-1.0.jar 

the libraries safebrowsing2_2.11-0.2.5.jar , scala-http-client_2.11-1.0.jar bundled because not available in nexus , custom jars needed legacy purposes.

pom.xml uses following plugins bundle them in 1 jar

         <plugins>             <plugin>                 <groupid>com.googlecode.addjars-maven-plugin</groupid>                 <artifactid>addjars-maven-plugin</artifactid>                 <version>1.0.5</version>                 <executions>                     <execution>                         <goals>                             <goal>add-jars</goal>                         </goals>                         <configuration>                             <resources>                                 <resource>                                     <directory>${basedir}/bin</directory>                                 </resource>                             </resources>                         </configuration>                     </execution>                 </executions>             </plugin>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-shade-plugin</artifactid>                 <version>2.2</version>                 <executions>                     <execution>                         <phase>package</phase>                         <goals>                             <goal>shade</goal>                         </goals>                     </execution>                 </executions>             </plugin>         </plugins> 

when build runs on jenkins fails following warnings

[warning] pom com.shn:project-safebrowsing2_2.11-0.2.5.jar:jar:1.0-snapshot missing, no dependency information available [warning] pom com.shn:project-scala-http-client_2.11-1.0.jar:jar:1.0-snapshot missing, no dependency information available 

and error

[error] failed execute goal on project project-installer: not resolve dependencies project com.project-installer:war:0.19.0-snapshot: following artifacts not resolved: com.shn:project-external-dependencies-safebrowsing2_2.11-0.2.5.jar:jar:1.0-snapshot, com.shn:project-scala-http-client_2.11-1.0.jar:jar:1.0-snapshot: not find artifact com.shn:project-safebrowsing2_2.11-0.2.5.jar:jar:1.0-snapshot in company (http://172.62.11.24:8080/nexus/content/groups/public) -> [help 1] 16:17:03 [error]  16:17:03 [error] see full stack trace of errors, re-run maven -e switch. 16:17:03 [error] re-run maven using -x switch enable full debug logging. 16:17:03 [error]  16:17:03 [error] more information errors , possible solutions, please read following articles: 16:17:03 [error] [help 1] http://cwiki.apache.org/confluence/display/maven/dependencyresolutionexception 

question

yes, know not have pom.xml, how let build pass , generate artifact?

use install-file goal of maven's install plugin:

... install externally created artifact local repository, along pom.

use deploy-file goal of maven's deploy plugin to:

install artifact in remote repository.

... rather placing artifacts in project's directory.


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -