Error in install:install which stops my deploy

Feb 17, 2009 at 11:36 AM
Hello all,

i have following Problem:

when i want to do a "mvn install" or "mvn deploy" of my Visual Studio 2005 Project everything goes fine until it comes to the part of install:install where i get a error.

{ The good thing is, that he puts the services.common into the local repository,
the bad thing is, that with this error mvn deploy doesn't }

Thats the error:

[INFO] [install:install]
17-feb-2009 11.46.56 npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.
ProjectDaoImpl
17-feb-2009 11.46.56 npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-004: Connection Start Up: Time = 47
[INFO] NPANDAY-001-007: Installing file into repository: File = c:\Temp\VSProjec
ts\PopcornServicesSln\Services.common\target\Services.Common.dll, Dest Directory
 = C:\Documents and Settings\pb26664\.m2\uac\gac_msil\Services.Common\1.0.0.0__i
t.bz.prov.Schools.Popcorn
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] NPANDAY-1001-000: Failed to install artifacts

Embedded error: NPANDAY-001-012: Unable to read pom file
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: NPANDAY-1001-000: Failed
 to install artifacts
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:583)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:499)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:478)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:330)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:291)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: NPANDAY-1001-000: Fai
led to install artifacts
        at npanday.plugin.install.InstallerMojo.execute(InstallerMojo.java:183)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:451)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:558)
        ... 16 more
Caused by: org.apache.maven.artifact.installer.ArtifactInstallationException: NP
ANDAY-001-012: Unable to read pom file
        at npanday.artifact.impl.ArtifactInstallerImpl.installArtifactWithPom(Ar
tifactInstallerImpl.java:406)
        at npanday.plugin.install.InstallerMojo.execute(InstallerMojo.java:179)
        ... 18 more




THIS IS MY POM:

<?xml version="1.0" encoding="utf-8" ?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://maven.apache.org/POM/4.0.0">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <artifactId>dotnetproject</artifactId>
    <groupId>it.bz.prov.egov.factory</groupId>
    <version>1.0.0-SNAPSHOT</version>
  </parent>
  <groupId>it.bz.prov.Schools.Popcorn</groupId>
  <artifactId>Services.Common</artifactId>
  <packaging>library</packaging>
  <name>Services.Common</name>
  <version>1.0.0.0</version>

  <dependencies>
    <dependency>
      <groupId>it.bz.prov.Base.Cee</groupId>
      <artifactId>Locator</artifactId>
      <type>library</type>
      <version>3.1.0</version>
    </dependency>
    <dependency>
      <groupId>it.bz.prov.Base.Cee</groupId>
      <artifactId>ServiceBroker.Common</artifactId>
      <type>library</type>
      <version>3.1.0</version>
    </dependency>
    <dependency>
      <groupId>it.bz.prov.Base.Cee</groupId>
      <artifactId>Locator.Common</artifactId>
      <type>library</type>
      <version>3.1.0</version>
    </dependency>
  </dependencies>
  <build>
    <sourceDirectory>.</sourceDirectory>
    <plugins>
      <plugin>
        <groupId>npanday.plugin</groupId>
        <artifactId>maven-compile-plugin</artifactId>
        <extensions>true</extensions>
      </plugin>
    </plugins>
  </build>
</project>

SAMPLE POM OF a DLL:
(which i deployed with  mvn deploy:deploy-file -Durl=http://10.159.32.131:8080/artifactory/libs-releases-local -DrepositoryId=egov-dotnet -Dfile=it.bz.prov.Base.Cee.Locator.dll -DpomFile=pom.locator.xml )

<?xml version="1.0" encoding="UTF-8"?>
<project>
  <modelVersion>4.0.0</modelVersion>  
  <groupId>it.bz.prov.Base.Cee</groupId>  
  <artifactId>Locator</artifactId>  
  <packaging>dll</packaging>  
  <version>3.1.0</version>  
  <name>Locator</name>  
  <build>
    <plugins>
      <plugin>
        <groupId>npanday.plugin</groupId>  
        <artifactId>maven-compile-plugin</artifactId>  
        <extensions>true</extensions>
      </plugin>
    </plugins>
  </build>
</project>


PLZ HELP

Feb 17, 2009 at 5:39 PM
found ...?!
the pom of the artifact to be deployed was encoded with utf-8. I tried to change the encoding to ANSI, then the mvn deploy has succeded successfully
the strange is that maven can read the pom but the npanday install plugin not.

Coordinator
Feb 19, 2009 at 5:09 AM
Hi inghooo,

Do you have a remote repository set up already.

We are still making for a move to have a dedicated remote repository that could also be placed in settings.xml as a default remote repository for NPanday, although this isn't final yet.

Thanks,

Joe