[ 
https://issues.apache.org/jira/browse/CXF-2275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754355#action_12754355
 ] 

Christian Schneider commented on CXF-2275:
------------------------------------------

Hi Dan,

thanks for the hint. I have come up with the code below. Is this really enough?
Will a dependant project be built by these lines of code?

BTW: I think something like this could be implemented into the artifactResolver 
as it is probably a common problem. What do you think?


        /**
         * First try to find the artifact in the reactor projects of the maven 
session.
         * So an artifact that is not yet built can be resolved
         */
        List<MavenProject> projects = mavenSession.getSortedProjects();
        for (MavenProject project : projects) {
            if ( artifact.getGroupId().equals( project.getGroupId() )
                && artifact.getArtifactId().equals( project.getArtifactId() ) 
                && artifact.getVersion().equals( project.getVersion() ) ) 
            {
                Set<Artifact> artifacts = project.getArtifacts();
                for (Artifact pArtifact : artifacts) {
                    if (artifact.getType() == "wsdl") {
                        return pArtifact;
                    }
                }
            }
        }


> Maven plugins: Support reading WSDLs from Maven repository
> ----------------------------------------------------------
>
>                 Key: CXF-2275
>                 URL: https://issues.apache.org/jira/browse/CXF-2275
>             Project: CXF
>          Issue Type: New Feature
>          Components: Tooling
>    Affects Versions: 2.2.2
>            Reporter: Trygve Laugstøl
>            Assignee: Christian Schneider
>             Fix For: 2.3
>
>
> The Maven plugins should support reading WSDL files directly from a Maven 
> repository to make it easier to consume WSDLs in a repository. Currently it 
> is required to use the dependency plugin or similar to copy the WSDL from the 
> repository to target/ to process it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to