[shrinkwrap-issues] [JBoss JIRA] (SHRINKRES-176) MavenImporter archive name

Michael Irwin (JIRA) issues at jboss.org
Mon Apr 7 18:40:14 EDT 2014


     [ https://issues.jboss.org/browse/SHRINKRES-176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Irwin updated SHRINKRES-176:
------------------------------------

    Description: 
When using the MavenImporter, the archiveName property is ignored.

{code}
WebArchive archive = ShrinkWrap.create(MavenImporter.class, "test.war")
        .loadPomFromFile("pom.xml")
        .importBuildOutput()
        .as(WebArchive.class);
System.out.println(archive.getName());
{code}

The archive name will be whatever the name of the Maven artifact is, which is usually [artifactId]-[version].  

  was:
When using the MavenImporter, the archiveName property is ignored.

{code}
WebArchive archive = ShrinkWrap.create(MavenImporter.class, "test.war")
        .loadPomFromFile("pom.xml")
        .importBuildOutput()
        .as(WebArchive.class);
System.out.println(archive.getName());
{code}

The archive name will be whatever the name of the Maven artifact is, which is usually ${artifactId}-${version}.  


    
> MavenImporter archive name
> --------------------------
>
>                 Key: SHRINKRES-176
>                 URL: https://issues.jboss.org/browse/SHRINKRES-176
>             Project: ShrinkWrap Resolvers
>          Issue Type: Bug
>            Reporter: Michael Irwin
>            Assignee: Andrew Rubinger
>
> When using the MavenImporter, the archiveName property is ignored.
> {code}
> WebArchive archive = ShrinkWrap.create(MavenImporter.class, "test.war")
>         .loadPomFromFile("pom.xml")
>         .importBuildOutput()
>         .as(WebArchive.class);
> System.out.println(archive.getName());
> {code}
> The archive name will be whatever the name of the Maven artifact is, which is usually [artifactId]-[version].  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the shrinkwrap-issues mailing list