September 19, 2011

Maven 2.2.1 – [WARNING] repository metadata for: ‘org.apache.maven.plugins’ could not be retrieved from repository

Filed under: Java,XML — mariojump @ 10:22 pm

On Maven 2.2.1, I had trouble when executing, “mvn archetype:generate”, with the following errors.

[INFO] Searching repository for plugin with prefix: ‘archetype’.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: ‘org.apache.maven.plugins’ could not be retrieved from repository: central due to an error: Error transferring file: Connection timed out
[INFO] Repository ‘central’ will be blacklisted

Finally, it turned out that the proxies section in settings.xml was not commented/uncommented properly. Windows XP Firewall or security software had nothing to do with the error.


August 27, 2011

Trang – Multi-format schema converter based on RELAX NG

Filed under: Java,Software Development,Ubuntu,XML — mariojump @ 10:53 am

Trang is a schema converter.

Install Trang on Ubuntu 10.04 LTS.
$ sudo apt-get install trang

This time, I used Trang to generate an XSD file from an XML file.

$ trang -I xml -O xsd InputXmlFile.xml OutputXSDFile.xsd

Blog at