[forge-issues] [JBoss JIRA] (FORGE-2528) Arquillian Forge Addon generate incorrect code

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


Tony Diep created FORGE-2528:
--------------------------------

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


Arquillian Forge Addon  generates
	@Deployment
	public static WebArchive createDeployment() {
		return ShrinkWrap
				.create(WebArchive.class)
				.addClass(MyClass.class)
				.addAsManifestResource("META-INF/persistence.xml",
						"persistence.xml")
				.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
	}

It should read

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

Note the XML files have to be in "META-INF" folder



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


More information about the forge-issues mailing list