Archive for 2015-06-11

Maven install

mvn install:install-file -Dfile=mscpdf.jar -DgroupId=microsec.mscpdf -DartifactId=mscpdf -Dversion=3.2.7.10 -Dpackaging=jar -DgeneratePom=true

vagy:

mvn deploy:deploy-file -DgroupId=microsec.com.itextpdf -DartifactId=itext -Dversion=3.2.7.10 -Dpackaging=jar -Dfile=iText.jar -DrepositoryId=dev-releases -Durl=http://housemaster:8082/dev-releases

 

Gentoo szerveren Tomcat-ben, alkalmazás specifikus propertie fájl classpath-ra tétele

Először is megnyitjuk a tomcat conf-ot

vi /etc/conf.d/tomcat-7-main

majd itt a

az alábbi sort módosítjuk pl:

JAVA_OPTS="-Dtimetracker_config_location=file:///var/lib/tomcat-7-main/properties/timetracker.properties

 

 

Java target definiálása Maven projektben

POM-ba tenni:

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-compiler-plugin</artifactId>
	<configuration>
		<source>1.8</source>
		<target>1.8</target>
		<showDeprecation>true</showDeprecation>
		<showWarnings>true</showWarnings>
		<executable>${env.JAVA_HOME_8}/bin/javac</executable>
		<fork>true</fork>
	</configuration>
</plugin>

FONTOS: JAVA_HOME_8 környezeti változó mutasson a JDK8-ra.

IP címek netmask-kal

/8     /255.0.0.0
/12   /255.240.0.0
/16   /255.255.0.0
/17   /255.255.128.0
/18   /255.255.192.0
/19   /255.255.224.0
/20   /255.255.240.0
/21   /255.255.248.0
/22   /255.255.252.0
/23   /255.255.254.0
/24   /255.255.255.0
/25   /255.255.255.128
/26   /255.255.255.192
/27   /255.255.255.224
/28   /255.255.255.240
/29   /255.255.255.248
/30   /255.255.255.252