Friday, August 28, 2009

JAX-WS / Maven / WSIMPORT

To use JAXB during your maven build use something similar to..

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>StaticDetailLogAccessServiceClient</groupId>
<artifactId>StaticDetailLogAccessServiceClient</artifactId>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.1.6</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.3.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<defaultGoal>install</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<id>copy</id>
<phase>generate-sources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.yourco.schemas</groupId>
<artifactId>DetailLogAccess</artifactId>
<version>1.0.1</version>
<type>xsd</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
</artifactItem>
</artifactItems>
<!-- other configurations here -->
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.6.1</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<schemaDirectory>${project.build.directory}/classes</schemaDirectory>
<includeSchemas>
<includeSchema>**/*.xsd</includeSchema>
<includeSchema>**/*.dtd</includeSchema>
</includeSchemas>
<excludeSchemas>
<excludeSchema>test*.xsd</excludeSchema>
</excludeSchemas>
<includeBindings>
<includeBinding>*.xjb</includeBinding>
</includeBindings>
<strict>false</strict>
<verbose>true</verbose>
<extension>true</extension>
</configuration>
</plugin>
<plugin>
<inherited>true</inherited>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
Found at https://jax-ws-commons.dev.java.net/jaxws-maven-plugin/usage.html

Thursday, August 27, 2009

When downloading torrents...

Block any uploads/downloads from the URLs found here..
http://www.bluetack.co.uk/config/level1.gz

Good Torrent Sites :
  • isohunt
  • demonoid (requires you to sign up)
  • pirate bay
Good Torrent Clients :
  • Vuze (not sure if it works on Mac, saw it on linux)
Some Commonly Used Hacked Mac OSX Systems:
  • Kalyway
  • iAtkos

Tuesday, August 25, 2009

WGET Flags for Entire Website

From Prystash's blog, args to wget to grab an entire site cleanly.
$ wget --recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--restrict-file-names=windows \
--domains somesite.org \
--no-parent \
www.somesite.org