Do you have this snippet in the pluginManagement section by any chance? If
so, it does actually bind it.

/Anders

On Thu, Dec 9, 2010 at 23:32, Elliot Huntington <[email protected]
> wrote:

> Thank you! I don't know how I overlooked that. I thought I checked the
> repository and saw it there.
>
> Now, for some reason the plugin is not activated when I run >mvn package
>
> I have my pom.xml configured with this:
>
>                <plugin>
>                    <groupId>org.apache.maven.plugins</groupId>
>                    <artifactId>maven-shade-plugin</artifactId>
>                    <version>1.4</version>
>                    <executions>
>                        <execution>
>                            <phase>package</phase>
>                            <goals>
>                                <goal>shade</goal>
>                            </goals>
>                            <configuration>
>
> <!--<shadedArtifactAttached>true</shadedArtifactAttached>-->
>
> <shadedClassifierName>shadedClassifierName</shadedClassifierName>
>                                <transformers>
>                                    <transformer
>
> implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
>
> <resource>META-INF/spring.handlers</resource>
>                                    </transformer>
>                                    <transformer
>
> implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
>
> <resource>META-INF/spring.schemas</resource>
>                                    </transformer>
>                                </transformers>
>                            </configuration>
>                        </execution>
>                    </executions>
>                </plugin>
>
> What do I need to do so that running the command "mvn package" will
> generate
> the artifact {$artifactId}-shadedClassifierName.jar?
>
> On Thu, Dec 9, 2010 at 2:59 PM, Justin Edelson <[email protected]
> >wrote:
>
> > According to http://maven.apache.org/plugins/maven-shade-plugin/, the
> > current version of the stage plugin is 1.4, i.e. 1.4.3 hasn't been
> > released.
> >
> > On Thu, Dec 9, 2010 at 4:03 PM, Elliot Huntington <
> > [email protected]> wrote:
> >
> > > Hi,
> > >
> > > Maven is having problems downloading dependencies. Any suggestions?
> > >
> > > Here is the command line output
> > >
> > >
> > > C:\project>mvn -version
> > > Apache Maven 2.0.11 (r909250; 2010-02-11 22:55:50-0700)
> > > Java version: 1.6.0_21
> > > Java home: C:\devtools\Java\jdk1.6.0_21\jre
> > > Default locale: en_US, platform encoding: Cp1252
> > > OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"
> > > C:\project>
> > > C:\project>
> > > C:\project>mvn shade:shade
> > > [INFO] Scanning for projects...
> > > [INFO] Searching repository for plugin with prefix: 'shade'.
> > > Downloading:
> > >
> > >
> >
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
> > > [INFO] Unable to find resource
> > > 'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
> > > central (http://repo1.maven.org/maven2)
> > > Downloading:
> > >
> > >
> >
> http://maven.springframework.org/release//org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
> > > [INFO] Unable to find resource
> > > 'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
> > > com.springsource.repository.maven.release (
> > > http://maven.springframework.org/release/)
> > > Downloading:
> > >
> > >
> >
> http://repository.jboss.org/nexus/content/groups/public/org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
> > > [INFO] Unable to find resource
> > > 'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
> > JBoss
> > > Repo (http://repository.jboss.org/nexus/content/groups/public)
> > > Downloading:
> > >
> > >
> >
> http://download.java.net/maven/2//org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
> > > [INFO] Unable to find resource
> > > 'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
> > > maven2-repository.dev.java.net (http://download.java.net/maven/2/)
> > > Downloading:
> > >
> > >
> >
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-shade-plugin/1.4.3/maven-shade-plugin-1.4.3.pom
> > > [INFO] Unable to find resource
> > > 'org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3' in repository
> > > central (http://repo1.maven.org/maven2)
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Error building POM (may not be this project's POM).
> > >
> > >
> > > Project ID: org.apache.maven.plugins:maven-shade-plugin
> > >
> > > Reason: POM 'org.apache.maven.plugins:maven-shade-plugin' not found in
> > > repository: Unable to download the artifact from any repository
> > >
> > >  org.apache.maven.plugins:maven-shade-plugin:pom:1.4.3
> > >
> > > from the specified remote repositories:
> > >  JBoss Repo (http://repository.jboss.org/nexus/content/groups/public),
> > >  com.springsource.repository.maven.release (
> > > http://maven.springframework.org/release/),
> > >  maven2-repository.dev.java.net (http://download.java.net/maven/2/),
> > >  central (http://repo1.maven.org/maven2)
> > >
> > >  for project org.apache.maven.plugins:maven-shade-plugin
> > >
> > >
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] For more information, run Maven with the -e switch
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Total time: 1 second
> > > [INFO] Finished at: Thu Dec 09 14:02:46 MST 2010
> > > [INFO] Final Memory: 3M/121M
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > C:\project>
> > >
> > > --
> > > Elliot
> > >
> >
>
>
>
> --
> Elliot
>

Reply via email to