maven-failsafe-plugin Errors and BUILD SUCCESS?

You need having two executions blocks, cause the verify goal of the maven-failsafe-plugin is intended to check the results of the integration tests. <executions> <execution> <id>functional-test-1024</id> <phase>test</phase> <goals> <goal>integration-test</goal> </goals> <configuration> <includes> <include>**/IntegrationTierFunctionalTestCase.java</include> </includes> <forkMode>once</forkMode> <argLine>-XX:MaxPermSize=256M -Xmx1024M</argLine> </configuration> </execution> <execution> <id>verify</id> <phase>verify</phase> <goals> <goal>verify</goal> </goals> </execution> </executions> Furthermore you should update the version of the … Read more

Maven and eclipse: a reliable way to add non-Maven or external jars to a project?

1) you can use system scope dependency <dependency> <groupId>test</groupId> <artifactId>x</artifactId> <version>1.0</version> <scope>system</scope> <systemPath>${basedir}/lib/x.jar</systemPath> </dependency> 2) you can copy your x.jar to local maven repository as repository/test/x/1.0/x-1.0.jar and add a dependency as <dependency> <groupId>test</groupId> <artifactId>x</artifactId> <version>1.0</version> </dependency>

Java POI the supplied data appears to be in the Office 2007+ XML

According to the Apache POI Quick Guide, the POIFSFileSystem (or similarly, NPOIFSFileSystem) is only used with .xls (Excel versions through 2003) documents. The equivalent for .xlsx documents (Excel 2007+) is OPCPackage. OPCPackage pkg = OPCPackage.open(new File(“file.xlsx”)); You can create an XSSFWorkbook from the OPCPackage: XSSFWorkbook wb = new XSSFWorkbook(pkg); Or you can just create it … Read more

maven platform encoding

maven picking these values from Java system properties. Here is how you could set encoding: <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> Or: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <configuration> <encoding>UTF-8</encoding> </configuration> </plugin> Or pass parameter to maven command line: mvn -Dproject.build.sourceEncoding=UTF-8

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)