java - Maven and server deploy plugin (WebSphere maybe Jboss too) -
i using eclipse websphere. have websphere plugin , server configurated.
my project uses maven dependency resolution.
the problem wen deploy server, deploys via eclipse build, , exports maven dependencys marked test scope.
i think because in deployment assembly maven directory marked export, if remove dependencys go away...
how can configure eclipse not export maven test scope dependencys??
ok, here's pom.xml
<?xml version="1.0" encoding="utf-8"?> <project xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns="http://maven.apache.org/pom/4.0.0" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelversion>4.0.0</modelversion> <groupid>br.gov.serpro</groupid> <artifactid>tratamento</artifactid> <version>0.0.1-snapshot</version> <packaging>war</packaging> <name></name> <description></description> <url></url> <parent> <groupid>br.gov.frameworkdemoiselle</groupid> <artifactid>demoiselle-jsf-parent</artifactid> <version>2.3.4</version> </parent> <repositories> <repository> <id>serpro.ui.internal</id> <name>repositório de componentes visuais - serpro</name> <url>http://archiva.desenv.serpro/repository/ui-internal</url> </repository> <repository> <id>serpro.ui.snapshot</id> <name>repositório de componentes visuais - serpro</name> <url>http://archiva.desenv.serpro/repository/ui-snapshots</url> </repository> <repository> <id>demoiselle.sourceforge.net-snapshot</id> <url>http://demoiselle.sourceforge.net/repository/snapshot</url> </repository> </repositories> <dependencies> <dependency> <groupid>br.gov.frameworkdemoiselle</groupid> <artifactid>demoiselle-core</artifactid> <exclusions> <exclusion> <artifactid>cdi-api</artifactid> <groupid>javax.enterprise</groupid> </exclusion> <exclusion> <artifactid>commons-logging</artifactid> <groupid>commons-logging</groupid> </exclusion> <exclusion> <artifactid>validation-api</artifactid> <groupid>javax.validation</groupid> </exclusion> </exclusions> </dependency> <dependency> <groupid>br.gov.frameworkdemoiselle</groupid> <artifactid>demoiselle-jsf</artifactid> <exclusions> <exclusion> <artifactid>servlet-api</artifactid> <groupid>javax.servlet</groupid> </exclusion> <exclusion> <artifactid>jsf-api</artifactid> <groupid>com.sun.faces</groupid> </exclusion> </exclusions> </dependency> <dependency> <groupid>br.gov.frameworkdemoiselle</groupid> <artifactid>demoiselle-jpa</artifactid> </dependency> <dependency> <groupid>org.primefaces</groupid> <artifactid>primefaces</artifactid> <version>4.0</version> </dependency> <dependency> <groupid>org.primefaces.extensions</groupid> <artifactid>primefaces-extensions</artifactid> <version>1.2.1</version> </dependency> <dependency> <groupid>br.gov.serpro.ui</groupid> <artifactid>componente-visual-rfb</artifactid> <version>0.0.5-snapshot</version> </dependency> <dependency> <groupid>net.java.dev.weblets</groupid> <artifactid>weblets-impl</artifactid> <version>1.2-snapshot</version> </dependency> <dependency> <groupid>net.java.dev.weblets</groupid> <artifactid>weblets-api</artifactid> <version>1.2-snapshot</version> </dependency> <dependency> <groupid>commons-digester</groupid> <artifactid>commons-digester</artifactid> <version>2.1</version> </dependency> <dependency> <groupid>commons-fileupload</groupid> <artifactid>commons-fileupload</artifactid> <version>1.3</version> </dependency> <dependency> <groupid>commons-io</groupid> <artifactid>commons-io</artifactid> <version>2.4</version> </dependency> <dependency> <groupid>org.javassist</groupid> <artifactid>javassist</artifactid> <version>3.18.1-ga</version> </dependency> <dependency> <groupid>br.gov.frameworkdemoiselle.component</groupid> <artifactid>demoiselle-junit</artifactid> <version>2.3.0</version> <scope>test</scope> </dependency> <dependency> <groupid>org.slf4j</groupid> <artifactid>slf4j-api</artifactid> </dependency> <dependency> <groupid>org.slf4j</groupid> <artifactid>slf4j-log4j12</artifactid> </dependency> <dependency> <groupid>commons-logging</groupid> <artifactid>commons-logging</artifactid> <version>1.1.3</version> </dependency> </dependencies> </project>
so here dependency demoiselle-junit marked test scope, when publish or export via eclipse exported in .war file, jars come it, including weld, , makes app crash when loading...
Comments
Post a Comment