[
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