[jbossws-issues] [JBoss JIRA] (JBWS-4102) Investigate warnings in build log

R Searls (JIRA) issues at jboss.org
Mon Jun 25 17:37:00 EDT 2018


    [ https://issues.jboss.org/browse/JBWS-4102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13596499#comment-13596499 ] 

R Searls commented on JBWS-4102:
--------------------------------


JDK-8162455 seems to be the most probable explanation for this issue.

_generatedTranslationFilesPath_  is a @Generated annotation 'Translation Option'
supported in jboss-logging-tools.  It is defined in the projects doc file,
/docs/src/main/asciidoc/processor-options.adoc.

Its value is passed to the annotation processor during compilation via the
maven-compiler-plugin.  Within the plugin configuration section it is declared 
and passed as a javac option  (see -A(key=value) under javac -help).

The maven-compiler-plugin supports 3 options for this value to be provided.
{code:java}
option 1:
  <configuration>
    <compilerArgs>
      <arg>-AgeneratedTranslationFilesPath=${project.basedir}/target/generated-translation-files</arg>
    </compilerArgs>
  </configuration>
{code}

{code:java}
option 2:
<configuration>
    <compilerArgument>
      -AgeneratedTranslationFilesPath=${project.basedir}/target/generated-translation-files
    </compilerArgument>
  </configuration>
{code}

{code:java}
option 3:
<configuration>
    <compilerArguments>
      <AgeneratedTranslationFilesPath>${project.basedir}/target/generated-translation-files</AgeneratedTranslationFilesPath>
    </compilerArguments>
  </configuration>
{code}

jbossws-parent uses maven-compiler-plugin and declares _generatedTranslationFilesPath_
using option 2.

All jbossws-cxf modules inherit jbossws-parent.  The needed directories and files are
generated if there is an @Generated annotation present in the module.

The jbossws-cxf-client module's maven-compiler-plugin declaration of _generatedTranslationFilesPath_
using option 3.  This is redundant because jbossws-parent has already defined it.
The declaration has no negative affect.  It might be good to clean this up at sometime
in the future.

We should wait for this to be resolved in the JDK.



> Investigate warnings in build log
> ---------------------------------
>
>                 Key: JBWS-4102
>                 URL: https://issues.jboss.org/browse/JBWS-4102
>             Project: JBoss Web Services
>          Issue Type: Task
>          Components: jbossws-cxf
>    Affects Versions: jbossws-cxf-5.2.0.Final
>            Reporter: Jan Blizňák
>            Assignee: R Searls
>            Priority: Minor
>             Fix For: jbossws-cxf-5.2.2.Final
>
>         Attachments: build.log
>
>
> Maven build process in current version outputs few warnings that should be investigated.
> Command used:
> {code:java}
> mvn -V -B clean install -Dnodeploy -Pwildfly1200,testsuite -Dserver.home=/tmp/wildfly/dist/target/wildfly-12.0.0.Beta2-SNAPSHOT 
> {code}
> *case 1*
> {code:java}
> [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ jbossws-cxf-client ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 17 source files to /tmp/jbossws-cxf/modules/client/target/test-classes
> [WARNING] The following options were not recognized by any processor: '[generatedTranslationFilesPath]'
> ....
> [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ jbossws-cxf-server ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 44 source files to /tmp/jbossws-cxf/modules/server/target/classes
> [WARNING] The following options were not recognized by any processor: '[generatedTranslationFilesPath]'
> ....
> [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ jbossws-cxf-server ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 2 source files to /tmp/jbossws-cxf/modules/server/target/test-classes
> [WARNING] The following options were not recognized by any processor: '[generatedTranslationFilesPath]'
> {code}
> *case 2*
> {code:java}
> [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ jbossws-cxf-test-utils ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 9 source files to /tmp/jbossws-cxf/modules/test-utils/target/classes
> [WARNING] /tmp/jbossws-cxf/modules/test-utils/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java:[54,20] sun.net.util.IPAddressUtil is internal proprietary API and may be removed in a future release
> [WARNING] /tmp/jbossws-cxf/modules/test-utils/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java:[240,57] sun.net.util.IPAddressUtil is internal proprietary API and may be removed in a future release
> {code}
> *case 3*
> {code:java}
> [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ jbossws-cxf-specific-tests ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 414 source files to /tmp/jbossws-cxf/modules/testsuite/cxf-tests/target/test-classes
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/store/Endpoint.java:[28,34] org.apache.cxf.annotations.Logging in org.apache.cxf.annotations has been deprecated
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3648/PolicyAttachmentTestCase.java:[35,34] org.apache.cxf.interceptor.LoggingInInterceptor in org.apache.cxf.interceptor has been deprecated
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/fastinfoset/FastInfosetTestCase.java:[34,34] org.apache.cxf.interceptor.LoggingInInterceptor in org.apache.cxf.interceptor has been deprecated
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/fastinfoset/FastInfosetTestCase.java:[35,34] org.apache.cxf.interceptor.LoggingOutInterceptor in org.apache.cxf.interceptor has been deprecated
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/logging/LoggingFeatureEndpointImpl.java:[30,34] org.apache.cxf.annotations.Logging in org.apache.cxf.annotations has been deprecated
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/logging/MessageLoggingTestCase.java:[35,34] org.apache.cxf.interceptor.LoggingInInterceptor in org.apache.cxf.interceptor has been deprecated
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/asyncclient/AsyncEnabledInfoInterceptor.java:[27,34] org.apache.cxf.interceptor.AbstractLoggingInterceptor in org.apache.cxf.interceptor has been deprecated
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/logging/CustomInInterceptor.java:[6,34] org.apache.cxf.interceptor.LoggingInInterceptor in org.apache.cxf.interceptor has been deprecated
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/store/Endpoint.java:[36,2] org.apache.cxf.annotations.Logging in org.apache.cxf.annotations has been deprecated
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3648/PolicyAttachmentTestCase.java:[104,42] org.apache.cxf.interceptor.LoggingInInterceptor in org.apache.cxf.interceptor has been deprecated
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws3648/PolicyAttachmentTestCase.java:[132,42] org.apache.cxf.interceptor.LoggingInInterceptor in org.apache.cxf.interceptor has been deprecated
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/fastinfoset/FastInfosetTestCase.java:[108,42] org.apache.cxf.interceptor.LoggingInInterceptor in org.apache.cxf.interceptor has been deprecated
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/fastinfoset/FastInfosetTestCase.java:[109,43] org.apache.cxf.interceptor.LoggingOutInterceptor in org.apache.cxf.interceptor has been deprecated
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/fastinfoset/FastInfosetTestCase.java:[138,42] org.apache.cxf.interceptor.LoggingInInterceptor in org.apache.cxf.interceptor has been deprecated
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/fastinfoset/FastInfosetTestCase.java:[139,43] org.apache.cxf.interceptor.LoggingOutInterceptor in org.apache.cxf.interceptor has been deprecated
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/fastinfoset/FastInfosetTestCase.java:[188,42] org.apache.cxf.interceptor.LoggingInInterceptor in org.apache.cxf.interceptor has been deprecated
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/fastinfoset/FastInfosetTestCase.java:[189,43] org.apache.cxf.interceptor.LoggingOutInterceptor in org.apache.cxf.interceptor has been deprecated
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/logging/LoggingFeatureEndpointImpl.java:[35,2] org.apache.cxf.annotations.Logging in org.apache.cxf.annotations has been deprecated
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/logging/MessageLoggingTestCase.java:[111,10] org.apache.cxf.interceptor.LoggingInInterceptor in org.apache.cxf.interceptor has been deprecated
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/logging/MessageLoggingTestCase.java:[111,58] org.apache.cxf.interceptor.LoggingInInterceptor in org.apache.cxf.interceptor has been deprecated
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/asyncclient/AsyncEnabledInfoInterceptor.java:[33,50] org.apache.cxf.interceptor.AbstractLoggingInterceptor in org.apache.cxf.interceptor has been deprecated
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jbws4046/JBWS4046TestCase.java:[82,64] non-varargs call of varargs method with inexact argument type for last parameter;
>   cast to javax.xml.ws.WebServiceFeature for a varargs call
>   cast to javax.xml.ws.WebServiceFeature[] for a non-varargs call and to suppress this warning
> [WARNING] /tmp/jbossws-cxf/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/logging/CustomInInterceptor.java:[9,42] org.apache.cxf.interceptor.LoggingInInterceptor in org.apache.cxf.interceptor has been deprecated
> {code}
> *case 4*
> {code:java}
> [INFO] --- maven-surefire-plugin:2.20.1:test (forked-integration-tests) @ jbossws-cxf-specific-tests ---
> [WARNING] The parameter forkMode is deprecated since version 2.14. Use forkCount and reuseForks instead.
> {code}
> *case 5*
> {code:java}
> [INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ jbossws-cxf-specific-tests ---
> [WARNING] JAR will be empty - no content was marked for inclusion!
> [INFO] Building jar: /tmp/jbossws-cxf/modules/testsuite/cxf-tests/target/jbossws-cxf-specific-tests-5.2.1-SNAPSHOT.jar
> ...
> [INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ jbossws-cxf-shared-tests ---
> [WARNING] JAR will be empty - no content was marked for inclusion!
> [INFO] Building jar: /tmp/jbossws-cxf/modules/testsuite/shared-tests/target/jbossws-cxf-shared-tests-5.2.1-SNAPSHOT.jar
> {code}
> *case 6*
> {code}
> [WARNING] /home/travis/build/jbossws/jbossws-cxf/modules/server/src/main/java/org/jboss/wsf/stack/cxf/security/authentication/SubjectCreatingInterceptor.java:[25,25] java.security.acl.Group in java.security.acl has been deprecated and marked for removal
> [WARNING] /home/travis/build/jbossws/jbossws-cxf/modules/server/src/main/java/org/jboss/wsf/stack/cxf/security/authentication/SubjectCreatingPolicyInterceptor.java:[25,25] java.security.acl.Group in java.security.acl has been deprecated and marked for removal
> [WARNING] /home/travis/build/jbossws/jbossws-cxf/modules/server/src/main/java/org/jboss/wsf/stack/cxf/security/authentication/SubjectCreatingInterceptor.java:[25,25] java.security.acl.Group in java.security.acl has been deprecated and marked for removal
> [WARNING] /home/travis/build/jbossws/jbossws-cxf/modules/server/src/main/java/org/jboss/wsf/stack/cxf/security/authentication/SubjectCreatingPolicyInterceptor.java:[25,25] java.security.acl.Group in java.security.acl has been deprecated and marked for removal
> {code}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the jbossws-issues mailing list