You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@manifoldcf.apache.org by "Karl Wright (JIRA)" <ji...@apache.org> on 2012/09/28 13:33:07 UTC

[jira] [Created] (CONNECTORS-548) Cannot build with Maven

Karl Wright created CONNECTORS-548:
--------------------------------------

             Summary: Cannot build with Maven
                 Key: CONNECTORS-548
                 URL: https://issues.apache.org/jira/browse/CONNECTORS-548
             Project: ManifoldCF
          Issue Type: Bug
    Affects Versions: ManifoldCF 1.0
            Reporter: Karl Wright
            Assignee: Karl Wright
             Fix For: ManifoldCF 1.0


Another thing. I'm not able to build MCF with Maven (mvn clean install -Dmaven.test.skip):

 Failed to execute goal on project mcf-filesystem-connector: Could not resolve dependencies for project org.apache.manifoldcf:mcf-filesystem-connector:jar:1.0: Could not find artifact org.apache.manifoldcf:mcf-pull-agent:jar:tests:1.0 in ...

I ran mvn-bootstrap.sh before I tried to build. I even ran the following:
mvn install:install-file -Dfile=lib/commons-httpclient.jar -DgroupId=commons-httpclient -DartifactId=commons-httpclient-mcf -Dversion=3.1  -Dpackaging=jar

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CONNECTORS-548) Cannot build with Maven

Posted by "Karl Wright (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465535#comment-13465535 ] 

Karl Wright commented on CONNECTORS-548:
----------------------------------------

The pom.xml in framework seemed to be missing the <relativePath> clause, so I added that:

{code}
    <relativePath>../pom.xml</relativePath>
{code}

Unfortunately, made no difference - failed in the same way.  Is not looking in the local repository for the artifact, possibly because it is not labeled -SNAPSHOT?  Is there a way to override this maven behavior, or should I simply re-version everything to include -SNAPSHOT in the branch?

                
> Cannot build with Maven
> -----------------------
>
>                 Key: CONNECTORS-548
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-548
>             Project: ManifoldCF
>          Issue Type: Bug
>    Affects Versions: ManifoldCF 1.0
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 1.0
>
>
> Another thing. I'm not able to build MCF with Maven (mvn clean install -Dmaven.test.skip):
>  Failed to execute goal on project mcf-filesystem-connector: Could not resolve dependencies for project org.apache.manifoldcf:mcf-filesystem-connector:jar:1.0: Could not find artifact org.apache.manifoldcf:mcf-pull-agent:jar:tests:1.0 in ...
> I ran mvn-bootstrap.sh before I tried to build. I even ran the following:
> mvn install:install-file -Dfile=lib/commons-httpclient.jar -DgroupId=commons-httpclient -DartifactId=commons-httpclient-mcf -Dversion=3.1  -Dpackaging=jar

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CONNECTORS-548) Cannot build with Maven

Posted by "Karl Wright (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465560#comment-13465560 ] 

Karl Wright commented on CONNECTORS-548:
----------------------------------------

r1391422 (release branch)


                
> Cannot build with Maven
> -----------------------
>
>                 Key: CONNECTORS-548
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-548
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: ManifoldCF 1.0
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 1.0
>
>
> Another thing. I'm not able to build MCF with Maven (mvn clean install -Dmaven.test.skip):
>  Failed to execute goal on project mcf-filesystem-connector: Could not resolve dependencies for project org.apache.manifoldcf:mcf-filesystem-connector:jar:1.0: Could not find artifact org.apache.manifoldcf:mcf-pull-agent:jar:tests:1.0 in ...
> I ran mvn-bootstrap.sh before I tried to build. I even ran the following:
> mvn install:install-file -Dfile=lib/commons-httpclient.jar -DgroupId=commons-httpclient -DartifactId=commons-httpclient-mcf -Dversion=3.1  -Dpackaging=jar

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CONNECTORS-548) Cannot build with Maven

Posted by "Piergiorgio Lucidi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465548#comment-13465548 ] 

Piergiorgio Lucidi commented on CONNECTORS-548:
-----------------------------------------------

You can't build in this way ManifoldCF because Maven doesn't have the JAR related to test classes.

The following command:
{code}
mvn clean install -Dmaven.test.skip
{code}

allows you to execute a build without compiling and installing unit tests, but we have some dependencies that include these needed JARs: for example org.apache.manifoldcf:mcf-core:jar:tests:1.0 as I saw in the log.

The unique alternative is to escape integration tests:
{code}
mvn clean install -DskipITs
{code}

That maven command is useful only to reinstall some artifacts of ManifoldCF, but this means that you have at least executed one time the complete build process (mvn clean install).

So probably this is useful only if you are developing Manifold.

I suggest to remove the following section from the paragraph "Building the framework and the connectors using Apache Maven":
{quote}
To reinstall all the new artifacts in your local Maven repository without running unit tests and integration tests, type:

mvn clean install -Dmaven.test.skip
{quote}
                
> Cannot build with Maven
> -----------------------
>
>                 Key: CONNECTORS-548
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-548
>             Project: ManifoldCF
>          Issue Type: Bug
>    Affects Versions: ManifoldCF 1.0
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 1.0
>
>
> Another thing. I'm not able to build MCF with Maven (mvn clean install -Dmaven.test.skip):
>  Failed to execute goal on project mcf-filesystem-connector: Could not resolve dependencies for project org.apache.manifoldcf:mcf-filesystem-connector:jar:1.0: Could not find artifact org.apache.manifoldcf:mcf-pull-agent:jar:tests:1.0 in ...
> I ran mvn-bootstrap.sh before I tried to build. I even ran the following:
> mvn install:install-file -Dfile=lib/commons-httpclient.jar -DgroupId=commons-httpclient -DartifactId=commons-httpclient-mcf -Dversion=3.1  -Dpackaging=jar

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CONNECTORS-548) Cannot build with Maven

Posted by "Karl Wright (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465528#comment-13465528 ] 

Karl Wright commented on CONNECTORS-548:
----------------------------------------

I was able to reproduce this here, except it failed very early on with this error:

{code}
[ERROR] Failed to execute goal on project mcf-agents: Could not resolve dependen
cies for project org.apache.manifoldcf:mcf-agents:jar:1.0: Could not find artifa
ct org.apache.manifoldcf:mcf-core:jar:tests:1.0 in central (http://repo1.maven.o
rg/maven2) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
lutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :mcf-agents
{code}

                
> Cannot build with Maven
> -----------------------
>
>                 Key: CONNECTORS-548
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-548
>             Project: ManifoldCF
>          Issue Type: Bug
>    Affects Versions: ManifoldCF 1.0
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 1.0
>
>
> Another thing. I'm not able to build MCF with Maven (mvn clean install -Dmaven.test.skip):
>  Failed to execute goal on project mcf-filesystem-connector: Could not resolve dependencies for project org.apache.manifoldcf:mcf-filesystem-connector:jar:1.0: Could not find artifact org.apache.manifoldcf:mcf-pull-agent:jar:tests:1.0 in ...
> I ran mvn-bootstrap.sh before I tried to build. I even ran the following:
> mvn install:install-file -Dfile=lib/commons-httpclient.jar -DgroupId=commons-httpclient -DartifactId=commons-httpclient-mcf -Dversion=3.1  -Dpackaging=jar

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CONNECTORS-548) Cannot build with Maven

Posted by "Karl Wright (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONNECTORS-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karl Wright resolved CONNECTORS-548.
------------------------------------

    Resolution: Fixed
    
> Cannot build with Maven
> -----------------------
>
>                 Key: CONNECTORS-548
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-548
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: ManifoldCF 1.0
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 1.0
>
>
> Another thing. I'm not able to build MCF with Maven (mvn clean install -Dmaven.test.skip):
>  Failed to execute goal on project mcf-filesystem-connector: Could not resolve dependencies for project org.apache.manifoldcf:mcf-filesystem-connector:jar:1.0: Could not find artifact org.apache.manifoldcf:mcf-pull-agent:jar:tests:1.0 in ...
> I ran mvn-bootstrap.sh before I tried to build. I even ran the following:
> mvn install:install-file -Dfile=lib/commons-httpclient.jar -DgroupId=commons-httpclient -DartifactId=commons-httpclient-mcf -Dversion=3.1  -Dpackaging=jar

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CONNECTORS-548) Cannot build with Maven

Posted by "Karl Wright (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465558#comment-13465558 ] 

Karl Wright commented on CONNECTORS-548:
----------------------------------------

r1391421 (trunk)

                
> Cannot build with Maven
> -----------------------
>
>                 Key: CONNECTORS-548
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-548
>             Project: ManifoldCF
>          Issue Type: Bug
>    Affects Versions: ManifoldCF 1.0
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 1.0
>
>
> Another thing. I'm not able to build MCF with Maven (mvn clean install -Dmaven.test.skip):
>  Failed to execute goal on project mcf-filesystem-connector: Could not resolve dependencies for project org.apache.manifoldcf:mcf-filesystem-connector:jar:1.0: Could not find artifact org.apache.manifoldcf:mcf-pull-agent:jar:tests:1.0 in ...
> I ran mvn-bootstrap.sh before I tried to build. I even ran the following:
> mvn install:install-file -Dfile=lib/commons-httpclient.jar -DgroupId=commons-httpclient -DartifactId=commons-httpclient-mcf -Dversion=3.1  -Dpackaging=jar

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CONNECTORS-548) Cannot build with Maven

Posted by "Karl Wright (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONNECTORS-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karl Wright updated CONNECTORS-548:
-----------------------------------

    Component/s: Documentation
    
> Cannot build with Maven
> -----------------------
>
>                 Key: CONNECTORS-548
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-548
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: ManifoldCF 1.0
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 1.0
>
>
> Another thing. I'm not able to build MCF with Maven (mvn clean install -Dmaven.test.skip):
>  Failed to execute goal on project mcf-filesystem-connector: Could not resolve dependencies for project org.apache.manifoldcf:mcf-filesystem-connector:jar:1.0: Could not find artifact org.apache.manifoldcf:mcf-pull-agent:jar:tests:1.0 in ...
> I ran mvn-bootstrap.sh before I tried to build. I even ran the following:
> mvn install:install-file -Dfile=lib/commons-httpclient.jar -DgroupId=commons-httpclient -DartifactId=commons-httpclient-mcf -Dversion=3.1  -Dpackaging=jar

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira