[arquillian-issues] [JBoss JIRA] (ARQ-1998) Arquillian Forge Addon generate incorrect code

Tony Diep (JIRA) issues at jboss.org
Tue Nov 10 15:19:00 EST 2015


Tony Diep created ARQ-1998:
------------------------------

             Summary: Arquillian Forge Addon generate incorrect code
                 Key: ARQ-1998
                 URL: https://issues.jboss.org/browse/ARQ-1998
             Project: Arquillian
          Issue Type: Bug
            Reporter: Tony Diep
            Priority: Minor


Auto-generated code generates
	@Deployment
	public static WebArchive createDeployment() {
		return ShrinkWrap
				.create(WebArchive.class)
				.addClass(Person.class)
				.addAsManifestResource("META-INF/persistence.xml",
						"persistence.xml")
				.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
	}

The XML files are in the wrong place in the archive. It should be in "META-INF" folder

	@Deployment
	public static WebArchive createDeployment() {
		return ShrinkWrap.create(WebArchive.class, "test.war").addClasses(Person.class, PersonDao.class)
				.addAsManifestResource(EmptyAsset.INSTANCE, "META-INF/beans.xml")
				.addAsResource("META-INF/persistence.xml", "META-INF/persistence.xml");
	}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the arquillian-issues mailing list