JAVA: mudanças entre as edições

De Wiki Clusterlab.com.br
Ir para navegação Ir para pesquisar
Linha 21: Linha 21:
<pre>
<pre>
compile jib:buildTar
compile jib:buildTar
compile jib:build -Dmaven.wagon.http.ssl.insecure=true package
</pre>
</pre>
<syntaxhighlight lang=xml>
<build>
<plugins>
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>1.0.0</version>
<configuration>
<allowInsecureRegistries>false</allowInsecureRegistries>
<from>
<image>mcr.microsoft.com/java/jdk:8-zulu-alpine</image>
</from>
<to>
<image>registryurl.com/spring-jib</image>
<tags>
<tag>0.4</tag>
</tags>
<auth>
<username>${env.REGISTRY_USERNAME}</username>
<password>${env.REGISTRY_PASSWORD}</password>
</auth>
</to>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</syntaxhighlight >


=IDES=
=IDES=

Edição das 22h29min de 10 de maio de 2020

Study

Maven

mvn archetype:generate -DartifactId=teste -DgroupId=br.com.clusterlab -DinteractiveMode=false -DarchetypeArtifactId=maven-archetype-quickstart

Do not validade SSL

mvn  -Dmaven.wagon.http.ssl.insecure=true package

Maven SSL Insecure

-Dmaven.wagon.http.ssl.insecure=true 

JIB

Compite tto tar

compile jib:buildTar
compile jib:build -Dmaven.wagon.http.ssl.insecure=true package
<build>
		<plugins>
			<plugin>
				<groupId>com.google.cloud.tools</groupId>
				<artifactId>jib-maven-plugin</artifactId>
				<version>1.0.0</version>
				<configuration>
					<allowInsecureRegistries>false</allowInsecureRegistries>
					<from>
						<image>mcr.microsoft.com/java/jdk:8-zulu-alpine</image>
					</from>
					<to>
						<image>registryurl.com/spring-jib</image>
						<tags>
							<tag>0.4</tag>
						</tags>
						<auth>
							<username>${env.REGISTRY_USERNAME}</username>
							<password>${env.REGISTRY_PASSWORD}</password>
						</auth>
					</to>
				</configuration>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>build</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

IDES

Spring

JRE

JAVAWS

Disable security

C:\Program Files (x86)\Java\jre1.8.0_91\lib\security\java.security:

Remove MD5:

jdk.certpath.disabledAlgorithms

Remove SSLv3, RC4, and MD5withRSA:

jdk.tls.disabledAlgorithms

Arguments

  • JMXRemote
 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=18001 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
  • Change server port
java -jar target/HelloWorld-0.1.0.jar --server.port=8091

GIT/Projects