[seam-issues] [JBoss JIRA] Created: (SOLDER-125) Expressions is not visible in seam-solder-api artifact at compile time

Adam Victor Brandizzi (JIRA) jira-events at lists.jboss.org
Sat Sep 24 19:45:30 EDT 2011


Expressions is not visible in seam-solder-api artifact at compile time
----------------------------------------------------------------------

                 Key: SOLDER-125
                 URL: https://issues.jboss.org/browse/SOLDER-125
             Project: Seam Solder
          Issue Type: Bug
          Components: Core
    Affects Versions: 3.0.0.Final
         Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 14:31:09-0300)
Maven home: /usr/share/maven
Java version: 1.6.0_26, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: pt_BR, platform encoding: MacRoman
OS name: "mac os x", version: "10.6.8", arch: "x86_64", family: "mac"

            Reporter: Adam Victor Brandizzi


I have an application dependent on seam-solder-impl for runtime and seam-solder-api for compile time, as specified below in pom.xml:

{quote}
                <dependency>
                        <groupId>org.jboss.seam.solder</groupId>
                        <artifactId>seam-solder-impl</artifactId>
                        <version>3.0.0.Final</version>
                        <scope>runtime</scope>
                </dependency>

                <dependency>
                        <groupId>org.jboss.seam.solder</groupId>
                        <artifactId>seam-solder-api</artifactId>
                        <version>3.0.0.Final</version>
                        <scope>compile</scope>
                </dependency>
{quote}

I have this class in the project:

{quote}
package org.seamframework.bug;

import org.jboss.seam.solder.el.Expressions;

public class Bugged {
    @Inject Expressions expressions;
}
{quote}

When I run {{mvn package}}, I get this error:

{quote}
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /Users/brandizzi/sandbox/seam-expression-bug/src/main/java/org/seamframework/bug/Bugged.java:[3,31] cannot find symbol
symbol  : class Expressions
location: package org.jboss.seam.solder.el

[ERROR] /Users/brandizzi/sandbox/seam-expression-bug/src/main/java/org/seamframework/bug/Bugged.java:[6,12] cannot find symbol
symbol  : class Expressions
location: class org.seamframework.bug.Bugged

[ERROR] /Users/brandizzi/sandbox/seam-expression-bug/src/main/java/org/seamframework/bug/Bugged.java:[6,5] cannot find symbol
symbol  : class Inject
location: class org.seamframework.bug.Bugged

[INFO] 3 errors 
{quote}

This is unexpected because the documentation presents this bean (http://docs.jboss.org/seam/3/solder/latest/reference/en-US/html/elextensions.html), which makes it part of the interface of Solder.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list