You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Kai Hackemesser <ka...@gmail.com> on 2011/02/16 00:01:54 UTC
Deployment in Repository without version in file name?
Hello,
I was asked if it is possible to deploy a file into the repository without
the version suffix added to it? In this case a war file should be retrieved
from the Nexus repository into a Tomcat wepapps folder using wget, and they
are looking for a way where the file doesn't need to be renamed.
Cheers,
Kai
maven3 - maven-checkstyle-plugin:2.5 - Property ${basedir} has not been set
Posted by Hauschel Fred Robert <Fr...@Cirquent.de>.
Hi all,
I've configured checkstyle for a project.
1. If I use the default check style, all works.
2. If I use a absolute path in file system
<configLocation>//xxx\yyy\Checkstyle\ISPA_checkstyle.xml</configLocation
>
The same error as with 3. Happens!
3. If I use:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${version_maven-checkstyle-plugin}</version>
<configuration>
<configLocation>/preferences/XXX_checkstyle.xml</configLocation>
</configuration>
</plugin>
The following happens:
[INFO] Generating "Checkstyle" report --- maven-checkstyle-plugin:2.5
[DEBUG] executeCheckstyle start headerLocation : LICENSE.txt
[DEBUG] Adding the outputDirectory
file:/D:/IDE/workspaces/current/score_common/target/classes/ to the
Checkstyle class path
[DEBUG] request.getConfigLocation() /preferences/XXX_checkstyle.xml
[DEBUG] The resource '/preferences/XXX_checkstyle.xml' was found as
jar:file:/D:/Documents%20and%20Settings/XHAUSF/.m2/repository/com/xxx/sc
ore/buildExtension/0.0.1-SNAPSHOT/buildExtension-0.0.1-SNAPSHOT.jar!/pre
ferences/XXX_checkstyle.xml.
[DEBUG] headerLocation LICENSE.txt
[DEBUG] The resource 'LICENSE.txt' was found as
jar:file:/D:/Documents%20and%20Settings/XHAUSF/.m2/repository/org/apache
/maven/plugins/maven-checkstyle-plugin/2.5/maven-checkstyle-plugin-2.5.j
ar!/LICENSE.txt.
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 17.625s
[INFO] Finished at: Wed Feb 16 12:03:40 CET 2011
[INFO] Final Memory: 22M/58M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-site-plugin:3.0-beta-3:site
(default-site) on project score_common: Error during page generation:
Error rendering Maven report: Failed during checkstyle execution: Failed
during checkstyle configuration: unable to read
D:\IDE\workspaces\current\score_common\target\checkstyle-checker.xml -
unable to parse configuration stream - Property ${basedir} has not been
set -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal org.apache.maven.plugins:maven-site-plugin:3.0-beta-3:site
(default-site) on project score_common: Error during page generation
It's great to know, that it find my settings on the classpath in the
buildextension ;-) But wtf is the problem with the basedir?
Any idea ??
Fredy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Deployment in Repository without version in file name?
Posted by Brian Fox <br...@infinity.nu>.
you can also use the dependency plugin to copy/fetch files and strip
off the version.
On Wed, Feb 16, 2011 at 3:37 AM, Marc Rohlfs <po...@googlemail.com> wrote:
> Another idea might be:
> 1. In Your Maven project, create a text file with the following content:
> http://your-nexus/your-nexus-repo/${project.artifactId}-${project.version}.${project.packaging}
> 2. Use the 'resources:copy-resources' with 'filtering=true' to copy the file
> "somewhere" and get its tokens replaced (see
> http://maven.apache.org/plugins/maven-resources-plugin/examples/copy-resources.html).
> 3. Use wget with the -i (--input-file=FILE) option and the '-O' option.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Deployment in Repository without version in file name?
Posted by Marc Rohlfs <po...@googlemail.com>.
Another idea might be:
1. In Your Maven project, create a text file with the following content:
http://your-nexus/your-nexus-repo/${project.artifactId}-${project.version}.${project.packaging}
2. Use the 'resources:copy-resources' with 'filtering=true' to copy the
file "somewhere" and get its tokens replaced (see
http://maven.apache.org/plugins/maven-resources-plugin/examples/copy-resources.html).
3. Use wget with the -i (--input-file=FILE) option and the '-O' option.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Deployment in Repository without version in file name?
Posted by "Haszlakiewicz, Eric" <EH...@transunion.com>.
>-----Original Message-----
>From: Kai Hackemesser [mailto:kai.hackemesser@gmail.com]
>
>I was asked if it is possible to deploy a file into the repository without
>the version suffix added to it? In this case a war file should be retrieved
>from the Nexus repository into a Tomcat wepapps folder using wget, and they
>are looking for a way where the file doesn't need to be renamed.
>
>Cheers,
>Kai
As far as I know, no. However, I can think of some possible alternate options:
1) Pass the -O option to wget (that's a capital letter O)
2) Set up a little apache server that does an internal redirect to the real url.
3) Don't drop war files into tomcat's webapps folder, use the manager webapp instead.
3b) Use Tomcat's ant tasks to deploy
eric
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org