[JBoss JIRA] Created: (WELDRAD-19) Weld Archetype uses deprecated expressions
by Ken Gullaksen (JIRA)
Weld Archetype uses deprecated expressions
------------------------------------------
Key: WELDRAD-19
URL: https://jira.jboss.org/jira/browse/WELDRAD-19
Project: Weld Archetypes
Issue Type: Patch
Reporter: Ken Gullaksen
Priority: Minor
When building projects generated with weld-jsf-jee-minimal archetype in apache-maven-3.0-alpha-7. The following warnings are encountered.
[WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead. @ net.glxn:arquillian-playground:1.0.0-SNAPSHOT, /home/ken/dev/git/arquillian-playground/pom.xml
[WARNING] The expression ${build.finalName} is deprecated. Please use ${project.build.finalName} instead. @ net.glxn:arquillian-playground:1.0.0-SNAPSHOT, /home/ken/dev/git/arquillian-playground/pom.xml
[WARNING] The expression ${build.finalName} is deprecated. Please use ${project.build.finalName} instead. @ net.glxn:arquillian-playground:1.0.0-SNAPSHOT, /home/ken/dev/git/arquillian-playground/pom.xml
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 3 months
[JBoss JIRA] Created: (WELDRAD-25) The project created from the weld-jsf-jee archetype contains a qualifier type with @Target({FIELD, METHOD, PARAMETER})
by Alexey Kazakov (JIRA)
The project created from the weld-jsf-jee archetype contains a qualifier type with @Target({FIELD, METHOD, PARAMETER})
----------------------------------------------------------------------------------------------------------------------
Key: WELDRAD-25
URL: https://jira.jboss.org/browse/WELDRAD-25
Project: Weld Archetypes
Issue Type: Bug
Affects Versions: 1.0.0.Beta1
Reporter: Alexey Kazakov
There is
@Qualifier
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface WidgetRepository {}
But JSR-299 describes a qualifier type as:
2.3.2. Defining new qualifier types
A qualifier type is a Java annotation defined as @Target({METHOD, FIELD, PARAMETER, TYPE}) and @Retention(RUNTIME).
...
10.1. Event types and qualifier types
...
An event qualifier type is just an ordinary qualifier type as specified in Section 2.3.2, "Defining new qualifier types" with the exception that it may be declared @Target({FIELD, PARAMETER}).
...
Though the spec doesn't require to treat such annotations (like @Target({FIELD, METHOD, PARAMETER})) as definition errors JBoss Tools mark them as errors.
Please see https://jira.jboss.org/browse/JBIDE-7710 for details.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 3 months