Designed by:
Wordpress themes

September 22, 2009

Maven deploy file to a repository

Filed under: Uncategorized — mariolat @ 1:46 pm

How to deploy third party artifact to a maven repository :

mvn deploy:deploy-file -DgroupId=myGroupId -DartifactId=myArtifactId -Dversion=2.6.5 -Dfile=filename.jar -Dpackaging=jar -Durl=http://mymavenrepo/

For example, to deploy the eclipse eswt to a repository :
mvn deploy:deploy-file -DgroupId=org.eclipse.eswt -DartifactId=eswt-converged
-win32 -Dversion=1.3.0 -Dfile=eswt-converged.jar -Dpackaging=jar -Durl=http://www.myurl.org/nexus/content/repositories/thirdparty -DrepositoryId=thirdparty

In case of deploying of sources or javadoc use -Dclassifier=javadoc or -Dclassifier=sources

March 24, 2009

Dynamically change CSS on body tag with dojo

Filed under: Javascript, Programming — mariolat @ 5:01 pm

I searched on the net a quick and dirty way to change the CSS applied to the body tag and I eventually wrote a piace of code cutting and pasting from various sources on the net:


var cssRef = document.createElement("link");
cssRef.href = "mycss.css"
cssRef.rel = 'stylesheet';
cssRef.type = 'text/css';
dojo.query('head')[0].appendChild(cssRef);
dojo.body().setAttribute(”class”,value);

Powered by WordPress .::. Designed by SiteGround Web Hosting