-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Can you please file a jira issue for this? It's a bug.

Thanks,

john

Ashley Williams wrote:
| Just ran the install lifecycle against a pom with a made-up name but
| the code eventually looks for a file called pom.xml. Here's the  command
| I ran
|
| m2 -f testpom.xml install
|
| and got an exception:
|
| Caused by: java.io.FileNotFoundException: /Users/developer/projects/
| java-source-repository/home/pom.xml (No such file or directory)
|         at java.io.FileInputStream.open(Native Method)
|         at java.io.FileInputStream.<init>(FileInputStream.java:106)
|         at java.io.FileReader.<init>(FileReader.java:55)
|         at
| org.apache.maven.project.artifact.ProjectArtifactMetadata.storeInLocalRe
| pository(ProjectArtifactMetadata.java:82)
|
| a quick check of the source code reveals a hardcoded reference to
| pom.xml in InstallMojo.execute line 92 in my version:
|
|     public void execute()
|         throws MojoExecutionException
|     {
|         // TODO: push into transformation
|         boolean isPomArtifact = "pom".equals( packaging );
|
|         File pom = new File( basedir, "pom.xml" );
|         if ( !isPomArtifact )
| ...
|
| Just renamed the file back to pom.xml again and this time the install
| worked.
|
| - AW
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
|
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFDIMDlK3h2CZwO/4URAnx0AJ91aOUoGmcQTV9LRdg9fK30K38O4wCbBXep
SU5TThWthB5R+3/N6DSSzaE=
=lcSO
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to