Hello,

I ran into the same problem running appfuse:full-source on a Linux Debian.
What can be stated here is that this certainly is not a OS dependent issue,
but rather an issue of configuring maven. After quit some time I have come
up with a way to run appfuse:full-source without any problem by adding
dependencies to the plugin scope.

I have to say that we are using nexus as a repository proxy and the problem
in my case might be related to a "bad" configuration because it's my fist
setup of nexus but worked fine until now. The appfuse archeType in question
here is appfuse-basic-jsf-archetype . So that the dependencies are JSF
specific.

The thing I noticed is that maven did not download the jar files of the
regarding dependencies only the pom's. The wagon exception is misleading in
my opinion because surely maven is able to talk http.... And I have tried to
to use the right wagon ;) If you are willing to do so as well:
http://maven.apache.org/plugins/maven-deploy-plugin/faq.html 

But how to get the jar files downloaded and placed in the local repository!?

What I did is replace the <plugin><groupId>org.appfuse.plugins</groupId>
<dependencies> with the following:


<dependencies>
                    <dependency>
                        <groupId>${jdbc.groupId}</groupId>
                        <artifactId>${jdbc.artifactId}</artifactId>
                        <version>${jdbc.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>javax.servlet</groupId>
                        <artifactId>jsp-api</artifactId>
                        <version>2.0</version>
                    </dependency>
                    <dependency>
                        <groupId>org.jmock</groupId>
                        <artifactId>jmock</artifactId>
                        <version>2.5.1</version>
                    </dependency>
                    <dependency>
                        <groupId>commons-logging</groupId>
                        <artifactId>commons-logging</artifactId>
                        <version>1.0.4</version>
                    </dependency>
                    <dependency>
                        <groupId>commons-logging</groupId>
                        <artifactId>commons-logging</artifactId>
                        <version>1.1.1</version>
                    </dependency>
                    <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                        <version>4.4</version>
                    </dependency>
                    <dependency>
                        <groupId>javax.mail</groupId>
                        <artifactId>mail</artifactId>
                        <version>1.4.1</version>
                    </dependency>
                    <dependency>
                        <groupId>javax.xml.bind</groupId>
                        <artifactId>jaxb-api</artifactId>
                        <version>2.2</version>
                    </dependency>
                    <dependency>
                        <groupId>commons-collections</groupId>
                        <artifactId>commons-collections</artifactId>
                        <version>3.1</version>
                    </dependency>
                    <dependency>
                        <groupId>commons-collections</groupId>
                        <artifactId>commons-collections</artifactId>
                        <version>3.2</version>
                    </dependency>
                    <dependency>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-log4j12</artifactId>
                        <version>1.5.2</version>
                    </dependency>
                    <dependency>
                        <groupId>commons-digester</groupId>
                        <artifactId>commons-digester</artifactId>
                        <version>1.7</version>
                    </dependency>
                    <dependency>
                        <groupId>javax.servlet</groupId>
                        <artifactId>jsp-api</artifactId>
                        <version>2.1</version>
                    </dependency>
                    <dependency>
                        <groupId>net.sourceforge.jsf-comp</groupId>
                        <artifactId>acegi-jsf</artifactId>
                        <version>1.1.3</version>
                    </dependency>
                    <dependency>
                        <groupId>net.java.dev.ajax4jsf</groupId>
                        <artifactId>ajax4jsf</artifactId>
                        <version>1.0.6</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.myfaces.tomahawk</groupId>
                        <artifactId>tomahawk</artifactId>
                        <version>1.1.9</version>
                    </dependency>
                    <dependency>
                        <groupId>com.sun.facelets</groupId>
                        <artifactId>jsf-facelets</artifactId>
                        <version>1.1.14</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.shale</groupId>
                        <artifactId>shale-validator</artifactId>
                        <version>1.0.5</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.myfaces.core</groupId>
                        <artifactId>myfaces-api</artifactId>
                        <version>1.2.7</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.shale</groupId>
                        <artifactId>shale-test</artifactId>
                        <version>1.0.5</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.myfaces.core</groupId>
                        <artifactId>myfaces-impl</artifactId>
                        <version>1.2.7</version>
                    </dependency>
                    <dependency>
                        <groupId>javax.servlet</groupId>
                        <artifactId>jsp-api</artifactId>
                        <version>2.1</version>
                    </dependency>
                    <dependency>
                        <groupId>javax.servlet</groupId>
                        <artifactId>jsp-api</artifactId>
                        <version>2.0</version>
                    </dependency>
                    <dependency>
                        <groupId>org.appfuse</groupId>
                        <artifactId>appfuse-web-common</artifactId>
                        <version>${appfuse.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.subethamail</groupId>
                        <artifactId>subethasmtp-wiser</artifactId>
                        <version>1.2</version>
                    </dependency>
                    <dependency>
                        <groupId>org.jmock</groupId>
                        <artifactId>jmock</artifactId>
                        <version>2.5.2</version>
                    </dependency>
                    <dependency>
                        <groupId>asm</groupId>
                        <artifactId>asm</artifactId>
                        <version>2.2.3</version>
                    </dependency>
                    <dependency>
                        <groupId>org.jmock</groupId>
                        <artifactId>jmock-junit4</artifactId>
                        <version>2.5.1</version>
                    </dependency>
                </dependencies>


After that maven downloaded the jar files and appfuse:full-source ran
throught without any problems. I have also tested it with a feshly
downloaded project and cleaned repository.

Some info about my setup:


$ mvn -v
Apache Maven 2.2.1 (rdebian-4)
Java version: 1.6.0_20
Java home: /usr/lib/jvm/java-6-sun-1.6.0.20/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "linux" version: "2.6.32-5-xen-amd64" arch: "amd64" Family: "unix"



$ cat settings.xml 

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                      http://maven.apache.org/xsd/settings-1.0.0.xsd";>
    <servers>
        <server>
            <id>nexus-wdi-wg-1</id>
            <username>***</username>
            <password>****</password>
        </server>
    </servers>

    <mirrors>
        <mirror>
      <!--This sends everything else to /public -->
            <id>nexus-wdi-wg-1</id>
            <mirrorOf>*</mirrorOf>
            <url>http://localhost/nexus/content/groups/wdi-wg-1</url>
        </mirror>
    </mirrors>

    <profiles>
        <profile>
            <id>nexus</id>
      <!--Enable snapshots for the built in central repo to direct -->
      <!--all requests to nexus via the mirror -->
            <repositories>
                <repository>
                    <id>central</id>
                    <url>http://central</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <id>central</id>
                    <url>http://central</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </pluginRepository>
            </pluginRepositories>
        </profile>
    </profiles>
    <activeProfiles>
    <!--make the profile active all the time -->
        <activeProfile>nexus</activeProfile>
    </activeProfiles>
</settings>


Hope this helps somehow...

Kind regards
Henning


-- 
View this message in context: 
http://appfuse.547863.n4.nabble.com/Appfuse-2-1-0-M-tp1565641p2288819.html
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to