Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Building maven-plugins project

    7 answers - 1021 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    We've developed a "warpath" plugin[1] that allows you to read
    dependencies from a war dependency. It works great, but we're
    currently unable to hook into the eclipse or idea plugin for project
    file generation. There's two thoughts I have to solving this:
    1. Modify any <type>war</typedependencies to be <type>jar</type>
    during the "process-resources" phase. This doesn't seem to work, and
    even if we got it to work with the IDE plugins, I'm guessing it might
    clobber the war-overlay feature.
    2. Modify the eclipse/idea/netbeans plugins to detect if
    maven-warpath-plugin exists, and if it does, treat WARs as JARs.
    , #2 is more work, but #1 doesn't seem to work. Any suggestions?
    Thanks,
    Matt
    [1] http://www.nabble.com/Re%
    Download source at
    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
  • No.1 | | 3424 bytes | |

    9/14/06, Matt Raible <mraible (AT) gmail (DOT) comwrote:
    We've developed a "warpath" plugin[1] that allows you to read
    dependencies from a war dependency. It works great, but we're
    currently unable to hook into the eclipse or idea plugin for project
    file generation. There's two thoughts I have to solving this:

    1. Modify any <type>war</typedependencies to be <type>jar</type>
    during the "process-resources" phase. This doesn't seem to work, and
    even if we got it to work with the IDE plugins, I'm guessing it might
    clobber the war-overlay feature.

    2. Modify the eclipse/idea/netbeans plugins to detect if
    maven-warpath-plugin exists, and if it does, treat WARs as JARs.

    , #2 is more work, but #1 doesn't seem to work. Any suggestions?

    Thanks,

    Matt

    [1] http://www.nabble.com/Re%
    Download source at

    Sorry, forgot to finish my message and make the subject match my e-mail. ;-)

    Since I couldn't get #1 to work, I'm going to take a (reluctant) stab
    at #2. I tried to checkout the maven-plugins project using:

    svn co maven-plugins

    This worked just fine - but when I tried to build it, I get the error below.

    Do I have to download a higher-level project to build maven-plugins?

    226:~/dev/maven-plugins mraible$ mvn
    [INF] Scanning for projects
    Downloading:
    [WARNING] Unable to get resource from repository codehaus.org
    ()
    [INF]
    [ERRR] FATAL ERRR
    [INF]
    [INF] Failed to resolve artifact.

    GroupId: org.apache.maven.plugins
    ArtifactId: maven-plugins
    Version: 2-SNAPSHT

    Reason: Unable to download the artifact from any repository

    from the specified remote repositories:
    codehaus.org (),
    central (http://repo1.maven.org/maven2)

    [INF]
    [INF] Trace
    Cannot find parent:
    for project:

    at (DefaultMaven.java:365)
    at (DefaultMaven.java:278)
    at (DefaultMaven.java:115)
    at (MavenCli.java:256)
    at (Native Method)
    at ()
    at ()
    at (Method.java:585)
    at (Launcher.java:315)
    at (Launcher.java:255)
    at (Launcher.java:430)
    at (Launcher.java:375)
    Caused by: Cannot
    find parent: for project:

    at ()
    at ()
    at ()
    at ()
    at (DefaultMaven.java:515)
    at (DefaultMaven.java:447)
    at (DefaultMaven.java:491)
    at (DefaultMaven.java:351)
    11 more
    Caused by: PM
    '' not found in repository:
    Unable to download the artifact from any repository

    from the specified remote repositories:
    codehaus.org (),
    central (http://repo1.maven.org/maven2)

    at ()
    at ()
    18 more
    Caused by:
    Unable to download the artifact from any repository

    from the specified remote repositories:
    codehaus.org (),
    central (http://repo1.maven.org/maven2)

    at ()
    at ()
    at ()
    19 more
    Caused by:
    Unable to download the artifact from any repository
    at (DefaultWagonManager.java:260)
    at ()
    21 more
    [INF]
    [INF] Total time: 1 second
    [INF] Finished at: Thu Sep 14 10:48:50 CDT 2006
    [INF] Final Memory: 2M/508M
    [INF]
    226:~/dev/maven-plugins mraible$

    Thanks,

    Matt

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
  • No.2 | | 3683 bytes | |

    What will this do for me? Were would I use the WAR dependancies with this
    plugin?

    9/14/06, Matt Raible <mraible (AT) gmail (DOT) comwrote:

    9/14/06, Matt Raible <mraible (AT) gmail (DOT) comwrote:
    We've developed a "warpath" plugin[1] that allows you to read
    dependencies from a war dependency. It works great, but we're
    currently unable to hook into the eclipse or idea plugin for project
    file generation. There's two thoughts I have to solving this:

    1. Modify any <type>war</typedependencies to be <type>jar</type>
    during the "process-resources" phase. This doesn't seem to work, and
    even if we got it to work with the IDE plugins, I'm guessing it might
    clobber the war-overlay feature.

    2. Modify the eclipse/idea/netbeans plugins to detect if
    maven-warpath-plugin exists, and if it does, treat WARs as JARs.

    , #2 is more work, but #1 doesn't seem to work. Any
    suggestions?

    Thanks,

    Matt

    [1]
    http://www.nabble.com/Re%
    Download source at

    Sorry, forgot to finish my message and make the subject match my e-mail.
    ;-)

    Since I couldn't get #1 to work, I'm going to take a (reluctant) stab
    at #2. I tried to checkout the maven-plugins project using:

    svn co maven-plugins

    This worked just fine - but when I tried to build it, I get the error
    below.

    Do I have to download a higher-level project to build maven-plugins?

    226:~/dev/maven-plugins mraible$ mvn
    [INF] Scanning for projects
    Downloading:

    [WARNING] Unable to get resource from repository codehaus.org
    ()
    [INF]

    [ERRR] FATAL ERRR
    [INF]

    [INF] Failed to resolve artifact.

    GroupId: org.apache.maven.plugins
    ArtifactId: maven-plugins
    Version: 2-SNAPSHT

    Reason: Unable to download the artifact from any repository

    from the specified remote repositories:
    codehaus.org (),
    central (http://repo1.maven.org/maven2)
    --
    [INF]

    [INF] Trace
    Cannot find parent:
    for project:

    at (DefaultMaven.java
    :365)
    at (DefaultMaven.java:278)
    at (DefaultMaven.java:115)
    at (MavenCli.java:256)
    at (Native Method)
    at (
    )
    at (
    )
    at (Method.java:585)
    at (Launcher.java
    :315)
    at (Launcher.java:255)
    at (
    Launcher.java:430)
    at (Launcher.java:375)
    Caused by: Cannot
    find parent: for project:

    at
    (
    )
    at
    (
    )
    at

    ()
    at (
    )
    at (DefaultMaven.java:515)
    at (DefaultMaven.java
    :447)
    at (DefaultMaven.java
    :491)
    at (DefaultMaven.java
    :351)
    11 more
    Caused by: PM
    '' not found in repository:
    Unable to download the artifact from any repository

    from the specified remote repositories:
    codehaus.org (),
    central (http://repo1.maven.org/maven2)

    at

    ()
    at
    (
    )
    18 more
    Caused by:
    Unable to download the artifact from any repository

    from the specified remote repositories:
    codehaus.org (),
    central (http://repo1.maven.org/maven2)

    at
    (
    )
    at
    (
    )
    at

    ()
    19 more
    Caused by:
    Unable to download the artifact from any repository
    at
    (
    DefaultWagonManager.java:260)
    at
    (
    )
    21 more
    [INF]

    [INF] Total time: 1 second
    [INF] Finished at: Thu Sep 14 10:48:50 CDT 2006
    [INF] Final Memory: 2M/508M
    [INF]

    226:~/dev/maven-plugins mraible$

    Thanks,

    Matt

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
    --
  • No.3 | | 3976 bytes | |

    Matt Raible-3 wrote:

    9/14/06, Matt Raible <mraible (AT) gmail (DOT) comwrote:
    >We've developed a "warpath" plugin[1] that allows you to read
    >dependencies from a war dependency. It works great, but we're
    >currently unable to hook into the eclipse or idea plugin for project
    >file generation. There's two thoughts I have to solving this:
    >>

    >1. Modify any <type>war</typedependencies to be <type>jar</type>
    >during the "process-resources" phase. This doesn't seem to work, and
    >even if we got it to work with the IDE plugins, I'm guessing it might
    >clobber the war-overlay feature.
    >>

    >2. Modify the eclipse/idea/netbeans plugins to detect if
    >maven-warpath-plugin exists, and if it does, treat WARs as JARs.
    >>

    >, #2 is more work, but #1 doesn't seem to work. Any
    >suggestions?
    >>

    >Thanks,
    >>

    >Matt
    >>

    >[1]
    >http://www.nabble.com/Re%
    >Download source at
    >


    Sorry, forgot to finish my message and make the subject match my e-mail.
    ;-)

    Since I couldn't get #1 to work, I'm going to take a (reluctant) stab
    at #2. I tried to checkout the maven-plugins project using:

    svn co maven-plugins

    This worked just fine - but when I tried to build it, I get the error
    below.

    Do I have to download a higher-level project to build maven-plugins?

    226:~/dev/maven-plugins mraible$ mvn
    [INF] Scanning for projects
    Downloading:

    [WARNING] Unable to get resource from repository codehaus.org
    ()
    [INF]

    [ERRR] FATAL ERRR
    [INF]

    [INF] Failed to resolve artifact.

    GroupId: org.apache.maven.plugins
    ArtifactId: maven-plugins
    Version: 2-SNAPSHT

    Reason: Unable to download the artifact from any repository

    from the specified remote repositories:
    codehaus.org (),
    central (http://repo1.maven.org/maven2)

    [INF]

    [INF] Trace
    Cannot find parent:
    for project:

    at
    (DefaultMaven.java:365)
    at (DefaultMaven.java:278)
    at (DefaultMaven.java:115)
    at (MavenCli.java:256)
    at (Native Method)
    at
    ()
    at
    ()
    at (Method.java:585)
    at
    (Launcher.java:315)
    at (Launcher.java:255)
    at
    (Launcher.java:430)
    at (Launcher.java:375)
    Caused by: Cannot
    find parent: for project:

    at
    ()
    at
    ()
    at
    ()
    at
    ()
    at (DefaultMaven.java:515)
    at
    (DefaultMaven.java:447)
    at
    (DefaultMaven.java:491)
    at
    (DefaultMaven.java:351)
    11 more
    Caused by: PM
    '' not found in repository:
    Unable to download the artifact from any repository

    from the specified remote repositories:
    codehaus.org (),
    central (http://repo1.maven.org/maven2)

    at
    ()
    at
    ()
    18 more
    Caused by:
    Unable to download the artifact from any repository

    from the specified remote repositories:
    codehaus.org (),
    central (http://repo1.maven.org/maven2)

    at
    ()
    at
    ()
    at
    ()
    19 more
    Caused by:
    Unable to download the artifact from any repository
    at
    (DefaultWagonManager.java:260)
    at
    ()
    21 more
    [INF]

    [INF] Total time: 1 second
    [INF] Finished at: Thu Sep 14 10:48:50 CDT 2006
    [INF] Final Memory: 2M/508M
    [INF]

    226:~/dev/maven-plugins mraible$

    Thanks,

    Matt

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org

    Good day to you, Matt,

    maven-plugins parent is maven-parent ([1]).
    maven parent's parent is apache ([2]).

    Cheers,
    Franz

    [1]
    [2]
  • No.4 | | 6183 bytes | |

    This almost worked - in that I was able to checkout both projects and
    install them. Unfortunately, I still get the following error:

    222:~/dev/maven-plugins mraible$ mvn
    [INF] Scanning for projects
    Downloading:
    [WARNING] Unable to get resource from repository codehaus.org
    ()
    [INF]
    [ERRR] FATAL ERRR
    [INF]
    [INF] Failed to resolve artifact.

    GroupId: org.apache.maven.plugins
    ArtifactId: maven-plugins
    Version: 2-SNAPSHT

    Reason: Unable to download the artifact from any repository

    from the specified remote repositories:
    codehaus.org (),
    central (http://repo1.maven.org/maven2)

    [INF]
    [INF] Trace
    Cannot find parent:
    for project:

    at (DefaultMaven.java:365)
    at (DefaultMaven.java:278)
    at (DefaultMaven.java:115)
    at (MavenCli.java:256)
    at (Native Method)
    at ()
    at ()
    at (Method.java:585)
    at (Launcher.java:315)
    at (Launcher.java:255)
    at (Launcher.java:430)
    at (Launcher.java:375)
    Caused by: Cannot
    find parent: for project:

    at ()
    at ()
    at ()
    at ()
    at (DefaultMaven.java:515)
    at (DefaultMaven.java:447)
    at (DefaultMaven.java:491)
    at (DefaultMaven.java:351)
    11 more
    Caused by: PM
    '' not found in repository:
    Unable to download the artifact from any repository

    from the specified remote repositories:
    codehaus.org (),
    central (http://repo1.maven.org/maven2)

    at ()
    at ()
    18 more
    Caused by:
    Unable to download the artifact from any repository

    from the specified remote repositories:
    codehaus.org (),
    central (http://repo1.maven.org/maven2)

    at ()
    at ()
    at ()
    19 more
    Caused by:
    Unable to download the artifact from any repository
    at (DefaultWagonManager.java:260)
    at ()
    21 more
    [INF]
    [INF] Total time: 1 second
    [INF] Finished at: Thu Sep 14 21:46:16 CDT 2006
    [INF] Final Memory: 2M/508M
    [INF]
    222:~/dev/maven-plugins mraible$

    9/14/06, franz see <franz.see (AT) gmail (DOT) comwrote:
    >
    >
    >

    Matt Raible-3 wrote:

    9/14/06, Matt Raible <mraible (AT) gmail (DOT) comwrote:
    >We've developed a "warpath" plugin[1] that allows you to read
    >dependencies from a war dependency. It works great, but we're
    >currently unable to hook into the eclipse or idea plugin for project
    >file generation. There's two thoughts I have to solving this:
    >>

    >1. Modify any <type>war</typedependencies to be <type>jar</type>
    >during the "process-resources" phase. This doesn't seem to work, and
    >even if we got it to work with the IDE plugins, I'm guessing it might
    >clobber the war-overlay feature.
    >>

    >2. Modify the eclipse/idea/netbeans plugins to detect if
    >maven-warpath-plugin exists, and if it does, treat WARs as JARs.
    >>

    >, #2 is more work, but #1 doesn't seem to work. Any
    >suggestions?
    >>

    >Thanks,
    >>

    >Matt
    >>

    >[1]
    >http://www.nabble.com/Re%
    >Download source at
    >
    >

    Sorry, forgot to finish my message and make the subject match my e-mail.
    ;-)

    Since I couldn't get #1 to work, I'm going to take a (reluctant) stab
    at #2. I tried to checkout the maven-plugins project using:

    svn co maven-plugins

    This worked just fine - but when I tried to build it, I get the error
    below.

    Do I have to download a higher-level project to build maven-plugins?

    226:~/dev/maven-plugins mraible$ mvn
    [INF] Scanning for projects
    Downloading:

    [WARNING] Unable to get resource from repository codehaus.org
    ()
    [INF]

    [ERRR] FATAL ERRR
    [INF]

    [INF] Failed to resolve artifact.

    GroupId: org.apache.maven.plugins
    ArtifactId: maven-plugins
    Version: 2-SNAPSHT

    Reason: Unable to download the artifact from any repository

    from the specified remote repositories:
    codehaus.org (),
    central (http://repo1.maven.org/maven2)
    --
    [INF]

    [INF] Trace
    Cannot find parent:
    for project:

    at
    (DefaultMaven.java:365)
    at (DefaultMaven.java:278)
    at (DefaultMaven.java:115)
    at (MavenCli.java:256)
    at (Native Method)
    at
    ()
    at
    ()
    at (Method.java:585)
    at
    (Launcher.java:315)
    at (Launcher.java:255)
    at
    (Launcher.java:430)
    at (Launcher.java:375)
    Caused by: Cannot
    find parent: for project:

    at
    ()
    at
    ()
    at
    ()
    at
    ()
    at (DefaultMaven.java:515)
    at
    (DefaultMaven.java:447)
    at
    (DefaultMaven.java:491)
    at
    (DefaultMaven.java:351)
    11 more
    Caused by: PM
    '' not found in repository:
    Unable to download the artifact from any repository

    from the specified remote repositories:
    codehaus.org (),
    central (http://repo1.maven.org/maven2)

    at
    ()
    at
    ()
    18 more
    Caused by:
    Unable to download the artifact from any repository

    from the specified remote repositories:
    codehaus.org (),
    central (http://repo1.maven.org/maven2)

    at
    ()
    at
    ()
    at
    ()
    19 more
    Caused by:
    Unable to download the artifact from any repository
    at
    (DefaultWagonManager.java:260)
    at
    ()
    21 more
    [INF]

    [INF] Total time: 1 second
    [INF] Finished at: Thu Sep 14 10:48:50 CDT 2006
    [INF] Final Memory: 2M/508M
    [INF]

    226:~/dev/maven-plugins mraible$

    Thanks,

    Matt

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
    >
    >
    >
    >

    Good day to you, Matt,

    maven-plugins parent is maven-parent ([1]).
    maven parent's parent is apache ([2]).

    Cheers,
    Franz

    [1]
    [2]
  • No.5 | | 1071 bytes | |

    9/14/06, Matt Raible <mraible (AT) gmail (DOT) comwrote:
    This almost worked - in that I was able to checkout both projects and
    install them. Unfortunately, I still get the following error:

    [ERRR] FATAL ERRR
    [INF]
    [INF] Failed to resolve artifact.

    GroupId: org.apache.maven.plugins
    ArtifactId: maven-plugins
    Version: 2-SNAPSHT

    Reason: Unable to download the artifact from any repository

    Strange, I wonder why it wants 2-SNAPSHT.

    The version on the trunk is 4-SNAPSHT:

    You can temporarily put the apache.snapshots repository in
    settings.xml so Maven can find the older version:

    <repository>
    <id>apache.snapshots</id>
    <name>Apache Snapshot Repository</name>
    <url></url>
    <releases><enabled>false</enabled></releases>
    </repository>

    I wouldn't leave this in settings.xml permanently, or you'll
    experience the reverse of your current problem. Things will build
    fine for you, and no one else. :)
  • No.6 | | 1916 bytes | |

    Hmmm, can Maven even build itself?! ;-)

    222:~/dev/maven-plugins mraible$ mvn install
    [INF] Scanning for projects
    [INF] snapshot
    checking for updates from apache.snapshots
    Downloading:
    6K downloaded
    [INF] snapshot checking for
    updates from apache.snapshots
    [INF] snapshot checking for
    updates from codehaus.org
    Downloading:
    9K downloaded
    Downloading:
    6K downloaded
    [INF]
    [ERRR] BUILD FAILURE
    [INF]
    [INF] Unable to build project
    '/; it
    requires Maven version 2.0.5-SNAPSHT
    [INF]
    [INF] For more information, run Maven with the -e switch
    [INF]
    [INF] Total time: 8 seconds
    [INF] Finished at: Thu Sep 14 22:32:15 CDT 2006
    [INF] Final Memory: 4M/508M
    [INF]
    222:~/dev/maven-plugins mraible$

    9/14/06, Wendy Smoak <wsmoak (AT) gmail (DOT) comwrote:
    9/14/06, Matt Raible <mraible (AT) gmail (DOT) comwrote:
    This almost worked - in that I was able to checkout both projects and
    install them. Unfortunately, I still get the following error:

    [ERRR] FATAL ERRR
    [INF]
    [INF] Failed to resolve artifact.

    GroupId: org.apache.maven.plugins
    ArtifactId: maven-plugins
    Version: 2-SNAPSHT

    Reason: Unable to download the artifact from any repository

    Strange, I wonder why it wants 2-SNAPSHT.

    The version on the trunk is 4-SNAPSHT:

    You can temporarily put the apache.snapshots repository in
    settings.xml so Maven can find the older version:

    <repository>
    <id>apache.snapshots</id>
    <name>Apache Snapshot Repository</name>
    <url></url>
    <releases><enabled>false</enabled></releases>
    </repository>

    I wouldn't leave this in settings.xml permanently, or you'll
    experience the reverse of your current problem. Things will build
    fine for you, and no one else. :)
  • No.7 | | 3384 bytes | |

    Matt Raible-3 wrote:

    Hmmm, can Maven even build itself?! ;-)

    222:~/dev/maven-plugins mraible$ mvn install
    [INF] Scanning for projects
    [INF] snapshot
    checking for updates from apache.snapshots
    Downloading:

    6K downloaded
    [INF] snapshot checking for
    updates from apache.snapshots
    [INF] snapshot checking for
    updates from codehaus.org
    Downloading:

    9K downloaded
    Downloading:

    6K downloaded
    [INF]

    [ERRR] BUILD FAILURE
    [INF]

    [INF] Unable to build project
    '/; it
    requires Maven version 2.0.5-SNAPSHT
    [INF]

    [INF] For more information, run Maven with the -e switch
    [INF]

    [INF] Total time: 8 seconds
    [INF] Finished at: Thu Sep 14 22:32:15 CDT 2006
    [INF] Final Memory: 4M/508M
    [INF]

    222:~/dev/maven-plugins mraible$

    9/14/06, Wendy Smoak <wsmoak (AT) gmail (DOT) comwrote:
    >9/14/06, Matt Raible <mraible (AT) gmail (DOT) comwrote:
    >This almost worked - in that I was able to checkout both projects and
    >install them. Unfortunately, I still get the following error:
    >
    >[ERRR] FATAL ERRR
    >[INF]
    >
    >[INF] Failed to resolve artifact.
    >>

    >GroupId: org.apache.maven.plugins
    >ArtifactId: maven-plugins
    >Version: 2-SNAPSHT
    >>

    >Reason: Unable to download the artifact from any repository
    >>

    >
    >>

    >Strange, I wonder why it wants 2-SNAPSHT.
    >>

    >The version on the trunk is 4-SNAPSHT:
    >
    >>

    >You can temporarily put the apache.snapshots repository in
    >settings.xml so Maven can find the older version:
    >>

    ><repository>
    ><id>apache.snapshots</id>
    ><name>Apache Snapshot Repository</name>
    ><url></url>
    ><releases><enabled>false</enabled></releases>
    ></repository>
    >>

    >I wouldn't leave this in settings.xml permanently, or you'll
    >experience the reverse of your current problem. Things will build
    >fine for you, and no one else. :)
    >>

    >--
    >Wendy
    >>


    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org

    Good day to you, Matt,

    Sorry, I forgot to mention that the latest parent poms are not the versions
    your checkout is looking for (like wendy, I also don't know why). top of
    my head, I can think of 3 solutions to your problem:

    1. Temporarily change the version of the parent pom's that you check out so
    that they would match each other (i do not recommend this though)
    2. Update to a revision wherein the parent pom's version matches those that
    you need, or
    3. Try to search for those parent's from [1].

    If you want, you can try and do #3 first. But if you can't find it there,
    you can for #2. Last resort would be #1.

    Cheers,
    Franz

    [1]

Re: Building maven-plugins project


max 4000 letters.
Your nickname that display:
In order to stop the spam: 6 + 5 =
QUESTION ON "Java"

EMSDN.COM